Add more RSF options.

This commit is contained in:
Steven Smith 2016-07-05 20:31:08 -07:00
parent 616b50ec1b
commit d4b82d31cf
2 changed files with 12 additions and 6 deletions

View file

@ -7,11 +7,11 @@ RomFs:
RootPath: $(APP_ROMFS) RootPath: $(APP_ROMFS)
TitleInfo: TitleInfo:
Category : Application Category : $(APP_CATEGORY)
UniqueId : $(APP_UNIQUE_ID) UniqueId : $(APP_UNIQUE_ID)
Option: 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 FreeProductCode : true # Removes limitations on ProductCode
MediaFootPadding : false # If true CCI files are created with padding MediaFootPadding : false # If true CCI files are created with padding
EnableCrypt : $(APP_ENCRYPTED) # Enables encryption for NCCH and CIA EnableCrypt : $(APP_ENCRYPTED) # Enables encryption for NCCH and CIA
@ -67,7 +67,7 @@ AccessControlInfo:
- UseCardSpi - UseCardSpi
# Process Settings # Process Settings
MemoryType : Application # Application/System/Base MemoryType : $(APP_MEMORY_TYPE) # Application/System/Base
SystemMode : $(APP_SYSTEM_MODE) # 64MB(Default)/96MB/80MB/72MB/32MB SystemMode : $(APP_SYSTEM_MODE) # 64MB(Default)/96MB/80MB/72MB/32MB
IdealProcessor : 0 IdealProcessor : 0
AffinityMask : 1 AffinityMask : 1
@ -86,8 +86,8 @@ AccessControlInfo:
# New3DS Exclusive Process Settings # New3DS Exclusive Process Settings
SystemModeExt : $(APP_SYSTEM_MODE_EXT) # Legacy(Default)/124MB/178MB Legacy:Use Old3DS SystemMode SystemModeExt : $(APP_SYSTEM_MODE_EXT) # Legacy(Default)/124MB/178MB Legacy:Use Old3DS SystemMode
CpuSpeed : 804MHz # 268MHz(Default)/804MHz CpuSpeed : $(APP_CPU_SPEED) # 268MHz(Default)/804MHz
EnableL2Cache : true # false(default)/true EnableL2Cache : $(APP_ENABLE_L2_CACHE) # false(default)/true
CanAccessCore2 : true CanAccessCore2 : true
# Virtual Address Mappings # Virtual Address Mappings

View file

@ -90,6 +90,12 @@ ifeq ($(TARGET),3DS)
REMOTE_IP ?= 127.0.0.1 # User-defined 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 AR := $(DEVKITARM)/bin/arm-none-eabi-ar
AS := $(DEVKITARM)/bin/arm-none-eabi-as AS := $(DEVKITARM)/bin/arm-none-eabi-as
CC := $(DEVKITARM)/bin/arm-none-eabi-gcc 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 COMMON_CC_FLAGS += -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -DARM11 -D_3DS
_3DSXTOOL_FLAGS := _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))","") ifneq ("$(wildcard $(ROMFS_DIR))","")
_3DSXTOOL_FLAGS += --romfs=$(ROMFS_DIR) _3DSXTOOL_FLAGS += --romfs=$(ROMFS_DIR)