/arch/frv/boot/Makefile

https://bitbucket.org/evzijst/gittest · Makefile · 73 lines · 32 code · 18 blank · 23 comment · 4 complexity · 8782783dd985846b0079ab4a9648e696 MD5 · raw file

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