diff --git a/build/tests/ErrorLogTest/ARM9/Makefile b/build/tests/ErrorLogTest/ARM9/Makefile index 9cf61266..4144a38b 100644 --- a/build/tests/ErrorLogTest/ARM9/Makefile +++ b/build/tests/ErrorLogTest/ARM9/Makefile @@ -1,6 +1,6 @@ #! make -f #---------------------------------------------------------------------------- -# Project: TwlSDK - tests - ErrorLogTest +# Project: TwlSDK - demos - simpleShoot-1 # File: Makefile # # Copyright 2007 Nintendo. All rights reserved. @@ -11,36 +11,22 @@ # 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:: $ +# $Date:: $ # $Rev$ # $Author$ #---------------------------------------------------------------------------- -SUBDIRS = $(TWL_IPL_RED_ROOT)/build/libraries_sysmenu/errorLog -TARGET_FIRM = SYSTEMMENU -TARGET_PLATFORM = TWL -TWL_ARCHGEN = LIMITED +SUBDIRS = +SUBMAKES = Makefile.0 Makefile.1 + +include $(TWL_IPL_RED_ROOT)/build/tests/RelocateChecker/buildtools/commondefs #---------------------------------------------------------------------------- -TARGET_BIN = main.srl +do-build : $(TARGETS) -MISC_DIR = ../../../systemMenu_RED/misc -LINCLUDES += $(MISC_DIR)/include - -SRCS = ErrorLogTest.c $(MISC_DIR)/src/misc.c $(MISC_DIR)/src/cmn.c - -LLIBRARIES += liberrorlog$(TWL_LIBSUFFIX).a - -ROM_SPEC = main.rsf - -include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs -MAKEROM = $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe +include $(TWL_IPL_RED_ROOT)/build/tests/RelocateChecker/buildtools/modulerules #---------------------------------------------------------------------------- -do-build: $(TARGETS) - -include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules - #===== End of Makefile ===== diff --git a/build/tests/ErrorLogTest/ARM9/Makefile.0 b/build/tests/ErrorLogTest/ARM9/Makefile.0 new file mode 100644 index 00000000..3ebe7c11 --- /dev/null +++ b/build/tests/ErrorLogTest/ARM9/Makefile.0 @@ -0,0 +1,56 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: TwlSDK - tests - ErrorLogTest +# 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$ +#---------------------------------------------------------------------------- +SUBDIRS = $(TWL_IPL_RED_ROOT)/build/libraries_sysmenu/errorLog + +GAMECODE = 0B5A +MEDIA = gamecard +TARGET_BIN = main.srl + +TARGET_FIRM = SYSTEMMENU +TARGET_PLATFORM = TWL +TWL_ARCHGEN = LIMITED +TWL_NANDAPP = TRUE +BINDIR = ./bin/$(TWL_BUILDTYPE)/$(MEDIA) + +#---------------------------------------------------------------------------- + + + +MISC_DIR = ../../../systemMenu_RED/misc +LINCLUDES += $(MISC_DIR)/include + +SRCS = ErrorLogTest.c $(MISC_DIR)/src/misc.c $(MISC_DIR)/src/cmn.c + +LLIBRARIES += liberrorlog$(TWL_LIBSUFFIX).a + +ROM_SPEC = main.rsf +MAKETAD_OPTION += -s + +include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs +MAKEROM = $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe + +MAKEROM_FLAGS += -DERRLOGTEST_GAMECODE=$(GAMECODE) \ + -DERRLOGTEST_MEDIA=$(MEDIA) + +#---------------------------------------------------------------------------- + +do-build: $(TARGETS) + +include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules + +#===== End of Makefile ===== diff --git a/build/tests/ErrorLogTest/ARM9/Makefile.1 b/build/tests/ErrorLogTest/ARM9/Makefile.1 new file mode 100644 index 00000000..5f502fdb --- /dev/null +++ b/build/tests/ErrorLogTest/ARM9/Makefile.1 @@ -0,0 +1,55 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: TwlSDK - tests - ErrorLogTest +# 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$ +#---------------------------------------------------------------------------- +SUBDIRS = $(TWL_IPL_RED_ROOT)/build/libraries_sysmenu/errorLog + +GAMECODE = 013A +MEDIA = NAND +TARGET_BIN = main.tad + +TARGET_FIRM = SYSTEMMENU +TARGET_PLATFORM = TWL +TWL_ARCHGEN = LIMITED +TWL_NANDAPP = TRUE +BINDIR = ./bin/$(TWL_BUILDTYPE)/$(MEDIA) +#---------------------------------------------------------------------------- + + + +MISC_DIR = ../../../systemMenu_RED/misc +LINCLUDES += $(MISC_DIR)/include + +SRCS = ErrorLogTest.c $(MISC_DIR)/src/misc.c $(MISC_DIR)/src/cmn.c + +LLIBRARIES += liberrorlog$(TWL_LIBSUFFIX).a + +ROM_SPEC = main.rsf +MAKETAD_OPTION += -s + +include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs +MAKEROM = $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe + +MAKEROM_FLAGS += -DERRLOGTEST_GAMECODE=$(GAMECODE) \ + -DERRLOGTEST_MEDIA=$(MEDIA) + +#---------------------------------------------------------------------------- + +do-build: $(TARGETS) + +include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules + +#===== End of Makefile ===== diff --git a/build/tests/ErrorLogTest/ARM9/main.rsf b/build/tests/ErrorLogTest/ARM9/main.rsf index 4b489540..8ba5e5dd 100644 --- a/build/tests/ErrorLogTest/ARM9/main.rsf +++ b/build/tests/ErrorLogTest/ARM9/main.rsf @@ -94,8 +94,8 @@ Property # # BANNER FILE: generated from Banner Spec File # - #BannerFile ./etc/myGameBanner.bnr - BannerFile $(TWLSDK_ROOT)/include/twl/specfiles/default.bnr + BannerFile ../banner/banner.bnr + # # Permit LandingNormalJump: for TWL "ApplicationJump" function [TRUE/FALSE] @@ -184,12 +184,12 @@ AppendProperty # # Boot allowed Media: [GameCard] # - Media NAND + Media $(ERRLOGTEST_MEDIA) # # GameCode for TitleID : Your GameCode in 4 ascii words # - #GameCode ABCJ + GameCode $(ERRLOGTEST_GAMECODE) # # Public save data size: [0K/16K/32K/64K/128K/256K/512K/1M/2M/4M] diff --git a/build/tests/ErrorLogTest/about.txt b/build/tests/ErrorLogTest/about.txt new file mode 100644 index 00000000..3db3ff88 --- /dev/null +++ b/build/tests/ErrorLogTest/about.txt @@ -0,0 +1,10 @@ +ErrorLogTest + +ランチャに組み込まれたErrorLogライブラリのテスト用アプリです。 +実行されるとERRORLOG_Write()を呼び出し、エラーログの書き込みを行ってから +コンソールに現在のログエントリ数やその中身を出力して終了します。 +毎回ログ書き込みを行うため、実行するたびにログエントリの総数は増加しますが、 +ログファイルが16KB固定で作成されているため、古いログは順次削除されていきます。 + +また、直接Write関数を呼んでいるため、FatalErrorを実際に発生させずに +エラーログの生成や書き込みをしたいときに利用することも可能です。 diff --git a/build/tests/ErrorLogTest/banner/icon/gameIcon.bmp b/build/tests/ErrorLogTest/banner/icon/gameIcon.bmp index 8ec56f1c..af71c8e5 100644 Binary files a/build/tests/ErrorLogTest/banner/icon/gameIcon.bmp and b/build/tests/ErrorLogTest/banner/icon/gameIcon.bmp differ