1 # Copyright (C) 2007, Stelios Koroneos - Digital OPSiS, All Rights Reserved
2 # Released under the MIT license (see packages/COPYING)
5 DESCRIPTION = "Linux kernel for DHT-Walnut (ppc) machine"
10 COMPATIBLE_MACHINE = "dht-walnut"
12 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
15 S = "${WORKDIR}/linux-${PV}"
17 FILES_kernel-image = "/boot/zImage.elf"
23 #need ppc platforms includes + friends in order for external kernel modules to compile as headers as still split
25 install -d ${STAGING_KERNEL_DIR}/arch/
26 cp -pPR arch/ppc ${STAGING_KERNEL_DIR}/arch/
27 cp -pPR arch/powerpc ${STAGING_KERNEL_DIR}/arch/
29 cp -pPR include/asm-powerpc ${STAGING_KERNEL_DIR}/include/
30 cp -pPR include/asm-ppc ${STAGING_KERNEL_DIR}/include/
33 do_install_append () {
34 install -d ${DEPLOY_DIR_IMAGE}
35 if [ -e arch/ppc/boot/images/zImage.elf ] ; then
36 cp -a arch/ppc/boot/images/zImage.elf arch/ppc/boot/images/zImage
37 install -m 0755 arch/ppc/boot/images/zImage.elf \
38 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.elf
40 install -m 0755 vmlinux ${DEPLOY_DIR_IMAGE}/
44 pkg_postinst_kernel () {
48 pkg_postrm_kernel () {