diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/mips/lasat/image/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/mips/lasat/image/Makefile')
-rw-r--r-- | arch/mips/lasat/image/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/mips/lasat/image/Makefile b/arch/mips/lasat/image/Makefile new file mode 100644 index 000000000000..18b6430f11be --- /dev/null +++ b/arch/mips/lasat/image/Makefile | |||
@@ -0,0 +1,53 @@ | |||
1 | # | ||
2 | # MAKEFILE FOR THE MIPS LINUX BOOTLOADER AND ROM DEBUGGER | ||
3 | # | ||
4 | # i-data Networks | ||
5 | # | ||
6 | # Author: Thomas Horsten <thh@i-data.com> | ||
7 | # | ||
8 | |||
9 | ifndef Version | ||
10 | Version = "$(USER)-test" | ||
11 | endif | ||
12 | |||
13 | MKLASATIMG = mklasatimg | ||
14 | MKLASATIMG_ARCH = mq2,mqpro,sp100,sp200 | ||
15 | KERNEL_IMAGE = $(TOPDIR)/vmlinux | ||
16 | KERNEL_START = $(shell $(NM) $(KERNEL_IMAGE) | grep " _text" | cut -f1 -d\ ) | ||
17 | KERNEL_ENTRY = $(shell $(NM) $(KERNEL_IMAGE) | grep kernel_entry | cut -f1 -d\ ) | ||
18 | |||
19 | LDSCRIPT= -L$(obj) -Tromscript.normal | ||
20 | |||
21 | HEAD_DEFINES := -D_kernel_start=0x$(KERNEL_START) \ | ||
22 | -D_kernel_entry=0x$(KERNEL_ENTRY) \ | ||
23 | -D VERSION="\"$(Version)\"" \ | ||
24 | -D TIMESTAMP=$(shell date +%s) | ||
25 | |||
26 | $(obj)/head.o: $(obj)/head.S $(KERNEL_IMAGE) | ||
27 | $(CC) -fno-pic $(HEAD_DEFINES) -I$(TOPDIR)/include -c -o $@ $< | ||
28 | |||
29 | OBJECTS = head.o kImage.o | ||
30 | |||
31 | rom.sw: $(obj)/rom.sw | ||
32 | |||
33 | $(obj)/rom.sw: $(obj)/rom.bin | ||
34 | $(MKLASATIMG) -o $@ -k $^ -m $(MKLASATIMG_ARCH) | ||
35 | |||
36 | $(obj)/rom.bin: $(obj)/rom | ||
37 | $(OBJCOPY) -O binary -S $^ $@ | ||
38 | |||
39 | # Rule to make the bootloader | ||
40 | $(obj)/rom: $(addprefix $(obj)/,$(OBJECTS)) | ||
41 | $(LD) $(LDFLAGS) $(LDSCRIPT) -o $@ $^ | ||
42 | |||
43 | $(obj)/%.o: $(obj)/%.gz | ||
44 | $(LD) -r -o $@ -b binary $< | ||
45 | |||
46 | $(obj)/%.gz: $(obj)/%.bin | ||
47 | gzip -cf -9 $< > $@ | ||
48 | |||
49 | $(obj)/kImage.bin: $(KERNEL_IMAGE) | ||
50 | $(OBJCOPY) -O binary -S $^ $@ | ||
51 | |||
52 | clean: | ||
53 | rm -f rom rom.bin rom.sw kImage.bin kImage.o | ||