Update for template changes.

This commit is contained in:
Steven Smith 2015-01-24 00:46:43 -08:00
parent 5cea1abb50
commit 89efff8451
7 changed files with 26 additions and 18 deletions

View File

@ -9,9 +9,7 @@ endif
TOPDIR ?= $(CURDIR) TOPDIR ?= $(CURDIR)
include $(DEVKITARM)/3ds_rules include $(DEVKITARM)/3ds_rules
APP_TITLE = FBI include $(TOPDIR)/resources/AppInfo
APP_DESCRIPTION = Open source CIA installer.
APP_AUTHOR = Steveice10
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# BUILD is the directory where object files & intermediate files will be placed # BUILD is the directory where object files & intermediate files will be placed
@ -147,21 +145,27 @@ $(OUTPUT_D) :
$(OUTPUT).3dsx : $(OUTPUT).elf $(OUTPUT).3dsx : $(OUTPUT).elf
$(OUTPUT).elf : $(OFILES) $(OUTPUT).elf : $(OFILES)
banner.bnr: $(TOPDIR)/resources/banner.png $(TOPDIR)/resources/audio.bcwav banner.bnr: $(TOPDIR)/resources/banner.png $(TOPDIR)/resources/audio.wav
$(BANNERTOOL) $(TOPDIR)/resources/banner.png $(TOPDIR)/resources/audio.bcwav $(TOPDIR)/$(BUILD)/banner.bnr $(BANNERTOOL) makebanner -i $(TOPDIR)/resources/banner.png -a $(TOPDIR)/resources/audio.wav -o banner.bnr
@echo "built ... banner" @echo "built ... banner"
stripped.elf: $(OUTPUT).elf stripped.elf: $(OUTPUT).elf
@cp $(OUTPUT).elf stripped.elf @cp $(OUTPUT).elf stripped.elf
@$(PREFIX)strip stripped.elf @$(PREFIX)strip stripped.elf
$(OUTPUT).cia: stripped.elf $(TOPDIR)/resources/cia.rsf banner.bnr $(OUTPUT).smdh $(OUTPUT).cia: stripped.elf cia.rsf banner.bnr $(OUTPUT).smdh
$(MAKEROM) -f cia -o $(OUTPUT).cia -rsf $(TOPDIR)/resources/cia.rsf -target t -exefslogo -elf stripped.elf -icon $(OUTPUT).smdh -banner banner.bnr $(MAKEROM) -f cia -o $(OUTPUT).cia -rsf cia.rsf -target t -exefslogo -elf stripped.elf -icon $(OUTPUT).smdh -banner banner.bnr
@echo "built ... $(notdir $@)" @echo "built ... $(notdir $@)"
$(OUTPUT).3ds: stripped.elf $(TOPDIR)/resources/3ds.rsf banner.bnr $(OUTPUT).smdh $(OUTPUT).3ds: stripped.elf 3ds.rsf banner.bnr $(OUTPUT).smdh
$(MAKEROM) -f cci -o $(OUTPUT).3ds -rsf $(TOPDIR)/resources/3ds.rsf -target d -exefslogo -elf stripped.elf -icon $(OUTPUT).smdh -banner banner.bnr $(MAKEROM) -f cci -o $(OUTPUT).3ds -rsf 3ds.rsf -target d -exefslogo -elf stripped.elf -icon $(OUTPUT).smdh -banner banner.bnr
@echo "built ... $(notdir $@)" @echo "built ... $(notdir $@)"
3ds.rsf:
cat $(TOPDIR)/tools/template-3ds.rsf | sed 's/{APP_TITLE}/$(APP_TITLE)/' | sed 's/{APP_PRODUCT_CODE}/$(APP_PRODUCT_CODE)/' | sed 's/{APP_UNIQUE_ID}/$(APP_UNIQUE_ID)/' > 3ds.rsf
cia.rsf:
cat $(TOPDIR)/tools/template-cia.rsf | sed 's/{APP_TITLE}/$(APP_TITLE)/' | sed 's/{APP_PRODUCT_CODE}/$(APP_PRODUCT_CODE)/' | sed 's/{APP_UNIQUE_ID}/$(APP_UNIQUE_ID)/' > cia.rsf
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# you need a rule like this for each extension you use as binary data # you need a rule like this for each extension you use as binary data

5
resources/AppInfo Normal file
View File

@ -0,0 +1,5 @@
APP_TITLE = FBI
APP_DESCRIPTION = Open source CIA installer.
APP_AUTHOR = Steveice10
APP_PRODUCT_CODE = CTR-P-CFBI
APP_UNIQUE_ID = 0x1930

Binary file not shown.

BIN
resources/audio.wav Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
BasicInfo: BasicInfo:
Title : "FBI" Title : "{APP_TITLE}"
CompanyCode : "00" CompanyCode : "00"
ProductCode : "CTR-P-CFBI" ProductCode : "{APP_PRODUCT_CODE}"
ContentType : Application ContentType : Application
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
@ -11,7 +11,7 @@ BasicInfo:
TitleInfo: TitleInfo:
UniqueId : 0x1930 UniqueId : {APP_UNIQUE_ID}
Category : Application Category : Application
CardInfo: CardInfo:
@ -139,6 +139,7 @@ AccessControlInfo:
- $hostio0 - $hostio0
- $hostio1 - $hostio1
- ac:u - ac:u
- am:u
- boss:U - boss:U
- cam:u - cam:u
- cecd:u - cecd:u
@ -162,7 +163,6 @@ AccessControlInfo:
- y2r:u - y2r:u
- ldr:ro - ldr:ro
- ir:USER - ir:USER
- am:u
SystemControlInfo: SystemControlInfo:

View File

@ -1,7 +1,7 @@
BasicInfo: BasicInfo:
Title : "FBI" Title : "{APP_TITLE}"
CompanyCode : "00" CompanyCode : "00"
ProductCode : "CTR-P-CFBI" ProductCode : "{APP_PRODUCT_CODE}"
ContentType : Application ContentType : Application
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
@ -9,9 +9,8 @@ BasicInfo:
# Specifies the root path of the file system to include in the ROM. # Specifies the root path of the file system to include in the ROM.
# HostRoot : "romfs" # HostRoot : "romfs"
TitleInfo: TitleInfo:
UniqueId : 0x1930 UniqueId : {APP_UNIQUE_ID}
Category : Application Category : Application
CardInfo: CardInfo:
@ -173,6 +172,7 @@ AccessControlInfo:
- $hostio0 - $hostio0
- $hostio1 - $hostio1
- ac:u - ac:u
- am:u
- boss:U - boss:U
- cam:u - cam:u
- cecd:u - cecd:u
@ -198,7 +198,6 @@ AccessControlInfo:
- ir:USER - ir:USER
- ir:u - ir:u
- csnd:SND - csnd:SND
- am:u
SystemControlInfo: SystemControlInfo: