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-2.6.18.tar.bz2 \
8 file://arm-syscall-define.patch;patch=1"
10 S = "${WORKDIR}/linux-2.6.18"
13 case ${TARGET_ARCH} in
22 powerpc*) ARCH=powerpc ;;
25 sparc64*) ARCH=sparc64 ;;
27 x86_64*) ARCH=x86_64 ;;
33 oe_runmake allnoconfig ARCH=${ARCH}
41 oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=${ARCH}
42 # Add UTS_RELEASE to version.h. UTS_RELEASE was moved from version.h to
43 # utsrelease.h in order to avoid recompiling a kernel every time a localversion
44 # changed. Since the our headers are static and we're not compiling an
45 # actual kernel, re-adding UTS_RELEASE does't hurt, and it allows uclibc to
46 # compile with kernel headers that work with EABI on ARM
47 echo '#define UTS_RELEASE "2.6.18"' >> ${STAGING_INCDIR}/linux/version.h
50 do_install_append_arm() {
51 cp include/asm-arm/procinfo.h ${D}${includedir}/asm