#! 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).nand TARGET_FIRM_VERSION_BIN = menu_launcher-$(TWL_BUILD_TYPE)$(CODEGEN_ARCH)-with-version.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.nandsf MY_APPEND = revision.bin LDIRT_CLEAN += $(wildcard *.nand) \ rsa_public.sbin \ include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs #---------------------------------------------------------------------------- do-build: $(TARGET_FIRM_VERSION_BIN) include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules $(TARGET_FIRM_VERSION_BIN): $(TARGET_BIN) $(MY_APPEND) cat $(TARGET_BIN) $(MY_APPEND) > $@ $(MY_APPEND):: @if test -e $(FIRM_ROOT)/.svn; then \ LANG=C svn info $(call empath,$(FIRM_ROOT)) | grep 'Revision' | sed s/[^0-9]//g > $(MY_APPEND); \ else \ date > $(MY_APPEND); \ fi @if test -e $(ROOT)/.svn; then \ LANG=C svn info $(call empath,$(ROOT)) | grep 'Revision' | sed s/[^0-9]//g >> $(MY_APPEND); \ else \ echo "" >> $(MY_APPEND); \ fi #===== End of Makefile =====