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.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