Normally, just a NCCH file is enough.
Code:
makerom -f cia -target t -o rom.cia -i rom.ncch:0:0
If a NCCH file is encrypted, you might have to add
-DSaveSize= option for the CIA to work correctly. Save size can be obtained by taken four bytes at offset 0x19A in tmd (little endian), then divide by 1024.
Code:
makerom -f cia -target t -rsf rom.rsf -o rom.cia -DSaveSize=... -i rom.ncch:0:0
rom.rsf:
Code:
Option:
MediaFootPadding: true
EnableCrypt: false
SystemControlInfo:
SaveDataSize: $(SaveSize)K