You've already forked beagleconnect-freedom
mirror of
https://github.com/beagleboard/beagleconnect-freedom.git
synced 2026-07-25 19:42:31 +00:00
48 lines
1.8 KiB
Bash
Executable File
48 lines
1.8 KiB
Bash
Executable File
#!/bin/bash -xe
|
|
source ./env.sh
|
|
|
|
# MSP430
|
|
cd $SWDIR/usb_uart_bridge
|
|
make clean
|
|
make
|
|
cd ..
|
|
mkdir -p build/msp430
|
|
cp $SWDIR/usb_uart_bridge/usb_uart_bridge* build/msp430/
|
|
|
|
# CC1352
|
|
cd $ZEPHYR_BASE
|
|
west update
|
|
|
|
# WPANUSB Gateway SubG
|
|
west build -p always -b beagleconnect_freedom $ZPRJ/wpanusb_bc -d $ZEPHYR_BASE/build/wpanusb_beagleconnect -- -DOVERLAY_CONFIG=overlay-subghz.conf
|
|
|
|
# BCFSERIAL Gateway SubG
|
|
west build -p always -b beagleconnect_freedom $ZPRJ/wpanusb_bc -d $ZEPHYR_BASE/build/bcfserial_beagleconnect -- -DOVERLAY_CONFIG=overlay-bcfserial.conf -DDTC_OVERLAY_FILE=bcfserial.overlay
|
|
|
|
# Sensortest application SubG
|
|
west build -p always -b beagleconnect_freedom samples/boards/beagle_bcf/sensortest -d $ZEPHYR_BASE/build/sensortest_beagleconnect -- -DOVERLAY_CONFIG=overlay-subghz.conf
|
|
|
|
# mikroBUS over Greybus node SubG
|
|
west build -p always -b beagleconnect_freedom $ZPRJ/greybus-for-zephyr-mikrobus/samples/subsys/greybus/net -d build/greybus_mikrobus_beagleconnect -- -DOVERLAY_CONFIG=overlay-802154-subg.conf
|
|
|
|
# mikroBUS ID flasher
|
|
#west build -p always -t flash -b beagleconnect_freedom $ZPRJ/mikrobus-clickid-flasher/samples/subsys/mikrobus/flasher -d build/greybus_mikrobus_beagleconnect_flasher -- -DCONFIG_MIKROBUS_FLASHER_CLICK_NAME='"'$MIKROBUS_ID'"'
|
|
|
|
# make a FW release directory with the FW binaries and relevant debug info
|
|
mkdir -p $SWDIR/build/cc1352
|
|
mkdir -p $SWDIR/build/msp430
|
|
cp $SWDIR/cc2538-bsl.py $SWDIR/build/
|
|
|
|
copy_fwbin () {
|
|
if [ -f $ZEPHYR_BASE/build/$1/zephyr/zephyr.bin ] ; then
|
|
cp $ZEPHYR_BASE/build/$1/zephyr/zephyr.bin $SWDIR/build/cc1352/$1.bin
|
|
cp $ZEPHYR_BASE/build/$1/zephyr/zephyr.dts $SWDIR/build/cc1352/$1.dts
|
|
cp $ZEPHYR_BASE/build/$1/zephyr/.config $SWDIR/build/cc1352/$1.config
|
|
fi
|
|
}
|
|
|
|
copy_fwbin wpanusb_beagleconnect
|
|
copy_fwbin sensortest_beagleconnect
|
|
copy_fwbin greybus_mikrobus_beagleconnect
|
|
copy_fwbin bcfserial_beagleconnect
|