2020-11-29 07:04:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if which nproc > /dev/null; then
|
|
|
|
MAKEOPTS="-j$(nproc)"
|
|
|
|
else
|
|
|
|
MAKEOPTS="-j$(sysctl -n hw.ncpu)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# general helper functions
|
|
|
|
|
|
|
|
function ci_gcc_arm_setup {
|
|
|
|
sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi
|
|
|
|
arm-none-eabi-gcc --version
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# code formatting
|
|
|
|
|
|
|
|
function ci_code_formatting_setup {
|
|
|
|
sudo apt-get install uncrustify
|
|
|
|
pip3 install black
|
|
|
|
uncrustify --version
|
|
|
|
black --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_code_formatting_run {
|
|
|
|
tools/codeformat.py -v
|
|
|
|
}
|
|
|
|
|
2023-03-08 02:15:25 +00:00
|
|
|
########################################################################################
|
|
|
|
# code spelling
|
|
|
|
|
|
|
|
function ci_code_spell_setup {
|
|
|
|
pip3 install codespell tomli
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_code_spell_run {
|
|
|
|
codespell
|
|
|
|
}
|
|
|
|
|
2021-01-19 14:06:50 +00:00
|
|
|
########################################################################################
|
|
|
|
# commit formatting
|
|
|
|
|
|
|
|
function ci_commit_formatting_run {
|
|
|
|
git remote add upstream https://github.com/micropython/micropython.git
|
|
|
|
git fetch --depth=100 upstream master
|
|
|
|
# For a PR, upstream/master..HEAD ends with a merge commit into master, exclude that one.
|
|
|
|
tools/verifygitlog.py -v upstream/master..HEAD --no-merges
|
|
|
|
}
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
########################################################################################
|
|
|
|
# code size
|
|
|
|
|
|
|
|
function ci_code_size_setup {
|
2021-01-29 12:30:02 +00:00
|
|
|
sudo apt-get update
|
2020-11-29 07:04:35 +00:00
|
|
|
sudo apt-get install gcc-multilib
|
|
|
|
gcc --version
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_code_size_build {
|
2023-02-17 06:44:05 +00:00
|
|
|
# check the following ports for the change in their code size
|
2023-06-06 05:10:38 +01:00
|
|
|
PORTS_TO_CHECK=bmusxpd
|
|
|
|
SUBMODULES="lib/asf4 lib/berkeley-db-1.xx lib/mbedtls lib/micropython-lib lib/nxp_driver lib/pico-sdk lib/stm32lib lib/tinyusb"
|
2023-02-17 06:44:05 +00:00
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
# starts off at either the ref/pull/N/merge FETCH_HEAD, or the current branch HEAD
|
|
|
|
git checkout -b pull_request # save the current location
|
|
|
|
git remote add upstream https://github.com/micropython/micropython.git
|
2021-01-24 04:02:20 +00:00
|
|
|
git fetch --depth=100 upstream master
|
2020-11-29 07:04:35 +00:00
|
|
|
# build reference, save to size0
|
|
|
|
# ignore any errors with this build, in case master is failing
|
|
|
|
git checkout `git merge-base --fork-point upstream/master pull_request`
|
2023-02-17 06:44:05 +00:00
|
|
|
git submodule update --init $SUBMODULES
|
2020-11-29 07:04:35 +00:00
|
|
|
git show -s
|
2023-02-17 06:44:05 +00:00
|
|
|
tools/metrics.py clean $PORTS_TO_CHECK
|
|
|
|
tools/metrics.py build $PORTS_TO_CHECK | tee ~/size0 || true
|
2020-11-29 07:04:35 +00:00
|
|
|
# build PR/branch, save to size1
|
|
|
|
git checkout pull_request
|
2023-02-17 06:44:05 +00:00
|
|
|
git submodule update --init $SUBMODULES
|
2020-11-29 07:04:35 +00:00
|
|
|
git log upstream/master..HEAD
|
2023-02-17 06:44:05 +00:00
|
|
|
tools/metrics.py clean $PORTS_TO_CHECK
|
|
|
|
tools/metrics.py build $PORTS_TO_CHECK | tee ~/size1
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
2022-02-17 01:01:49 +00:00
|
|
|
# .mpy file format
|
|
|
|
|
|
|
|
function ci_mpy_format_setup {
|
|
|
|
sudo pip3 install pyelftools
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_mpy_format_test {
|
|
|
|
# Test mpy-tool.py dump feature on bytecode
|
2022-09-19 03:03:38 +01:00
|
|
|
python2 ./tools/mpy-tool.py -xd tests/frozen/frozentest.mpy
|
|
|
|
python3 ./tools/mpy-tool.py -xd tests/frozen/frozentest.mpy
|
2022-02-17 01:01:49 +00:00
|
|
|
|
|
|
|
# Test mpy-tool.py dump feature on native code
|
|
|
|
make -C examples/natmod/features1
|
|
|
|
./tools/mpy-tool.py -xd examples/natmod/features1/features1.mpy
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
2020-11-29 07:04:35 +00:00
|
|
|
# ports/cc3200
|
|
|
|
|
|
|
|
function ci_cc3200_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_cc3200_build {
|
|
|
|
make ${MAKEOPTS} -C ports/cc3200 BTARGET=application BTYPE=release
|
|
|
|
make ${MAKEOPTS} -C ports/cc3200 BTARGET=bootloader BTYPE=release
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/esp32
|
|
|
|
|
2023-05-17 05:15:10 +01:00
|
|
|
function ci_esp32_idf50_setup {
|
2022-06-09 02:59:09 +01:00
|
|
|
pip3 install pyelftools
|
2020-11-29 07:04:35 +00:00
|
|
|
git clone https://github.com/espressif/esp-idf.git
|
2023-05-17 05:15:10 +01:00
|
|
|
git -C esp-idf checkout v5.0.2
|
2021-02-13 23:28:05 +00:00
|
|
|
./esp-idf/install.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_esp32_build {
|
|
|
|
source esp-idf/export.sh
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
|
|
|
make ${MAKEOPTS} -C ports/esp32 submodules
|
2022-04-14 04:10:00 +01:00
|
|
|
make ${MAKEOPTS} -C ports/esp32 \
|
|
|
|
USER_C_MODULES=../../../examples/usercmodule/micropython.cmake \
|
|
|
|
FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest_test.py
|
2023-08-15 14:49:35 +01:00
|
|
|
make ${MAKEOPTS} -C ports/esp32 BOARD=ESP32_GENERIC_C3
|
|
|
|
make ${MAKEOPTS} -C ports/esp32 BOARD=ESP32_GENERIC_S2
|
|
|
|
make ${MAKEOPTS} -C ports/esp32 BOARD=ESP32_GENERIC_S3
|
2022-06-09 02:59:09 +01:00
|
|
|
|
|
|
|
# Test building native .mpy with xtensawin architecture.
|
|
|
|
ci_native_mpy_modules_build xtensawin
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/esp8266
|
|
|
|
|
|
|
|
function ci_esp8266_setup {
|
2022-05-17 07:00:49 +01:00
|
|
|
sudo pip install pyserial esptool==3.3.1
|
2020-11-29 07:04:35 +00:00
|
|
|
wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz
|
|
|
|
zcat xtensa-lx106-elf-standalone.tar.gz | tar x
|
2020-12-14 02:07:00 +00:00
|
|
|
# Remove this esptool.py so pip version is used instead
|
|
|
|
rm xtensa-lx106-elf/bin/esptool.py
|
2020-12-14 02:05:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_esp8266_path {
|
2020-11-29 07:04:35 +00:00
|
|
|
echo $(pwd)/xtensa-lx106-elf/bin
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_esp8266_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
|
|
|
make ${MAKEOPTS} -C ports/esp8266 submodules
|
2023-08-15 15:51:37 +01:00
|
|
|
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC
|
|
|
|
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC BOARD_VARIANT=FLASH_512K
|
|
|
|
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC BOARD_VARIANT=FLASH_1M
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
2021-06-24 01:09:57 +01:00
|
|
|
########################################################################################
|
2022-08-19 14:58:58 +01:00
|
|
|
# ports/webassembly
|
2021-06-24 01:09:57 +01:00
|
|
|
|
2022-08-19 14:58:58 +01:00
|
|
|
function ci_webassembly_setup {
|
2021-06-24 01:09:57 +01:00
|
|
|
git clone https://github.com/emscripten-core/emsdk.git
|
|
|
|
(cd emsdk && ./emsdk install latest && ./emsdk activate latest)
|
|
|
|
}
|
|
|
|
|
2022-08-19 14:58:58 +01:00
|
|
|
function ci_webassembly_build {
|
2021-06-24 01:09:57 +01:00
|
|
|
source emsdk/emsdk_env.sh
|
2022-08-19 14:58:58 +01:00
|
|
|
make ${MAKEOPTS} -C ports/webassembly
|
2021-06-24 01:09:57 +01:00
|
|
|
}
|
|
|
|
|
2022-08-19 14:58:58 +01:00
|
|
|
function ci_webassembly_run_tests {
|
2021-06-24 01:09:57 +01:00
|
|
|
# This port is very slow at running, so only run a few of the tests.
|
2022-08-19 14:58:58 +01:00
|
|
|
(cd tests && MICROPY_MICROPYTHON=../ports/webassembly/node_run.sh ./run-tests.py -j1 basics/builtin_*.py)
|
2021-06-24 01:09:57 +01:00
|
|
|
}
|
|
|
|
|
2021-04-24 20:34:07 +01:00
|
|
|
########################################################################################
|
|
|
|
# ports/mimxrt
|
|
|
|
|
|
|
|
function ci_mimxrt_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_mimxrt_build {
|
2021-06-01 15:02:21 +01:00
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-10-08 13:47:57 +01:00
|
|
|
make ${MAKEOPTS} -C ports/mimxrt BOARD=MIMXRT1020_EVK submodules
|
2021-04-24 20:34:07 +01:00
|
|
|
make ${MAKEOPTS} -C ports/mimxrt BOARD=MIMXRT1020_EVK
|
2022-10-08 13:47:57 +01:00
|
|
|
make ${MAKEOPTS} -C ports/mimxrt BOARD=TEENSY40 submodules
|
2021-04-24 20:34:07 +01:00
|
|
|
make ${MAKEOPTS} -C ports/mimxrt BOARD=TEENSY40
|
|
|
|
}
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
########################################################################################
|
|
|
|
# ports/nrf
|
|
|
|
|
|
|
|
function ci_nrf_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_nrf_build {
|
|
|
|
ports/nrf/drivers/bluetooth/download_ble_stack.sh s140_nrf52_6_1_1
|
2020-12-09 20:00:34 +00:00
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/nrf submodules
|
2023-08-15 14:05:26 +01:00
|
|
|
make ${MAKEOPTS} -C ports/nrf BOARD=PCA10040
|
|
|
|
make ${MAKEOPTS} -C ports/nrf BOARD=MICROBIT
|
|
|
|
make ${MAKEOPTS} -C ports/nrf BOARD=PCA10056 SD=s140
|
|
|
|
make ${MAKEOPTS} -C ports/nrf BOARD=PCA10090
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/powerpc
|
|
|
|
|
|
|
|
function ci_powerpc_setup {
|
2021-06-24 16:52:47 +01:00
|
|
|
sudo apt-get update
|
2020-11-29 07:04:35 +00:00
|
|
|
sudo apt-get install gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_powerpc_build {
|
|
|
|
make ${MAKEOPTS} -C ports/powerpc UART=potato
|
|
|
|
make ${MAKEOPTS} -C ports/powerpc UART=lpc_serial
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/qemu-arm
|
|
|
|
|
|
|
|
function ci_qemu_arm_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install qemu-system
|
|
|
|
qemu-system-arm --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_qemu_arm_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-07-08 06:27:23 +01:00
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm CFLAGS_EXTRA=-DMP_ENDIANNESS_BIG=1
|
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm clean
|
2022-07-08 06:27:23 +01:00
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test test
|
2021-05-25 13:14:56 +01:00
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test clean
|
|
|
|
make ${MAKEOPTS} -C ports/qemu-arm -f Makefile.test BOARD=sabrelite test
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
2022-04-28 14:19:18 +01:00
|
|
|
########################################################################################
|
|
|
|
# ports/renesas-ra
|
|
|
|
|
|
|
|
function ci_renesas_ra_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_renesas_ra_board_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
|
|
|
make ${MAKEOPTS} -C ports/renesas-ra submodules
|
|
|
|
make ${MAKEOPTS} -C ports/renesas-ra BOARD=RA4M1_CLICKER
|
2023-01-13 12:28:15 +00:00
|
|
|
make ${MAKEOPTS} -C ports/renesas-ra BOARD=EK_RA6M2
|
|
|
|
make ${MAKEOPTS} -C ports/renesas-ra BOARD=EK_RA6M1
|
|
|
|
make ${MAKEOPTS} -C ports/renesas-ra BOARD=EK_RA4M1
|
|
|
|
make ${MAKEOPTS} -C ports/renesas-ra BOARD=EK_RA4W1
|
2022-04-28 14:19:18 +01:00
|
|
|
}
|
|
|
|
|
2021-01-21 08:24:12 +00:00
|
|
|
########################################################################################
|
|
|
|
# ports/rp2
|
|
|
|
|
|
|
|
function ci_rp2_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_rp2_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-04-11 04:04:31 +01:00
|
|
|
make ${MAKEOPTS} -C ports/rp2 submodules
|
2021-01-21 08:24:12 +00:00
|
|
|
make ${MAKEOPTS} -C ports/rp2
|
2023-08-16 04:13:01 +01:00
|
|
|
make ${MAKEOPTS} -C ports/rp2 BOARD=RPI_PICO_W submodules
|
|
|
|
make ${MAKEOPTS} -C ports/rp2 BOARD=RPI_PICO_W USER_C_MODULES=../../examples/usercmodule/micropython.cmake
|
2022-05-26 04:21:55 +01:00
|
|
|
make ${MAKEOPTS} -C ports/rp2 BOARD=W5100S_EVB_PICO submodules
|
|
|
|
make ${MAKEOPTS} -C ports/rp2 BOARD=W5100S_EVB_PICO
|
2022-11-15 13:16:06 +00:00
|
|
|
|
|
|
|
# Test building ninaw10 driver and NIC interface.
|
|
|
|
make ${MAKEOPTS} -C ports/rp2 BOARD=ARDUINO_NANO_RP2040_CONNECT submodules
|
|
|
|
make ${MAKEOPTS} -C ports/rp2 BOARD=ARDUINO_NANO_RP2040_CONNECT
|
2021-01-21 08:24:12 +00:00
|
|
|
}
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
########################################################################################
|
|
|
|
# ports/samd
|
|
|
|
|
|
|
|
function ci_samd_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_samd_build {
|
2022-08-03 00:32:51 +01:00
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/samd submodules
|
2023-03-10 01:56:38 +00:00
|
|
|
make ${MAKEOPTS} -C ports/samd BOARD=ADAFRUIT_ITSYBITSY_M0_EXPRESS
|
|
|
|
make ${MAKEOPTS} -C ports/samd BOARD=ADAFRUIT_ITSYBITSY_M4_EXPRESS
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/stm32
|
|
|
|
|
|
|
|
function ci_stm32_setup {
|
|
|
|
ci_gcc_arm_setup
|
2022-06-09 02:59:09 +01:00
|
|
|
pip3 install pyelftools
|
2021-01-15 04:17:12 +00:00
|
|
|
pip3 install pyhy
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_stm32_pyb_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-08-05 15:49:15 +01:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 MICROPY_PY_NETWORK_WIZNET5K=5200 submodules
|
2022-10-08 13:47:57 +01:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBD_SF2 submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
git submodule update --init lib/btstack
|
2021-07-23 09:28:57 +01:00
|
|
|
git submodule update --init lib/mynewt-nimble
|
2022-08-05 15:49:15 +01:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBV11 MICROPY_PY_NETWORK_WIZNET5K=5200 USER_C_MODULES=../../examples/usercmodule
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBD_SF2
|
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=PYBD_SF6 NANBOX=1 MICROPY_BLUETOOTH_NIMBLE=0 MICROPY_BLUETOOTH_BTSTACK=1
|
|
|
|
make ${MAKEOPTS} -C ports/stm32/mboot BOARD=PYBV10 CFLAGS_EXTRA='-DMBOOT_FSLOAD=1 -DMBOOT_VFS_LFS2=1'
|
|
|
|
make ${MAKEOPTS} -C ports/stm32/mboot BOARD=PYBD_SF6
|
2022-03-17 06:11:44 +00:00
|
|
|
make ${MAKEOPTS} -C ports/stm32/mboot BOARD=STM32F769DISC CFLAGS_EXTRA='-DMBOOT_ADDRESS_SPACE_64BIT=1 -DMBOOT_SDCARD_ADDR=0x100000000ULL -DMBOOT_SDCARD_BYTE_SIZE=0x400000000ULL -DMBOOT_FSLOAD=1 -DMBOOT_VFS_FAT=1'
|
2022-06-09 02:59:09 +01:00
|
|
|
|
|
|
|
# Test building native .mpy with armv7emsp architecture.
|
|
|
|
git submodule update --init lib/berkeley-db-1.xx
|
|
|
|
ci_native_mpy_modules_build armv7emsp
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_stm32_nucleo_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-10-08 13:47:57 +01:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_H743ZI submodules
|
2021-07-23 09:28:57 +01:00
|
|
|
git submodule update --init lib/mynewt-nimble
|
2021-11-21 03:47:40 +00:00
|
|
|
|
|
|
|
# Test building various MCU families, some with additional options.
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_F091RC
|
2023-06-14 05:43:35 +01:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=STM32H573I_DK
|
2022-06-08 05:51:48 +01:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_H743ZI COPT=-O2 CFLAGS_EXTRA='-DMICROPY_PY_THREAD=1'
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_L073RZ
|
2020-12-07 06:11:49 +00:00
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_L476RG DEBUG=1
|
2021-11-21 03:47:40 +00:00
|
|
|
|
|
|
|
# Test building a board with mboot packing enabled (encryption, signing, compression).
|
|
|
|
make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_WB55 USE_MBOOT=1 MBOOT_ENABLE_PACKING=1
|
|
|
|
make ${MAKEOPTS} -C ports/stm32/mboot BOARD=NUCLEO_WB55 USE_MBOOT=1 MBOOT_ENABLE_PACKING=1
|
2021-02-16 01:34:34 +00:00
|
|
|
# Test mboot_pack_dfu.py created a valid file, and that its unpack-dfu command works.
|
|
|
|
BOARD_WB55=ports/stm32/boards/NUCLEO_WB55
|
|
|
|
BUILD_WB55=ports/stm32/build-NUCLEO_WB55
|
|
|
|
python3 ports/stm32/mboot/mboot_pack_dfu.py -k $BOARD_WB55/mboot_keys.h unpack-dfu $BUILD_WB55/firmware.pack.dfu $BUILD_WB55/firmware.unpack.dfu
|
|
|
|
diff $BUILD_WB55/firmware.unpack.dfu $BUILD_WB55/firmware.dfu
|
2021-04-22 04:43:50 +01:00
|
|
|
# Test unpack-dfu command works without a secret key
|
|
|
|
tail -n +2 $BOARD_WB55/mboot_keys.h > $BOARD_WB55/mboot_keys_no_sk.h
|
|
|
|
python3 ports/stm32/mboot/mboot_pack_dfu.py -k $BOARD_WB55/mboot_keys_no_sk.h unpack-dfu $BUILD_WB55/firmware.pack.dfu $BUILD_WB55/firmware.unpack_no_sk.dfu
|
|
|
|
diff $BUILD_WB55/firmware.unpack.dfu $BUILD_WB55/firmware.unpack_no_sk.dfu
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/teensy
|
|
|
|
|
|
|
|
function ci_teensy_setup {
|
|
|
|
ci_gcc_arm_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_teensy_build {
|
2022-08-03 00:32:51 +01:00
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-07-08 06:27:23 +01:00
|
|
|
make ${MAKEOPTS} -C ports/teensy submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/teensy
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/unix
|
|
|
|
|
|
|
|
CI_UNIX_OPTS_SYS_SETTRACE=(
|
|
|
|
MICROPY_PY_BTREE=0
|
|
|
|
MICROPY_PY_FFI=0
|
2022-08-18 06:01:26 +01:00
|
|
|
MICROPY_PY_SSL=0
|
2020-11-29 07:04:35 +00:00
|
|
|
CFLAGS_EXTRA="-DMICROPY_PY_SYS_SETTRACE=1"
|
|
|
|
)
|
|
|
|
|
|
|
|
CI_UNIX_OPTS_SYS_SETTRACE_STACKLESS=(
|
|
|
|
MICROPY_PY_BTREE=0
|
|
|
|
MICROPY_PY_FFI=0
|
2022-08-18 06:01:26 +01:00
|
|
|
MICROPY_PY_SSL=0
|
2020-11-29 07:04:35 +00:00
|
|
|
CFLAGS_EXTRA="-DMICROPY_STACKLESS=1 -DMICROPY_STACKLESS_STRICT=1 -DMICROPY_PY_SYS_SETTRACE=1"
|
|
|
|
)
|
|
|
|
|
2021-05-18 04:20:02 +01:00
|
|
|
CI_UNIX_OPTS_QEMU_MIPS=(
|
|
|
|
CROSS_COMPILE=mips-linux-gnu-
|
|
|
|
VARIANT=coverage
|
|
|
|
MICROPY_STANDALONE=1
|
|
|
|
LDFLAGS_EXTRA="-static"
|
|
|
|
)
|
|
|
|
|
2021-06-04 14:40:47 +01:00
|
|
|
CI_UNIX_OPTS_QEMU_ARM=(
|
|
|
|
CROSS_COMPILE=arm-linux-gnueabi-
|
|
|
|
VARIANT=coverage
|
|
|
|
MICROPY_STANDALONE=1
|
|
|
|
)
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
function ci_unix_build_helper {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
|
|
|
make ${MAKEOPTS} -C ports/unix "$@" submodules
|
|
|
|
make ${MAKEOPTS} -C ports/unix "$@" deplibs
|
|
|
|
make ${MAKEOPTS} -C ports/unix "$@"
|
|
|
|
}
|
|
|
|
|
2021-06-05 13:28:05 +01:00
|
|
|
function ci_unix_build_ffi_lib_helper {
|
|
|
|
$1 $2 -shared -o tests/unix/ffi_lib.so tests/unix/ffi_lib.c
|
|
|
|
}
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
function ci_unix_run_tests_helper {
|
|
|
|
make -C ports/unix "$@" test
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_run_tests_full_helper {
|
|
|
|
variant=$1
|
|
|
|
shift
|
2022-08-11 03:40:23 +01:00
|
|
|
micropython=../ports/unix/build-$variant/micropython
|
2020-11-29 07:04:35 +00:00
|
|
|
make -C ports/unix VARIANT=$variant "$@" test_full
|
2022-08-11 03:40:23 +01:00
|
|
|
(cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=$micropython ./run-multitests.py multi_net/*.py)
|
|
|
|
(cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=$micropython ./run-perfbench.py 1000 1000)
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_native_mpy_modules_build {
|
|
|
|
if [ "$1" = "" ]; then
|
|
|
|
arch=x64
|
|
|
|
else
|
|
|
|
arch=$1
|
|
|
|
fi
|
|
|
|
make -C examples/natmod/features1 ARCH=$arch
|
|
|
|
make -C examples/natmod/features2 ARCH=$arch
|
2022-06-10 04:58:39 +01:00
|
|
|
make -C examples/natmod/features3 ARCH=$arch
|
2020-11-29 07:04:35 +00:00
|
|
|
make -C examples/natmod/btree ARCH=$arch
|
2023-07-14 08:24:20 +01:00
|
|
|
make -C examples/natmod/deflate ARCH=$arch
|
2020-11-29 07:04:35 +00:00
|
|
|
make -C examples/natmod/framebuf ARCH=$arch
|
2022-08-18 12:40:53 +01:00
|
|
|
make -C examples/natmod/heapq ARCH=$arch
|
|
|
|
make -C examples/natmod/random ARCH=$arch
|
|
|
|
make -C examples/natmod/re ARCH=$arch
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_native_mpy_modules_32bit_build {
|
|
|
|
ci_native_mpy_modules_build x86
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_minimal_build {
|
|
|
|
make ${MAKEOPTS} -C ports/unix VARIANT=minimal
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_minimal_run_tests {
|
2022-08-11 03:40:23 +01:00
|
|
|
(cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/build-minimal/micropython ./run-tests.py -e exception_chain -e self_type_check -e subclass_native_init -d basics)
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_standard_build {
|
|
|
|
ci_unix_build_helper VARIANT=standard
|
2021-06-05 13:28:05 +01:00
|
|
|
ci_unix_build_ffi_lib_helper gcc
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_standard_run_tests {
|
|
|
|
ci_unix_run_tests_full_helper standard
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_coverage_setup {
|
|
|
|
sudo pip3 install setuptools
|
|
|
|
sudo pip3 install pyelftools
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_coverage_build {
|
|
|
|
ci_unix_build_helper VARIANT=coverage
|
2021-06-05 13:28:05 +01:00
|
|
|
ci_unix_build_ffi_lib_helper gcc
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_coverage_run_tests {
|
|
|
|
ci_unix_run_tests_full_helper coverage
|
|
|
|
}
|
|
|
|
|
2022-06-02 16:11:59 +01:00
|
|
|
function ci_unix_coverage_run_mpy_merge_tests {
|
|
|
|
mptop=$(pwd)
|
|
|
|
outdir=$(mktemp -d)
|
|
|
|
allmpy=()
|
|
|
|
|
|
|
|
# Compile a selection of tests to .mpy and execute them, collecting the output.
|
|
|
|
# None of the tests should SKIP.
|
|
|
|
for inpy in $mptop/tests/basics/[acdel]*.py; do
|
|
|
|
test=$(basename $inpy .py)
|
|
|
|
echo $test
|
|
|
|
outmpy=$outdir/$test.mpy
|
2022-08-02 22:48:41 +01:00
|
|
|
$mptop/mpy-cross/build/mpy-cross -o $outmpy $inpy
|
2022-08-11 03:40:23 +01:00
|
|
|
(cd $outdir && $mptop/ports/unix/build-coverage/micropython -m $test >> out-individual)
|
2022-06-02 16:11:59 +01:00
|
|
|
allmpy+=($outmpy)
|
|
|
|
done
|
|
|
|
|
|
|
|
# Merge all the tests into one .mpy file, and then execute it.
|
|
|
|
python3 $mptop/tools/mpy-tool.py --merge -o $outdir/merged.mpy ${allmpy[@]}
|
2022-08-11 03:40:23 +01:00
|
|
|
(cd $outdir && $mptop/ports/unix/build-coverage/micropython -m merged > out-merged)
|
2022-06-02 16:11:59 +01:00
|
|
|
|
|
|
|
# Make sure the outputs match.
|
|
|
|
diff $outdir/out-individual $outdir/out-merged && /bin/rm -rf $outdir
|
|
|
|
}
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
function ci_unix_coverage_run_native_mpy_tests {
|
2022-08-11 03:40:23 +01:00
|
|
|
MICROPYPATH=examples/natmod/features2 ./ports/unix/build-coverage/micropython -m features2
|
2023-07-14 08:24:20 +01:00
|
|
|
(cd tests && ./run-natmodtests.py "$@" extmod/{btree*,deflate*,framebuf*,heapq*,random*,re*}.py)
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_32bit_setup {
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install gcc-multilib g++-multilib libffi-dev:i386
|
|
|
|
sudo pip3 install setuptools
|
|
|
|
sudo pip3 install pyelftools
|
|
|
|
gcc --version
|
|
|
|
python3 --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_coverage_32bit_build {
|
|
|
|
ci_unix_build_helper VARIANT=coverage MICROPY_FORCE_32BIT=1
|
2021-06-05 13:28:05 +01:00
|
|
|
ci_unix_build_ffi_lib_helper gcc -m32
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_coverage_32bit_run_tests {
|
|
|
|
ci_unix_run_tests_full_helper coverage MICROPY_FORCE_32BIT=1
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_coverage_32bit_run_native_mpy_tests {
|
|
|
|
ci_unix_coverage_run_native_mpy_tests --arch x86
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_nanbox_build {
|
|
|
|
# Use Python 2 to check that it can run the build scripts
|
2022-01-12 13:38:45 +00:00
|
|
|
ci_unix_build_helper PYTHON=python2 VARIANT=nanbox CFLAGS_EXTRA="-DMICROPY_PY_MATH_CONSTANTS=1"
|
2021-06-05 13:28:05 +01:00
|
|
|
ci_unix_build_ffi_lib_helper gcc -m32
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_nanbox_run_tests {
|
|
|
|
ci_unix_run_tests_full_helper nanbox PYTHON=python2
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_float_build {
|
|
|
|
ci_unix_build_helper VARIANT=standard CFLAGS_EXTRA="-DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT"
|
2021-06-05 13:28:05 +01:00
|
|
|
ci_unix_build_ffi_lib_helper gcc
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_float_run_tests {
|
|
|
|
# TODO get this working: ci_unix_run_tests_full_helper standard CFLAGS_EXTRA="-DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT"
|
|
|
|
ci_unix_run_tests_helper CFLAGS_EXTRA="-DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT"
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_clang_setup {
|
|
|
|
sudo apt-get install clang
|
|
|
|
clang --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_stackless_clang_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross CC=clang
|
|
|
|
make ${MAKEOPTS} -C ports/unix submodules
|
|
|
|
make ${MAKEOPTS} -C ports/unix CC=clang CFLAGS_EXTRA="-DMICROPY_STACKLESS=1 -DMICROPY_STACKLESS_STRICT=1"
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_stackless_clang_run_tests {
|
|
|
|
ci_unix_run_tests_helper CC=clang
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_float_clang_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross CC=clang
|
|
|
|
make ${MAKEOPTS} -C ports/unix submodules
|
|
|
|
make ${MAKEOPTS} -C ports/unix CC=clang CFLAGS_EXTRA="-DMICROPY_FLOAT_IMPL=MICROPY_FLOAT_IMPL_FLOAT"
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_float_clang_run_tests {
|
|
|
|
ci_unix_run_tests_helper CC=clang
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_settrace_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-07-08 06:27:23 +01:00
|
|
|
make ${MAKEOPTS} -C ports/unix submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/unix "${CI_UNIX_OPTS_SYS_SETTRACE[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_settrace_run_tests {
|
2022-05-15 04:38:44 +01:00
|
|
|
ci_unix_run_tests_full_helper standard "${CI_UNIX_OPTS_SYS_SETTRACE[@]}"
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_settrace_stackless_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-07-08 06:27:23 +01:00
|
|
|
make ${MAKEOPTS} -C ports/unix submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/unix "${CI_UNIX_OPTS_SYS_SETTRACE_STACKLESS[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_settrace_stackless_run_tests {
|
2022-05-15 04:38:44 +01:00
|
|
|
ci_unix_run_tests_full_helper standard "${CI_UNIX_OPTS_SYS_SETTRACE_STACKLESS[@]}"
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_macos_build {
|
2023-02-17 01:44:07 +00:00
|
|
|
# Install pkg-config to configure libffi paths.
|
|
|
|
brew install pkg-config
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
|
|
|
make ${MAKEOPTS} -C ports/unix submodules
|
|
|
|
#make ${MAKEOPTS} -C ports/unix deplibs
|
|
|
|
make ${MAKEOPTS} -C ports/unix
|
|
|
|
# check for additional compiler errors/warnings
|
|
|
|
make ${MAKEOPTS} -C ports/unix VARIANT=coverage submodules
|
|
|
|
make ${MAKEOPTS} -C ports/unix VARIANT=coverage
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_macos_run_tests {
|
|
|
|
# Issues with macOS tests:
|
|
|
|
# - import_pkg7 has a problem with relative imports
|
2022-08-18 07:57:45 +01:00
|
|
|
# - random_basic has a problem with getrandbits(0)
|
|
|
|
(cd tests && MICROPY_MICROPYTHON=../ports/unix/build-standard/micropython ./run-tests.py --exclude 'import_pkg7.py' --exclude 'random_basic.py')
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|
|
|
|
|
2021-05-18 04:20:02 +01:00
|
|
|
function ci_unix_qemu_mips_setup {
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install gcc-mips-linux-gnu g++-mips-linux-gnu
|
|
|
|
sudo apt-get install qemu-user
|
|
|
|
qemu-mips --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_qemu_mips_build {
|
|
|
|
# qemu-mips on GitHub Actions will seg-fault if not linked statically
|
|
|
|
ci_unix_build_helper "${CI_UNIX_OPTS_QEMU_MIPS[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_qemu_mips_run_tests {
|
|
|
|
# Issues with MIPS tests:
|
|
|
|
# - (i)listdir does not work, it always returns the empty list (it's an issue with the underlying C call)
|
|
|
|
# - ffi tests do not work
|
2022-08-11 03:40:23 +01:00
|
|
|
file ./ports/unix/build-coverage/micropython
|
2022-09-09 00:48:01 +01:00
|
|
|
(cd tests && MICROPY_MICROPYTHON=../ports/unix/build-coverage/micropython ./run-tests.py --exclude 'vfs_posix.*\.py' --exclude 'ffi_(callback|float|float2).py')
|
2021-05-18 04:20:02 +01:00
|
|
|
}
|
|
|
|
|
2021-06-04 14:40:47 +01:00
|
|
|
function ci_unix_qemu_arm_setup {
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
|
|
|
sudo apt-get install qemu-user
|
|
|
|
qemu-arm --version
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_qemu_arm_build {
|
|
|
|
ci_unix_build_helper "${CI_UNIX_OPTS_QEMU_ARM[@]}"
|
2021-06-05 13:28:05 +01:00
|
|
|
ci_unix_build_ffi_lib_helper arm-linux-gnueabi-gcc
|
2021-06-04 14:40:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function ci_unix_qemu_arm_run_tests {
|
|
|
|
# Issues with ARM tests:
|
|
|
|
# - (i)listdir does not work, it always returns the empty list (it's an issue with the underlying C call)
|
|
|
|
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
|
2022-08-11 03:40:23 +01:00
|
|
|
file ./ports/unix/build-coverage/micropython
|
2022-09-09 00:48:01 +01:00
|
|
|
(cd tests && MICROPY_MICROPYTHON=../ports/unix/build-coverage/micropython ./run-tests.py --exclude 'vfs_posix.*\.py')
|
2021-06-04 14:40:47 +01:00
|
|
|
}
|
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
########################################################################################
|
|
|
|
# ports/windows
|
|
|
|
|
|
|
|
function ci_windows_setup {
|
|
|
|
sudo apt-get install gcc-mingw-w64
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_windows_build {
|
|
|
|
make ${MAKEOPTS} -C mpy-cross
|
2022-07-08 06:27:23 +01:00
|
|
|
make ${MAKEOPTS} -C ports/windows submodules
|
2020-11-29 07:04:35 +00:00
|
|
|
make ${MAKEOPTS} -C ports/windows CROSS_COMPILE=i686-w64-mingw32-
|
|
|
|
}
|
|
|
|
|
|
|
|
########################################################################################
|
|
|
|
# ports/zephyr
|
|
|
|
|
2022-01-03 15:51:56 +00:00
|
|
|
ZEPHYR_DOCKER_VERSION=v0.21.0
|
|
|
|
ZEPHYR_SDK_VERSION=0.13.2
|
2022-06-16 19:51:09 +01:00
|
|
|
ZEPHYR_VERSION=v3.1.0
|
2022-01-03 15:51:56 +00:00
|
|
|
|
2020-11-29 07:04:35 +00:00
|
|
|
function ci_zephyr_setup {
|
2022-01-03 15:51:56 +00:00
|
|
|
docker pull zephyrprojectrtos/ci:${ZEPHYR_DOCKER_VERSION}
|
2020-11-29 07:04:35 +00:00
|
|
|
docker run --name zephyr-ci -d -it \
|
|
|
|
-v "$(pwd)":/micropython \
|
2022-01-03 15:51:56 +00:00
|
|
|
-e ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-${ZEPHYR_SDK_VERSION} \
|
2020-11-29 07:04:35 +00:00
|
|
|
-e ZEPHYR_TOOLCHAIN_VARIANT=zephyr \
|
2020-10-11 19:11:31 +01:00
|
|
|
-e ZEPHYR_BASE=/zephyrproject/zephyr \
|
2020-11-29 07:04:35 +00:00
|
|
|
-w /micropython/ports/zephyr \
|
2022-01-03 15:51:56 +00:00
|
|
|
zephyrprojectrtos/ci:${ZEPHYR_DOCKER_VERSION}
|
2020-11-29 07:04:35 +00:00
|
|
|
docker ps -a
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_zephyr_install {
|
2022-01-03 16:22:46 +00:00
|
|
|
docker exec zephyr-ci west init --mr ${ZEPHYR_VERSION} /zephyrproject
|
2020-11-29 07:04:35 +00:00
|
|
|
docker exec -w /zephyrproject zephyr-ci west update
|
|
|
|
docker exec -w /zephyrproject zephyr-ci west zephyr-export
|
|
|
|
}
|
|
|
|
|
|
|
|
function ci_zephyr_build {
|
2020-10-11 19:11:31 +01:00
|
|
|
docker exec zephyr-ci west build -p auto -b qemu_x86 -- -DCONF_FILE=prj_minimal.conf
|
|
|
|
docker exec zephyr-ci west build -p auto -b frdm_k64f
|
|
|
|
docker exec zephyr-ci west build -p auto -b mimxrt1050_evk
|
2022-01-12 05:12:37 +00:00
|
|
|
docker exec zephyr-ci west build -p auto -b nucleo_wb55rg # for bluetooth
|
2020-11-29 07:04:35 +00:00
|
|
|
}
|