ROMFS: purge old mixing system

- SYS_USE_IO is now off by default (enabled by default per board)
This commit is contained in:
Daniel Agar
2022-08-24 14:44:17 -04:00
parent ed10146e9f
commit cac9c51ac8
121 changed files with 100 additions and 2797 deletions
+4 -12
View File
@@ -105,18 +105,10 @@ def main():
# find excluded boards
if re.search(r'\b{0} exclude\b'.format(args.board), line):
board_excluded = True
# handle mixer files differently than startup files
if file_path.endswith(".mix"):
if line.startswith(("Z:", "M:", "R: ", "O:", "S:",
"H:", "T:", "P:", "A:")):
# reduce multiple consecutive spaces into a
# single space
line_reduced = re.sub(' +', ' ', line)
pruned_content += line_reduced
else:
if not line.isspace() \
and not line.strip().startswith("#"):
pruned_content += line.strip() + "\n"
if not line.isspace() \
and not line.strip().startswith("#"):
pruned_content += line.strip() + "\n"
# delete the file if it doesn't contain the architecture
# write out the pruned content else
if not board_excluded:
+1 -1
View File
@@ -14,7 +14,7 @@ search_directory="$1"
command -v shellcheck >/dev/null 2>&1 || { echo -e >&2 \
"Error: shellcheck required but it's not installed. On Ubuntu use:\n sudo apt-get install shellcheck\n\nAborting."; exit 1; }
scripts="$(find "$search_directory" -type f ! -name '*.txt' ! -name '*.mix' ! -name '*.bin')"
scripts="$(find "$search_directory" -type f ! -name '*.txt' ! -name '*.bin')"
echo "Running shellcheck in '$search_directory'."