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
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
16 ifeq ($(CONFIG_FRAME_POINTER),y)
17 CFLAGS +=-fno-omit-frame-pointer -mno-sched-prolog
20 CFLAGS_BOOT :=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
21 CFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float -Uarm
22 AFLAGS +=-mapcs-26 -mcpu=arm3 -msoft-float
24 ifeq ($(CONFIG_XIP_KERNEL),y)
25 TEXTADDR := 0x03880000
26 DATAADDR := 0x02080000
28 TEXTADDR := 0x02080000
32 head-y := arch/arm26/kernel/head.o arch/arm26/kernel/init_task.o
39 export MACHINE TEXTADDR GZFLAGS CFLAGS_BOOT
41 # If we have a machine-specific directory, then include it in the build.
42 core-y += arch/arm26/kernel/ arch/arm26/mm/ arch/arm26/machine/
43 core-$(CONFIG_FPE_NWFPE) += arch/arm26/nwfpe/
45 libs-y += arch/arm26/lib/
47 # Default target when executing plain make
50 boot := arch/arm26/boot
52 prepare: include/asm-$(ARCH)/asm_offsets.h
53 CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
56 .PHONY: maketools FORCE
60 # Convert bzImage to zImage
62 $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
64 zImage Image bootpImage xipImage: vmlinux
65 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
67 zinstall install: vmlinux
68 $(Q)$(MAKE) $(build)=$(boot) $@
70 # We use MRPROPER_FILES and CLEAN_FILES now
72 $(Q)$(MAKE) $(clean)=$(boot)
74 # My testing targets (that short circuit a few dependencies)
75 zImg:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
76 Img:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/Image
77 bp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage
78 i:; $(Q)$(MAKE) $(build)=$(boot) install
79 zi:; $(Q)$(MAKE) $(build)=$(boot) zinstall
82 # Configuration targets. Use these to select a
83 # configuration for your architecture
87 if [ -f arch/arm26/def-configs/$$CFG ]; then \
88 [ -f .config ] && mv -f .config .config.old; \
89 cp arch/arm26/def-configs/$$CFG .config; \
90 echo "*** Default configuration for $$CFG installed"; \
91 echo "*** Next, you may run 'make oldconfig'"; \
93 echo "$$CFG does not exist"; \
97 arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
100 include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
101 $(call filechk,gen-asm-offsets)
104 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
105 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
106 echo ' bootpImage - Combined zImage and initial RAM disk'
107 echo ' xipImage - eXecute In Place capable image for ROM use (arch/$(ARCH)/boot/xipImage)'
108 echo ' initrd - Create an initial image'
109 echo ' install - Install uncompressed kernel'
110 echo ' zinstall - Install compressed kernel'
111 echo ' Install using (your) ~/bin/installkernel or'
112 echo ' (distribution) /sbin/installkernel or'
113 echo ' install to $$(INSTALL_PATH) and run lilo'