MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / arch / arm / boot / Makefile
bloba101f394dbfc855625e91c829fdb1cb1bd77fd6c
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 MKIMAGE := $(srctree)/scripts/mkuboot.sh
16 #ifneq ($(MACHINE),)
17 #include $(srctree)/$(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
25 zreladdr-$(CONFIG_ARCH_MOXART) := 0x00080000
26 initrd_phys-$(CONFIG_ARCH_MOXART) := 0x00000000
28 ZRELADDR := $(zreladdr-y)
29 PARAMS_PHYS := $(params_phys-y)
30 INITRD_PHYS := $(initrd_phys-y)
32 export ZRELADDR INITRD_PHYS PARAMS_PHYS
34 targets := Image zImage xipImage bootpImage uImage
36 ifeq ($(CONFIG_XIP_KERNEL),y)
38 $(obj)/xipImage: vmlinux FORCE
39 $(call if_changed,objcopy)
40 @echo ' Kernel: $@ is ready (physical address: $(CONFIG_XIP_PHYS_ADDR))'
42 $(obj)/Image $(obj)/zImage: FORCE
43 @echo 'Kernel configured for XIP (CONFIG_XIP_KERNEL=y)'
44 @echo 'Only the xipImage target is available in this case'
45 @false
47 else
49 $(obj)/xipImage: FORCE
50 @echo 'Kernel not configured for XIP (CONFIG_XIP_KERNEL!=y)'
51 @false
53 $(obj)/Image: vmlinux FORCE
54 $(call if_changed,objcopy)
55 @echo ' Kernel: $@ is ready'
57 $(obj)/compressed/vmlinux: $(obj)/Image FORCE
58 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
60 $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
61 $(call if_changed,objcopy)
62 @echo ' Kernel: $@ is ready'
64 endif
66 quiet_cmd_uimage = UIMAGE $@
67 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \
68 -C none -a $(ZRELADDR) -e $(ZRELADDR) \
69 -n 'Linux-$(KERNELRELEASE)' -d $< $@
71 $(obj)/uImage: $(obj)/zImage FORCE
72 $(call if_changed,uimage)
73 @echo ' Image $@ is ready'
75 $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
76 $(Q)$(MAKE) $(build)=$(obj)/bootp $@
79 $(obj)/bootpImage: $(obj)/bootp/bootp FORCE
80 $(call if_changed,objcopy)
81 @echo ' Kernel: $@ is ready'
83 PHONY += initrd FORCE
84 initrd:
85 @test "$(INITRD_PHYS)" != "" || \
86 (echo This machine does not support INITRD; exit -1)
87 @test "$(INITRD)" != "" || \
88 (echo You must specify INITRD; exit -1)
90 install: $(obj)/Image
91 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \
92 $(obj)/Image System.map "$(INSTALL_PATH)"
94 zinstall: $(obj)/zImage
95 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \
96 $(obj)/zImage System.map "$(INSTALL_PATH)"
98 subdir- := bootp compressed