1 DESCRIPTION = "Linux Kernel for the EFIKA dev platform"
5 PV = "2.6.21+git${SRCDATE}"
7 DEFAULT_PREFERENCE = "-1"
9 COMPATIBLE_MACHINE = "efika"
11 SRC_URI = "file://defconfig"
13 S = "${WORKDIR}/linux-2.6"
22 git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
24 git fetch git://git.secretlab.ca/git/linux-2.6.git 52xx-dev:sl-52xx
26 # todo: fix to revision f20d894bd207f8bae9b7869fa039a83e7ab2c6d8 here. It works.
29 wget http://www.246tnt.com/mpc52xx/2.6.22/0006-powerpc-Set-efika-s-device_type-to-soc.patch
30 wget http://www.246tnt.com/mpc52xx/2.6.22/0007-serial-powerpc-Don-t-shutdown-TX-on-mpc5200-serial.patch
31 wget http://www.246tnt.com/mpc52xx/2.6.22/0008-powerpc-mpc52xx-suspend-to-deep-sleep.patch
36 patch -F40 -p1 -i patches/0006-powerpc-Set-efika-s-device_type-to-soc.patch
37 patch -F40 -p1 -i patches/0007-serial-powerpc-Don-t-shutdown-TX-on-mpc5200-serial.patch
38 patch -F40 -p1 -i patches/0008-powerpc-mpc52xx-suspend-to-deep-sleep.patch
42 install -m 644 ${WORKDIR}/defconfig ${S}/.config
43 make ARCH=${ARCH} oldconfig
47 #need ppc platforms includes + friends in order for external kernel modules to compile as headers as still split
49 install -d ${STAGING_KERNEL_DIR}/arch/
50 cp -pPR arch/ppc ${STAGING_KERNEL_DIR}/arch/
51 cp -pPR arch/powerpc ${STAGING_KERNEL_DIR}/arch/
53 install -d ${STAGING_KERNEL_DIR}/include/asm
54 cp -pPR include/asm-powerpc ${STAGING_KERNEL_DIR}/include/
55 cp -pPR include/asm-ppc ${STAGING_KERNEL_DIR}/include/