mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +08:00
ROMFS: purge old mixing system
- SYS_USE_IO is now off by default (enabled by default per board)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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'."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user