From d4b82d31cfbc9d87d989a67d337d2b019f556f68 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Tue, 5 Jul 2016 20:31:08 -0700 Subject: [PATCH] Add more RSF options. --- 3ds/template.rsf | 10 +++++----- make_base | 8 +++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/3ds/template.rsf b/3ds/template.rsf index e5adf64..789a741 100644 --- a/3ds/template.rsf +++ b/3ds/template.rsf @@ -7,11 +7,11 @@ RomFs: RootPath: $(APP_ROMFS) TitleInfo: - Category : Application + Category : $(APP_CATEGORY) UniqueId : $(APP_UNIQUE_ID) Option: - UseOnSD : true # true if App is to be installed to SD + UseOnSD : $(APP_USE_ON_SD) # true if App is to be installed to SD FreeProductCode : true # Removes limitations on ProductCode MediaFootPadding : false # If true CCI files are created with padding EnableCrypt : $(APP_ENCRYPTED) # Enables encryption for NCCH and CIA @@ -67,7 +67,7 @@ AccessControlInfo: - UseCardSpi # Process Settings - MemoryType : Application # Application/System/Base + MemoryType : $(APP_MEMORY_TYPE) # Application/System/Base SystemMode : $(APP_SYSTEM_MODE) # 64MB(Default)/96MB/80MB/72MB/32MB IdealProcessor : 0 AffinityMask : 1 @@ -86,8 +86,8 @@ AccessControlInfo: # New3DS Exclusive Process Settings SystemModeExt : $(APP_SYSTEM_MODE_EXT) # Legacy(Default)/124MB/178MB Legacy:Use Old3DS SystemMode - CpuSpeed : 804MHz # 268MHz(Default)/804MHz - EnableL2Cache : true # false(default)/true + CpuSpeed : $(APP_CPU_SPEED) # 268MHz(Default)/804MHz + EnableL2Cache : $(APP_ENABLE_L2_CACHE) # false(default)/true CanAccessCore2 : true # Virtual Address Mappings diff --git a/make_base b/make_base index e50f1b7..16e3039 100644 --- a/make_base +++ b/make_base @@ -90,6 +90,12 @@ ifeq ($(TARGET),3DS) REMOTE_IP ?= 127.0.0.1 # User-defined + CATEGORY ?= Application + USE_ON_SD ?= true + MEMORY_TYPE ?= Application + CPU_SPEED ?= 804MHz + ENABLE_L2_CACHE ?= true + AR := $(DEVKITARM)/bin/arm-none-eabi-ar AS := $(DEVKITARM)/bin/arm-none-eabi-as CC := $(DEVKITARM)/bin/arm-none-eabi-gcc @@ -140,7 +146,7 @@ ifeq ($(TARGET),3DS) COMMON_CC_FLAGS += -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -DARM11 -D_3DS _3DSXTOOL_FLAGS := - COMMON_MAKEROM_FLAGS := -rsf $(BUILDTOOLS_DIR)/3ds/template.rsf -target t -exefslogo -icon $(BUILD_DIR)/icon.icn -banner $(BUILD_DIR)/banner.bnr -DAPP_TITLE="$(TITLE)" -DAPP_PRODUCT_CODE="$(PRODUCT_CODE)" -DAPP_UNIQUE_ID="$(UNIQUE_ID)" -DAPP_SYSTEM_MODE="$(SYSTEM_MODE)" -DAPP_SYSTEM_MODE_EXT="$(SYSTEM_MODE_EXT)" + COMMON_MAKEROM_FLAGS := -rsf $(BUILDTOOLS_DIR)/3ds/template.rsf -target t -exefslogo -icon $(BUILD_DIR)/icon.icn -banner $(BUILD_DIR)/banner.bnr -DAPP_TITLE="$(TITLE)" -DAPP_PRODUCT_CODE="$(PRODUCT_CODE)" -DAPP_UNIQUE_ID="$(UNIQUE_ID)" -DAPP_SYSTEM_MODE="$(SYSTEM_MODE)" -DAPP_SYSTEM_MODE_EXT="$(SYSTEM_MODE_EXT)" -DAPP_CATEGORY="$(CATEGORY)" -DAPP_USE_ON_SD="$(USE_ON_SD)" -DAPP_MEMORY_TYPE="$(MEMORY_TYPE)" -DAPP_CPU_SPEED="$(CPU_SPEED)" -DAPP_ENABLE_L2_CACHE="$(ENABLE_L2_CACHE)" ifneq ("$(wildcard $(ROMFS_DIR))","") _3DSXTOOL_FLAGS += --romfs=$(ROMFS_DIR)