Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Use scripts/mkuboot.sh instead of 'mkimage'

mkuboot.sh provides a basic wrapper for the 'mkimage' utility. Using
mkuboot.sh provides clearer error reporting and allows a toolchain to
use its own 'mkimage' executable specified by ${CROSS_COMPILE}mkimage.
Additionally, this brings PowerPC in line with other architectures
which already call mkimage via mkuboot.sh.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

authored by

Peter Tyser and committed by
Grant Likely
3f884bf5 06d352f2

+5 -2
+5 -2
arch/powerpc/boot/wrapper
··· 43 43 # cross-compilation prefix 44 44 CROSS= 45 45 46 + # mkimage wrapper script 47 + MKIMAGE=$srctree/scripts/mkuboot.sh 48 + 46 49 # directory for object and other files used by this script 47 50 object=arch/powerpc/boot 48 51 objbin=$object ··· 270 267 case "$platform" in 271 268 uboot) 272 269 rm -f "$ofile" 273 - mkimage -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \ 270 + ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \ 274 271 $uboot_version -d "$vmz" "$ofile" 275 272 if [ -z "$cacheit" ]; then 276 273 rm -f "$vmz" ··· 330 327 ;; 331 328 cuboot*) 332 329 gzip -f -9 "$ofile" 333 - mkimage -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \ 330 + ${MKIMAGE} -A ppc -O linux -T kernel -C gzip -a "$base" -e "$entry" \ 334 331 $uboot_version -d "$ofile".gz "$ofile" 335 332 ;; 336 333 treeboot*)