Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. #
  17. # If you don't define ZRELADDR above,
  18. # then it defaults to ZTEXTADDR
  19. #
  20. ifeq ($(ZRELADDR),)
  21. ZRELADDR = $(ZTEXTADDR)
  22. endif
  23. export SYSTEM ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS INITRD_VIRT PARAMS_PHYS
  24. Image: $(obj)/Image
  25. targets: $(obj)/Image
  26. $(obj)/Image: vmlinux FORCE
  27. $(OBJCOPY) -O binary -R .note -R .comment -S vmlinux $@
  28. #$(obj)/Image: $(CONFIGURE) $(SYSTEM)
  29. # $(OBJCOPY) -O binary -R .note -R .comment -g -S $(SYSTEM) $@
  30. bzImage: zImage
  31. zImage: $(CONFIGURE) compressed/$(LINUX)
  32. $(OBJCOPY) -O binary -R .note -R .comment -S compressed/$(LINUX) $@
  33. bootpImage: bootp/bootp
  34. $(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@
  35. compressed/$(LINUX): $(LINUX) dep
  36. @$(MAKE) -C compressed $(LINUX)
  37. bootp/bootp: zImage initrd
  38. @$(MAKE) -C bootp bootp
  39. initrd:
  40. @test "$(INITRD_VIRT)" != "" || (echo This architecture does not support INITRD; exit -1)
  41. @test "$(INITRD)" != "" || (echo You must specify INITRD; exit -1)
  42. #
  43. # installation
  44. #
  45. install: $(CONFIGURE) Image
  46. sh ./install.sh $(KERNELRELEASE) Image System.map "$(INSTALL_PATH)"
  47. zinstall: $(CONFIGURE) zImage
  48. sh ./install.sh $(KERNELRELEASE) zImage System.map "$(INSTALL_PATH)"
  49. #
  50. # miscellany
  51. #
  52. mrproper clean:
  53. # @$(MAKE) -C compressed clean
  54. # @$(MAKE) -C bootp clean
  55. dep: