x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / arm / boot / Makefile
blob50f8d1be7fcbe7cdcecb37f54f2b24f514a65974
2 # arch/arm/boot/Makefile
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies.
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.
11 # Copyright (C) 1995-2002 Russell King
14 OBJCOPYFLAGS :=-O binary -R .comment -S
16 ifneq ($(MACHINE),)
17 include $(MACHINE)/Makefile.boot
18 endif
20 # Note: the following conditions must always be true:
21 # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET)
22 # PARAMS_PHYS must be within 4MB of ZRELADDR
23 # INITRD_PHYS must be in RAM
24 ZRELADDR := $(zreladdr-y)
25 PARAMS_PHYS := $(params_phys-y)
26 INITRD_PHYS := $(initrd_phys-y)
28 export ZRELADDR INITRD_PHYS PARAMS_PHYS
30 targets := Image zImage xipImage bootpImage uImage
32 ifeq ($(CONFIG_XIP_KERNEL),y)
34 $(obj)/xipImage: vmlinux FORCE
35 $(call if_changed,objcopy)
36 @$(kecho) ' Physical Address of xipImage: $(CONFIG_XIP_PHYS_ADDR)'
38 $(obj)/Image $(obj)/zImage: FORCE
39 @echo 'Kernel configured for XIP (CONFIG_XIP_KERNEL=y)'
40 @echo 'Only the xipImage target is available in this case'
41 @false
43 else
45 $(obj)/xipImage: FORCE
46 @echo 'Kernel not configured for XIP (CONFIG_XIP_KERNEL!=y)'
47 @false
49 $(obj)/Image: vmlinux FORCE
50 $(call if_changed,objcopy)
52 $(obj)/compressed/vmlinux: $(obj)/Image FORCE
53 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
55 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
56 $(call if_changed,objcopy)
58 endif
60 ifneq ($(LOADADDR),)
61 UIMAGE_LOADADDR=$(LOADADDR)
62 else
63 ifeq ($(CONFIG_ZBOOT_ROM),y)
64 UIMAGE_LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT)
65 else
66 UIMAGE_LOADADDR=$(ZRELADDR)
67 endif
68 endif
70 check_for_multiple_loadaddr = \
71 if [ $(words $(UIMAGE_LOADADDR)) -ne 1 ]; then \
72 echo 'multiple (or no) load addresses: $(UIMAGE_LOADADDR)'; \
73 echo 'This is incompatible with uImages'; \
74 echo 'Specify LOADADDR on the commandline to build an uImage'; \
75 false; \
78 $(obj)/uImage: $(obj)/zImage FORCE
79 @$(check_for_multiple_loadaddr)
80 $(call if_changed,uimage)
82 $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
83 $(Q)$(MAKE) $(build)=$(obj)/bootp $@
85 $(obj)/bootpImage: $(obj)/bootp/bootp FORCE
86 $(call if_changed,objcopy)
88 PHONY += initrd install zinstall uinstall
89 initrd:
90 @test "$(INITRD_PHYS)" != "" || \
91 (echo This machine does not support INITRD; exit -1)
92 @test "$(INITRD)" != "" || \
93 (echo You must specify INITRD; exit -1)
95 install:
96 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" \
97 $(obj)/Image System.map "$(INSTALL_PATH)"
99 zinstall:
100 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" \
101 $(obj)/zImage System.map "$(INSTALL_PATH)"
103 uinstall:
104 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" \
105 $(obj)/uImage System.map "$(INSTALL_PATH)"
107 subdir- := bootp compressed dts