Makefile 993 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # This dir holds all of the images for PPC machines.
  3. # Tom Rini January 2001
  4. MKIMAGE := $(srctree)/scripts/mkuboot.sh
  5. extra-y := vmlinux.bin vmlinux.gz
  6. # two make processes may write to vmlinux.gz at the same time with make -j
  7. quiet_cmd_mygzip = GZIP $@
  8. cmd_mygzip = gzip -f -9 < $< > $@.$$$$ && mv $@.$$$$ $@
  9. OBJCOPYFLAGS_vmlinux.bin := -O binary
  10. $(obj)/vmlinux.bin: vmlinux FORCE
  11. $(call if_changed,objcopy)
  12. $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
  13. $(call if_changed,mygzip)
  14. quiet_cmd_uimage = UIMAGE $@
  15. cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \
  16. -C gzip -a 00000000 -e 00000000 -n 'Linux-$(KERNELRELEASE)' \
  17. -d $< $@
  18. targets += uImage
  19. $(obj)/uImage: $(obj)/vmlinux.gz
  20. $(Q)rm -f $@
  21. $(call cmd,uimage)
  22. @echo -n ' Image: $@ '
  23. @if [ -f $@ ]; then echo 'is ready' ; else echo 'not made'; fi
  24. # Files generated that shall be removed upon make clean
  25. clean-files := sImage vmapus vmlinux* miboot* zImage* uImage