summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-06-16 22:11:27 +0200
committerGuido Günther <agx@sigxcpu.org>2011-06-16 23:37:56 +0200
commit01c99b53048b4d436eb55e9bf22414610f17d057 (patch)
tree9a3b20954f6b1179662154f749bfe5d4bc7083a5
parent0e3903606f23b170549805372bec9cb6a6a2b674 (diff)
Move the tip22 image to 0x89702000 on IP22
as described in #452798. Thanks to Edwin Kwan for analyzing this.
-rw-r--r--Makefile10
-rw-r--r--tip22/Makefile2
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4bfb897..b818247 100644
--- a/Makefile
+++ b/Makefile
@@ -11,12 +11,14 @@ ifeq ($(SUBARCH),IP22)
KERNELADDR=0x88002000
MAXLOADSIZE=0x1700000
LOADADDR=0x88802000
+TIP_LOADADDR=0x89702000
OUTPUTFORMAT=ecoff-bigmips
endif
ifeq ($(SUBARCH),IP32)
KERNELADDR=0x80004000
MAXLOADSIZE=0x1400000
LOADADDR=0x81404000
+TIP_LOADADDR=$(LOADADDR)
OUTPUTFORMAT=elf32-tradbigmips
endif
@@ -63,7 +65,13 @@ $(call dep-tgt,clean)
endef
define submake
-@$(MAKE) -C $(1) SUBARCH=$(SUBARCH) LOADADDR=$(LOADADDR) MAXLOADSIZE=$(MAXLOADSIZE) KERNELADDR=$(KERNELADDR) OUTPUTFORMAT=$(OUTPUTFORMAT) $(2)
+@$(MAKE) -C $(1) SUBARCH=$(SUBARCH) \
+ LOADADDR=$(LOADADDR) \
+ TIP_LOADADDR=$(TIP_LOADADDR) \
+ MAXLOADSIZE=$(MAXLOADSIZE) \
+ KERNELADDR=$(KERNELADDR) \
+ OUTPUTFORMAT=$(OUTPUTFORMAT) \
+ $(2)
endef
diff --git a/tip22/Makefile b/tip22/Makefile
index 548371b..1df2fb2 100644
--- a/tip22/Makefile
+++ b/tip22/Makefile
@@ -43,7 +43,7 @@ $(PRINT_LOADADDR):
$(CC) $(CFLAGS) -c -o $@ $<
%.script.$(SUBARCH): %.script.in
- LOADADDR=$(LOADADDR); \
+ LOADADDR=$(TIP_LOADADDR); \
OUTPUTFORMAT=$(OUTPUTFORMAT); \
sed -e "s/@@LOADADDR@@/$$LOADADDR/" \
-e "s/@@OUTPUTFORMAT@@/$$OUTPUTFORMAT/" <$< >$@