packnlf, packtlf

Description

packnlf and packtlf are tools to collect all specified files referenced by a .nlf or .tlf file as relative paths and output them as a ZIP file.

packtlf just calls packnlf internally, so these two tools are basically the same.

Using the Tool

Start Command

% packnlf sample.nlf

Reads the contents of the nlf file specified by sample.nlf. Outputs the referenced files and a sample.nlf file with relative paths for all referenced files to the package directory.
Also, the contents of the package directory are compressed in ZIP format and created as package-yymmdd-hhmm.zip.
Be aware that all referenced files will be copied to the package directory regardless of whether they have absolute or relative paths.


Example of nlf file conversion


nlf file data before conversion.

#NLF --- NitroROM List File
T,"d:/home/TwlSDK/build/demos/os/heap-1"
V,1.1
H,"bin/ARM9-TS/Debug/main_header.sbin","bin/ARM9-TS/Debug/main_files.sbin",0
9,"bin/ARM9-TS/Debug/main.nef","bin/ARM9-TS/Debug/main.sbin","*","bin/ARM9-TS/Debug/main_defs.sbin","*"
7,"D:/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.nef","D:/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*","D:/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub_defs.sbin","*"

# File Images
F,00000000,00004000,00,ffff,ffff,"bin/ARM9-TS/Debug/main_header.sbin","*",43ccc89b,512,1
F,00004000,00013324,00,ffff,0008,"bin/ARM9-TS/Debug/main.sbin","*",43ccc89b,512,1
F,00013400,0003d748,00,ffff,000c,"D:/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*",43c36b6a,512,1
F,0003d800,0003d809,00,ffff,0010,"bin/ARM9-TS/Debug/main_files.sbin","*",43ccc89b,512,1
F,0003da00,0003da00,00,ffff,0012,"*FILEALLOC","*",00000000,512,1
F,0003da00,0003e240,00,ffff,001a,"D:/home/TwlSDK/include/Twl/specfiles/default.bnr","*",43c5bca2,512,1
#

nlf file data after conversion.

#NLF --- NitroROM List File
T,"."
V,1.1
H,"./bin/ARM9-TS/Debug/main_header.sbin","./bin/ARM9-TS/Debug/main_files.sbin",0
9,"./bin/ARM9-TS/Debug/main.nef","./bin/ARM9-TS/Debug/main.sbin","*","./bin/ARM9-TS/Debug/main_defs.sbin","*"
7,"./D_/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.nef","./D_/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*","./D_/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub_defs.sbin","*"

# File Images
F,00000000,00004000,00,ffff,ffff,"./bin/ARM9-TS/Debug/main_header.sbin","*",43ccc89b,512,1
F,00004000,00013324,00,ffff,0008,"./bin/ARM9-TS/Debug/main.sbin","*",43ccc89b,512,1
F,00013400,0003d748,00,ffff,000c,"./D_/home/TwlSDK/components/mongoose/ARM7-TS/Debug/mongoose_sub.sbin","*",43c36b6a,512,1
F,0003d800,0003d809,00,ffff,0010,"./bin/ARM9-TS/Debug/main_files.sbin","*",43ccc89b,512,1
F,0003da00,0003da00,00,ffff,0012,"*FILEALLOC","*",00000000,512,1
F,0003da00,0003e240,00,ffff,001a,"./D_/home/TwlSDK/include/Twl/specfiles/default.bnr","*",43c5bca2,512,1
#

Location

$TwlSDK/tools/bin/packnlf
$TwlSDK/tools/bin/packtlf

See Also

Revision History

2008/09/16 Added a description of packtlf.
2006/01/17 Initial version.


CONFIDENTIAL