Fix minor issues in readme and bootstrap
- Fix a missing backslash in README.md that caused syntax error when
copied/pasted
- Fix a symlink created by bootstrap.sh
Change-Id: Ied1958f13d3037d76e7277cd740c36194ba8e67a
Reviewed-on: https://fuchsia-review.googlesource.com/c/drivers/wlan/intel/iwlwifi/+/640048
Fuchsia-Auto-Submit: Renato Mangini Dias <mangini@google.com>
Reviewed-by: Sakthi Vignesh Radhakrishnan <rsakthi@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/README.md b/README.md
index 6861b5e..89f116d 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@
```
scripts/bootstrap.sh \
- --sdk-local ~/fuchsia/out/qemu
+ --sdk-local ~/fuchsia/out/qemu \
--product-bundle-local ~/fuchsia/out/qemupbm
```
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 9cb6d94..458114b 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -10,6 +10,7 @@
readonly REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
readonly BAZELISK_TOOL="${REPO_ROOT}/tools/bazel"
+readonly LOCAL_SDK_OUT="${REPO_ROOT}/sdk"
function get_os {
uname -s | tr '[:upper:]' '[:lower:]'
@@ -46,7 +47,7 @@
}
create_tools_symlinks() {
- create_symlink "${REPO_ROOT}/bazel-iwlwifi/external/fuchsia_sdk/tools/x64/ffx" ${REPO_ROOT}/tools/ffx
+ create_symlink "${LOCAL_SDK_OUT}/tools/x64/ffx" ${REPO_ROOT}/tools/ffx
}
# TODO: this is probably not needed when the DDK becomes part of the core SDK.
@@ -109,7 +110,6 @@
fi
done
- LOCAL_SDK_OUT=./sdk
if [[ -d "$LOCAL_SDK_OUT" ]]; then
echo "Removing old SDK in $LOCAL_SDK_OUT"
rm -Rf "${LOCAL_SDK_OUT}"