Bug 11230

Summary: Building the virtual/kernel of a i386 BSP created by yocto-bsp fails
Product: [Build System, Metadata & Runtime] BSPs Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: bsps-oe-coreAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alejandro.hernandez
Version: 2.3   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Log obtained when bitbake virtual/kernel none

Description Leonardo Sandoval Gonzalez 2017-03-23 17:22:36 UTC
Created attachment 3665 [details]
Log obtained when bitbake virtual/kernel

Steps to reproduce

$ yocto-bsp create custom-i386 i386
$ # change MACHINE into local.conf to custom-i386
$ # include the new bsp layer into bblayers.conf
$ bitbake virtual/kernel

This is the log observed:

WARNING: linux-yocto-4.8.18+gitAUTOINC+ea8a679c95_c50f695341-r0.1 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration:

---------- CONFIG_X86_32 -----------------
Config: CONFIG_X86_32
From: /home/lsandov1/poky2/build/tmp/work-shared/custom-i386/kernel-source/.kernel-meta/configs/standard/custom-i386/custom-i386.cfg /home/lsandov1/poky2/build/tmp/work-shared/custom-i386/kernel-source/.kernel-meta/configs/standard/custom-i386/standard/custom-i386/custom-i386.cfg
Requested value:  CONFIG_X86_32=y
Actual value:     

Config 'X86_32' has the following conditionals: 
  !64BIT (value: "n")
Dependency values are: 
  y [y] 64BIT [y]


Any many errors of this type:

ERROR: linux-yocto-4.8.18+gitAUTOINC+ea8a679c95_c50f695341-r0.1 do_package_qa: QA Issue: Architecture did not match (x86-64, expected x86) on /work/custom_i386-poky-linux/linux-yocto/4.8.18+gitAUTOINC+ea8a679c95_c50f695341-r0.1/packages-split/kernel-module-nls-cp857-4.8.18-yocto-standard/lib/modules/4.8.18-yocto-standard/kernel/fs/nls/nls_cp857.ko [arch]
Comment 1 Alejandro Hernandez 2017-03-23 17:33:04 UTC
This seems to be closely related to:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10425
Comment 2 Saul Wold 2017-03-30 23:37:00 UTC
Need to make sure that X86_64 is not set in the fragments.
Comment 3 Saul Wold 2017-04-03 17:58:59 UTC
This is different than 10425 and should not depend on it.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=19e99786beeaf792094a4ed9859de00c064674b2