diff options
author | Leon Woestenberg <leon.woestenberg@gmail.com> | 2008-02-03 23:10:05 +0000 |
---|---|---|
committer | Leon Woestenberg <leon.woestenberg@gmail.com> | 2008-02-03 23:10:05 +0000 |
commit | 67ee8c0ad8aebfb5b8bd81ee37380bffa72ba9bc (patch) | |
tree | 7fcde86a60c424ee168c4980a5e439254328b48e /packages/linux | |
parent | c13773acfc8d0aae1cf60b93bd129f0452752695 (diff) |
mpc83x3-rdb: Fix uImage kernel build.
Diffstat (limited to 'packages/linux')
-rw-r--r-- | packages/linux/linux.inc | 9 |
1 files changed, 7 insertions, 2 deletions
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 |