mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Wrote NitroFS file list to file
This commit is contained in:
parent
b6346d12b9
commit
613d472179
10
Makefile
10
Makefile
|
|
@ -55,12 +55,18 @@ $(NEF): libsyscall
|
|||
libsyscall:
|
||||
$(MAKE) -C lib/syscall all install INSTALL_PREFIX=$(abspath $(WORK_DIR)/$(BUILD_DIR)) GAME_CODE=$(GAME_CODE)
|
||||
|
||||
NITROFS_FILES_FILE := $(BUILD_DIR)/nitrofs_files.txt
|
||||
|
||||
# There are too many data files, exceeding Windows's command length limit. Write the file list to a file to get around this limit.
|
||||
nitrofs_files_file:
|
||||
echo "NITROFS_FILES=" $(NITROFS_FILES:files/%=%) > $(NITROFS_FILES_FILE)
|
||||
|
||||
$(BUILD_DIR)/component.files: main ;
|
||||
|
||||
$(HEADER_TEMPLATE): ;
|
||||
|
||||
$(ROM): $(ROMSPEC) tools filesystem main sub $(BANNER)
|
||||
$(WINE) $(MAKEROM) $(MAKEROM_FLAGS) -DBUILD_DIR=$(BUILD_DIR) -DNITROFS_FILES="" -DTITLE_NAME="$(TITLE_NAME)" -DBNR="$(BANNER)" -DHEADER_TEMPLATE="$(HEADER_TEMPLATE)" $< $@
|
||||
$(ROM): $(ROMSPEC) tools filesystem main sub $(BANNER) nitrofs_files_file
|
||||
$(WINE) $(MAKEROM) $(MAKEROM_FLAGS) -DBUILD_DIR=$(BUILD_DIR) -M$(NITROFS_FILES_FILE) -DTITLE_NAME="$(TITLE_NAME)" -DBNR="$(BANNER)" -DHEADER_TEMPLATE="$(HEADER_TEMPLATE)" $< $@
|
||||
$(FIXROM) $@ --secure-crc $(SECURE_CRC) --game-code $(GAME_CODE)
|
||||
ifeq ($(COMPARE),1)
|
||||
$(SHA1SUM) -c $(buildname)/rom.sha1
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ ifndef SECURE_CRC
|
|||
$(error Unsupported ROM: $(GAME_LANGUAGE))
|
||||
endif
|
||||
|
||||
# At present this repository only supports the 1.0 US ROM
|
||||
SUPPORTED_ROMS := pmdsky.us
|
||||
ifneq ($(filter $(buildname),$(SUPPORTED_ROMS)),$(buildname))
|
||||
$(error $(buildname) is not supported, choose from: $(SUPPORTED_ROMS))
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue
Block a user