diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/chibios_conf_updater.sh (renamed from util/chibios-upgrader.sh) | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/util/chibios-upgrader.sh b/util/chibios_conf_updater.sh index ebc12abe7..70bd80da1 100755 --- a/util/chibios-upgrader.sh +++ b/util/chibios_conf_updater.sh | |||
@@ -51,7 +51,7 @@ revert_chibi_files() { | |||
51 | for file in $(find_chibi_files "$search_path" -name chconf.h -or -name halconf.h -or -name mcuconf.h -or -name board.c -or -name board.h -or -name board.mk -or -name board.chcfg) ; do | 51 | for file in $(find_chibi_files "$search_path" -name chconf.h -or -name halconf.h -or -name mcuconf.h -or -name board.c -or -name board.h -or -name board.mk -or -name board.chcfg) ; do |
52 | pushd "$search_path" >/dev/null 2>&1 | 52 | pushd "$search_path" >/dev/null 2>&1 |
53 | local relpath=$(realpath --relative-to="$search_path" "$file") | 53 | local relpath=$(realpath --relative-to="$search_path" "$file") |
54 | git checkout upstream/master -- "$relpath" || git checkout origin/master -- "$relpath" || true | 54 | git checkout upstream/develop -- "$relpath" || git checkout origin/develop -- "$relpath" || true |
55 | popd >/dev/null 2>&1 | 55 | popd >/dev/null 2>&1 |
56 | done | 56 | done |
57 | } | 57 | } |
@@ -132,6 +132,14 @@ upgrade_chconf_files() { | |||
132 | 132 | ||
133 | upgrade_halconf_files() { | 133 | upgrade_halconf_files() { |
134 | upgrade_conf_files_generic halconf.h update_halconf.sh | 134 | upgrade_conf_files_generic halconf.h update_halconf.sh |
135 | |||
136 | OIFS=$IFS | ||
137 | IFS=$'\n' | ||
138 | for file in $(find_chibi_files "$qmk_firmware_dir" -name halconf.h) ; do | ||
139 | echo $file | ||
140 | sed -i 's@#include "mcuconf.h"@#include <mcuconf.h>@g' "$file" | ||
141 | done | ||
142 | IFS=$OIFS | ||
135 | } | 143 | } |
136 | 144 | ||
137 | upgrade_mcuconf_files() { | 145 | upgrade_mcuconf_files() { |