git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2088 b08762b0-b915-fc4b-9d8c-17b2551a87ff

This commit is contained in:
aoki_ryoma 2008-08-04 09:42:20 +00:00
parent ac2127b101
commit e34fed626b
6 changed files with 133 additions and 26 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,10 @@
ErrorLogTest
ランチャに組み込まれたErrorLogライブラリのテスト用アプリです。
実行されるとERRORLOG_Write()を呼び出し、エラーログの書き込みを行ってから
コンソールに現在のログエントリ数やその中身を出力して終了します。
毎回ログ書き込みを行うため、実行するたびにログエントリの総数は増加しますが、
ログファイルが16KB固定で作成されているため、古いログは順次削除されていきます。
また、直接Write関数を呼んでいるため、FatalErrorを実際に発生させずに
エラーログの生成や書き込みをしたいときに利用することも可能です。

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 B

After

Width:  |  Height:  |  Size: 630 B