openthread / ot-reference-release

BSD 3-Clause "New" or "Revised" License
11 stars 26 forks source link

[script] refactor `bootstrap` and `make-raspbian.bash` #67

Closed lmnotran closed 1 year ago

lmnotran commented 1 year ago

script/bootstrap.bash

I think the bootstrap script was originally taken from https://github.com/openthread/ot-br-posix/blob/main/tests/scripts/bootstrap.sh.

Most of the script isn't required since the OTBR build occurs in the mounted Raspberry Pi OS chroot, not the host machine. Within the Raspberry Pi OS chroot, the OTBR requirements are already being installed in script/otbr-setup.bash

This PR removes most of the unnecessary packages and also makes the bootstrap script more flexible, allowing smaller portions of the script to be run via command line arguments

Also, the download of RaspiOS has been moved to script/make-raspbian.bash

script/make-raspbian.bash

lmnotran commented 1 year ago

@jwhui please review when you get a chance