aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm26/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/arm26/Makefile
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/arm26/Makefile')
-rw-r--r--arch/arm26/Makefile118
1 files changed, 118 insertions, 0 deletions
diff --git a/arch/arm26/Makefile b/arch/arm26/Makefile
new file mode 100644
index 000000000000..ada8985530a5
--- /dev/null
+++ b/arch/arm26/Makefile
@@ -0,0 +1,118 @@
1#
2# arch/arm26/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-2001 by Russell King
9# Copyright (c) 2004 Ian Molton
10
11LDFLAGS_vmlinux :=-p -X
12CPPFLAGS_vmlinux.lds = -DTEXTADDR=$(TEXTADDR) -DDATAADDR=$(DATAADDR)
13OBJCOPYFLAGS :=-O binary -R .note -R .comment -S
14GZFLAGS :=-9
15
16ifeq ($(CONFIG_FRAME_POINTER),y)
17CFLAGS +=-fno-omit-frame-pointer -mno-sched-prolog
18endif
19
20ifeq ($(CONFIG_DEBUG_INFO),y)
21CFLAGS +=-g
22endif
23
24CFLAGS_BOOT :=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
25CFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
26AFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float
27
28ifeq ($(CONFIG_XIP_KERNEL),y)
29 TEXTADDR := 0x03880000
30 DATAADDR := 0x02080000
31else
32 TEXTADDR := 0x02080000
33 DATAADDR := .
34endif
35
36head-y := arch/arm26/kernel/head.o arch/arm26/kernel/init_task.o
37
38ifeq ($(incdir-y),)
39incdir-y :=
40endif
41INCDIR :=
42
43export MACHINE TEXTADDR GZFLAGS CFLAGS_BOOT
44
45# If we have a machine-specific directory, then include it in the build.
46core-y += arch/arm26/kernel/ arch/arm26/mm/ arch/arm26/machine/
47core-$(CONFIG_FPE_NWFPE) += arch/arm26/nwfpe/
48
49libs-y += arch/arm26/lib/
50
51# Default target when executing plain make
52all: zImage
53
54boot := arch/arm26/boot
55
56prepare: include/asm-$(ARCH)/asm_offsets.h
57CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
58
59
60.PHONY: maketools FORCE
61maketools: FORCE
62
63
64# Convert bzImage to zImage
65bzImage: vmlinux
66 $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
67
68zImage Image bootpImage xipImage: vmlinux
69 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
70
71zinstall install: vmlinux
72 $(Q)$(MAKE) $(build)=$(boot) $@
73
74# We use MRPROPER_FILES and CLEAN_FILES now
75archclean:
76 $(Q)$(MAKE) $(clean)=$(boot)
77
78# My testing targets (that short circuit a few dependencies)
79zImg:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
80Img:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/Image
81bp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage
82i:; $(Q)$(MAKE) $(build)=$(boot) install
83zi:; $(Q)$(MAKE) $(build)=$(boot) zinstall
84
85#
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; \
99 )
100
101arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
102 include/config/MARKER
103
104include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
105 $(call filechk,gen-asm-offsets)
106
107define 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'
118endef