summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-10 23:35:12 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-10 23:35:12 +0000
commitd1a302add6095bb05eca011be4e9e0b4cc46f966 (patch)
tree56065c10f40256c7ee0a65c099c4a18e38bae92f /meta/classes/kernel.bbclass
parent568a9bbc22e2e0640ee6d9987f12ab5939439c49 (diff)
downloadpoky-d1a302add6095bb05eca011be4e9e0b4cc46f966.tar.gz
kernel.bbclass: Cleanup various repetition, add include/video to staged files list
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3455 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass25
1 files changed, 6 insertions, 19 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 320a2cf71a..e36d33a5de 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -80,25 +80,12 @@ kernel_do_stage() {
80 mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia 80 mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia
81 cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/ 81 cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/
82 82
83 if [ -d drivers/crypto ]; then 83 for entry in drivers/crypto include/media include/acpi include/sound include/video; do
84 mkdir -p ${STAGING_KERNEL_DIR}/drivers/crypto 84 if [ -d $entry ]; then
85 cp -fR drivers/crypto/* ${STAGING_KERNEL_DIR}/drivers/crypto/ 85 mkdir -p ${STAGING_KERNEL_DIR}/$entry
86 fi 86 cp -fR $entry/* ${STAGING_KERNEL_DIR}/$entry/
87 87 fi
88 if [ -d include/media ]; then 88 done
89 mkdir -p ${STAGING_KERNEL_DIR}/include/media
90 cp -fR include/media/* ${STAGING_KERNEL_DIR}/include/media/
91 fi
92
93 if [ -d include/acpi ]; then
94 mkdir -p ${STAGING_KERNEL_DIR}/include/acpi
95 cp -fR include/acpi/* ${STAGING_KERNEL_DIR}/include/acpi/
96 fi
97
98 if [ -d include/sound ]; then
99 mkdir -p ${STAGING_KERNEL_DIR}/include/sound
100 cp -fR include/sound/* ${STAGING_KERNEL_DIR}/include/sound/
101 fi
102 89
103 if [ -d drivers/sound ]; then 90 if [ -d drivers/sound ]; then
104 # 2.4 alsa needs some headers from this directory 91 # 2.4 alsa needs some headers from this directory