[oe-commits] Denis 'GNUtoo' Carikli : linux-bug: fix installation

git version control git at git.openembedded.org
Sun Oct 17 19:43:03 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 0fc54bae7b8f6546b64356fa798b0a0deabf979d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=0fc54bae7b8f6546b64356fa798b0a0deabf979d

Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Sat Oct 16 19:17:07 2010 +0200

linux-bug: fix installation

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 at no-log.org>

---

 recipes/linux/linux-bug_2.6.27.2.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes/linux/linux-bug_2.6.27.2.bb b/recipes/linux/linux-bug_2.6.27.2.bb
index 680d597..459c4e7 100644
--- a/recipes/linux/linux-bug_2.6.27.2.bb
+++ b/recipes/linux/linux-bug_2.6.27.2.bb
@@ -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





More information about the Openembedded-commits mailing list