1 require linux-libc-headers.inc
3 # This package is derived from the original linux-libc-headers at
4 # http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
5 # More specifically, llh-2.6.12.0 was patched up to 2.6.16-rc6 with
6 # the official linux patches (where applicable) and then fixed up just
7 # enough to build glibc-2.4. BEWARE!
9 # license note from the linux-libc-headers package:
10 # Linux-libc-headers are derived from linux kernel headers. For license of a
11 # particular header, check it's content, and if copyright notice isn't present,
12 # standard linux kernel license applies.
13 # since we assume GPL for linux i think we can also assume it here
14 DEFAULT_PREFERENCE = "-1"
15 INHIBIT_DEFAULT_DEPS = "1"
18 SRC_URI = "http://ewi546.ewi.utwente.nl/OE/eabi/linux-libc-headers-${PV}.tar.bz2 \
19 file://keyboard.patch;patch=1 \
20 file://asm-arch-irqs.patch;patch=1 \
21 file://linux-netdevice.patch;patch=1 \
22 file://linux-netfilter_ipv4.patch;patch=1 \
23 file://linux-rtc.patch;patch=1 \
24 file://linux-videodev2.patch;patch=1 \
25 file://3477-1.patch;patch=1"
27 S = "${WORKDIR}/linux-libc-headers-${PV}"
30 case ${TARGET_ARCH} in
42 sparc64*) ARCH=sparc64 ;;
44 x86_64*) ARCH=x86_64 ;;
46 if test ! -e include/asm-$ARCH; then
47 oefatal unable to create asm symlink in kernel headers
50 cp -pPR "include/asm-$ARCH" "include/asm"
51 if test "$ARCH" = "arm"; then
52 cp -pPR include/asm/arch-ebsa285 include/asm/arch
53 elif test "$ARCH" = "sh"; then
54 cp -pPR include/asm/cpu-${TARGET_ARCH} include/asm/cpu || die "unable to create include/asm/cpu"
59 install -d ${D}${includedir}
60 cp -pfLR include/linux ${D}${includedir}/
61 cp -pfLR include/asm ${D}${includedir}/
62 cp -pfLR include/asm-generic ${D}${includedir}/