From 788eb89aeb883229c8fe8849d7b374ece3ad462f Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Tue, 23 Apr 2013 18:24:52 +0200 Subject: [PATCH] netbase: Parse .config file instead of /boot/config* When building an RPM based system, the linux kernel image was installed after the netbase image so the /boot/config* file was not found. Strangely that worked fine on IPK based systems. Fixes https://jira.digi.com/browse/DEL-364 Signed-off-by: Alex Gonzalez --- .../recipes-core/netbase/netbase_5.0.bbappend | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meta-digi-del/recipes-core/netbase/netbase_5.0.bbappend b/meta-digi-del/recipes-core/netbase/netbase_5.0.bbappend index 340e2c587..be1bbda7e 100644 --- a/meta-digi-del/recipes-core/netbase/netbase_5.0.bbappend +++ b/meta-digi-del/recipes-core/netbase/netbase_5.0.bbappend @@ -20,7 +20,7 @@ pkg_postinst_${PN} () { cat << EOF > $D${sysconfdir}/network/interfaces EOF -cat $D/boot/config* | /bin/grep CONFIG_BLK_DEV_LOOP= +/bin/grep -q "CONFIG_BLK_DEV_LOOP=" ${STAGING_KERNEL_DIR}/.config if [ $? -eq 0 ]; then cat << EOF >> $D${sysconfdir}/network/interfaces # The loopback interface @@ -29,7 +29,7 @@ iface lo inet loopback EOF fi -cat $D/boot/config* | /bin/grep CONFIG_FEC= +/bin/grep -q "CONFIG_FEC=" ${STAGING_KERNEL_DIR}/.config if [ $? -eq 0 ]; then # Primary wired interface cat << EOF >> $D${sysconfdir}/network/interfaces @@ -46,7 +46,7 @@ EOF fi # Secondary wired interface on MXC platforms -cat $D/boot/config* | /bin/grep CONFIG_SMSC911X= +/bin/grep -q "CONFIG_SMSC911X=" ${STAGING_KERNEL_DIR}/.config if [ $? -eq 0 ]; then cat << EOF >> $D${sysconfdir}/network/interfaces auto eth1 @@ -62,7 +62,7 @@ EOF fi # Secondary wired interface on MXS platforms -cat $D/boot/config* | /bin/grep CONFIG_CCARDIMX28_ENET1= +/bin/grep -q "CONFIG_CCARDIMX28_ENET1=" ${STAGING_KERNEL_DIR}/.config if [ $? -eq 0 ]; then cat << EOF >> $D${sysconfdir}/network/interfaces auto eth1 @@ -78,7 +78,7 @@ EOF fi # Wireless interface -cat $D/boot/config* | /bin/grep CONFIG_WIRELESS= +/bin/grep -q "CONFIG_WIRELESS=" ${STAGING_KERNEL_DIR}/.config if [ $? -eq 0 ]; then cat << EOF >> $D${sysconfdir}/network/interfaces auto wlan0