Skip to contentSkip to conversation

linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

PATCH Applied [email protected] 3 participants 8 messages Oct 18, 2013 – Oct 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

From: Chunrong Guo <[email protected]>

---
 recipes-kernel/linux/linux-qoriq-sdk.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
recipes-kernel/linux/linux-qoriq-sdk.bb +3 -3
index b7ca721..df18cfe 100644
@@ -11,7 +11,7 @@ SRC_URI += "file://libtraceevent-Remove-hard-coded-include-to-usr-local-include-
 
 PR = "${INC_PR}.1"
 
-DEPENDS_append = " libgcc kern-tools-native"
+DEPENDS_append = " libgcc"
 KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
 KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
 
@@ -20,8 +20,8 @@ do_configure_prepend() {
 	cp ${KERNEL_DEFCONFIG} ${B}/.config
     
 	# add config fragments    
-    	if [ -a "${DELTA_KERNEL_DEFCONFIG}" ]; then
-        	merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG}
+    	if [ -f "${DELTA_KERNEL_DEFCONFIG}" ]; then
+        	${S}/scripts/kconfig/merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG}
     	fi
 
 	# append sdk version in kernel version if SDK_VERSION is defined
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 3 lines · On Fri, Oct 18, 2013 at 3:23 AM, <[email protected]> wrote:

From: Chunrong Guo <[email protected]>

Nack!

recipes-kernel/linux/linux-qoriq-sdk.bb SRC_URI += "file://libtraceevent-Remove-hard-coded-include-to-usr-local-include- · line 14

Quoted 13 lines
 recipes-kernel/linux/linux-qoriq-sdk.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
recipes-kernel/linux/linux-qoriq-sdk.bb +1 -1
index b7ca721..df18cfe 100644
@@ -11,7 +11,7 @@ SRC_URI += "file://libtraceevent-Remove-hard-coded-include-to-usr-local-include-
 
 PR = "${INC_PR}.1"
 
-DEPENDS_append = " libgcc kern-tools-native"
+DEPENDS_append = " libgcc"

This seems completely wrong. Have you tried this using a clean 'tmp' directory? I think it'd fail.

Quoted 22 lines
recipes-kernel/linux/linux-qoriq-sdk.bb +2 -3
 KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
 KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
 
@@ -20,8 +20,8 @@ do_configure_prepend() {
        cp ${KERNEL_DEFCONFIG} ${B}/.config
 
        # add config fragments
-       if [ -a "${DELTA_KERNEL_DEFCONFIG}" ]; then
-               merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG}
+       if [ -f "${DELTA_KERNEL_DEFCONFIG}" ]; then
+               ${S}/scripts/kconfig/merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG}
        fi
 
        # append sdk version in kernel version if SDK_VERSION is defined
--

1.7.5.4

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw

I think the intention is to use the merge_config.sh provided by built kernel, so the dependency is not needed anymore.

The merge_config.sh provided by kern-tools-native and built kernel might be different. The change should make senses.

Best Regards,

Zhenhua

Quoted 70 lines

-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Otavio Salvador
Sent: Friday, October 18, 2013 11:12 PM
To: Guo Chunrong-B40290
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

Quoted 3 lines · On Fri, Oct 18, 2013 at 3:23 AM, <[email protected]> wrote:

From: Chunrong Guo <[email protected]>

Nack!

recipes-

Quoted 4 lines
 recipes-kernel/linux/linux-qoriq-sdk.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
recipes- renamed from recipes-kernel/linux/linux-qoriq-sdk.bb +0 -0

kernel/linux/linux-qoriq-sdk.bb

recipes-kernel/linux/linux-qoriq-sdk.bb SRC_URI += "file://libtraceevent-Remove-hard-coded-

Quoted 4 lines

index b7ca721..df18cfe 100644

recipes-kernel/linux/linux-qoriq-sdk.bb +0 -0
@@ -11,7 +11,7 @@ SRC_URI += "file://libtraceevent-Remove-hard-coded-

include-to-usr-local-include-

recipes-kernel/linux/linux-qoriq-sdk.bb SRC_URI += "file://libtraceevent-Remove-hard-coded-include-to-usr-local-include- · line 14

Quoted 5 lines
recipes-kernel/linux/linux-qoriq-sdk.bb +1 -1
 PR = "${INC_PR}.1"
 
-DEPENDS_append = " libgcc kern-tools-native"
+DEPENDS_append = " libgcc"

This seems completely wrong. Have you tried this using a clean 'tmp' directory? I think it'd fail.

recipes-kernel/linux/linux-qoriq-sdk.bb do_configure_prepend() { · line 24

Quoted 11 lines
recipes-kernel/linux/linux-qoriq-sdk.bb +2 -2
 KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
 KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
 
@@ -20,8 +20,8 @@ do_configure_prepend() {
        cp ${KERNEL_DEFCONFIG} ${B}/.config
 
        # add config fragments
-       if [ -a "${DELTA_KERNEL_DEFCONFIG}" ]; then
-               merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG}
+       if [ -f "${DELTA_KERNEL_DEFCONFIG}" ]; then
+               ${S}/scripts/kconfig/merge_config.sh -m .config

${DELTA_KERNEL_DEFCONFIG}

recipes-kernel/linux/linux-qoriq-sdk.bb do_configure_prepend() { · line 27

Quoted 3 lines
recipes-kernel/linux/linux-qoriq-sdk.bb +0 -0
        fi
 
        # append sdk version in kernel version if SDK_VERSION is

defined

Quoted 8 lines

--
1.7.5.4

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#3 lore raw
Quoted 3 lines · On Sat, Oct 19, 2013 at 5:01 AM, Luo Zhenhua-B19537 <[email protected]>…

I think the intention is to use the merge_config.sh provided by built kernel, so the dependency is not needed anymore.

The merge_config.sh provided by kern-tools-native and built kernel might be different. The change should make senses.

No because this runs /before/ the build of the kernel so it will fail.

Otherwise I am missing something here...

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw

Hello,
I test this patch work well in new environment.
Test step:
1. add DELTA_KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/asf.cfg" in p4080ds.conf
2. add asf.cfg to ${S}/arch/powerpc/configs/
3. bitbake -c menuconfig Linux-qoriq-sdk

how do you test this ?

thanks,
chunrong

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Saturday, October 19, 2013 8:46 PM
To: Luo Zhenhua-B19537
Cc: Guo Chunrong-B40290; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

Quoted 3 lines · On Sat, Oct 19, 2013 at 5:01 AM, Luo Zhenhua-B19537 <[email protected]>…

I think the intention is to use the merge_config.sh provided by built kernel, so the dependency is not needed anymore.

The merge_config.sh provided by kern-tools-native and built kernel might be different. The change should make senses.

No because this runs /before/ the build of the kernel so it will fail.

Otherwise I am missing something here...

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw

Hi Otavio,

Following is the build process.
1. do_patch installs the kernel source into ${S}, and merge_config.sh is available in ${S}/scripts/kconfig/ folder.
2. In do_configure task, ${S}/scripts/kconfig/merge_config.sh is called to merge delta kernel defconfig
3. go on subsequent steps

May I know what's the potential problem in your opinion?

Best Regards,

Zhenhua

Quoted 45 lines

-----Original Message-----
From: Guo Chunrong-B40290
Sent: Monday, October 21, 2013 5:55 PM
To: Otavio Salvador; Luo Zhenhua-B19537
Cc: [email protected]
Subject: RE: [meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

Hello,
I test this patch work well in new environment.
Test step:
1. add DELTA_KERNEL_DEFCONFIG = "${S}/arch/powerpc/configs/asf.cfg" in p4080ds.conf 2. add asf.cfg to ${S}/arch/powerpc/configs/ 3. bitbake -c menuconfig Linux-qoriq-sdk

how do you test this ?

thanks,
chunrong

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Saturday, October 19, 2013 8:46 PM
To: Luo Zhenhua-B19537
Cc: Guo Chunrong-B40290; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

Quoted 1 line · On Sat, Oct 19, 2013 at 5:01 AM, Luo Zhenhua-B19537 <[email protected]>…

I think the intention is to use the merge_config.sh provided by built

kernel, so the dependency is not needed anymore.

Quoted 2 lines

The merge_config.sh provided by kern-tools-native and built kernel

might be different. The change should make senses.

No because this runs /before/ the build of the kernel so it will fail.

Otherwise I am missing something here...

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#6 lore raw
Quoted 6 lines · On Mon, Oct 21, 2013 at 8:01 AM, Luo Zhenhua-B19537 <[email protected]>…

Following is the build process.
1. do_patch installs the kernel source into ${S}, and merge_config.sh is available in ${S}/scripts/kconfig/ folder.
2. In do_configure task, ${S}/scripts/kconfig/merge_config.sh is called to merge delta kernel defconfig
3. go on subsequent steps

May I know what's the potential problem in your opinion?

Oh right; you are doing it in the configure task, right.

So it should be fine.

Sorry for the noise.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#7 lore raw

Applied in master and dora, thanks.

Best Regards,

Zhenhua

Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Monday, October 21, 2013 7:17 PM
To: Luo Zhenhua-B19537
Cc: Guo Chunrong-B40290; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk : add config fragments with merge_config.sh from kernel tree

Quoted 2 lines · On Mon, Oct 21, 2013 at 8:01 AM, Luo Zhenhua-B19537 <[email protected]>…

Following is the build process.
1. do_patch installs the kernel source into ${S}, and merge_config.sh

is available in ${S}/scripts/kconfig/ folder.

Quoted 4 lines

2. In do_configure task, ${S}/scripts/kconfig/merge_config.sh is called to merge delta kernel defconfig 3. go on subsequent steps

May I know what's the potential problem in your opinion?

Oh right; you are doing it in the configure task, right.

So it should be fine.

Sorry for the noise.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750