<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9160</bug_id>
          
          <creation_ts>2016-02-24 06:24:27 +0000</creation_ts>
          <short_desc>Invalid branch name of linux-yocto for x86 and x86-64 in yocto-bsp</short_desc>
          <delta_ts>2016-04-01 16:22:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Humberto Ibarra">humberto.ibarra.lopez</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59417</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-02-24 06:24:27 +0000</bug_when>
    <thetext>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&apos;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 &apos;standard/common-pc&apos; 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.

################################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60496</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-03-29 18:21:31 +0000</bug_when>
    <thetext>Preliminar work on [1]

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=lsandov1/bug9160&amp;id=c80e87d969ee108b1fbd51badcd5cfc4acc5943b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60498</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-03-29 18:24:07 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60555</commentid>
    <comment_count>3</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-03-30 21:38:33 +0000</bug_when>
    <thetext>Sent patches

https://lists.yoctoproject.org/pipermail/poky/2016-March/010468.html
https://lists.yoctoproject.org/pipermail/poky/2016-March/010469.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>