From 891334ba568712e3000aa0dca5add8d059dabb7f Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 5 Nov 2007 18:30:14 +0000 Subject: linux: add avr32 support for 2.6.23 --- packages/linux/linux.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/linux/linux.inc') diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc index 2fb0ce8177..2a9085f34e 100644 --- a/packages/linux/linux.inc +++ b/packages/linux/linux.inc @@ -118,6 +118,10 @@ do_deploy() { ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin uboot-mkimage -A ${ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin rm -f linux.bin + elif test -e arch/${ARCH}/boot/images/vmlinux.gz ; then + ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/images/vmlinux.gz linux.bin + uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin + rm -f linux.bin else ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin rm -f linux.bin.gz -- cgit v1.2.3 From 6a90f2b29e36ae3a730bd2640d856e46f82b0e30 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 5 Nov 2007 18:39:36 +0000 Subject: linux.inc: fixlet for avr32 and gcc 4.2.1 --- packages/linux/linux.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/linux/linux.inc') diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc index 2a9085f34e..37759b7667 100644 --- a/packages/linux/linux.inc +++ b/packages/linux/linux.inc @@ -77,6 +77,11 @@ do_configure_prepend() { yes '' | oe_runmake oldconfig } + +do_configure_append_avr32() { + sed -i -e s:-mno-pic::g arch/avr32/Makefile +} + # Support checking the kernel size since some kernels need to reside in partitions # with a fixed length or there is a limit in transferring the kernel to memory do_sizecheck() { -- cgit v1.2.3