[oe] [PATCH 1/2] kernel bbclass: convert to new style staging (from poky)

Koen Kooi k.kooi at student.utwente.nl
Sat Apr 17 12:03:49 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17-04-10 13:27, Enrico Scholz wrote:
> 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

That should be fixed now, thanks for pointing it out.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLyaOlMkyGM64RGpERAnR7AJ4vt2QC6JdPRwyPsa1/Khsll9JlvgCfWRbU
IjQvo6EZCAWkAbywrcna/MY=
=NAMq
-----END PGP SIGNATURE-----





More information about the Openembedded-devel mailing list