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"
7 DEFAULT_PREFERENCE = "-1"
12 COMPATIBLE_MACHINE = "dht-walnut"
14 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
17 S = "${WORKDIR}/linux-${PV}"
19 FILES_kernel-image = "/boot/zImage.elf"
25 #need ppc platforms includes + friends in order for external kernel modules to compile as headers as still split
27 install -d ${STAGING_KERNEL_DIR}/arch/
28 cp -pPR arch/ppc ${STAGING_KERNEL_DIR}/arch/
29 cp -pPR arch/powerpc ${STAGING_KERNEL_DIR}/arch/
31 cp -pPR include/asm-powerpc ${STAGING_KERNEL_DIR}/include/
32 cp -pPR include/asm-ppc ${STAGING_KERNEL_DIR}/include/
35 do_install_append () {
36 install -d ${DEPLOY_DIR_IMAGE}
37 if [ -e arch/ppc/boot/images/zImage.elf ] ; then
38 cp -a arch/ppc/boot/images/zImage.elf arch/ppc/boot/images/zImage
39 install -m 0755 arch/ppc/boot/images/zImage.elf \
40 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.elf
42 install -m 0755 vmlinux ${DEPLOY_DIR_IMAGE}/
46 pkg_postinst_kernel () {
50 pkg_postrm_kernel () {