Commit Graph

3 Commits

Author SHA1 Message Date
Oliver Smith a210405427 contrib/jenkins: set -Wno-error=address
After changing our CI environment to build with Debian 12,
GCC 12.2.0-14 fails to build linux-dahdi with Werror (default since
linux 5.15). Set -Wno-error=address to not fail the build.

/build/drivers/dahdi/xpp/xbus-core.c:116:13: error: the comparison will always evaluate as 'true' for the address of 'label' will never be NULL [-Werror=address]

/build/drivers/dahdi/dahdi_dynamic_ethmf.c:538:34: error: the comparison will always evaluate as 'true' for the address of 'name' will never be NULL [-Werror=address]

/build/drivers/dahdi/wcte13xp-base.c:2704:13: error: the comparison will always evaluate as 'true' for the address of 'xb' will never be NULL [-Werror=address]

Fixes: OS#6098
Change-Id: Ifc8fb605cb8e0de70e5556b127e22533cbe24c37
2023-07-17 14:02:54 +02:00
Harald Welte 36b8ad4d27 Fix jenkins.sh failure for kernels >= 6.3.0
In >= 6.3.0 the default for how modules are built in absence of
vmlinux.o or Module.symvers due to a change of the modpost execution.

See linux kernel git commit 5573b4daa26a0cf15aa0fecd7f1be16e0b6157bc

As our build verification *just* builds the dahdi modules without
building the entire kernel, we need to enforce the legacy behaviour
by adding KBUILD_MODPOST_WARN=1 to the command line.

Change-Id: I7206f1daed8ff1e7fcd4894bc24e5ef4d4590358
2023-06-06 14:51:49 +02:00
Oliver Smith eac30422b0 contrib/jenkins.sh: new file
Build the kernel module against a given linux tree. This script will be
used in CI at jenkins.osmocom.org.

Related: OS#5407
Depends: docker-playground Id72d19ad08681cd7cb3194de2226292f19e96df5
Change-Id: I904ab66a1ecd72492642ac2cc4cb102c7283c590
2022-04-24 18:06:56 +02:00