mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
・nandfirm-printfを追加
・nandfirmとnorfirmが両方うまくビルドできるようにbuildtoolsなどを調整。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@10 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
7dfc7b280f
commit
9b005c95e6
31
Makefile
Normal file
31
Makefile
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlFirm - build
|
||||||
|
# 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:$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLFIRM_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
SUBDIRS = build
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLFIRM_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
@ -25,6 +25,7 @@ SUBDIRS = \
|
|||||||
tools \
|
tools \
|
||||||
libraries \
|
libraries \
|
||||||
norfirm \
|
norfirm \
|
||||||
|
nandfirm \
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ TWL_KEYSDIR ?= $(FIRM_ROOT)/keys/dummy
|
|||||||
|
|
||||||
|
|
||||||
ifneq ($(filter NORFIRM NANDFIRM GCDFIRM,$(FIRM_TARGET)),)
|
ifneq ($(filter NORFIRM NANDFIRM GCDFIRM,$(FIRM_TARGET)),)
|
||||||
TARGET_BIN ?= $(TARGET_FIRM:.nor=$(DUMMY_KEYS_SUFFIX).nor)
|
TARGET_BIN ?= $(subst .,$(DUMMY_KEYS_SUFFIX).,$(TARGET_FIRM_BIN))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EMPTY ?=
|
EMPTY ?=
|
||||||
|
|||||||
33
build/nandfirm/Makefile
Normal file
33
build/nandfirm/Makefile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlFirm - firmware
|
||||||
|
# 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:$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLFIRM_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
SUBDIRS = \
|
||||||
|
nandfirm-print \
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
include $(TWLFIRM_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
51
build/nandfirm/nandfirm-print/Makefile
Normal file
51
build/nandfirm/nandfirm-print/Makefile
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlFirm - build
|
||||||
|
# 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:$
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
FIRM_TARGET = NORFIRM
|
||||||
|
|
||||||
|
|
||||||
|
include $(TWLFIRM_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
SUBDIRS = ../../norfirm/norfirm-print
|
||||||
|
|
||||||
|
TARGET_FIRM_BIN = nandfirm_print.nand
|
||||||
|
BINDIR = .
|
||||||
|
MAKEFIRM_ARM9 = ../../norfirm/norfirm-print/ARM9/bin/ARM9-$(FIRM_PLATFORM)$(CODEGEN_ARCH)/$(FIRM_BUILD_DIR)/twl_norfirm9_print.axf
|
||||||
|
MAKEFIRM_ARM7 = ../../norfirm/norfirm-print/ARM7/bin/ARM7-$(FIRM_PLATFORM)$(CODEGEN_ARCH)/$(FIRM_BUILD_DIR)/twl_norfirm7_print.axf
|
||||||
|
MAKEFIRM_RSA_PRVKEY = $(TWL_KEYSDIR)/rsa/private_nand.der
|
||||||
|
LDEPENDS_BIN += ../../norfirm/norfirm-print/wram_regs/wram_regs.rbin
|
||||||
|
|
||||||
|
NITRO_MAKEROM = TRUE
|
||||||
|
MAKEFIRM_FLAGS += -p
|
||||||
|
FIRM_SPEC = nandfirm-BB.nandsf
|
||||||
|
|
||||||
|
LDIRT_CLEAN += $(BINDIR)/$(TARGET_BIN) \
|
||||||
|
rsa_public.sbin \
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
do-build: $(TARGET_BIN)
|
||||||
|
|
||||||
|
include $(TWLFIRM_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
22
build/nandfirm/nandfirm-print/nandfirm-BB.nandsf
Normal file
22
build/nandfirm/nandfirm-print/nandfirm-BB.nandsf
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#NANDSF --- Nandfirm Spec File
|
||||||
|
|
||||||
|
VERSION : GENERATE
|
||||||
|
|
||||||
|
RSA_KEY : $(MAKEFIRM_RSA_PRVKEY)
|
||||||
|
OUT_KEY : rsa_public.sbin
|
||||||
|
|
||||||
|
WRAM_RBIN: ../../norfirm/norfirm-print/wram_regs/wram_regs.rbin
|
||||||
|
|
||||||
|
DECOMP_PROC : ARM9 # ARM9 or ARM7
|
||||||
|
|
||||||
|
ARM9_COMP : FALSE # TRUE or FALSE, should be before ARM9_SBIN
|
||||||
|
ARM9_SBIN : $(MAKEFIRM_ARM9).sbin
|
||||||
|
ARM9_ELF : $(MAKEFIRM_ARM9).axf
|
||||||
|
|
||||||
|
ARM7_COMP : FALSE # TRUE or FALSE, should be before ARM7_SBIN
|
||||||
|
ARM7_SBIN : $(MAKEFIRM_ARM7).sbin
|
||||||
|
ARM7_ELF : $(MAKEFIRM_ARM7).axf
|
||||||
|
|
||||||
|
ARM9_X2 : TRUE # TRUE or FALSE
|
||||||
|
|
||||||
|
NCD_ROMOFS : 0x07fe00
|
||||||
@ -26,8 +26,8 @@ include $(TWLFIRM_ROOT)/build/buildtools/commondefs
|
|||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
|
|
||||||
TARGET_FIRM = norfirm_empty.nor
|
TARGET_FIRM_BIN = norfirm_empty.nor
|
||||||
BINDIR = .
|
BINDIR = .
|
||||||
MAKEFIRM_RSA_PRVKEY = $(TWL_KEYSDIR)/rsa/private_nor.der
|
MAKEFIRM_RSA_PRVKEY = $(TWL_KEYSDIR)/rsa/private_nor.der
|
||||||
|
|
||||||
#※TwlSDKにはまだちゃんとcomponentsがないので、NitroSDKのものを使用。
|
#※TwlSDKにはまだちゃんとcomponentsがないので、NitroSDKのものを使用。
|
||||||
|
|||||||
@ -30,7 +30,7 @@ SUBDIRS = \
|
|||||||
ARM9 \
|
ARM9 \
|
||||||
wram_regs \
|
wram_regs \
|
||||||
|
|
||||||
TARGET_FIRM = norfirm_print.nor
|
TARGET_FIRM_BIN = norfirm_print.nor
|
||||||
BINDIR = .
|
BINDIR = .
|
||||||
MAKEFIRM_ARM9 = ARM9/bin/ARM9-$(FIRM_PLATFORM)$(CODEGEN_ARCH)/$(FIRM_BUILD_DIR)/twl_norfirm9_print.axf
|
MAKEFIRM_ARM9 = ARM9/bin/ARM9-$(FIRM_PLATFORM)$(CODEGEN_ARCH)/$(FIRM_BUILD_DIR)/twl_norfirm9_print.axf
|
||||||
MAKEFIRM_ARM7 = ARM7/bin/ARM7-$(FIRM_PLATFORM)$(CODEGEN_ARCH)/$(FIRM_BUILD_DIR)/twl_norfirm7_print.axf
|
MAKEFIRM_ARM7 = ARM7/bin/ARM7-$(FIRM_PLATFORM)$(CODEGEN_ARCH)/$(FIRM_BUILD_DIR)/twl_norfirm7_print.axf
|
||||||
|
|||||||
7
readme.txt
Normal file
7
readme.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ビルドするには NitroSDK4.0 & TwlSDK が必要です。
|
||||||
|
|
||||||
|
下記の環境変数を設定してください。
|
||||||
|
例)TWLFIRM_ROOT=c:/TwlIPL
|
||||||
|
|
||||||
|
※NORファームをARM7専有WRAMへロードすることはできません
|
||||||
|
(ARM9でハッシュをチェックするため)。
|
||||||
Loading…
Reference in New Issue
Block a user