summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Schurig <schurig@mn-solutions.de>2005-04-14 06:34:50 +0000
committerHolger Schurig <schurig@mn-solutions.de>2005-04-14 06:34:50 +0000
commit2682ffed0c89f542ca83b58fe9b9a966a9a94ae2 (patch)
tree91ff3b5031a59e9e3ce479bb9213efc529f8a48e
parenta3f547ab10801bc04ad76f2592297ec1ba3a715d (diff)
kernel.bbclass: fixed directory creation
BKrev: 425e0f0ajn2L8-6ZEWJ2QnJmCGy9gQ
-rw-r--r--classes/kernel.bbclass16
1 files changed, 13 insertions, 3 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 11318b8a55..e582bb9898 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -62,13 +62,23 @@ kernel_do_compile() {
kernel_do_stage() {
ASMDIR=`readlink include/asm`
- install -d ${STAGING_KERNEL_DIR}/include/{$ASMDIR,asm-generic,linux,net,pcmcia}
- ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm
- cp -fR include/linux/* ${STAGING_KERNEL_DIR}/include/linux/
+
+ mkdir -p ${STAGING_KERNEL_DIR}/include/$ASMDIR
cp -fR include/$ASMDIR/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/
+ ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm
+
+ mkdir -p ${STAGING_KERNEL_DIR}/include/asm-generic
cp -fR include/asm-generic/* ${STAGING_KERNEL_DIR}/include/asm-generic/
+
+ mkdir -p ${STAGING_KERNEL_DIR}/include/linux
+ cp -fR include/linux/* ${STAGING_KERNEL_DIR}/include/linux/
+
+ mkdir -p ${STAGING_KERNEL_DIR}/include/net
cp -fR include/net/* ${STAGING_KERNEL_DIR}/include/net/
+
+ mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia
cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/
+
install -m 0644 .config ${STAGING_KERNEL_DIR}/config-${PV}${KERNEL_LOCALVERSION}
ln -sf config-${PV}${KERNEL_LOCALVERSION} ${STAGING_KERNEL_DIR}/.config
ln -sf config-${PV}${KERNEL_LOCALVERSION} ${STAGING_KERNEL_DIR}/kernel-config