From: Rod Whitby Date: Fri, 13 Jan 2006 19:28:39 +0000 (+0000) Subject: kernel.bbclass: Check if include/sound exists before trying to stage it (it doesn... X-Git-Tag: Release-2010-05/1~9453^2~2657 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=badb9b7c29c71a1dee23d1ed1ed3ade8cb1089f1;p=openembedded.git kernel.bbclass: Check if include/sound exists before trying to stage it (it doesn't exist for the unslung 2.4 kernel). --- diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index af2d35fc76..86468b6642 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -101,8 +101,10 @@ kernel_do_stage() { mkdir -p ${STAGING_KERNEL_DIR}/include/pcmcia cp -fR include/pcmcia/* ${STAGING_KERNEL_DIR}/include/pcmcia/ - mkdir -p ${STAGING_KERNEL_DIR}/include/sound - cp -fR include/sound/* ${STAGING_KERNEL_DIR}/include/sound/ + if [ -d include/sound ]; then + mkdir -p ${STAGING_KERNEL_DIR}/include/sound + cp -fR include/sound/* ${STAGING_KERNEL_DIR}/include/sound/ + fi if [ -d drivers/sound ]; then # 2.4 alsa needs some headers from this directory