diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2005-12-30 22:58:30 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-12-30 22:58:30 +0000 |
commit | 00c1f7937df0c348aa6e33a2e23c77e5390ec834 (patch) | |
tree | 31ff7a58d2e4f744c0106003aa80278442db49e3 | |
parent | 0538dc56af6fec1d8e4043382d43f02d8c78ecba (diff) |
kernel.bbclass: prevent self-referential asm links in kernel.bbclass
- ln -sf asm-<arch> .../include/asm works fine first time, but
- second time round it creates a link in asm to asm-<arch>
- called asm-<arch>, this breaks the klibc build
-rw-r--r-- | classes/kernel.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
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 |