Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #
  2. # arch/arm/boot/Makefile
  3. #
  4. # This file is subject to the terms and conditions of the GNU General Public
  5. # License. See the file "COPYING" in the main directory of this archive
  6. # for more details.
  7. #
  8. # Copyright (C) 1995-2000 Russell King
  9. #
  10. targets := Image zImage bootpImage
  11. SYSTEM =$(LINUX)
  12. ZTEXTADDR = 0x02080000
  13. PARAMS_PHYS = 0x0207c000
  14. INITRD_PHYS = 0x02180000
  15. INITRD_VIRT = 0x02180000
  16. OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment
  17. #
  18. # If you don't define ZRELADDR above,
  19. # then it defaults to ZTEXTADDR
  20. #
  21. ifeq ($(ZRELADDR),)
  22. ZRELADDR = $(ZTEXTADDR)
  23. endif
  24. export SYSTEM ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS INITRD_VIRT PARAMS_PHYS
  25. Image: $(obj)/Image
  26. targets: $(obj)/Image
  27. $(obj)/Image: vmlinux FORCE
  28. $(OBJCOPY) $(OBJCOPYFLAGS) -S vmlinux $@
  29. #$(obj)/Image: $(CONFIGURE) $(SYSTEM)
  30. # $(OBJCOPY) $(OBJCOPYFLAGS) -g -S $(SYSTEM) $@
  31. bzImage: zImage
  32. zImage: $(CONFIGURE) compressed/$(LINUX)
  33. $(OBJCOPY) $(OBJCOPYFLAGS) -S compressed/$(LINUX) $@
  34. bootpImage: bootp/bootp
  35. $(OBJCOPY) $(OBJCOPYFLAGS) -S bootp/bootp $@
  36. compressed/$(LINUX): $(LINUX) dep
  37. @$(MAKE) -C compressed $(LINUX)
  38. bootp/bootp: zImage initrd
  39. @$(MAKE) -C bootp bootp
  40. initrd:
  41. @test "$(INITRD_VIRT)" != "" || (echo This architecture does not support INITRD; exit -1)
  42. @test "$(INITRD)" != "" || (echo You must specify INITRD; exit -1)
  43. #
  44. # installation
  45. #
  46. install: $(CONFIGURE) Image
  47. sh ./install.sh $(KERNELRELEASE) Image System.map "$(INSTALL_PATH)"
  48. zinstall: $(CONFIGURE) zImage
  49. sh ./install.sh $(KERNELRELEASE) zImage System.map "$(INSTALL_PATH)"
  50. #
  51. # miscellany
  52. #
  53. mrproper clean:
  54. # @$(MAKE) -C compressed clean
  55. # @$(MAKE) -C bootp clean
  56. dep: