mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
(nandfirmなどのファーム系はARM9もARMのまま) ・ビルドオプションの整理。問題がないところは、基本TARGET_CODEGENを使用するよう変更。 ・NitroSystemをLTD,HYB両方でARM,THUMBビルドするよう変更。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2167 b08762b0-b915-fc4b-9d8c-17b2551a87ff
81 lines
2.5 KiB
Makefile
81 lines
2.5 KiB
Makefile
#! make -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: TwlIPL
|
|
# 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$
|
|
#----------------------------------------------------------------------------
|
|
|
|
TARGET_FIRM = SYSTEMMENU
|
|
override TARGET_PLATFORM = TWL
|
|
override TWL_PROC = ARM7
|
|
override TWL_ARCHGEN = LIMITED
|
|
TWL_NO_STD_PCHDR = True
|
|
TARGET_CODEGEN ?= ARM
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
SRCS = main.c
|
|
|
|
TARGET_NAME = hyena_rc3
|
|
BINDIR = ./bin/$(TWL_BUILDTYPE)/$(TARGET_NAME)
|
|
|
|
TARGET_NEF = $(TARGET_NAME).tef
|
|
LCFILE_SPEC = hyena_rc.lsf
|
|
LCFILE_TEMPLATE = $(TARGET_NAME).lcf.template
|
|
LDRES_TEMPLATE = $(ROOT)/build/components/racoon.TWL/racoon.response.template
|
|
|
|
LLIBRARY_DIRS += ../crt/ARM7/obj/ARM7-TS.LTD/$(TWL_BUILD_DIR)
|
|
|
|
CRT0_O = crt0_rc.LTD.TWL.o
|
|
|
|
TARGET_FOB += ARM7FLX.fob
|
|
FBDSIZE_ARM7FLX = 4
|
|
TARGET_FOB += ARM7LTD.fob
|
|
FBDSIZE_ARM7LTD = 4
|
|
|
|
#----------------------------------------------------------------------------
|
|
include $(TWL_IPL_RED_ROOT)/build/tests/RelocateChecker/buildtools/commondefs
|
|
include $(TWLSDK_ROOT)/build/libraries/reboot/commondefs.reboot
|
|
|
|
ifdef TWLSDK_NOCRYPTO
|
|
CCFLAGS += -DSDK_NOCRYPTO
|
|
endif
|
|
|
|
ifndef TWLSDK_NOCRYPTO
|
|
MAKELCF_FLAGS += -DUSE_CRYPTO_LIBS='libaes_sp$(TWL_LIBSUFFIX).a'
|
|
endif
|
|
|
|
#MACRO_FLAGS += -DSDK_ARM7COMP_LTD
|
|
|
|
MAKELCF_FLAGS += -DADDRESS_LTDWRAM='0x037c0000' \
|
|
-DADDRESS_FLXMAIN='0x023c0000' \
|
|
-DADDRESS_BOOTCORE='0x0380f000' \
|
|
-DCRT0_O='$(CRT0_O)'
|
|
|
|
MAKELCF_FLAGS += -DISDBG_LIBS_TWL='$(if $(ISDBG_LIBS_TWL),$(ISDBG_LIBS_TWL),libstubsistd_sp$(TWL_LIBSUFFIX).a)' \
|
|
-DISDBG_LIBS_NITRO='libstubsisd_sp$(TWL_LIBSUFFIX).a'
|
|
|
|
|
|
LINCLUDES = $(ROOT)/build/libraries/spi/ARM7/include
|
|
LLIBRARIES += libwl_sp.TWL.LTD.a
|
|
LDEPENDS_NEF = $(TWL_LIBS) $(LLIBRARIES)
|
|
|
|
do-build: $(TARGETS)
|
|
|
|
#----------------------------------------------------------------------------
|
|
include $(TWL_IPL_RED_ROOT)/build/tests/RelocateChecker/buildtools/modulerules
|
|
#include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
|
|
|
#===== End of Makefile =====
|