From 58df8e8af681ca604eda977c3ce10921e9613af1 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 26 Oct 2007 12:32:26 +0000 Subject: linux: upgrade cm-x270 kernel to 2.6.23 (from OE) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3005 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/linux/linux.inc | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'meta/packages/linux/linux.inc') diff --git a/meta/packages/linux/linux.inc b/meta/packages/linux/linux.inc index 41b0c1317..bb2ad455f 100644 --- a/meta/packages/linux/linux.inc +++ b/meta/packages/linux/linux.inc @@ -4,20 +4,13 @@ LICENSE = "GPL" inherit kernel -# These devices need mkimage to generate a kernel image -DEPENDS_append_kb9202 = " u-boot-mkimage-openmoko-native " -DEPENDS_append_at32stk1000 = " u-boot-mkimage-openmoko-native " -DEPENDS_append_atngw100 = " u-boot-mkimage-openmoko-native " -DEPENDS_append_at91sam9263ek = " u-boot-mkimage-openmoko-native " -DEPENDS_append_at91sam9261ek = " u-boot-mkimage-openmoko-native " -DEPENDS_append_at91sam9260ek = " u-boot-mkimage-openmoko-native " -DEPENDS_append_sarge-at91 = " u-boot-mkimage-openmoko-native " -DEPENDS_append_gumstix-connex = " u-boot-mkimage-openmoko-native " -DEPENDS_append_gumstix-verdex = " u-boot-mkimage-openmoko-native " -DEPENDS_append_fic-gta01 = " u-boot-mkimage-openmoko-native " -DEPENDS_append_fic-gta02 = " u-boot-mkimage-openmoko-native " +# Not every device needs mkimage to generate a kernel image, but lets make OE a bit more +# friendly and increase the "Just Works(TM) factor. Building uboot takes only a minute. +DEPENDS += " u-boot-mkimage-openmoko-native " +RPSRC = "http://www.rpsys.net/openzaurus/patches/archive" + # Specify the commandline for your device #boot from mmc @@ -42,7 +35,7 @@ do_configure_prepend() { # if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config - echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config + echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config else echo "# CONFIG_AEABI is not set" >> ${S}/.config echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config @@ -104,11 +97,16 @@ do_install_prepend() { if test -e arch/${ARCH}/boot/images/uImage ; then ln -f arch/${ARCH}/boot/images/uImage arch/${ARCH}/boot/uImage fi + + if test -e arch/${ARCH}/kernel/vmlinux.lds ; then + ln -f arch/${ARCH}/kernel/vmlinux.lds arch/${ARCH}/boot/vmlinux + fi } UBOOT_ENTRYPOINT ?= "20008000" -KERNEL_IMAGE_BASE_NAME = ${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME} +KERNEL_IMAGE_BASE_NAME = "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}" +KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-${MACHINE}" do_deploy() { install -d ${DEPLOY_DIR_IMAGE} @@ -128,6 +126,10 @@ do_deploy() { rm -f linux.bin.gz fi fi + + cd ${DEPLOY_DIR_IMAGE} + rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin + ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin } do_deploy[dirs] = "${S}" -- cgit v1.2.3