summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-08-27 16:01:33 +0000
committerRichard Purdie <richard@openedhand.com>2006-08-27 16:01:33 +0000
commit93a8d0662ed361c76defe75a5cd84f203fdb1af1 (patch)
tree3481256915c4474980290e53c086af8f8389a10e /meta/classes/kernel.bbclass
parent37d03b1b00610716b27259a42c8718c8628b2ad3 (diff)
downloadpoky-93a8d0662ed361c76defe75a5cd84f203fdb1af1.tar.gz
classes: Sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@651 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass21
1 files changed, 18 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index ad51c4e035..c81112ede7 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -109,6 +109,21 @@ kernel_do_stage() {
109 mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia 109 mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia
110 cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/ 110 cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/
111 111
112 if [ -d drivers/crypto ]; then
113 mkdir -p ${STAGING_KERNEL_DIR}/drivers/crypto
114 cp -fR drivers/crypto/* ${STAGING_KERNEL_DIR}/drivers/crypto/
115 fi
116
117 if [ -d include/media ]; then
118 mkdir -p ${STAGING_KERNEL_DIR}/include/media
119 cp -fR include/media/* ${STAGING_KERNEL_DIR}/include/media/
120 fi
121
122 if [ -d include/acpi ]; then
123 mkdir -p ${STAGING_KERNEL_DIR}/include/acpi
124 cp -fR include/acpi/* ${STAGING_KERNEL_DIR}/include/acpi/
125 fi
126
112 if [ -d include/sound ]; then 127 if [ -d include/sound ]; then
113 mkdir -p ${STAGING_KERNEL_DIR}/include/sound 128 mkdir -p ${STAGING_KERNEL_DIR}/include/sound
114 cp -fR include/sound/* ${STAGING_KERNEL_DIR}/include/sound/ 129 cp -fR include/sound/* ${STAGING_KERNEL_DIR}/include/sound/
@@ -133,7 +148,7 @@ kernel_do_stage() {
133 # Check if arch/${ARCH}/Makefile exists and install it 148 # Check if arch/${ARCH}/Makefile exists and install it
134 if [ -e arch/${ARCH}/Makefile ]; then 149 if [ -e arch/${ARCH}/Makefile ]; then
135 install -d ${STAGING_KERNEL_DIR}/arch/${ARCH} 150 install -d ${STAGING_KERNEL_DIR}/arch/${ARCH}
136 install -m 0644 arch/${ARCH}/Makefile ${STAGING_KERNEL_DIR}/arch/${ARCH} 151 install -m 0644 arch/${ARCH}/Makefile* ${STAGING_KERNEL_DIR}/arch/${ARCH}
137 fi 152 fi
138 cp -fR include/config* ${STAGING_KERNEL_DIR}/include/ 153 cp -fR include/config* ${STAGING_KERNEL_DIR}/include/
139 install -m 0644 ${KERNEL_OUTPUT} ${STAGING_KERNEL_DIR}/${KERNEL_IMAGETYPE} 154 install -m 0644 ${KERNEL_OUTPUT} ${STAGING_KERNEL_DIR}/${KERNEL_IMAGETYPE}
@@ -199,7 +214,7 @@ fi
199if [ -n "$D" ]; then 214if [ -n "$D" ]; then
200 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_RELEASE} ${KERNEL_VERSION} 215 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_RELEASE} ${KERNEL_VERSION}
201else 216else
202 depmod -A 217 depmod -a
203fi 218fi
204} 219}
205 220
@@ -207,7 +222,7 @@ pkg_postinst_modules () {
207if [ -n "$D" ]; then 222if [ -n "$D" ]; then
208 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_RELEASE} ${KERNEL_VERSION} 223 ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_RELEASE} ${KERNEL_VERSION}
209else 224else
210 depmod -A 225 depmod -a
211 update-modules || true 226 update-modules || true
212fi 227fi
213} 228}