From 757f79c3ca54e55c2c6112e4a9c06b563dcb041e Mon Sep 17 00:00:00 2001 From: yosiokat Date: Wed, 15 Jul 2009 04:43:55 +0000 Subject: [PATCH] =?UTF-8?q?NWD=E3=81=AEDSi=E8=A9=A6=E9=81=8A=E5=8F=B0?= =?UTF-8?q?=E5=90=91=E3=81=91=E3=81=AENAND=E3=83=95=E3=82=A1=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=81=8C=E3=83=93=E3=83=AB=E3=83=89=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=80=81Makefile=E3=81=A8.nandsf?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2872 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/nandfirm/menu-launcher/Makefile-NWD | 75 +++++++++++++++++++ .../menu-launcher/nandfirm-NWD.nandsf | 24 ++++++ 2 files changed, 99 insertions(+) create mode 100644 build/nandfirm/menu-launcher/Makefile-NWD create mode 100644 build/nandfirm/menu-launcher/nandfirm-NWD.nandsf diff --git a/build/nandfirm/menu-launcher/Makefile-NWD b/build/nandfirm/menu-launcher/Makefile-NWD new file mode 100644 index 00000000..7353dee9 --- /dev/null +++ b/build/nandfirm/menu-launcher/Makefile-NWD @@ -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 ===== diff --git a/build/nandfirm/menu-launcher/nandfirm-NWD.nandsf b/build/nandfirm/menu-launcher/nandfirm-NWD.nandsf new file mode 100644 index 00000000..0d3178bf --- /dev/null +++ b/build/nandfirm/menu-launcher/nandfirm-NWD.nandsf @@ -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