Get files list from file instead of writing to it

This commit is contained in:
AnonymousRandomPerson 2023-08-20 18:08:13 -04:00
parent 9e7365b5ed
commit b637298df0
4 changed files with 6 additions and 8615 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@ sub/build/**
*.d
*.o
*.sbin
*.tmp
# MacOS garbage
.DS_Store

View File

@ -50,17 +50,11 @@ $(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) nitrofs_files_file
$(ROM): $(ROMSPEC) tools filesystem main sub $(BANNER)
$(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)

File diff suppressed because it is too large Load Diff

1
nitrofs_files.txt Normal file

File diff suppressed because one or more lines are too long