diff options
author | Michael Maloney <michael.maloney@sifive.com> | 2019-06-07 20:04:44 -0700 |
---|---|---|
committer | Michael Maloney <michael.maloney@sifive.com> | 2019-06-07 20:04:44 -0700 |
commit | 2ca0d97e5bc3c7bfc2ddb6c603073d053438c56a (patch) | |
tree | 1aea5d850356e4f0bee7bbc155c2bcd0179d6b3e | |
parent | 2c00d003b2e5bff9cab4c8514288806f418ab985 (diff) |
Quote strings properly in scripts/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} |