Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm26 / Makefile
blobada8985530a592a147378f7c97fd39e6882e9e60
2 # arch/arm26/Makefile
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.
8 # Copyright (C) 1995-2001 by Russell King
9 # Copyright (c) 2004 Ian Molton
11 LDFLAGS_vmlinux :=-p -X
12 CPPFLAGS_vmlinux.lds = -DTEXTADDR=$(TEXTADDR) -DDATAADDR=$(DATAADDR)
13 OBJCOPYFLAGS :=-O binary -R .note -R .comment -S
14 GZFLAGS :=-9
16 ifeq ($(CONFIG_FRAME_POINTER),y)
17 CFLAGS +=-fno-omit-frame-pointer -mno-sched-prolog
18 endif
20 ifeq ($(CONFIG_DEBUG_INFO),y)
21 CFLAGS +=-g
22 endif
24 CFLAGS_BOOT :=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
25 CFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
26 AFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float
28 ifeq ($(CONFIG_XIP_KERNEL),y)
29 TEXTADDR := 0x03880000
30 DATAADDR := 0x02080000
31 else
32 TEXTADDR := 0x02080000
33 DATAADDR := .
34 endif
36 head-y := arch/arm26/kernel/head.o arch/arm26/kernel/init_task.o
38 ifeq ($(incdir-y),)
39 incdir-y :=
40 endif
41 INCDIR :=
43 export MACHINE TEXTADDR GZFLAGS CFLAGS_BOOT
45 # If we have a machine-specific directory, then include it in the build.
46 core-y += arch/arm26/kernel/ arch/arm26/mm/ arch/arm26/machine/
47 core-$(CONFIG_FPE_NWFPE) += arch/arm26/nwfpe/
49 libs-y += arch/arm26/lib/
51 # Default target when executing plain make
52 all: zImage
54 boot := arch/arm26/boot
56 prepare: include/asm-$(ARCH)/asm_offsets.h
57 CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
60 .PHONY: maketools FORCE
61 maketools: FORCE
64 # Convert bzImage to zImage
65 bzImage: vmlinux
66 $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
68 zImage Image bootpImage xipImage: vmlinux
69 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
71 zinstall install: vmlinux
72 $(Q)$(MAKE) $(build)=$(boot) $@
74 # We use MRPROPER_FILES and CLEAN_FILES now
75 archclean:
76 $(Q)$(MAKE) $(clean)=$(boot)
78 # My testing targets (that short circuit a few dependencies)
79 zImg:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
80 Img:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/Image
81 bp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage
82 i:; $(Q)$(MAKE) $(build)=$(boot) install
83 zi:; $(Q)$(MAKE) $(build)=$(boot) zinstall
86 # Configuration targets. Use these to select a
87 # configuration for your architecture
88 %_config:
89 @( \
90 CFG=$(@:_config=); \
91 if [ -f arch/arm26/def-configs/$$CFG ]; then \
92 [ -f .config ] && mv -f .config .config.old; \
93 cp arch/arm26/def-configs/$$CFG .config; \
94 echo "*** Default configuration for $$CFG installed"; \
95 echo "*** Next, you may run 'make oldconfig'"; \
96 else \
97 echo "$$CFG does not exist"; \
98 fi; \
101 arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
102 include/config/MARKER
104 include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
105 $(call filechk,gen-asm-offsets)
107 define archhelp
108 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
109 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
110 echo ' bootpImage - Combined zImage and initial RAM disk'
111 echo ' xipImage - eXecute In Place capable image for ROM use (arch/$(ARCH)/boot/xipImage)'
112 echo ' initrd - Create an initial image'
113 echo ' install - Install uncompressed kernel'
114 echo ' zinstall - Install compressed kernel'
115 echo ' Install using (your) ~/bin/installkernel or'
116 echo ' (distribution) /sbin/installkernel or'
117 echo ' install to $$(INSTALL_PATH) and run lilo'
118 endef