kernel-devsrc: restructure for out of tree (and on target) module builds
PATCH v4 1/1 kernel-devsrc: restructure for out of tree (and on target) module builds
The existing kernel-devsrc package starts with a full copy of the kernel source and then starts to strip out elements that are not required.
This results in extra time (I/O) and extra space being taken up in the final package. The main purpose of the kernel-devsrc package has been to build modules against the running kernel, not to include a full copy of the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.
This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus a mass copy of the entire kernel.
The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.
The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.
Along with the changes to the copying of the infrascture, we also have the following changes:
- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make modules_prepare"
- The kernel source is installed into /lib/modules/<version>/build and a symlink created from /usr/src/kernel to the new location. This aligns with the standard location for module support code
- There is also a symlink from /lib/modules/<version>/source -> build to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.
---
Here's v4 of the devsrc re-work. I haven't tested the oeqa test or build appliance yet, since my build is still running. If it still breaks, I'll re-spin.
v2: drop DEPENDS on perf. We no longer need to depend on
perf since the source is copied before modification.
v3: build fixes for:
- DESCEND objtool build failure
- No rule to make target 'arch/mips/boot/tools/relocs_32.c'
- No rule to make target 'arch/arm/tools/syscall.tbl'
- No rule to make target 'arch/arm64/kernel/vdso/vdso.lds'
v4: adjust build appliance and oeqa tests to the new build location
meta/lib/oeqa/runtime/cases/stap.py | 2 +- .../images/build-appliance-image_15.0.0.bb | 6 +- meta/recipes-kernel/linux/kernel-devsrc.bb | 228 ++++++++++++++++----- 3 files changed, 186 insertions(+), 50 deletions(-)
meta/lib/oeqa/runtime/cases/stap.py +1 -1
@@ -25,7 +25,7 @@ class StapTest(OERuntimeTestCase): def test_stap(self): cmds = [ 'cd /usr/src/kernel && make scripts prepare', - 'cd /lib/modules/`uname -r` && (if [ ! -L build ]; then ln -s /usr/src/kernel build; fi)', + 'cd /lib/modules/`uname -r` && (if [ ! -e build ]; then ln -s /usr/src/kernel build; fi)', 'stap --disable-cache -DSTP_NO_VERREL_CHECK /tmp/hello.stp' ] for cmd in cmds:
meta/recipes-core/images/build-appliance-image_15.0.0.bb +4 -2
@@ -59,8 +59,10 @@ fakeroot do_populate_poky_src () { cp ${WORKDIR}/README_VirtualBox_Toaster.txt ${IMAGE_ROOTFS}/home/builder/ # Create a symlink, needed for out-of-tree kernel modules build - rm -f ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build - lnr ${IMAGE_ROOTFS}${KERNEL_SRC_PATH} ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build + if [ ! -e ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build ]; then + rm -f ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build + lnr ${IMAGE_ROOTFS}${KERNEL_SRC_PATH} ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build + fi echo "INHERIT += \"rm_work\"" >> ${IMAGE_ROOTFS}/home/builder/poky/build/conf/auto.conf echo "export LC_ALL=en_US.utf8" >> ${IMAGE_ROOTFS}/home/builder/.bashrc
meta/recipes-kernel/linux/kernel-devsrc.bb +181 -47
238 lines not on this page · raw message
Signature · 1 line
2.5.0
I'm getting a strange install issue with x86 that I've never seen before, and that
part is unchanged from v3 to v4.
.. and then I realized that a file has changed in my builds, since I'm working on 4.18.
This is worth testing on the autobuilder, but I will have a v5 that adds a test for some
files that may go missing, and hence we'll have issues across versions.
Cheers,
Bruce
Quoted 341 lines · Bruce Ashfield
The existing kernel-devsrc package starts with a full copy of the kernel source and then starts to strip out elements that are not required.
This results in extra time (I/O) and extra space being taken up in the final package. The main purpose of the kernel-devsrc package has been to build modules against the running kernel, not to include a full copy of the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.
This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus a mass copy of the entire kernel.
The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.
The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.
Along with the changes to the copying of the infrascture, we also have the following changes:
- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make
modules_prepare"- The kernel source is installed into /lib/modules/<version>/build and a symlink created from
/usr/src/kernelto the new location. This aligns with the standard location for module support code- There is also a symlink from /lib/modules/<version>/source -> build to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.
Signed-off-by Bruce Ashfield <[email protected]>---
Here's v4 of the devsrc re-work. I haven't tested the oeqa test or build appliance yet, since my build is still running. If it still breaks, I'll re-spin.
v2: drop DEPENDS on perf. We no longer need to depend on
perf since the source is copied before modification.v3: build fixes for:
- DESCEND objtool build failure
- No rule to make target 'arch/mips/boot/tools/relocs_32.c'
- No rule to make target 'arch/arm/tools/syscall.tbl'
- No rule to make target 'arch/arm64/kernel/vdso/vdso.lds'v4: adjust build appliance and oeqa tests to the new build location
meta/lib/oeqa/runtime/cases/stap.py | 2 +- .../images/build-appliance-image_15.0.0.bb | 6 +- meta/recipes-kernel/linux/kernel-devsrc.bb | 228 ++++++++++++++++----- 3 files changed, 186 insertions(+), 50 deletions(-)meta/lib/oeqa/runtime/cases/stap.py +1
-1@@ -25,7 +25,7 @@ class StapTest(OERuntimeTestCase): def test_stap(self): cmds = [ 'cd /usr/src/kernel && make scripts prepare', - 'cd /lib/modules/`uname -r` && (if [ ! -L build ]; then ln -s /usr/src/kernel build; fi)', + 'cd /lib/modules/`uname -r` && (if [ ! -e build ]; then ln -s /usr/src/kernel build; fi)', 'stap --disable-cache -DSTP_NO_VERREL_CHECK /tmp/hello.stp' ] for cmd in cmds:meta/recipes-core/images/build-appliance-image_15.0.0.bb +4
-2@@ -59,8 +59,10 @@ fakeroot do_populate_poky_src () { cp ${WORKDIR}/README_VirtualBox_Toaster.txt ${IMAGE_ROOTFS}/home/builder/ # Create a symlink, needed for out-of-tree kernel modules build - rm -f ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build - lnr ${IMAGE_ROOTFS}${KERNEL_SRC_PATH} ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build + if [ ! -e ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build ]; then + rm -f ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build + lnr ${IMAGE_ROOTFS}${KERNEL_SRC_PATH} ${IMAGE_ROOTFS}/lib/modules/${KERNEL_VERSION}/build + fi echo "INHERIT += \"rm_work\"" >> ${IMAGE_ROOTFS}/home/builder/poky/build/conf/auto.conf echo "export LC_ALL=en_US.utf8" >> ${IMAGE_ROOTFS}/home/builder/.bashrcmeta/recipes-kernel/linux/kernel-devsrc.bb +181
-48@@ -30,57 +30,191 @@ do_populate_sysroot[noexec] = "1" S = "${STAGING_KERNEL_DIR}" B = "${STAGING_KERNEL_BUILDDIR}" -KERNEL_VERSION = "${@get_kernelversion_headers('${S}')}" - PACKAGE_ARCH = "${MACHINE_ARCH}" +KERNEL_BUILD_ROOT="/lib/modules/" + do_install() { - kerneldir=${D}${KERNEL_SRC_PATH} - install -d $kerneldir - - # - # Copy the staging dir source (and module build support) into the devsrc structure. - # We can keep this copy simple and take everything, since a we'll clean up any build - # artifacts afterwards, and the extra i/o is not significant - # - cd ${B} - find . -type d -name '.git*' -prune -o -path '.debug' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir - cd ${S} - find . -type d -name '.git*' -prune -o -type d -name '.kernel-meta' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir - - # Explicitly set KBUILD_OUTPUT to ensure that the image directory is cleaned and not - # The main build artifacts. We clean the directory to avoid QA errors on mismatched - # architecture (since scripts and helpers are native format). - KBUILD_OUTPUT="$kerneldir" - oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts - # make clean generates an absolute path symlink called "source" - # in $kerneldir points to $kerneldir, which doesn't make any - # sense, so remove it. - if [ -L $kerneldir/source ]; then - bbnote "Removing $kerneldir/source symlink" - rm -f $kerneldir/source - fi - - # As of Linux kernel version 3.0.1, the clean target removes - # arch/powerpc/lib/crtsavres.o which is present in - # KBUILD_LDFLAGS_MODULE, making it required to build external modules. - if [ ${ARCH} = "powerpc" ]; then - mkdir -p $kerneldir/arch/powerpc/lib/ - cp ${B}/arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o - fi - - # Remove fixdep/objtool as they won't be target binaries - for i in fixdep objtool; do - if [ -e $kerneldir/tools/objtool/$i ]; then - rm -rf $kerneldir/tools/objtool/$i - fi - done - - chown -R root:root ${D} + kerneldir=${D}${KERNEL_BUILD_ROOT}${KERNEL_VERSION} + install -d $kerneldir + + # create the directory structure + rm -f $kerneldir/build + rm -f $kerneldir/source + mkdir -p $kerneldir/build + + # for compatibility with some older variants of this package, we + # create a /usr/src/kernel symlink to /lib/modules/<version>/source + mkdir -p ${D}/usr/src + ( + cd ${D}/usr/src + ln -s ${KERNEL_BUILD_ROOT}${KERNEL_VERSION}/source kernel + ) + + # for on target purposes, we unify build and source + ( + cd $kerneldir + ln -s build source + ) + + # first copy everything + ( + cd ${S} + cp --parents $(find -type f -name "Makefile*" -o -name "Kconfig*") $kerneldir/build + cp --parents $(find -type f -name "Build" -o -name "Build.include") $kerneldir/build + ) + + # then drop all but the needed Makefiles/Kconfig files + rm -rf $kerneldir/build/Documentation + rm -rf $kerneldir/build/scripts + rm -rf $kerneldir/build/include + + # now copy in parts from the build that we'll need later + ( + cd ${B} + + cp Module.symvers $kerneldir/build + cp System.map* $kerneldir/build + if [ -s Module.markers ]; then + cp Module.markers $kerneldir/build + fi + + cp .config $kerneldir/build + + # This scripts copy blow up QA, so for now, we require a more + # complex 'make scripts' to restore these, versus copying them + # here. Left as a reference to indicate that we know the scripts must + # be dealt with. + # cp -a scripts $kerneldir/build + + if [ -d arch/${ARCH}/scripts ]; then + cp -a arch/${ARCH}/scripts $kerneldir/build/arch/${ARCH} + fi + if [ -f arch/${ARCH}/*lds ]; then + cp -a arch/${ARCH}/*lds $kerneldir/build/arch/${ARCH} + fi + + rm -f $kerneldir/build/scripts/*.o + rm -f $kerneldir/build/scripts/*/*.o + + if [ "${ARCH}" = "powerpc" ]; then + if [ -e arch/powerpc/lib/crtsavres.S ] || + [ -e arch/powerpc/lib/crtsavres.o ]; then + cp -a --parents arch/powerpc/lib/crtsavres.[So] $kerneldir/build/ + fi + fi + + if [ "${ARCH}" = "arm64" ]; then + cp -a --parents arch/arm64/kernel/vdso/vdso.lds $kerneldir/build/ + fi + + cp -a include $kerneldir/build/include + ) + + # now grab the chunks from the source tree that we need + ( + cd ${S} + + cp -a scripts $kerneldir/build + + # if our build dir had objtool, it will also be rebuilt on target, so + # we copy what is required for that build + if [ -f ${B}/tools/objtool/objtool ]; then + # these are a few files associated with objtool, since we'll need to + # rebuild it + cp -a --parents tools/build/Build.include $kerneldir/build/ + cp -a --parents tools/build/Build $kerneldir/build/ + cp -a --parents tools/build/fixdep.c $kerneldir/build/ + cp -a --parents tools/scripts/utilities.mak $kerneldir/build/ + + # extra files, just in case + cp -a --parents tools/objtool/* $kerneldir/build/ + cp -a --parents tools/lib/str_error_r.c $kerneldir/build/ + cp -a --parents tools/lib/string.c $kerneldir/build/ + cp -a --parents tools/lib/subcmd/* $kerneldir/build/ + + cp -a --parents tools/include/* $kerneldir/build/ + fi + + if [ "${ARCH}" = "arm64" ]; then + # arch/arm64/include/asm/xen references arch/arm + cp -a --parents arch/arm/include/asm/xen $kerneldir/build/ + # arch/arm64/include/asm/opcodes.h references arch/arm + cp -a --parents arch/arm/include/asm/opcodes.h $kerneldir/build/ + + cp -a --parents arch/arm64/kernel/vdso/gettimeofday.S $kerneldir/build/ + cp -a --parents arch/arm64/kernel/vdso/sigreturn.S $kerneldir/build/ + cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/ + cp -a --parents arch/arm64/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/ + fi + + # include the machine specific headers for ARM variants, if available. + if [ "${ARCH}" = "arm" ]; then + cp -a --parents arch/${ARCH}/mach-*/include $kerneldir/build/ + + # include a few files for 'make prepare' + cp -a --parents arch/arm/tools/gen-mach-types $kerneldir/build/ + cp -a --parents arch/arm/tools/mach-types $kerneldir/build/ + cp -a --parents arch/arm/tools/syscall* $kerneldir/build/ + fi + + if [ -d arch/${ARCH}/include ]; then + cp -a --parents arch/${ARCH}/include $kerneldir/build/ + fi + + cp -a include $kerneldir/build + + cp -a --parents tools/include/tools/le_byteshift.h $kerneldir/build/ + cp -a --parents tools/include/tools/be_byteshift.h $kerneldir/build/ + + if [ "${ARCH}" = "x86" ]; then + # files for 'make prepare' to succeed with kernel-devel + cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $kerneldir/build/ + cp -a --parents arch/x86/entry/syscalls/syscalltbl.sh $kerneldir/build/ + cp -a --parents arch/x86/entry/syscalls/syscallhdr.sh $kerneldir/build/ + cp -a --parents arch/x86/entry/syscalls/syscall_64.tbl $kerneldir/build/ + cp -a --parents arch/x86/tools/relocs_32.c $kerneldir/build/ + cp -a --parents arch/x86/tools/relocs_64.c $kerneldir/build/ + cp -a --parents arch/x86/tools/relocs.c $kerneldir/build/ + cp -a --parents arch/x86/tools/relocs_common.c $kerneldir/build/ + cp -a --parents arch/x86/tools/relocs.h $kerneldir/build/ + cp -a --parents arch/x86/purgatory/purgatory.c $kerneldir/build/ + cp -a --parents arch/x86/purgatory/sha256.h $kerneldir/build/ + cp -a --parents arch/x86/purgatory/sha256.c $kerneldir/build/ + cp -a --parents arch/x86/purgatory/stack.S $kerneldir/build/ + cp -a --parents arch/x86/purgatory/string.c $kerneldir/build/ + cp -a --parents arch/x86/purgatory/setup-x86_64.S $kerneldir/build/ + cp -a --parents arch/x86/purgatory/entry64.S $kerneldir/build/ + cp -a --parents arch/x86/boot/string.h $kerneldir/build/ + cp -a --parents arch/x86/boot/string.c $kerneldir/build/ + cp -a --parents arch/x86/boot/ctype.h $kerneldir/build/ + fi + + if [ "${ARCH}" = "mips" ]; then + cp -a --parents arch/mips/Kbuild.platforms $kerneldir/build/ + cp --parents $(find -type f -name "Platform") $kerneldir/build + cp --parents arch/mips/boot/tools/relocs* $kerneldir/build + fi + ) + + # Make sure the Makefile and version.h have a matching timestamp so that + # external modules can be built + touch -r $kerneldir/build/Makefile $kerneldir/build/include/generated/uapi/linux/version.h + + # Copy .config to include/config/auto.conf so "make prepare" is unnecessary. + cp $kerneldir/build/.config $kerneldir/build/include/config/auto.conf + + chown -R root:root ${D} } + # Ensure we don't race against "make scripts" during cpio do_install[lockfiles] = "${TMPDIR}/kernel-scripts.lock" -PACKAGES = "kernel-devsrc" -FILES_${PN} = "${KERNEL_SRC_PATH}" -RDEPENDS_${PN} = "bc" +FILES_${PN} = "${KERNEL_BUILD_ROOT} ${KERNEL_SRC_PATH}" +FILES_${PN}-dbg += "${KERNEL_BUILD_ROOT}*/build/scripts/*/.debug/*" + +RDEPENDS_${PN} = "bc python ${TCLIBC}-utils" +# 4.15+ needs these next two RDEPENDS +RDEPENDS_${PN} += "openssl-dev util-linux" +# and x86 needs a bit more for 4.15+ +RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils', '', d)}" --2.5.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 4 lines · Bruce Ashfield
I'm getting a strange install issue with x86 that I've never seen before, and that
part is unchanged from v3 to v4.
Quoted 8 lines
.. and then I realized that a file has changed in my builds, since I'm
working on 4.18.This is worth testing on the autobuilder, but I will have a v5 that adds a test for some
files that may go missing, and hence we'll have issues across versions.
Thanks, I've added it into a build with a glibc and openssl change and set it away so its possible other issues may occur, we'll see how it works out...
Cheers,
Richard
Quoted 14 lines · On Thu, 2018-08-16 at 22:44 +0100, [email protected] wrote:
Quoted 4 lines · Bruce Ashfield
I'm getting a strange install issue with x86 that I've never seen before, and that
part is unchanged from v3 to v4.Quoted 8 lines
.. and then I realized that a file has changed in my builds, since I'm
working on 4.18.This is worth testing on the autobuilder, but I will have a v5 that adds a test for some
files that may go missing, and hence we'll have issues across versions.
Quoted 4 lines
Thanks, I've added it into a build with a glibc and openssl change and
set it away so its possible other issues may occur, we'll see how it works out...
The openssl change caused problems but I did spot qemumips64 failing:
NOTE: ======================================================================
| NOTE: FAIL: test_kernel_module (kernelmodule.KernelModuleTest) | NOTE: ---------------------------------------------------------------------- | NOTE: Traceback (most recent call last): | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f | return func(*args, **kwargs) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f | return func(*args, **kwargs) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f | return func(*args, **kwargs) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/runtime/cases/kernelmodule.py", line 40, in test_kernel_module | self.assertEqual(status, 0, msg='\n'.join([cmd, output])) | AssertionError: 2 != 0 : cd /usr/src/kernel && make scripts prepare | HOSTCC scripts/basic/fixdep | HOSTCC scripts/basic/bin2c | HOSTCC scripts/kconfig/conf.o | SHIPPED scripts/kconfig/zconf.tab.c | SHIPPED scripts/kconfig/zconf.lex.c | HOSTCC scripts/kconfig/zconf.tab.o | In file included from scripts/kconfig/zconf.tab.c:2468: | scripts/kconfig/confdata.c: In function 'conf_write': | scripts/kconfig/confdata.c:773:19: warning: '%s' directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=] | sprintf(newname, "%s%s", dirname, basename); | ^~~~~~ | scripts/kconfig/confdata.c:773:19: note: assuming directive output of 7 bytes | scripts/kconfig/confdata.c:773:2: note: 'sprintf' output 1 or more bytes (assuming 4104) into a destination of size 4097 | sprintf(newname, "%s%s", dirname, basename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | scripts/kconfig/confdata.c:776:20: warning: '.tmpconfig.' directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=] | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); | ^~~~~~~~~~~~~~~~~ | scripts/kconfig/confdata.c:776:3: note: 'sprintf' output between 13 and 4119 bytes into a destination of size 4097 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | HOSTLD scripts/kconfig/conf | scripts/kconfig/conf --silentoldconfig Kconfig | WRAP arch/mips/include/generated/uapi/asm/ipcbuf.h | WRAP arch/mips/include/generated/asm/clkdev.h | WRAP arch/mips/include/generated/asm/current.h | WRAP arch/mips/include/generated/asm/dma-contiguous.h | WRAP arch/mips/include/generated/asm/emergency-restart.h | WRAP arch/mips/include/generated/asm/export.h | WRAP arch/mips/include/generated/asm/irq_work.h | WRAP arch/mips/include/generated/asm/local64.h | WRAP arch/mips/include/generated/asm/mcs_spinlock.h | WRAP arch/mips/include/generated/asm/mm-arch-hooks.h | WRAP arch/mips/include/generated/asm/parport.h | WRAP arch/mips/include/generated/asm/percpu.h | WRAP arch/mips/include/generated/asm/preempt.h | WRAP arch/mips/include/generated/asm/qrwlock.h | WRAP arch/mips/include/generated/asm/qspinlock.h | WRAP arch/mips/include/generated/asm/sections.h | WRAP arch/mips/include/generated/asm/segment.h | WRAP arch/mips/include/generated/asm/trace_clock.h | WRAP arch/mips/include/generated/asm/unaligned.h | WRAP arch/mips/include/generated/asm/user.h | WRAP arch/mips/include/generated/asm/word-at-a-time.h | WRAP arch/mips/include/generated/asm/xor.h | HOSTCC scripts/dtc/dtc.o | HOSTCC scripts/dtc/flattree.o | HOSTCC scripts/dtc/fstree.o | HOSTCC scripts/dtc/data.o | HOSTCC scripts/dtc/livetree.o | HOSTCC scripts/dtc/treesource.o | HOSTCC scripts/dtc/srcpos.o | HOSTCC scripts/dtc/checks.o | HOSTCC scripts/dtc/util.o | SHIPPED scripts/dtc/dtc-lexer.lex.c | SHIPPED scripts/dtc/dtc-parser.tab.h | HOSTCC scripts/dtc/dtc-lexer.lex.o | SHIPPED scripts/dtc/dtc-parser.tab.c | HOSTCC scripts/dtc/dtc-parser.tab.o | HOSTLD scripts/dtc/dtc | CC scripts/mod/empty.o | HOSTCC scripts/mod/mk_elfconfig | MKELF scripts/mod/elfconfig.h | HOSTCC scripts/mod/modpost.o | CC scripts/mod/devicetable-offsets.s | CHK scripts/mod/devicetable-offsets.h | UPD scripts/mod/devicetable-offsets.h | HOSTCC scripts/mod/file2alias.o | HOSTCC scripts/mod/sumversion.o | HOSTLD scripts/mod/modpost | HOSTCC scripts/kallsyms | HOSTCC scripts/conmakehash | HOSTCC scripts/sortextable | HOSTCC arch/mips/boot/tools/relocs_32.o | HOSTCC arch/mips/boot/tools/relocs_64.o | HOSTCC arch/mips/boot/tools/relocs_main.o | HOSTLD arch/mips/boot/tools/relocs | CHK include/config/kernel.release | CHK include/generated/uapi/linux/version.h | CHK include/generated/utsrelease.h | Checking missing-syscalls for N32 | make[1]: *** No rule to make target 'missing-syscalls'. Stop. | make: *** [arch/mips/Makefile:422: archprepare] Error 2
I think the kernel piece was otherwise good.
Cheers,
Richard
Quoted 16 lines · Richard Purdie
Quoted 14 lines · On Thu, 2018-08-16 at 22:44 +0100, [email protected] wrote:
Quoted 12 lines · Bruce Ashfield
I'm getting a strange install issue with x86 that I've never seen before, and that
part is unchanged from v3 to v4... and then I realized that a file has changed in my builds, since I'm
working on 4.18.This is worth testing on the autobuilder, but I will have a v5 that adds a test for some
files that may go missing, and hence we'll have issues across versions.
Quoted 6 lines
Quoted 4 lines
Thanks, I've added it into a build with a glibc and openssl change and
set it away so its possible other issues may occur, we'll see how it works out...The openssl change caused problems but I did spot qemumips64 failing:
lttng was getting in the way of my mips testing, so I missed that one.
I'll fix this and send a v5 today.
Bruce
Quoted 105 lines
NOTE: ======================================================================
| NOTE: FAIL: test_kernel_module (kernelmodule.KernelModuleTest) | NOTE: ---------------------------------------------------------------------- | NOTE: Traceback (most recent call last): | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f | return func(*args, **kwargs) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f | return func(*args, **kwargs) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f | return func(*args, **kwargs) | File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-mips64/build/meta/lib/oeqa/runtime/cases/kernelmodule.py", line 40, in test_kernel_module | self.assertEqual(status, 0, msg='\n'.join([cmd, output])) | AssertionError: 2 != 0 : cd /usr/src/kernel && make scripts prepare | HOSTCC scripts/basic/fixdep | HOSTCC scripts/basic/bin2c | HOSTCC scripts/kconfig/conf.o | SHIPPED scripts/kconfig/zconf.tab.c | SHIPPED scripts/kconfig/zconf.lex.c | HOSTCC scripts/kconfig/zconf.tab.o | In file included from scripts/kconfig/zconf.tab.c:2468: | scripts/kconfig/confdata.c: In function 'conf_write': | scripts/kconfig/confdata.c:773:19: warning: '%s' directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=] | sprintf(newname, "%s%s", dirname, basename); | ^~~~~~ | scripts/kconfig/confdata.c:773:19: note: assuming directive output of 7 bytes | scripts/kconfig/confdata.c:773:2: note: 'sprintf' output 1 or more bytes (assuming 4104) into a destination of size 4097 | sprintf(newname, "%s%s", dirname, basename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | scripts/kconfig/confdata.c:776:20: warning: '.tmpconfig.' directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=] | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); | ^~~~~~~~~~~~~~~~~ | scripts/kconfig/confdata.c:776:3: note: 'sprintf' output between 13 and 4119 bytes into a destination of size 4097 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | HOSTLD scripts/kconfig/conf | scripts/kconfig/conf --silentoldconfig Kconfig | WRAP arch/mips/include/generated/uapi/asm/ipcbuf.h | WRAP arch/mips/include/generated/asm/clkdev.h | WRAP arch/mips/include/generated/asm/current.h | WRAP arch/mips/include/generated/asm/dma-contiguous.h | WRAP arch/mips/include/generated/asm/emergency-restart.h | WRAP arch/mips/include/generated/asm/export.h | WRAP arch/mips/include/generated/asm/irq_work.h | WRAP arch/mips/include/generated/asm/local64.h | WRAP arch/mips/include/generated/asm/mcs_spinlock.h | WRAP arch/mips/include/generated/asm/mm-arch-hooks.h | WRAP arch/mips/include/generated/asm/parport.h | WRAP arch/mips/include/generated/asm/percpu.h | WRAP arch/mips/include/generated/asm/preempt.h | WRAP arch/mips/include/generated/asm/qrwlock.h | WRAP arch/mips/include/generated/asm/qspinlock.h | WRAP arch/mips/include/generated/asm/sections.h | WRAP arch/mips/include/generated/asm/segment.h | WRAP arch/mips/include/generated/asm/trace_clock.h | WRAP arch/mips/include/generated/asm/unaligned.h | WRAP arch/mips/include/generated/asm/user.h | WRAP arch/mips/include/generated/asm/word-at-a-time.h | WRAP arch/mips/include/generated/asm/xor.h | HOSTCC scripts/dtc/dtc.o | HOSTCC scripts/dtc/flattree.o | HOSTCC scripts/dtc/fstree.o | HOSTCC scripts/dtc/data.o | HOSTCC scripts/dtc/livetree.o | HOSTCC scripts/dtc/treesource.o | HOSTCC scripts/dtc/srcpos.o | HOSTCC scripts/dtc/checks.o | HOSTCC scripts/dtc/util.o | SHIPPED scripts/dtc/dtc-lexer.lex.c | SHIPPED scripts/dtc/dtc-parser.tab.h | HOSTCC scripts/dtc/dtc-lexer.lex.o | SHIPPED scripts/dtc/dtc-parser.tab.c | HOSTCC scripts/dtc/dtc-parser.tab.o | HOSTLD scripts/dtc/dtc | CC scripts/mod/empty.o | HOSTCC scripts/mod/mk_elfconfig | MKELF scripts/mod/elfconfig.h | HOSTCC scripts/mod/modpost.o | CC scripts/mod/devicetable-offsets.s | CHK scripts/mod/devicetable-offsets.h | UPD scripts/mod/devicetable-offsets.h | HOSTCC scripts/mod/file2alias.o | HOSTCC scripts/mod/sumversion.o | HOSTLD scripts/mod/modpost | HOSTCC scripts/kallsyms | HOSTCC scripts/conmakehash | HOSTCC scripts/sortextable | HOSTCC arch/mips/boot/tools/relocs_32.o | HOSTCC arch/mips/boot/tools/relocs_64.o | HOSTCC arch/mips/boot/tools/relocs_main.o | HOSTLD arch/mips/boot/tools/relocs | CHK include/config/kernel.release | CHK include/generated/uapi/linux/version.h | CHK include/generated/utsrelease.h | Checking missing-syscalls for N32 | make[1]: *** No rule to make target 'missing-syscalls'. Stop. | make: *** [arch/mips/Makefile:422: archprepare] Error 2I think the kernel piece was otherwise good.
Cheers,
Richard
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 16 lines · Richard Purdie
Quoted 14 lines · On Thu, 2018-08-16 at 22:44 +0100, [email protected] wrote:
Quoted 12 lines · Bruce Ashfield
I'm getting a strange install issue with x86 that I've never seen before, and that
part is unchanged from v3 to v4... and then I realized that a file has changed in my builds, since I'm
working on 4.18.This is worth testing on the autobuilder, but I will have a v5 that adds a test for some
files that may go missing, and hence we'll have issues across versions.
Quoted 6 lines
Quoted 4 lines
Thanks, I've added it into a build with a glibc and openssl change and
set it away so its possible other issues may occur, we'll see how it works out...The openssl change caused problems but I did spot qemumips64 failing:
What were the problems related to the openssl updates?
Quoted 29 lines · Andre McCurdy
Quoted 27 lines · Richard Purdie
Quoted 23 lines · On Thu, 2018-08-16 at 22:44 +0100, [email protected] rg wrote:
Quoted 10 lines · Bruce Ashfield
I'm getting a strange install issue with x86 that I've never seen
before, and that
part is unchanged from v3 to v4... and then I realized that a file has changed in my builds, since
I'm
working on 4.18.Quoted 5 lines
This is worth testing on the autobuilder, but I will have a v5 that
adds a test for some
files that may go missing, and hence we'll have issues across versions.Thanks, I've added it into a build with a glibc and openssl change
and
set it away so its possible other issues may occur, we'll see how it
works out...
Quoted 4 lines
Quoted 2 lines
The openssl change caused problems but I did spot qemumips64 failing:
What were the problems related to the openssl updates?
SDK sanity test failing where wget is failing to work:
I've not definitively narrowed it down to openssl but it has to be one of:
kernel-devsrc: restructure for out of tree (and on target) module
openssl: update 1.1.0h -> 1.1.0i
openssl: update 1.0.2o -> 1.0.2p
vala: refresh patch
glibc: re-package for libnss-db
Cheers,
Richard
Quoted 39 lines · On Fri, Aug 17, 2018 at 2:14 PM, <[email protected]> wrote:
Quoted 29 lines · Andre McCurdy
Quoted 27 lines · Richard Purdie
Quoted 23 lines · On Thu, 2018-08-16 at 22:44 +0100, [email protected] rg wrote:
Quoted 10 lines · Bruce Ashfield
I'm getting a strange install issue with x86 that I've never seen
before, and that
part is unchanged from v3 to v4... and then I realized that a file has changed in my builds, since
I'm
working on 4.18.Quoted 5 lines
This is worth testing on the autobuilder, but I will have a v5 that
adds a test for some
files that may go missing, and hence we'll have issues across versions.Thanks, I've added it into a build with a glibc and openssl change
and
set it away so its possible other issues may occur, we'll see how it
works out...Quoted 4 lines
Quoted 2 lines
The openssl change caused problems but I did spot qemumips64 failing:
What were the problems related to the openssl updates?
SDK sanity test failing where wget is failing to work:
Quoted 8 lines
I've not definitively narrowed it down to openssl but it has to be one of:
kernel-devsrc: restructure for out of tree (and on target) module
openssl: update 1.1.0h -> 1.1.0i
openssl: update 1.0.2o -> 1.0.2p
vala: refresh patch
glibc: re-package for libnss-db
wget builds against gnutls (rather than openssl), but there's a dependency chain from wget -> ca-certificates -> openssl so definitely something could have gone wrong there.
Interesting that this test is running wget without passing --no-check-certificate (which the wget fetcher always uses).
Quoted 10 lines · Andre McCurdy
Quoted 9 lines
I've not definitively narrowed it down to openssl but it has to be one
of:kernel-devsrc: restructure for out of tree (and on target) module
openssl: update 1.1.0h -> 1.1.0i
openssl: update 1.0.2o -> 1.0.2p
vala: refresh patch
glibc: re-package for libnss-db
Quoted 7 lines
wget builds against gnutls (rather than openssl), but there's a dependency chain from wget -> ca-certificates -> openssl so definitely
something could have gone wrong there.Interesting that this test is running wget without passing --no-check-certificate (which the wget fetcher always uses).
It turned out to be a transient network issue as far as I can tell. Things worked out ok with a retest.
Cheers,
Richard