Skip to content

Commit

Permalink
Use DOCKER env var from host machine when running `script/otbr-setup.…
Browse files Browse the repository at this point in the history
…bash` in QEMU machine
  • Loading branch information
lmnotran committed Aug 21, 2023
1 parent 2f31c9e commit e562796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/make-raspbian.bash
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ main()
sudo tar xzf "$STAGE_DIR"/repo.tar.gz --absolute-names --strip-components 1 -C "$QEMU_ROOT"/home/pi/repo

# Run OTBR install
sudo chroot "$QEMU_ROOT" /bin/bash /home/pi/repo/script/otbr-setup.bash "${REFERENCE_RELEASE_TYPE?}" "$IN_CHINA" "${REFERENCE_PLATFORM?}" "${OPENTHREAD_COMMIT_HASH}" "${OT_BR_POSIX_COMMIT_HASH}" "${OTBR_RCP_BUS}" "${OTBR_RADIO_URL}"
sudo chroot "$QEMU_ROOT" /bin/bash -c "DOCKER=${DOCKER-0}; /home/pi/repo/script/otbr-setup.bash ${REFERENCE_RELEASE_TYPE?} $IN_CHINA ${REFERENCE_PLATFORM?} ${OPENTHREAD_COMMIT_HASH} ${OT_BR_POSIX_COMMIT_HASH} ${OTBR_RCP_BUS} ${OTBR_RADIO_URL}"
sudo chroot "$QEMU_ROOT" /bin/bash /home/pi/repo/script/otbr-cleanup.bash
echo "enable_uart=1" | sudo tee -a "$QEMU_ROOT"/boot/config.txt
echo "dtoverlay=disable-bt" | sudo tee -a "$QEMU_ROOT"/boot/config.txt
Expand Down

0 comments on commit e562796

Please sign in to comment.