linux-bug: fix installation
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sat, 16 Oct 2010 17:17:07 +0000 (19:17 +0200)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sun, 17 Oct 2010 19:37:56 +0000 (21:37 +0200)
without the fix it does that:
| cp: target `.../work/bug-angstrom-linux-gnueabi/linux-bug-2.6.27.2+svnr10746-r32/image/kernel//include/asm/' is not a directory
NOTE: package linux-bug-2.6.27.2+svnr10746-r32: task do_install: Failed

Thanks to eFfeM on #oe for help:
<eFfeM> you copy to $kerneldir/include/asm but that is not guaranteed to exist, ust add an install -d (install -d is better than mkdir as it will also create inbetween dirs if needed)
[...]
<eFfeM> just add the install

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
recipes/linux/linux-bug_2.6.27.2.bb

index 680d597..459c4e7 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Linux kernel for bug"
 
 PV_append = "+svnr${SRCREV}"
 KV = "2.6.27.2"
-PR = "r32"
+PR = "r33"
 
 COMPATIBLE_MACHINE = "bug"
 
@@ -25,6 +25,7 @@ do_install_append() {
 }
 
 do_install_append() {
+       install -d $kerneldir/include/asm/
        cp -fR ${S}/arch/arm/include/asm/* $kerneldir/include/asm/
        if [ ! -e $kerneldir/include/mach ]; then
                mkdir $kerneldir/include/mach