1 require linux-libc-headers.inc
3 INHIBIT_DEFAULT_DEPS = "1"
4 DEPENDS += "unifdef-native"
7 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
9 file://unifdef.patch;patch=1"
11 S = "${WORKDIR}/linux-${PV}"
14 case ${TARGET_ARCH} in
23 powerpc*) ARCH=powerpc ;;
26 sparc64*) ARCH=sparc64 ;;
28 x86_64*) ARCH=x86_64 ;;
30 bfin*) ARCH=blackfin ;;
36 oe_runmake allnoconfig ARCH=$ARCH
44 oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH
47 do_install_append_arm() {
48 cp ${WORKDIR}/procinfo.h ${D}${includedir}/asm/
51 STAGE_TEMP="${WORKDIR}/temp-staging"
57 mkdir -p ${STAGE_TEMP}
58 oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=$ARCH
59 if [ "$ARCH" = "arm" ]; then
60 cp ${WORKDIR}/procinfo.h ${STAGE_TEMP}${includedir}/asm/
62 install -d ${STAGING_INCDIR}
63 rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm ${STAGING_INCDIR}/asm-generic
64 cp -pfLR ${STAGE_TEMP}${includedir}/linux ${STAGING_INCDIR}/
65 cp -pfLR ${STAGE_TEMP}${includedir}/asm ${STAGING_INCDIR}/
66 cp -pfLR ${STAGE_TEMP}${includedir}/asm-generic ${STAGING_INCDIR}/