diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-06-14 04:51:44 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-06-14 04:51:44 +0000 |
commit | 998f6f792ea953caf0ca7ab8b7fbe858d68a510f (patch) | |
tree | 90754e0b123fbf58fc099648a68eae3dda0f8004 /packages/linux/linux_2.6.20.bb | |
parent | 60dfd703b4c5180533ec14102c276fc4fb70a5a3 (diff) | |
parent | 1d4ca5c243ec65cf27ec1d4d908163da029e6fcc (diff) |
merge of '443650a5c3bfafa4e922391b71d87087c6b6f355'
and 'a59cc92c385b66015a1eb53d505bf4f139187778'
Diffstat (limited to 'packages/linux/linux_2.6.20.bb')
-rw-r--r-- | packages/linux/linux_2.6.20.bb | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/packages/linux/linux_2.6.20.bb b/packages/linux/linux_2.6.20.bb index 80f6c71442..d8882187ea 100644 --- a/packages/linux/linux_2.6.20.bb +++ b/packages/linux/linux_2.6.20.bb @@ -1,7 +1,11 @@ DESCRIPTION = "Linux Kernel" SECTION = "kernel" LICENSE = "GPL" -PR = "r6" + +# These devices need mkimage to generate a kernel image +DEPENDS_at91sam9263ek = "u-boot-mkimage-gta01-native" + +PR = "r7" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ file://defconfig" @@ -11,13 +15,42 @@ SRC_URI_append_n2100 = "\ file://rtc-rs5c372-n2100.patch;patch=1 \ " +SRC_URI_append_at91sam9263ek = " \ + http://maxim.org.za/AT91RM9200/2.6/${PV}-at91.patch.gz;patch=1 \ + http://www.at91.com/repFichier/Project-217/linux-${PV}-at91-exp.diff.bz2;patch=1 \ + " + inherit kernel + KERNEL_IMAGETYPE = "bzImage" KERNEL_IMAGETYPE_n2100 = "zImage" +KERNEL_IMAGETYPE_at91sam9263ek = "uImage" do_configure_prepend() { - install -m 0644 ${WORKDIR}/defconfig ${S}/.config + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + echo "CONFIG_AEABI=y" >> ${S}/.config + echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config + else + echo "# CONFIG_AEABI is not set" >> ${S}/.config + echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config + fi + + sed -e '/CONFIG_AEABI/d' \ + -e '/CONFIG_OABI_COMPAT=/d' \ + '${WORKDIR}/defconfig' >>'${S}/.config' + + yes '' | oe_runmake oldconfig +} + +do_install_prepend() { + if test -e arch/${ARCH}/boot/Image ; then + ln -f arch/arm/boot/Image arch/arm/boot/uImage + fi + + if test -e arch/${ARCH}/boot/images/uImage ; then + ln -f arch/arm/boot/images/uImage arch/arm/boot/uImage + fi } do_install_append_n2100() { |