TestMaker

・FLX 配置位置変更した場合の起動テストを作れるようにいろいろ苦肉の策
 ・ARM9FLX の配置アドレスのみ yaml で設定できるよう変更
 ・ARM7FLX の配置アドレス変更は別コンポーネントを作り、差し替える事で対応

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2189 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yoshida_teruhisa 2008-08-19 07:15:10 +00:00
parent 99047678f2
commit 80724b8301
6 changed files with 89 additions and 5 deletions

View File

@ -20,7 +20,7 @@ include $(TWLSDK_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
SUBMAKES = Makefile_ltd Makefile_hyb
SUBMAKES = Makefile_ltd Makefile_hyb Makefile_ltd_offset
#----------------------------------------------------------------------------

View File

@ -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'

View File

@ -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
# スタック不足防止の為、インライン展開せずにコンパイルする
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 =====

View File

@ -20,7 +20,7 @@
#--------
Static $(TARGET_NAME)
{
Address 0x02380000
Address $(ADDRESS_FLXMAIN)
Library $(CRT0_O) \
libos_sp$(LIBSUFFIX).a \
libsyscall_sp.twl.a \

View File

@ -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']))