Commit 3b82ddf0 authored by Paul Mackerras's avatar Paul Mackerras

Merge bk://stop.crashing.org/linux-2.6-uImage

into samba.org:/home/paulus/kernel/for-linus-ppc
parents 943ca916 0f7810ea
...@@ -45,7 +45,7 @@ drivers-$(CONFIG_4xx) += arch/ppc/4xx_io/ ...@@ -45,7 +45,7 @@ drivers-$(CONFIG_4xx) += arch/ppc/4xx_io/
drivers-$(CONFIG_8260) += arch/ppc/8260_io/ drivers-$(CONFIG_8260) += arch/ppc/8260_io/
drivers-$(CONFIG_OCP) += arch/ppc/ocp/ drivers-$(CONFIG_OCP) += arch/ppc/ocp/
BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd pImage vmlinux.sm BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm
.PHONY: $(BOOT_TARGETS) .PHONY: $(BOOT_TARGETS)
...@@ -56,8 +56,17 @@ AFLAGS_vmlinux.lds.o := -Upowerpc ...@@ -56,8 +56,17 @@ AFLAGS_vmlinux.lds.o := -Upowerpc
# All the instructions talk about "make bzImage". # All the instructions talk about "make bzImage".
bzImage: zImage bzImage: zImage
boot := arch/$(ARCH)/boot
$(BOOT_TARGETS): vmlinux $(BOOT_TARGETS): vmlinux
$(Q)$(MAKE) $(build)=arch/ppc/boot $@ $(Q)$(MAKE) $(build)=$(boot) $@
uImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot)/images $(boot)/images/$@
define archhelp
@echo ' uImage - Create a bootable image for U-Boot / PPCBoot'
endef
archclean: archclean:
$(Q)$(MAKE) $(clean)=arch/ppc/boot $(Q)$(MAKE) $(clean)=arch/ppc/boot
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# This dir holds all of the images for PPC machines. # This dir holds all of the images for PPC machines.
# Tom Rini January 2001 # Tom Rini January 2001
MKIMAGE := $(srctree)/scripts/mkuboot.sh
extra-y := vmlinux.bin vmlinux.gz extra-y := vmlinux.bin vmlinux.gz
OBJCOPYFLAGS_vmlinux.bin := -O binary OBJCOPYFLAGS_vmlinux.bin := -O binary
...@@ -11,5 +13,15 @@ $(obj)/vmlinux.bin: vmlinux FORCE ...@@ -11,5 +13,15 @@ $(obj)/vmlinux.bin: vmlinux FORCE
$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
$(call if_changed,gzip) $(call if_changed,gzip)
quite_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \
-C gzip -a 00000000 -e 00000000 -n 'Linux-$(KERNELRELEASE)' \
-d $< $@
targets += uImage
$(obj)/uImage: $(obj)/vmlinux.gz
$(call if_changed,uimage)
@echo ' Image $@ is ready'
# Files generated that shall be removed upon make clean # Files generated that shall be removed upon make clean
clean-files := sImage vmapus vmlinux* miboot* zImage* clean-files := sImage vmapus vmlinux* miboot* zImage* uImage
#!/bin/bash #!/bin/bash
# #
# Build PPCBoot image when `mkimage' tool is available. # Build U-Boot image when `mkimage' tool is available.
# #
MKIMAGE=$(type -path mkimage) MKIMAGE=$(type -path mkimage)
if [ -z "${MKIMAGE}" ]; then if [ -z "${MKIMAGE}" ]; then
# Doesn't exist # Doesn't exist
echo '"mkimage" command not found - PPCBoot images will not be built' >&2 echo '"mkimage" command not found - U-Boot images will not be built' >&2
exit 0; exit 0;
fi fi
# Call "mkimage" to create PPCBoot image # Call "mkimage" to create U-Boot image
${MKIMAGE} "$@" ${MKIMAGE} "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment