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