From 80724b83015538daf98566fbeff8652f47aea227 Mon Sep 17 00:00:00 2001 From: yoshida_teruhisa Date: Tue, 19 Aug 2008 07:15:10 +0000 Subject: [PATCH] =?UTF-8?q?TestMaker=20=20=E3=83=BBFLX=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BD=8D=E7=BD=AE=E5=A4=89=E6=9B=B4=E3=81=97=E3=81=9F?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AE=E8=B5=B7=E5=8B=95=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=92=E4=BD=9C=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=84=E3=82=8D=E3=81=84=E3=82=8D=E8=8B=A6=E8=82=89?= =?UTF-8?q?=E3=81=AE=E7=AD=96=20=20=E3=83=BBARM9FLX=20=E3=81=AE=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E3=82=A2=E3=83=89=E3=83=AC=E3=82=B9=E3=81=AE=E3=81=BF?= =?UTF-8?q?=20yaml=20=E3=81=A7=E8=A8=AD=E5=AE=9A=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E5=A4=89=E6=9B=B4=20=20=E3=83=BBARM?= =?UTF-8?q?7FLX=20=E3=81=AE=E9=85=8D=E7=BD=AE=E3=82=A2=E3=83=89=E3=83=AC?= =?UTF-8?q?=E3=82=B9=E5=A4=89=E6=9B=B4=E3=81=AF=E5=88=A5=E3=82=B3=E3=83=B3?= =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=8D=E3=83=B3=E3=83=88=E3=82=92=E4=BD=9C?= =?UTF-8?q?=E3=82=8A=E3=80=81=E5=B7=AE=E3=81=97=E6=9B=BF=E3=81=88=E3=82=8B?= =?UTF-8?q?=E4=BA=8B=E3=81=A7=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2189 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/tests/HashCheckTemplate/ARM7/Makefile | 2 +- .../tests/HashCheckTemplate/ARM7/Makefile_ltd | 2 + .../ARM7/Makefile_ltd_offset | 83 ++++++++++++++++++ .../HashCheckTemplate/ARM7/racoon_hct.lsf | 2 +- .../config/romparam_forBoottest.yaml | Bin 13036 -> 13174 bytes build/tests/TestMaker/script/config.py | 5 +- 6 files changed, 89 insertions(+), 5 deletions(-) create mode 100644 build/tests/HashCheckTemplate/ARM7/Makefile_ltd_offset diff --git a/build/tests/HashCheckTemplate/ARM7/Makefile b/build/tests/HashCheckTemplate/ARM7/Makefile index 63cd8dd1..e2d8e1b7 100644 --- a/build/tests/HashCheckTemplate/ARM7/Makefile +++ b/build/tests/HashCheckTemplate/ARM7/Makefile @@ -20,7 +20,7 @@ include $(TWLSDK_ROOT)/build/buildtools/commondefs #---------------------------------------------------------------------------- -SUBMAKES = Makefile_ltd Makefile_hyb +SUBMAKES = Makefile_ltd Makefile_hyb Makefile_ltd_offset #---------------------------------------------------------------------------- diff --git a/build/tests/HashCheckTemplate/ARM7/Makefile_ltd b/build/tests/HashCheckTemplate/ARM7/Makefile_ltd index 76f7b530..e906cfb1 100644 --- a/build/tests/HashCheckTemplate/ARM7/Makefile_ltd +++ b/build/tests/HashCheckTemplate/ARM7/Makefile_ltd @@ -52,6 +52,8 @@ else MAKELCF_FLAGS += -DADDRESS_LTDWRAM='0x037c0000' endif +MAKELCF_FLAGS += -DADDRESS_FLXMAIN='0x02380000' + MAKELCF_FLAGS += -DISDBG_LIBS_TWL='$(if $(ISDBG_LIBS_TWL),$(ISDBG_LIBS_TWL),libstubsistd_sp$(TWL_LIBSUFFIX).a)' \ -DISDBG_LIBS_NITRO='libstubsisd_sp$(TWL_LIBSUFFIX).a' diff --git a/build/tests/HashCheckTemplate/ARM7/Makefile_ltd_offset b/build/tests/HashCheckTemplate/ARM7/Makefile_ltd_offset new file mode 100644 index 00000000..4cd7d634 --- /dev/null +++ b/build/tests/HashCheckTemplate/ARM7/Makefile_ltd_offset @@ -0,0 +1,83 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: TwlSDK - components - racoon.TWL +# File: Makefile +# +# Copyright 2007 Nintendo. All rights reserved. +# +# These coded instructions, statements, and computer programs contain +# proprietary information of Nintendo of America Inc. and/or Nintendo +# Company Ltd., and are protected by Federal copyright law. They may +# not be disclosed to third parties or copied or duplicated in any form, +# in whole or in part, without the prior written consent of Nintendo. +# +# $Date:: $ +# $Rev$ +# $Author$ +#---------------------------------------------------------------------------- + +override TARGET_PLATFORM = TWL +override TWL_PROC = ARM7 +override TWL_ARCHGEN = LIMITED +TWL_NO_STD_PCHDR = True +TARGET_CODEGEN ?= ALL + +#---------------------------------------------------------------------------- + +SRCDIR += $(ROOT)/build/components/mongoose.TWL/src + +SRCS = main.c initScfg.c + +TARGET_NAME = racoon_hct_offset + +BINDIR = ./bin/$(TWL_BUILDTYPE)/$(TARGET_NAME) + +TARGET_NEF = $(TARGET_NAME).tef +LCFILE_SPEC = racoon_hct.lsf +LCFILE_TEMPLATE = $(ROOT)/build/components/racoon.TWL/racoon.lcf.template +LDRES_TEMPLATE = $(ROOT)/build/components/racoon.TWL/racoon.response.template + +LLIBRARY_DIRS += ../crt/ARM7/obj/ARM7-TS.LTD/$(TWL_BUILD_DIR) +CRT0_O = crt0_hct.LTD.TWL.o + +# ƒXƒ^ƒbƒN•s‘«–hŽ~‚ΜˆΧAƒCƒ“ƒ‰ƒCƒ““WŠJ‚Ή‚Έ‚ΙƒRƒ“ƒpƒCƒ‹‚·‚ι +CCFLAGS_OPT = -O4 -inline off + +#---------------------------------------------------------------------------- +include $(TWLSDK_ROOT)/build/buildtools/commondefs + +#MACRO_FLAGS += -DSDK_ARM7COMP_LTD + +ifeq ($(TWL_PLATFORM),BB) +MAKELCF_FLAGS += -DADDRESS_LTDWRAM='0x037e0000' +else +MAKELCF_FLAGS += -DADDRESS_LTDWRAM='0x037c0000' +endif + +MAKELCF_FLAGS += -DADDRESS_FLXMAIN='0x02390000' + +MAKELCF_FLAGS += -DISDBG_LIBS_TWL='$(if $(ISDBG_LIBS_TWL),$(ISDBG_LIBS_TWL),libstubsistd_sp$(TWL_LIBSUFFIX).a)' \ + -DISDBG_LIBS_NITRO='libstubsisd_sp$(TWL_LIBSUFFIX).a' + + +LINCLUDES = $(ROOT)/build/libraries/spi/ARM7/include +#LLIBRARIES += libwl_sp.TWL.LTD.a libsdio_hcd_twl$(TWL_LIBSUFFIX).a libsdio_busdriver$(TWL_LIBSUFFIX).a libsdio_lib$(TWL_LIBSUFFIX).a libARM7athdrv$(TWL_LIBSUFFIX).a +LLIBRARIES += libwl_sp.TWL.LTD.a +#LLIBRARIES += libwl_sp$(TWL_LIBSUFFIX).a \ +# libcdc_sp$(TWL_LIBSUFFIX).a \ +# libtpex_sp$(TWL_LIBSUFFIX).a \ +# libmicex_sp$(TWL_LIBSUFFIX).a \ +# libsdio_hcd_twl$(TWL_LIBSUFFIX).a \ +# libsdio_busdriver$(TWL_LIBSUFFIX).a \ +# libsdio_lib$(TWL_LIBSUFFIX).a \ +# librompatch_sp$(TWL_LIBSUFFIX).a \ +# libARM7athdrv$(TWL_LIBSUFFIX).a + +LDEPENDS_NEF = $(TWL_LIBS) $(LLIBRARIES) + +do-build: $(TARGETS) + +#---------------------------------------------------------------------------- +include $(TWLSDK_ROOT)/build/buildtools/modulerules + +#===== End of Makefile ===== diff --git a/build/tests/HashCheckTemplate/ARM7/racoon_hct.lsf b/build/tests/HashCheckTemplate/ARM7/racoon_hct.lsf index 7bbc3781..2928fee8 100644 --- a/build/tests/HashCheckTemplate/ARM7/racoon_hct.lsf +++ b/build/tests/HashCheckTemplate/ARM7/racoon_hct.lsf @@ -20,7 +20,7 @@ #-------- Static $(TARGET_NAME) { - Address 0x02380000 + Address $(ADDRESS_FLXMAIN) Library $(CRT0_O) \ libos_sp$(LIBSUFFIX).a \ libsyscall_sp.twl.a \ diff --git a/build/tests/TestMaker/config/romparam_forBoottest.yaml b/build/tests/TestMaker/config/romparam_forBoottest.yaml index b608654bc34ea914a21a65358b65e511c1603e00..223806f36ffbed75cd893f12bddcc3394c7fd7f0 100644 GIT binary patch delta 284 zcmaEp`Ymn4A3kn>1~(uKW^iQ)ncT=OJ~@CjV)6q%84U3T$%M%Uf+8s52bIe)#02#) z#Twc3G0Z$DjZK~SWCJw}dp0u)t1~j1O`d3I&S<D?Tleu;6i0=L*?1<_5DUvW!q4ii(51po@5D6aqj diff --git a/build/tests/TestMaker/script/config.py b/build/tests/TestMaker/script/config.py index b034c324..1c48f359 100644 --- a/build/tests/TestMaker/script/config.py +++ b/build/tests/TestMaker/script/config.py @@ -91,9 +91,8 @@ for num in romparam.keys(): if romparam[num][optkey].has_key('ARM7LTDExpand'): codeparam.write(''.join(['MAKEROM_FLAGS += -DARM7LTD_EXPAND=', hex(romparam[num][optkey]['ARM7LTDExpand']), '\n'])) #----- γƒ’γ‚Έγƒ₯ールγ‚ͺγƒ•γ‚»γƒƒγƒˆ -# if romparam[num].has_key(optkey): -# if romparam[num][optkey].has_key('ARM9FLXOffset'): -# if romparam[num][optkey].has_key('ARM7FLXOffset'): + if romparam[num].has_key(optkey) and romparam[num][optkey].has_key('ARM9FLXAddr'): + codeparam.write(''.join(['ADDRESS_STATIC = ', hex(romparam[num][optkey]['ARM9FLXAddr']), '\n'])) #----- ARCHGEN if romparam[num].has_key(optkey) and romparam[num][optkey].has_key('ArchGen'): codeparam.write(''.join(['override TWL_ARCHGEN = ', romparam[num][optkey].get('ArchGen'), '\n']))