TestMakerとパーミッションチェックプログラム更新

自動生成される.paramでMAKEROM指定している部分をoverride 定義にして、Makefileで.paramファイルを読み込む位置をcommondefsの前に変更
 OptionでUseFinalHeaderを定義しておくと、RomHeader以下のヘッダからゲームコードの合うものを使うように変更
 FS_RESULT_ERRORが返ってきているので、一時的に戻す


git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2129 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yoshida_teruhisa 2008-08-08 08:15:26 +00:00
parent 487a7ed4fd
commit 5073e9fbd5
35 changed files with 14 additions and 5 deletions

BIN
RomHeader/0F0A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F1A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F2A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F3A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F4A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F5A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F6A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F7A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F8A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0F9A/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0FAA/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0FBA/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0FCA/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0FDA/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

BIN
RomHeader/0FEA/libsyscall.a Normal file

Binary file not shown.

Binary file not shown.

View File

@ -20,7 +20,7 @@ include $(TWLSDK_ROOT)/build/buildtools/commondefs
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = RelocateChecker
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------

View File

@ -261,7 +261,7 @@ static AccessPermission RWTestCore( char *path, char *testfile )
FSResult fs_result = FS_GetArchiveResultCode( filename ); FSResult fs_result = FS_GetArchiveResultCode( filename );
if( !s_quiettest ) OS_TPrintf("%s:cleate failed.\n",filename); if( !s_quiettest ) OS_TPrintf("%s:cleate failed.\n",filename);
OS_TPrintf( "FS_GetArchiveResultCode(%s) : %d\n", filename, fs_result ); OS_TPrintf( "FS_GetArchiveResultCode(%s) : %d\n", filename, fs_result );
if( FS_RESULT_NO_ENTRY == fs_result ) if( FS_RESULT_ERROR == fs_result )
{ {
// ファイル作成にNO_ENTRY存在しないディレクトリの下にファイルを作ろうとしたかマウントされていない // ファイル作成にNO_ENTRY存在しないディレクトリの下にファイルを作ろうとしたかマウントされていない
// どちらにせよアクセスできないし、ディレクトリの存在を確認する事もできないので、パーミッションNAとして扱う // どちらにせよアクセスできないし、ディレクトリの存在を確認する事もできないので、パーミッションNAとして扱う

View File

@ -209,13 +209,14 @@ ROM_SPEC = twl_$(GAMECODE).rsf
INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN)
include $(GAMECODE).param
ifeq ($(USE_IPL_RED_LIB),TRUE) ifeq ($(USE_IPL_RED_LIB),TRUE)
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
else else
include $(TWLSDK_ROOT)/build/buildtools/commondefs include $(TWLSDK_ROOT)/build/buildtools/commondefs
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
endif endif
include $(GAMECODE).param
# boottestの時だけARM7コンポーネントの指定 # boottestの時だけARM7コンポーネントの指定
# このあたりの指定が苦肉すぎるので妙案募集中 # このあたりの指定が苦肉すぎるので妙案募集中

View File

@ -54,9 +54,9 @@ for num in romparam.keys():
if romparam[num][rsfkey].get('AppType') == 'SYSTEM': if romparam[num][rsfkey].get('AppType') == 'SYSTEM':
#----- MAKEROM の指定 #----- MAKEROM の指定
if romparam[num][rsfkey]['Secure']: if romparam[num][rsfkey]['Secure']:
codeparam.write('MAKEROM := $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe\n') codeparam.write('override MAKEROM = $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe\n')
else: else:
codeparam.write('MAKEROM := $(TWL_TOOLSDIR)/bin/makerom.TWL.sys.exe\n') codeparam.write('override MAKEROM = $(TWL_TOOLSDIR)/bin/makerom.TWL.sys.exe\n')
codeparam.write('MAKETAD_OPTION += -s\n') codeparam.write('MAKETAD_OPTION += -s\n')
romspectemplate = '$(ROOT)/include/twl/specfiles/ROM-TS_sys.rsf' romspectemplate = '$(ROOT)/include/twl/specfiles/ROM-TS_sys.rsf'
else: else:
@ -69,6 +69,11 @@ for num in romparam.keys():
romspectemplate = romparam[num][optkey].get('RomSpecTemplate') romspectemplate = romparam[num][optkey].get('RomSpecTemplate')
codeparam.write(''.join(['ROM_SPEC_TEMPLATE = ',romspectemplate,'\n'])) codeparam.write(''.join(['ROM_SPEC_TEMPLATE = ',romspectemplate,'\n']))
#----- ROM_HEADER_TEMPLATEおよびLIBSYSCALLの指定
if romparam[num].has_key(optkey) and romparam[num][optkey].has_key('UseFinalHeader'):
codeparam.write(''.join(['ROM_HEADER_TEMPLATE = $(SYSMENU_ROM_HEADER_DIR)',gamecode,'/rom_header_$(call toLower,',gamecode,').template.sbin\n']))
codeparam.write(''.join(['LIBSYSCALL = $(SYSMENU_ROM_HEADER_DIR)',gamecode,'/libsyscall.a\n']))
#----- ROM_SPEC_OPTIONS key の抽出 #----- ROM_SPEC_OPTIONS key の抽出
if romparam[num][rsfkey].get('AppType') == 'SYSTEM': if romparam[num][rsfkey].get('AppType') == 'SYSTEM':
keys = [key for key in romparam[num][rsfkey].keys() if key != 'TitleType' and key != 'eTicket' ] keys = [key for key in romparam[num][rsfkey].keys() if key != 'TitleType' and key != 'eTicket' ]
@ -104,6 +109,9 @@ for num in romparam.keys():
#----- Rating 関連 ROM_SPEC_OPTIONS #----- Rating 関連 ROM_SPEC_OPTIONS
if romparam[num].has_key(ratingkey): if romparam[num].has_key(ratingkey):
rsf_opt.append('%s=%s '%(romparam[num][ratingkey]['Ogn'],str(romparam[num][ratingkey]['Age']))) rsf_opt.append('%s=%s '%(romparam[num][ratingkey]['Ogn'],str(romparam[num][ratingkey]['Age'])))
#----- RomHeaderTemplateの指定
if romparam[num].has_key(optkey) and romparam[num][optkey].has_key('UseFinalHeader'):
rsf_opt.append('RomHeaderTemplate=$(call empath,$(ROM_HEADER_TEMPLATE)) ')
#----- ROM_SPEC_OPTIONS の指定 #----- ROM_SPEC_OPTIONS の指定
rsf_opt_str = ''.join(rsf_opt) rsf_opt_str = ''.join(rsf_opt)
codeparam.write('ROM_SPEC_PARAM = %s\n' % rsf_opt_str) codeparam.write('ROM_SPEC_PARAM = %s\n' % rsf_opt_str)