This commit is contained in:
Philip Smart
2021-03-17 16:24:22 +00:00
parent 44a170d641
commit 109aa310ee
4 changed files with 15 additions and 6 deletions

View File

@@ -2,6 +2,12 @@
ROOT_DIR=/dvlp/Projects/dev/github/MZ80A_RFS/
SW_DIR=${ROO_DIR}/software
PROCESS_MZF_FILES=0
if [ "x$1" = '-m' ]; then
PROCESS_MZF_FILES=1
fi
(
cd $SW_DIR
tools/assemble_rfs.sh
@@ -20,10 +26,13 @@ if [ $? != 0 ]; then
exit 1
fi
tools/processMZFfiles.sh
if [ $? != 0 ]; then
echo "Failed to process MZF files into sectored variants...."
exit 1
# Only needed if the program source tree changes, takes too long to run on every build!
if [ ${PROCESS_MFZ_FILES} != 1 ]; then
tools/processMZFfiles.sh
if [ $? != 0 ]; then
echo "Failed to process MZF files into sectored variants...."
exit 1
fi
fi
tools/make_roms.sh
if [ $? != 0 ]; then

Binary file not shown.

Binary file not shown.

View File

@@ -13,7 +13,7 @@
## Copyright: (c) 2020 Philip Smart <philip.smart@net2net.org>
##
## History: March 2020 - Initial script written.
## March 2021 - Updated the file list.
## March 2021 - Updated the file list and filter out files stored in the ROM Drives.
##
#########################################################################################################
## This source file is free software: you can redistribute it and#or modify
@@ -424,7 +424,7 @@ IFS=":"; for f in ${RFS_INCLUDE}
do
# Use the ROM File List to filter out duplicates.
#
grep `basename "${f}" .MZF` ${ROM_LIST_FILE} l > /dev/null
grep `basename "${f}" .MZF` ${ROM_LIST_FILE} > /dev/null
if [ $? = 1 ]; then
echo "Adding ${f}..."
${SDTOOL} --image ${RFS_IMAGE_FILE} --add ${f}