Bug 9160 - Invalid branch name of linux-yocto for x86 and x86-64 in yocto-bsp
Summary: Invalid branch name of linux-yocto for x86 and x86-64 in yocto-bsp
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1 M4
Assignee: Humberto Ibarra
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-24 06:24 UTC by Yi Zhao
Modified: 2016-04-01 16:22 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2016-02-24 06:24:27 UTC
git rev: master/152914f2983c5d69001de1d46ce99547fa1e75fe

This issue was found when I tested bug 9120. The default branches of kernel for x86 and x86_64 are standard/common-pc and standard/common-pc-64/base. But the current 4.1 and 4.4 kernel don't have these branches. We can check the following pages for more information: http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.1/refs/heads and http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.4/refs/heads

When I use yocto-bsp to create qemux86 or qemux86-64 BSPs and re-use an existing kernel branch with default branch name, an error happens when build linux-yocto kernel.

Steps:
1. Follow the https://wiki.yoctoproject.org/wiki/Transcript:_Using_the_Yocto_BSP_tools_to_create_a_qemu_BSP to create a myqemux86 layer:

##############################
$ yocto-bsp create myqemux86 qemu
Checking basic git connectivity...
Done.

Which qemu architecture would you like to use? [default: i386]
	1) i386    (32-bit)
	2) x86_64  (64-bit)
	3) ARM     (32-bit)
	4) PowerPC (32-bit)
	5) MIPS    (32-bit)
	6) MIPS64  (64-bit)

Would you like to use the default (4.1) kernel? (y/n) [default: y] 
Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n] [default: y] n
Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-4.1.git...
Please choose a machine branch to base this BSP on: [default: standard/common-pc]
	1) standard/arm-versatile-926ejs
	2) standard/base
	3) standard/beagleboard
	4) standard/beaglebone
	5) standard/edgerouter
	6) standard/fsl-mpc8315e-rdb
	7) standard/mti-malta32
	8) standard/mti-malta64
	9) standard/qemuarm64
	10) standard/qemuppc

Would you like SMP support? (y/n) [default: y] 
Does your BSP have a touchscreen? (y/n) [default: n] 
Does your BSP have a keyboard? (y/n) [default: y] 

New qemu BSP created in meta-myqemux86

#############################

2. Build the kernel

$ bitbake linux-yocto
Loading cache: 100% |####################################################################################################################################################| ETA:  00:00:00
Loaded 1301 entries from dependency cache.
WARNING: Exception during build_dependencies for CXXFLAGS###########################################################################                                     | ETA:  00:00:00
WARNING: Error during finalise of /buildarea/poky/meta/recipes-kernel/linux/linux-yocto_4.1.bb
ERROR: ExpansionError during parsing /buildarea/poky/meta/recipes-kernel/linux/linux-yocto_4.1.bb: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Unable to resolve 'standard/common-pc' in upstream git repository in git ls-remote output for git.yoctoproject.org/linux-yocto-4.1.git

Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

################################
Comment 2 Leonardo Sandoval Gonzalez 2016-03-29 18:24:07 UTC
Humberto,

can you please try the same test under origin/jethro? In case you detect an error (No need to file a another bug), feel free to backport the result of your current work and send patches for both branches.