[oe] [PATCH 1/2] kernel bbclass: convert to new style staging (from poky)
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Sat Apr 17 11:27:04 UTC 2010
Koen Kooi <koen.kooi at gmail.com> writes:
> if [ -e include/asm ] ; then
> # This link is generated only in kernel before 2.6.33-rc1, don't stage it for newer kernels
> ASMDIR=`readlink include/asm`
>
> - mkdir -p ${STAGING_KERNEL_DIR}/include/$ASMDIR
> - cp -fR include/$ASMDIR/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/
> + mkdir -p $kerneldir/include/$ASMDIR
> + cp -fR include/$ASMDIR/* $kerneldir/include/$ASMDIR/
> fi
> +
> + cp -fR include/$ASMDIR/* $kerneldir/include/$ASMDIR/
this breaks on recent kernels because they do no have include/asm and
ASMDIR won't be defined here.
> if [ -e arch/${ARCH}/include/asm/ ] ; then
> - if [ -e include/asm ] ; then
> - cp -fR arch/${ARCH}/include/asm/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/
> - fi
> - install -d ${STAGING_KERNEL_DIR}/arch/${ARCH}/include
> - cp -fR arch/${ARCH}/* ${STAGING_KERNEL_DIR}/arch/${ARCH}/
> + cp -fR arch/${ARCH}/include/asm/* $kerneldir/include/$ASMDIR/
ditto
Enrico
More information about the Openembedded-devel
mailing list