If we have a machine specific defconfig 'defconfig' in our meta-data, the 
install
command fails. OTOH, in that case it's not necessary to copy it into twe WORKDIR
either.

Signed-off-by: Anders Darander <and...@chargestorm.se>
---
 recipes-kernel/linux/linux-raspberrypi.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-raspberrypi.inc 
b/recipes-kernel/linux/linux-raspberrypi.inc
index 70e8bfe..0fb3fb3 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -43,7 +43,9 @@ python __anonymous () {
 }
 
 do_kernel_configme_prepend() {
-    install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} 
${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / 
${KERNEL_DEFCONFIG} available."
+    if test -n "${KERNEL_DEFCONFIG}" ; then
+        install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} 
${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / 
${KERNEL_DEFCONFIG} available."
+    fi
 }
 
 do_install_prepend() {
-- 
2.7.0

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to