diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-10 17:05:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 17:05:38 +0000 |
commit | a183fe32ffacb11fc5c36d50418367004dd195b5 (patch) | |
tree | 1aea5d850356e4f0bee7bbc155c2bcd0179d6b3e | |
parent | 2c00d003b2e5bff9cab4c8514288806f418ab985 (diff) | |
parent | 2ca0d97e5bc3c7bfc2ddb6c603073d053438c56a (diff) |
Merge pull request #280 from sifive/quote_strings_in_fixup-dts
Quote strings in fixup dts
-rwxr-xr-x | scripts/fixup-dts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/fixup-dts b/scripts/fixup-dts index 7192aea..bb73115 100755 --- a/scripts/fixup-dts +++ b/scripts/fixup-dts @@ -38,10 +38,10 @@ if [ `grep -c 'riscv,pmp' ${dts}` -eq 0 ]; then # Check for targets without PMP support TARGET=`echo ${dts} | cut -d '/' -f 1` - if [ $TARGET != "freedom-e310-arty" -a \ - $TARGET != "sifive-hifive1" -a \ - $TARGET != "coreip-e20-rtl" -a \ - $TARGET != "coreip-e20-arty" ]; then + if [ "$TARGET" != "freedom-e310-arty" -a \ + "$TARGET" != "sifive-hifive1" -a \ + "$TARGET" != "coreip-e20-rtl" -a \ + "$TARGET" != "coreip-e20-arty" ]; then ${SED} -i '/riscv,isa/a riscv,pmpregions = <1>;' ${dts} |