mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
マスタリング用スクリプトの追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1404 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
b2ab67ad64
commit
f2251dc90c
157
build/systemMenu_mastering/Makefile
Normal file
157
build/systemMenu_mastering/Makefile
Normal file
@ -0,0 +1,157 @@
|
||||
#! make -f
|
||||
#----------------------------------------------------------------------------
|
||||
# Project: TwlIPL
|
||||
# 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:
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
#DO_MASTERING = TRUE
|
||||
|
||||
TARGET_FIRM = SYSTEMMENU
|
||||
|
||||
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
||||
|
||||
ifeq ($(TWL_IPL_RED_PRIVATE_ROOT),)
|
||||
override DO_MASTERING =
|
||||
endif
|
||||
|
||||
ifeq ($(DO_MASTERING),TRUE)
|
||||
OUT_DIR = prod
|
||||
MASTER = .master
|
||||
MAKETAD_OPTION += -p
|
||||
else
|
||||
OUT_DIR = dev
|
||||
MASTER =
|
||||
endif
|
||||
|
||||
NAND_INITIALIZER_NAME = NandInitializerProduction
|
||||
SYSMENU_DIR = ../systemMenu_RED
|
||||
SRL_DIR = srl
|
||||
NEWDIRS += $(OUT_DIR)/$(SRL_DIR)
|
||||
|
||||
TARGETS = $(OUT_DIR)/HNAA \
|
||||
$(OUT_DIR)/HNBA \
|
||||
$(OUT_DIR)/HNCA \
|
||||
$(OUT_DIR)/HNHA \
|
||||
$(OUT_DIR)/TWLFontTable.dat \
|
||||
$(OUT_DIR)/menu_launcher-$(TWL_BUILD_TYPE).nand \
|
||||
$(OUT_DIR)/$(NAND_INITIALIZER_NAME)-$(TWL_BUILD_TYPE)$(MASTER).srl
|
||||
|
||||
MAKEROM_FLAGS += -p
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
LDIRT_CLEAN = $(TARGETS) \
|
||||
$(OUT_DIR)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||||
|
||||
do-build : $(TARGETS)
|
||||
|
||||
MASTERING = $(SYSMENU_TOOLSDIR)/bin/mastering.TWL.exe
|
||||
|
||||
|
||||
#---------------------------
|
||||
#ランチャー
|
||||
#---------------------------
|
||||
$(OUT_DIR)/HNAA : $(SYSMENU_DIR)/Launcher/ARM9/bin/ARM9-TS.LTD/$(TWL_BUILD_DIR)/HNAA.srl
|
||||
ifneq ($(DO_MASTERING),)
|
||||
$(MASTERING) $< $(OUT_DIR)/$(SRL_DIR)/$(notdir $<)
|
||||
else
|
||||
cp $< $(OUT_DIR)/$(SRL_DIR)
|
||||
endif
|
||||
ifeq ($(DO_MASTERING),TRUE)
|
||||
$(SYSMENU_TOOLSDIR)/bin/makeTitleIdDir.plx $< $(OUT_DIR) | \
|
||||
xargs -iarg $(MAKETAD) -s $(OUT_DIR)/$(SRL_DIR)/$(notdir $<) $(MAKETAD_FLAGS) -o arg/$(notdir $(basename $<))-$(TWL_BUILD_TYPE)$(MASTER).tad $(MAKETAD_OPTION)
|
||||
ls $@ | xargs -iarg mv $@/arg/properties $@
|
||||
else
|
||||
$(MAKETAD) -s $(OUT_DIR)/$(SRL_DIR)/$(notdir $<) $(MAKETAD_FLAGS) -o $(OUT_DIR)/$(notdir $(basename $<))-$(TWL_BUILD_TYPE)$(MASTER).tad $(MAKETAD_OPTION)
|
||||
endif
|
||||
|
||||
|
||||
#---------------------------
|
||||
#本体設定
|
||||
#---------------------------
|
||||
$(OUT_DIR)/HNBA : $(SYSMENU_DIR)/MachineSettings/ARM9/bin/ARM9-TS.LTD/$(TWL_BUILD_DIR)/HNBA.srl
|
||||
ifneq ($(DO_MASTERING),)
|
||||
$(MASTERING) $< $(OUT_DIR)/$(SRL_DIR)/$(notdir $<)
|
||||
else
|
||||
cp $< $(OUT_DIR)/$(SRL_DIR)
|
||||
endif
|
||||
ifeq ($(DO_MASTERING),TRUE)
|
||||
$(SYSMENU_TOOLSDIR)/bin/makeTitleIdDir.plx $< $(OUT_DIR) | \
|
||||
xargs -iarg $(MAKETAD) -s $(OUT_DIR)/$(SRL_DIR)/$(notdir $<) $(MAKETAD_FLAGS) -o arg/$(notdir $(basename $<))-$(TWL_BUILD_TYPE)$(MASTER).tad $(MAKETAD_OPTION)
|
||||
ls $@ | xargs -iarg mv $@/arg/properties $@
|
||||
else
|
||||
$(MAKETAD) -s $(OUT_DIR)/$(SRL_DIR)/$(notdir $<) $(MAKETAD_FLAGS) -o $(OUT_DIR)/$(notdir $(basename $<))-$(TWL_BUILD_TYPE)$(MASTER).tad $(MAKETAD_OPTION)
|
||||
endif
|
||||
|
||||
|
||||
#---------------------------
|
||||
#無線ファーム
|
||||
#---------------------------
|
||||
# [TODO] 無線ファームからバージョンを取得して、バージョン番号でディレクトリを作成する。
|
||||
$(OUT_DIR)/HNCA : $(SYSMENU_DIR)/wlanfirm/HNCA.tad
|
||||
ifeq ($(DO_MASTERING),TRUE)
|
||||
mkdir -p $(OUT_DIR)/$(notdir $(basename $<))
|
||||
mkdir -p $(OUT_DIR)/$(notdir $(basename $<))/V0
|
||||
cp $< ./$@/V0/
|
||||
cp $(dir $<)/properties ./$@
|
||||
else
|
||||
cp $< $(OUT_DIR)
|
||||
endif
|
||||
|
||||
#---------------------------
|
||||
#ホワイトリスト
|
||||
#---------------------------
|
||||
# [TODO] TADからバージョンを取得して、バージョン番号でディレクトリを作成する。
|
||||
$(OUT_DIR)/HNHA : $(SYSMENU_DIR)/DSHashTable/HNHA.tad
|
||||
ifeq ($(DO_MASTERING),TRUE)
|
||||
mkdir -p $(OUT_DIR)/$(notdir $(basename $<))
|
||||
mkdir -p $(OUT_DIR)/$(notdir $(basename $<))/V0
|
||||
cp $< ./$@/V0/
|
||||
cp $(dir $<)/properties ./$@
|
||||
else
|
||||
cp $< $(OUT_DIR)
|
||||
endif
|
||||
|
||||
|
||||
#---------------------------
|
||||
#共有フォント
|
||||
#---------------------------
|
||||
$(OUT_DIR)/TWLFontTable.dat: $(SYSMENU_DIR)/sharedFont/TWLFontTable.dat
|
||||
cp $< ./$@
|
||||
|
||||
|
||||
#---------------------------
|
||||
#NANDファーム
|
||||
#---------------------------
|
||||
$(OUT_DIR)/menu_launcher-$(TWL_BUILD_TYPE).nand: ../nandfirm/menu-launcher/menu_launcher-$(TWL_BUILD_TYPE)$(CODEGEN_ARCH).nand
|
||||
cp $< ./$@
|
||||
|
||||
|
||||
#---------------------------
|
||||
#NandInitializerProduction
|
||||
#---------------------------
|
||||
$(OUT_DIR)/$(NAND_INITIALIZER_NAME)-$(TWL_BUILD_TYPE)$(MASTER).srl: ../systemMenu_tools/$(NAND_INITIALIZER_NAME)/ARM9.TWL/bin/ARM9-TS.LTD/$(TWL_BUILD_DIR)/$(NAND_INITIALIZER_NAME).srl
|
||||
ifneq ($(DO_MASTERING),)
|
||||
$(MASTERING) $< $@
|
||||
else
|
||||
cp $< $@
|
||||
endif
|
||||
|
||||
|
||||
#===== End of Makefile =====
|
||||
Loading…
Reference in New Issue
Block a user