1 require linux-libc-headers.inc
3 INHIBIT_DEFAULT_DEPS = "1"
5 # NOTE: no need to package these headers, since the c library includes them.
8 SRC_URI = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-${PV}.tar.bz2 \
9 file://sh-missing.patch;patch=1 \
10 file://keyboard.patch;patch=1"
11 S = "${WORKDIR}/linux-libc-headers-${PV}"
14 case ${TARGET_ARCH} in
26 sparc64*) ARCH=sparc64 ;;
28 x86_64*) ARCH=x86_64 ;;
30 if test ! -e include/asm-$ARCH; then
31 oefatal unable to create asm symlink in kernel headers
33 cp -pPR "include/asm-$ARCH" "include/asm"
34 if test "$ARCH" = "arm"; then
35 cp -pPR include/asm/arch-ebsa285 include/asm/arch
36 elif test "$ARCH" = "sh"; then
37 cp -pPR include/asm/cpu-${TARGET_ARCH} include/asm/cpu || die "unable to create include/asm/cpu"
42 install -d ${STAGING_INCDIR}
43 rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm
44 cp -pfLR include/linux ${STAGING_INCDIR}/
45 cp -pfLR include/asm ${STAGING_INCDIR}/
46 ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${STAGING_INCDIR}/linux/wireless.h