From 9b278b0264d12e3a9c2b5468fd3333fad1fb45f5 Mon Sep 17 00:00:00 2001 From: Florian Lohoff Date: Sat, 4 Oct 2008 12:15:43 +0000 Subject: Remove print_loadaddr and print_outputformat replace by makefile defines --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1c880d5..4bfb897 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,19 @@ # default subarch SUBARCH ?= IP22 +ifeq ($(SUBARCH),IP22) +KERNELADDR=0x88002000 +MAXLOADSIZE=0x1700000 +LOADADDR=0x88802000 +OUTPUTFORMAT=ecoff-bigmips +endif +ifeq ($(SUBARCH),IP32) +KERNELADDR=0x80004000 +MAXLOADSIZE=0x1400000 +LOADADDR=0x81404000 +OUTPUTFORMAT=elf32-tradbigmips +endif + # these contain subarch independent files SUBARCH_INDEP_DIRS= \ arclib \ @@ -50,7 +63,7 @@ $(call dep-tgt,clean) endef define submake -@$(MAKE) -C $(1) SUBARCH=$(SUBARCH) $(2) +@$(MAKE) -C $(1) SUBARCH=$(SUBARCH) LOADADDR=$(LOADADDR) MAXLOADSIZE=$(MAXLOADSIZE) KERNELADDR=$(KERNELADDR) OUTPUTFORMAT=$(OUTPUTFORMAT) $(2) endef -- cgit v1.2.3