Bug 10673

Summary: The patch file is not applied to linux-yocto by yocto-kernel add patch command in 2.1.2 rc1
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Yi Zhao <yi.zhao>
Component: meta-yoctoAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: RESOLVED DUPLICATE QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Undecided CC: jose.perez.carranza, poky.bs.watcher, poky.watcher, yi.zhao
Version: 2.1.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Found by QA test)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2016-11-16 06:17:14 UTC
This issue is cloned from bug 9120 which already fixed in 2.2. More details can check with it.

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

##############################
$ yocto-bsp create myqemuarm 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)
3
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     <--------- DO NOT use default setting, choose *NO*


Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-4.1.git...
Please choose an existing machine branch to use for this BSP: [default: standard/arm-versatile-926ejs]
	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
1
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-myqemuarm

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

2. Follow the https://wiki.yoctoproject.org/wiki/Transcript:_Using_the_Yocto_BSP_tools_to_manage_kernel_patches_and_config_items to add a patch (see the attachment):

#######################
$ yocto-kernel patch add myqemuarm ./yocto-testmod.patch
Added patches:
	yocto-testmod.patch
$ yocto-kernel config add myqemuarm CONFIG_MISC_DEVICES=y
Added item:
	CONFIG_MISC_DEVICES=y
$ yocto-kernel config add myqemuarm CONFIG_YOCTO_TESTMOD=y
Added item:
	CONFIG_YOCTO_TESTMOD=y

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

3. Run bitbake linux-yocto
Comment 1 Yi Zhao 2016-11-16 06:45:26 UTC
Filed 2 same bugs due to network lag. Mark it as duplicate.

*** This bug has been marked as a duplicate of bug 10674 ***