mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
hwi.c関連はcryptoライブラリをリンクしないように修正 (TWLHWInfo.cでcryptoの方を使うようにすべき) git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@976 b08762b0-b915-fc4b-9d8c-17b2551a87ff
119 lines
3.7 KiB
Makefile
119 lines
3.7 KiB
Makefile
#! make -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: TwlIPL - systemMenu_RED - NandInitializer
|
|
# 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 =
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#============================================================================
|
|
#現時点で製品鍵を使った書き込みが行えてはダメなので、デフォルトOFFにしておいてください。
|
|
#USE_PRODUCT_KEY = TRUE
|
|
#============================================================================
|
|
#============================================================================
|
|
# NandInitializerと同様の動作をしますが自動フォーマットが強制的に実行され停止します。
|
|
MACRO_FLAGS += -DAUTO_FORMAT_MODE
|
|
#============================================================================
|
|
|
|
TARGET_FIRM = SYSTEMMENU
|
|
TARGET_PLATFORM = TWL
|
|
TWL_ARCHGEN = LIMITED
|
|
|
|
#TWL_CODEGEN = THUMB
|
|
|
|
TITLEID_LO = NINA
|
|
TARGET_TAD = $(BINDIR)/$(TITLEID_LO).$(TWL_BUILD_DIR)$(CODEGEN_ARCH).tad
|
|
|
|
TARGET_BIN = NandInitializerAuto.srl
|
|
LCFILE_SPEC = ../../NandInitializer/ARM9.TWL/ARM9-TS.lsf
|
|
ROM_SPEC = ../../NandInitializer/ARM9.TWL/main.rsf
|
|
|
|
MAKEROM_ARM7_BASE = ../ARM7.TWL/bin/$(TWL_BUILDTYPE_ARM7)/main
|
|
MAKEROM_ARM7 = $(MAKEROM_ARM7_BASE).$(TWL_ELF_EXT)
|
|
|
|
SRCS = main.c \
|
|
kami_pxi.c \
|
|
font_data.c \
|
|
graphics.c \
|
|
keypad.c \
|
|
kami_font.c \
|
|
cursor.c \
|
|
process_format.c \
|
|
process_topmenu.c \
|
|
process_hw_info.c \
|
|
process_eticket.c \
|
|
process_import.c \
|
|
process_nandfirm.c \
|
|
process_norfirm.c \
|
|
process_auto.c \
|
|
process_fade.c \
|
|
sd_event.c \
|
|
hwi.c
|
|
|
|
LINCLUDES = ../../NandInitializer/common/include \
|
|
../../NandInitializer/ARM9.TWL/include \
|
|
$(ROOT)/build/libraries/lcfg/ARM9.TWL/include \
|
|
../../misc/include
|
|
|
|
SRCDIR = ../../NandInitializer/ARM9.TWL/src \
|
|
../../HWInfoWriter/ARM9/src
|
|
|
|
#LCFILE = # using default
|
|
|
|
|
|
ifneq ($(TWL_IPL_RED_PRIVATE_ROOT),)
|
|
ifdef USE_PRODUCT_KEY
|
|
MACRO_FLAGS += -DUSE_PRODUCT_KEY
|
|
MAKEROM_FLAGS += -DHWINFO_PRIVKEY='private_HWInfo.der'
|
|
else
|
|
MAKEROM_FLAGS += -DHWINFO_PRIVKEY='private_HWInfo_dev.der'
|
|
endif
|
|
endif
|
|
|
|
MAKEROM_FLAGS += -DTITLEID_LO='$(TITLEID_LO)' \
|
|
-DPRIVKEY_PATH='$(TWL_KEYSDIR)/rsa'
|
|
MAKETAD_FLAGS += -s
|
|
|
|
LLIBRARIES += libes$(TWL_LIBSUFFIX).a \
|
|
libboc$(TWL_LIBSUFFIX).a \
|
|
libnam$(TWL_LIBSUFFIX).a \
|
|
libsea$(TWL_LIBSUFFIX).a \
|
|
libacsign$(TWL_LIBSUFFIX).a \
|
|
libacsign_enc$(TWL_LIBSUFFIX).a \
|
|
libnamut$(TWL_LIBSUFFIX).a
|
|
|
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
|
|
|
|
MAKEROM = $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe
|
|
|
|
GLIBRARIES := $(filter-out libcrypto$(TWL_LIBSUFFIX).a,$(GLIBRARIES))
|
|
|
|
LDIRT_CLEAN = $(TARGET_TAD)
|
|
#INSTALL_TARGETS = $(TARGET_TAD)
|
|
#INSTALL_DIR = $(SDK_NMENU_DATADIR)
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
do-build: $(TARGETS)
|
|
|
|
#include $(TWLSDK_ROOT)/build/buildtools/modulerules
|
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
|
|
|
#===== End of Makefile =====
|