diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-12-26 14:16:03 +0100 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2022-02-17 14:53:01 +0100 |
commit | 8ee889379406cd40f886db1e3f9cd04aae8c8793 (patch) | |
tree | 3876de98f1ffa6415a79a0356d533a774c0bcd81 | |
parent | 33701a09fef48e06be2c704419a7d5017131a7d1 (diff) | |
download | neard-8ee889379406cd40f886db1e3f9cd04aae8c8793.tar.gz |
ci: show kernel headers version and difference against embedded nfc.h
We embed the /usr/include/linux/nfc.h as nfc_copy.h, to compile cleanly
on older kernels (e.g. older than v4.15 without
NFC_CMD_DEACTIVATE_TARGET). See also commit fb7664e2995f ("include: Add
a copy of the NFC kernel header"). We should sync our local
nfc_copy.h with kernel sources from time to time, but it is easy to
forget this.
Add a separate Continuous Integration step to show kernel headers
version and differences between kernel's nfc.h and our local copy, so we
can notice kernel uses a different one. This is purely for maintenance.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r-- | .github/workflows/ci.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e1ad40..8cd836d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -276,11 +276,20 @@ jobs: - name: Display environment and Linux version run: | test -f /etc/issue && cat /etc/issue + echo "############################################" lsb_release -a || true + echo "############################################" + cat /usr/include/linux/version.h + echo "############################################" uname -a + echo "############################################" cat /proc/cmdline + echo "############################################" printenv + - name: Display nfc.h differences between local and Linux kernel headers + run: diff -uBb /usr/include/linux/nfc.h include/nfc_copy.h || true + - name: Configure id: configure run: | |