mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
NWDのDSi試遊台向けのNANDファームがビルドできるよう、Makefileと.nandsfファイルを追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2872 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
cefac7b2d1
commit
757f79c3ca
75
build/nandfirm/menu-launcher/Makefile-NWD
Normal file
75
build/nandfirm/menu-launcher/Makefile-NWD
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
#! make -f
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# Project: TwlIPL - nandfirm - menu-launcher
|
||||||
|
# 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 = \
|
||||||
|
wram_regs \
|
||||||
|
ARM7 \
|
||||||
|
ARM9 \
|
||||||
|
|
||||||
|
TARGET_FIRM_BIN = menu_launcher-$(TWL_BUILD_TYPE)$(CODEGEN_ARCH)-$(IPL_REVISION)-$(SDK_REVISION)-NWD.$(FIRM_MODE).nand
|
||||||
|
BINDIR = .
|
||||||
|
MAKEFIRM_ARM9 = ARM9/bin/$(TWL_BUILDTYPE_ARM9)/menu_launcher9.tef
|
||||||
|
MAKEFIRM_ARM7 = ARM7/bin/$(TWL_BUILDTYPE_ARM7)/menu_launcher7.tef
|
||||||
|
MAKEFIRM_RSA_PRVKEY = $(TWL_KEYSDIR)/rsa/private_nand.der
|
||||||
|
LDEPENDS_BIN += wram_regs/wram_regs.rbin
|
||||||
|
|
||||||
|
#MAKEFIRM_FLAGS += -p
|
||||||
|
FIRM_SPEC = nandfirm-NWD.nandsf
|
||||||
|
|
||||||
|
MY_APPEND = revision.bin
|
||||||
|
|
||||||
|
LDIRT_CLEAN += $(wildcard *.nand) \
|
||||||
|
rsa_public.sbin \
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
||||||
|
|
||||||
|
ifeq ($(FIRM_USE_PRODUCT_KEYS),TRUE)
|
||||||
|
FIRM_MODE = prod
|
||||||
|
else
|
||||||
|
FIRM_MODE = dev
|
||||||
|
endif
|
||||||
|
|
||||||
|
IPL_REVISION := $(shell LANG=C svn info $(call empath,$(FIRM_ROOT)) | grep 'Revision' | sed s/[^0-9]//g)
|
||||||
|
SDK_REVISION := $(shell LANG=C svn info $(call empath,$(ROOT)) | grep 'Revision' | sed s/[^0-9]//g)
|
||||||
|
|
||||||
|
ifeq ($(IPL_REVISION),)
|
||||||
|
IPL_REVISION := $(shell date +%Y%m%d)
|
||||||
|
endif
|
||||||
|
ifeq ($(SDK_REVISION),)
|
||||||
|
SDK_REVISION := $(shell date +%H%M%S)
|
||||||
|
endif
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
do-build: $(TARGET_BIN) $(MY_APPEND)
|
||||||
|
cat $(MY_APPEND) >> $(TARGET_BIN)
|
||||||
|
|
||||||
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||||||
|
|
||||||
|
$(MY_APPEND)::
|
||||||
|
echo $(IPL_REVISION) > $(MY_APPEND)
|
||||||
|
echo $(SDK_REVISION) >> $(MY_APPEND)
|
||||||
|
|
||||||
|
test::
|
||||||
|
echo IPL_REVISION=$(IPL_REVISION)
|
||||||
|
|
||||||
|
|
||||||
|
#===== End of Makefile =====
|
||||||
24
build/nandfirm/menu-launcher/nandfirm-NWD.nandsf
Normal file
24
build/nandfirm/menu-launcher/nandfirm-NWD.nandsf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#NANDSF --- Nandfirm Spec File
|
||||||
|
|
||||||
|
VERSION : 0xFFFF010000002019 # GENERATE
|
||||||
|
|
||||||
|
RSA_KEY : $(MAKEFIRM_RSA_PRVKEY)
|
||||||
|
OUT_KEY : rsa_public.sbin
|
||||||
|
|
||||||
|
WRAM_RBIN: ./wram_regs/wram_regs.rbin
|
||||||
|
|
||||||
|
MIRROR_OFS: 0x80000
|
||||||
|
|
||||||
|
DECOMP_PROC : ARM9 # ARM9 or ARM7
|
||||||
|
|
||||||
|
ARM9_COMP : FALSE # TRUE or FALSE, should be before ARM9_SBIN
|
||||||
|
ARM9_SBIN : $(MAKEFIRM_ARM9).TWL.FLX.sbin
|
||||||
|
ARM9_ELF : $(MAKEFIRM_ARM9).tef
|
||||||
|
|
||||||
|
ARM7_COMP : FALSE # TRUE or FALSE, should be before ARM7_SBIN
|
||||||
|
ARM7_SBIN : $(MAKEFIRM_ARM7).TWL.FLX.sbin
|
||||||
|
ARM7_ELF : $(MAKEFIRM_ARM7).tef
|
||||||
|
|
||||||
|
ARM9_X2 : TRUE # TRUE or FALSE
|
||||||
|
|
||||||
|
NCD_ROMOFS : 0x1fe00
|
||||||
Loading…
Reference in New Issue
Block a user