Makefile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. # arch/arm26/boot/Makefile
  3. #
  4. # This file is included by the global makefile so that you can add your own
  5. # architecture-specific flags and dependencies.
  6. #
  7. # This file is subject to the terms and conditions of the GNU General Public
  8. # License. See the file "COPYING" in the main directory of this archive
  9. # for more details.
  10. #
  11. # Copyright (C) 1995-2002 Russell King
  12. #
  13. # Note: the following conditions must always be true:
  14. # ZRELADDR == virt_to_phys(TEXTADDR)
  15. # PARAMS_PHYS must be with 4MB of ZRELADDR
  16. # INITRD_PHYS must be in RAM
  17. zreladdr-y := 0x02080000
  18. params_phys-y := 0x0207c000
  19. initrd_phys-y := 0x02180000
  20. ZRELADDR := 0x02080000
  21. ZTEXTADDR := 0x0207c000
  22. PARAMS_PHYS := $(params_phys-y)
  23. INITRD_PHYS := 0x02180000
  24. # We now have a PIC decompressor implementation. Decompressors running
  25. # from RAM should not define ZTEXTADDR. Decompressors running directly
  26. # from ROM or Flash must define ZTEXTADDR (preferably via the config)
  27. # FIXME: Previous assignment to ztextaddr-y is lost here. See SHARK
  28. ifeq ($(CONFIG_ZBOOT_ROM),y)
  29. ZTEXTADDR := $(CONFIG_ZBOOT_ROM_TEXT)
  30. ZBSSADDR := $(CONFIG_ZBOOT_ROM_BSS)
  31. else
  32. ZTEXTADDR := 0
  33. ZBSSADDR := ALIGN(4)
  34. endif
  35. export ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS PARAMS_PHYS
  36. targets := Image zImage bootpImage xipImage
  37. $(obj)/Image: vmlinux FORCE
  38. $(call if_changed,objcopy)
  39. @echo ' Kernel: $@ is ready'
  40. $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
  41. $(call if_changed,objcopy)
  42. @echo ' Kernel: $@ is ready'
  43. $(obj)/compressed/vmlinux: vmlinux FORCE
  44. $(Q)$(MAKE) $(build)=$(obj)/compressed $@
  45. ifeq ($(CONFIG_XIP_KERNEL),y)
  46. $(obj)/xipImage: vmlinux FORCE
  47. # $(OBJCOPY) -S -O binary -R .data -R .comment vmlinux vmlinux-text.bin
  48. # FIXME - where has .pci_fixup crept in from?
  49. $(OBJCOPY) -S -O binary -R .data -R .pci_fixup -R .comment vmlinux vmlinux-text.bin
  50. $(OBJCOPY) -S -O binary -R .init -R .text -R __ex_table -R .pci_fixup -R __ksymtab -R __ksymtab_gpl -R __kcrctab -R __kcrctab_gpl -R __param -R .comment vmlinux vmlinux-data.bin
  51. cat vmlinux-text.bin vmlinux-data.bin > $@
  52. $(RM) -f vmlinux-text.bin vmlinux-data.bin
  53. @echo ' Kernel: $@ is ready'
  54. endif
  55. PHONY += initrd
  56. initrd:
  57. @test "$(INITRD_PHYS)" != "" || \
  58. (echo This machine does not support INITRD; exit -1)
  59. @test "$(INITRD)" != "" || \
  60. (echo You must specify INITRD; exit -1)
  61. install: $(obj)/Image
  62. $(CONFIG_SHELL) $(obj)/install.sh \
  63. $(KERNELRELEASE) \
  64. $(obj)/Image System.map "$(INSTALL_PATH)"
  65. zinstall: $(obj)/zImage
  66. $(CONFIG_SHELL) $(obj)/install.sh \
  67. $(KERNELRELEASE) \
  68. $(obj)/zImage System.map "$(INSTALL_PATH)"
  69. subdir- := compressed