aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2010-01-10 18:14:23 +0000
committerImre Kaloz <kaloz@openwrt.org>2010-01-10 18:14:23 +0000
commit28eef087773b07334a8c7fc9c58f0d4fc0ea9fe7 (patch)
tree7eb8281cfc687bae9dc3d7c1da13d3cbf26884e7 /target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch
parent1095640d8ff4ceba476f41fd16b65dc83e8db021 (diff)
downloadupstream-28eef087773b07334a8c7fc9c58f0d4fc0ea9fe7.tar.gz
upstream-28eef087773b07334a8c7fc9c58f0d4fc0ea9fe7.tar.bz2
upstream-28eef087773b07334a8c7fc9c58f0d4fc0ea9fe7.zip
[mpc83xx]: FIT uImage support for the MPC8377-WLAN
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19094 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch')
-rw-r--r--target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch b/target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch
new file mode 100644
index 0000000000..8e200b1a65
--- /dev/null
+++ b/target/linux/mpc83xx/patches/005-powerpc_mkuboot.patch
@@ -0,0 +1,30 @@
+--- a/arch/powerpc/boot/wrapper
++++ b/arch/powerpc/boot/wrapper
+@@ -43,6 +43,9 @@ gzip=.gz
+ # cross-compilation prefix
+ CROSS=
+
++# mkimage wrapper script
++MKIMAGE=$srctree/scripts/mkuboot.sh
++
+ # directory for object and other files used by this script
+ object=arch/powerpc/boot
+ objbin=$object
+@@ -262,7 +265,7 @@ membase=`${CROSS}objdump -p "$kernel" |
+ case "$platform" in
+ uboot)
+ rm -f "$ofile"
+- mkimage -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \
++ ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \
+ $uboot_version -d "$vmz" "$ofile"
+ if [ -z "$cacheit" ]; then
+ rm -f "$vmz"
+@@ -322,7 +325,7 @@ coff)
+ ;;
+ cuboot*)
+ gzip -f -9 "$ofile"
+- mkimage -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \
++ ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \
+ $uboot_version -d "$ofile".gz "$ofile"
+ ;;
+ treeboot*)