Skip to contentSkip to conversation

linux-qoriq: check $WORKDIR for config fragments

PATCH Superseded Adrian Dudau 2 participants 3 messages Feb 25, 2016 – Mar 1, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 linux-qoriq: check $WORKDIR for config fragments

Config fragments passed through SRC_URI are installed in $WORKDIR. Adapt the recipe to look there too.

---
 recipes-kernel/linux/linux-qoriq.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-qoriq.inc +3 -1
index d28e75d..ad61baa 100644
@@ -25,7 +25,9 @@ do_configure_prepend() {
     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
         if [ -f "${deltacfg}" ]; then
-            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
+            ${S}/scripts/kconfig/merge_config.sh -m .config /${deltacfg}
+        elif [ -f "${WORKDIR}/${deltacfg}" ]; then
+            ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
         elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then
             ${S}/scripts/kconfig/merge_config.sh -m .config \
                 ${S}/arch/powerpc/configs/${deltacfg}
Signature · 1 line
1.9.1
#1 lore raw

Hello Adrian,

recipes-kernel/linux/linux-qoriq.inc do_configure_prepend() { · line 28

Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Adrian Dudau
Sent: Thursday, February 25, 2016 10:30 PM

     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
         if [ -f "${deltacfg}" ]; then
recipes-kernel/linux/linux-qoriq.inc +1 -1
-            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
+            ${S}/scripts/kconfig/merge_config.sh -m .config /${deltacfg}

[Luo Zhenhua-B19537] is it a typo of the extra "/" ahead of ${deltacfg}?

Best Regards,

Zhenhua

#2 lore raw
Quoted 7 lines · Zhenhua Luo

Hello Adrian,

Quoted 5 lines

-----Original Message-----
From: [email protected] [mailto:meta-freescale- [email protected]] On Behalf Of Adrian Dudau
Sent: Thursday, February 25, 2016 10:30 PM

Quoted 6 lines

recipes-kernel/linux/linux-qoriq.inc do_configure_prepend() { · line 28

Quoted 5 lines
     # add config fragments
     for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
         if [ -f "${deltacfg}" ]; then
recipes-kernel/linux/linux-qoriq.inc +1 -1
-            ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
+            ${S}/scripts/kconfig/merge_config.sh -m .config /${deltacfg}

[Luo Zhenhua-B19537] is it a typo of the extra "/" ahead of ${deltacfg}?

Yes it is, sorry. V3 of the patch incoming.

--Adrian

Quoted 5 lines

Best Regards,

Zhenhua