summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5b02e62fdd..64c8a94d64 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -120,7 +120,7 @@ kernel_do_install() {
120 # Kernel 2.6.27 moved headers from includes/asm-${ARCH} to arch/${ARCH}/include/asm 120 # Kernel 2.6.27 moved headers from includes/asm-${ARCH} to arch/${ARCH}/include/asm
121 if [ -e arch/${ARCH}/include/asm/ ] ; then 121 if [ -e arch/${ARCH}/include/asm/ ] ; then
122 if [ -e include/asm ] ; then 122 if [ -e include/asm ] ; then
123 cp -fR arch/${ARCH}/include/asm/* $kerneldir/include/$ASMDIR/ 123 cp -fR arch/${ARCH}/include/asm/* $kerneldir/include/asm/
124 fi 124 fi
125 install -d $kerneldir/arch/${ARCH}/include 125 install -d $kerneldir/arch/${ARCH}/include
126 cp -fR arch/${ARCH}/* $kerneldir/arch/${ARCH}/ 126 cp -fR arch/${ARCH}/* $kerneldir/arch/${ARCH}/
@@ -128,15 +128,18 @@ kernel_do_install() {
128 # Check for arch/x86 on i386 128 # Check for arch/x86 on i386
129 elif [ -d arch/x86/include/asm/ ]; then 129 elif [ -d arch/x86/include/asm/ ]; then
130 if [ -e include/asm ] ; then 130 if [ -e include/asm ] ; then
131 cp -fR arch/x86/include/asm/* $kerneldir/include/$ASMDIR/ 131 cp -fR arch/x86/include/asm/* $kerneldir/include/asm/
132 fi 132 fi
133 install -d $kerneldir/arch/x86/include 133 install -d $kerneldir/arch/x86/include
134 cp -fR arch/x86/* $kerneldir/arch/x86/ 134 cp -fR arch/x86/* $kerneldir/arch/x86/
135 fi 135 fi
136 136
137 # ASMDIR is not always set ...
137 if [ -e include/asm ] ; then 138 if [ -e include/asm ] ; then
138 rm -f $kerneldir/include/asm 139 rm -f $kerneldir/include/asm
139 ln -sf $ASMDIR $kerneldir/include/asm 140 if [ -n $ASMDIR ] ; then
141 ln -sf $ASMDIR $kerneldir/include/asm
142 fi
140 fi 143 fi
141 144
142 mkdir -p $kerneldir/include/asm-generic 145 mkdir -p $kerneldir/include/asm-generic