[yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: make a machine defconfig work
Anders Darander
anders at chargestorm.se
Tue Feb 23 12:23:54 PST 2016
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 <anders at 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
More information about the yocto
mailing list