===================================================================
@@ -133,7 +133,7 @@ coff)
platformo=$object/of.o
lds=$object/zImage.coff.lds
;;
-miboot|uboot)
+miboot|uboot|decuboot)
# miboot and U-boot want just the bare bits, not an ELF binary
ext=bin
objflags="-O binary"
@@ -190,6 +190,19 @@ uboot)
fi
exit 0
;;
+decuboot)
+ rm -f "$ofile"
+ vmz_uncomp=`basename $vmz $gzip`
+ gunzip -c $vmz > $vmz_uncomp
+ mkimage -A ppc -O linux -T kernel -C none -a 00000000 -e 00000000 \
+ $uboot_version -d "$vmz_uncomp" "$ofile"
+ rm $vmz_uncomp
+ vmz="$vmz$gzip"
+ if [ -z "$cacheit" ]; then
+ rm -f "$vmz"
+ fi
+ exit 0
+ ;;
esac
addsec() {
===================================================================
@@ -195,6 +195,9 @@ $(obj)/zImage.initrd.ps3: vmlinux $(wra
$(obj)/uImage: vmlinux $(wrapperbits)
$(call if_changed,wrap,uboot)
+$(obj)/nuImage: vmlinux $(wrapperbits)
+ $(call if_changed,wrap,decuboot)
+
$(obj)/cuImage.%: vmlinux $(dts) $(wrapperbits)
$(call if_changed,wrap,cuboot-$*,$(dts))
===================================================================
@@ -148,7 +148,7 @@ all: $(KBUILD_IMAGE)
CPPFLAGS_vmlinux.lds := -Upowerpc
-BOOT_TARGETS = zImage zImage.initrd uImage
+BOOT_TARGETS = zImage zImage.initrd uImage nuImage
PHONY += $(BOOT_TARGETS)