1 require linux-libc-headers.inc
3 HOMEPAGE = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/"
4 # license note from the package:
5 # Linux-libc-headers are derived from linux kernel headers. For license of a
6 # particular header, check it's content, and if copyright notice isn't present,
7 # standard linux kernel license applies.
8 # since we assume GPL for linux i think we can also assume it here
9 INHIBIT_DEFAULT_DEPS = "1"
12 SRC_URI = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-${PV}.tar.bz2 \
13 file://keyboard.patch;patch=1"
15 S = "${WORKDIR}/linux-libc-headers-${PV}"
18 case ${TARGET_ARCH} in
30 sparc64*) ARCH=sparc64 ;;
32 x86_64*) ARCH=x86_64 ;;
34 if test ! -e include/asm-$ARCH; then
35 oefatal unable to create asm symlink in kernel headers
37 cp -pPR "include/asm-$ARCH" "include/asm"
38 if test "$ARCH" = "arm"; then
39 cp -pPR include/asm/arch-ebsa285 include/asm/arch
40 elif test "$ARCH" = "sh"; then
41 cp -pPR include/asm/cpu-${TARGET_ARCH} include/asm/cpu || die "unable to create include/asm/cpu"
42 cp -pPR include/asm/cpu/* include/asm
47 install -d ${STAGING_INCDIR}
48 rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm
49 cp -pfLR include/linux ${STAGING_INCDIR}/
50 cp -pfLR include/asm ${STAGING_INCDIR}/
54 install -d ${D}${includedir}
55 cp -pfLR include/linux ${D}${includedir}/
56 cp -pfLR include/asm ${D}${includedir}/