From: John Bowler Date: Fri, 30 Dec 2005 22:58:30 +0000 (+0000) Subject: kernel.bbclass: prevent self-referential asm links in kernel.bbclass X-Git-Tag: Release-2010-05/1~9453^2~2817 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c1f7937df0c348aa6e33a2e23c77e5390ec834;p=openembedded.git kernel.bbclass: prevent self-referential asm links in kernel.bbclass - ln -sf asm- .../include/asm works fine first time, but - second time round it creates a link in asm to asm- - called asm-, this breaks the klibc build --- diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 8416b8acb3..ea99ec5401 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -83,6 +83,7 @@ kernel_do_stage() { mkdir -p ${STAGING_KERNEL_DIR}/include/$ASMDIR cp -fR include/$ASMDIR/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/ + rm -f $ASMDIR ${STAGING_KERNEL_DIR}/include/asm ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm mkdir -p ${STAGING_KERNEL_DIR}/include/asm-generic