[OE-core] [PATCH v4] kernel-devsrc: restructure for out of tree (and on target) module builds

Bruce Ashfield bruce.ashfield at gmail.com
Fri Aug 17 12:03:36 UTC 2018


On Fri, Aug 17, 2018 at 1:53 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Thu, 2018-08-16 at 22:44 +0100, richard.purdie at linuxfoundation.org
> wrote:
>> On Thu, 2018-08-16 at 17:08 -0400, Bruce Ashfield wrote:
>> > 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.
>>
>> 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

>
> 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
>
> https://autobuilder.yocto.io/builders/nightly-mips64/builds/1209/steps/Running%20Sanity%20Tests/logs/stdio
>
> I think the kernel piece was otherwise good.
>
> Cheers,
>
> Richard



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the Openembedded-core mailing list