From 67ee8c0ad8aebfb5b8bd81ee37380bffa72ba9bc Mon Sep 17 00:00:00 2001 From: Leon Woestenberg Date: Sun, 3 Feb 2008 23:10:05 +0000 Subject: mpc83x3-rdb: Fix uImage kernel build. --- packages/linux/linux.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/linux') diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc index 23f314353e..b98b722d97 100644 --- a/packages/linux/linux.inc +++ b/packages/linux/linux.inc @@ -108,15 +108,20 @@ UBOOT_ENTRYPOINT ?= "20008000" do_compile_append() { if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then + if test "x${ARCH}" = "xpowerpc" ; then + UBOOT_ARCH=ppc + else + UBOOT_ARCH=$ARCH + fi if test -e arch/${ARCH}/boot/compressed/vmlinux ; then ${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 arch/${ARCH}/boot/uImage + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage rm -f linux.bin else ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin rm -f linux.bin.gz gzip -9 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.gz arch/${ARCH}/boot/uImage + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage rm -f linux.bin.gz fi fi -- cgit v1.2.3