From a9a79ece4def5f5375851606104741a2c8519ec4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 31 Mar 2022 14:22:32 +0300 Subject: [PATCH 1/8] Switch docs to HTTP --- README.md | 8 ++++---- .../freedom-e-sdk_freertos-blinky-system-view/README.md | 2 +- .../platformio.ini | 2 +- examples/freedom-e-sdk_freertos-blinky/README.md | 2 +- examples/freedom-e-sdk_freertos-blinky/platformio.ini | 2 +- examples/freedom-e-sdk_freertos-pmp-blinky/README.md | 2 +- examples/freedom-e-sdk_freertos-pmp-blinky/platformio.ini | 2 +- examples/freedom-e-sdk_hello/README.md | 2 +- examples/freedom-e-sdk_hello/platformio.ini | 2 +- examples/freedom-e-sdk_multicore-hello/README.md | 2 +- examples/freedom-e-sdk_multicore-hello/platformio.ini | 2 +- examples/freedom-e-sdk_sifive-welcome/README.md | 2 +- examples/freedom-e-sdk_sifive-welcome/platformio.ini | 2 +- examples/freedom-e-sdk_spi/README.md | 2 +- examples/freedom-e-sdk_spi/platformio.ini | 2 +- examples/freedom-e-sdk_test-coreip/README.md | 2 +- examples/freedom-e-sdk_test-coreip/platformio.ini | 2 +- examples/freedom-e-sdk_timer-interrupt/README.md | 2 +- examples/freedom-e-sdk_timer-interrupt/platformio.ini | 2 +- examples/freedom-e-sdk_user-mode/README.md | 2 +- examples/freedom-e-sdk_user-mode/platformio.ini | 2 +- examples/freedom-e-sdk_user-syscall/README.md | 2 +- examples/freedom-e-sdk_user-syscall/platformio.ini | 2 +- examples/native-blink_asm/README.md | 2 +- examples/native-blink_asm/platformio.ini | 4 ++-- examples/zephyr-blink/README.md | 2 +- examples/zephyr-blink/platformio.ini | 2 +- examples/zephyr-hello-world/README.md | 2 +- examples/zephyr-hello-world/platformio.ini | 2 +- examples/zephyr-synchronization/README.md | 2 +- examples/zephyr-synchronization/platformio.ini | 2 +- 31 files changed, 35 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index d88d23d..ef1d31b 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ SiFive brings the power of open source and software automation to the semiconductor industry, making it possible to develop new hardware faster and more affordably than ever before. -* [Home](http://platformio.org/platforms/sifive) (home page in PlatformIO Platform Registry) -* [Documentation](http://docs.platformio.org/page/platforms/sifive.html) (advanced usage, packages, boards, frameworks, etc.) +* [Home](https://registry.platformio.org/platforms/platformio/sifive) (home page in the PlatformIO Registry) +* [Documentation](https://docs.platformio.org/page/platforms/sifive.html) (advanced usage, packages, boards, frameworks, etc.) # Usage 1. [Install PlatformIO](http://platformio.org) -2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file: +2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file: ## Stable version @@ -32,4 +32,4 @@ board = ... # Configuration -Please navigate to [documentation](http://docs.platformio.org/page/platforms/sifive.html). +Please navigate to [documentation](https://docs.platformio.org/page/platforms/sifive.html). diff --git a/examples/freedom-e-sdk_freertos-blinky-system-view/README.md b/examples/freedom-e-sdk_freertos-blinky-system-view/README.md index 65502ed..a83ded4 100644 --- a/examples/freedom-e-sdk_freertos-blinky-system-view/README.md +++ b/examples/freedom-e-sdk_freertos-blinky-system-view/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_freertos-blinky-system-view/platformio.ini b/examples/freedom-e-sdk_freertos-blinky-system-view/platformio.ini index 6af3b61..e96f414 100644 --- a/examples/freedom-e-sdk_freertos-blinky-system-view/platformio.ini +++ b/examples/freedom-e-sdk_freertos-blinky-system-view/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_freertos-blinky/README.md b/examples/freedom-e-sdk_freertos-blinky/README.md index 44b6afc..b5c3aca 100644 --- a/examples/freedom-e-sdk_freertos-blinky/README.md +++ b/examples/freedom-e-sdk_freertos-blinky/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_freertos-blinky/platformio.ini b/examples/freedom-e-sdk_freertos-blinky/platformio.ini index 113f89f..628108f 100644 --- a/examples/freedom-e-sdk_freertos-blinky/platformio.ini +++ b/examples/freedom-e-sdk_freertos-blinky/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_freertos-pmp-blinky/README.md b/examples/freedom-e-sdk_freertos-pmp-blinky/README.md index 9a35e2c..4d8c5b2 100644 --- a/examples/freedom-e-sdk_freertos-pmp-blinky/README.md +++ b/examples/freedom-e-sdk_freertos-pmp-blinky/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_freertos-pmp-blinky/platformio.ini b/examples/freedom-e-sdk_freertos-pmp-blinky/platformio.ini index 36c7f0e..164f843 100644 --- a/examples/freedom-e-sdk_freertos-pmp-blinky/platformio.ini +++ b/examples/freedom-e-sdk_freertos-pmp-blinky/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_hello/README.md b/examples/freedom-e-sdk_hello/README.md index fc9830e..798f4f1 100644 --- a/examples/freedom-e-sdk_hello/README.md +++ b/examples/freedom-e-sdk_hello/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_hello/platformio.ini b/examples/freedom-e-sdk_hello/platformio.ini index 95170ca..bc445d2 100644 --- a/examples/freedom-e-sdk_hello/platformio.ini +++ b/examples/freedom-e-sdk_hello/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_multicore-hello/README.md b/examples/freedom-e-sdk_multicore-hello/README.md index 3da28e9..135fdc2 100644 --- a/examples/freedom-e-sdk_multicore-hello/README.md +++ b/examples/freedom-e-sdk_multicore-hello/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_multicore-hello/platformio.ini b/examples/freedom-e-sdk_multicore-hello/platformio.ini index 9a65856..b1786b5 100644 --- a/examples/freedom-e-sdk_multicore-hello/platformio.ini +++ b/examples/freedom-e-sdk_multicore-hello/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_sifive-welcome/README.md b/examples/freedom-e-sdk_sifive-welcome/README.md index ef8ead5..929b520 100644 --- a/examples/freedom-e-sdk_sifive-welcome/README.md +++ b/examples/freedom-e-sdk_sifive-welcome/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_sifive-welcome/platformio.ini b/examples/freedom-e-sdk_sifive-welcome/platformio.ini index 4e44dcb..4a8a852 100644 --- a/examples/freedom-e-sdk_sifive-welcome/platformio.ini +++ b/examples/freedom-e-sdk_sifive-welcome/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_spi/README.md b/examples/freedom-e-sdk_spi/README.md index fa8cbe3..44b120c 100644 --- a/examples/freedom-e-sdk_spi/README.md +++ b/examples/freedom-e-sdk_spi/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_spi/platformio.ini b/examples/freedom-e-sdk_spi/platformio.ini index d5d9200..aabde46 100644 --- a/examples/freedom-e-sdk_spi/platformio.ini +++ b/examples/freedom-e-sdk_spi/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_test-coreip/README.md b/examples/freedom-e-sdk_test-coreip/README.md index fa8cbe3..44b120c 100644 --- a/examples/freedom-e-sdk_test-coreip/README.md +++ b/examples/freedom-e-sdk_test-coreip/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_test-coreip/platformio.ini b/examples/freedom-e-sdk_test-coreip/platformio.ini index 4995f82..2e296b3 100644 --- a/examples/freedom-e-sdk_test-coreip/platformio.ini +++ b/examples/freedom-e-sdk_test-coreip/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_timer-interrupt/README.md b/examples/freedom-e-sdk_timer-interrupt/README.md index fa8cbe3..44b120c 100644 --- a/examples/freedom-e-sdk_timer-interrupt/README.md +++ b/examples/freedom-e-sdk_timer-interrupt/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_timer-interrupt/platformio.ini b/examples/freedom-e-sdk_timer-interrupt/platformio.ini index ea83933..da267bd 100644 --- a/examples/freedom-e-sdk_timer-interrupt/platformio.ini +++ b/examples/freedom-e-sdk_timer-interrupt/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_user-mode/README.md b/examples/freedom-e-sdk_user-mode/README.md index fa8cbe3..44b120c 100644 --- a/examples/freedom-e-sdk_user-mode/README.md +++ b/examples/freedom-e-sdk_user-mode/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_user-mode/platformio.ini b/examples/freedom-e-sdk_user-mode/platformio.ini index b24368c..6926eba 100644 --- a/examples/freedom-e-sdk_user-mode/platformio.ini +++ b/examples/freedom-e-sdk_user-mode/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/freedom-e-sdk_user-syscall/README.md b/examples/freedom-e-sdk_user-syscall/README.md index fa8cbe3..44b120c 100644 --- a/examples/freedom-e-sdk_user-syscall/README.md +++ b/examples/freedom-e-sdk_user-syscall/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/freedom-e-sdk_user-syscall/platformio.ini b/examples/freedom-e-sdk_user-syscall/platformio.ini index 1944b34..246ab5c 100644 --- a/examples/freedom-e-sdk_user-syscall/platformio.ini +++ b/examples/freedom-e-sdk_user-syscall/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = diff --git a/examples/native-blink_asm/README.md b/examples/native-blink_asm/README.md index fa8cbe3..44b120c 100644 --- a/examples/native-blink_asm/README.md +++ b/examples/native-blink_asm/README.md @@ -1,7 +1,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/native-blink_asm/platformio.ini b/examples/native-blink_asm/platformio.ini index 812d504..d4841af 100644 --- a/examples/native-blink_asm/platformio.ini +++ b/examples/native-blink_asm/platformio.ini @@ -5,11 +5,11 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [platformio] description = - Source files for the PlatformIO RISC-V Assembly Language Tutorial + Source files for the PlatformIO RISC-V Assembly Language Tutorial that accompanies the videos posted on YouTube [env:sifive-hifive1-revb] diff --git a/examples/zephyr-blink/README.md b/examples/zephyr-blink/README.md index d107fd9..c778a3b 100644 --- a/examples/zephyr-blink/README.md +++ b/examples/zephyr-blink/README.md @@ -12,7 +12,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/zephyr-blink/platformio.ini b/examples/zephyr-blink/platformio.ini index 84e757b..6dfae58 100644 --- a/examples/zephyr-blink/platformio.ini +++ b/examples/zephyr-blink/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [env:hifive1-revb] platform = sifive diff --git a/examples/zephyr-hello-world/README.md b/examples/zephyr-hello-world/README.md index 763502b..bd062b3 100644 --- a/examples/zephyr-hello-world/README.md +++ b/examples/zephyr-hello-world/README.md @@ -12,7 +12,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/zephyr-hello-world/platformio.ini b/examples/zephyr-hello-world/platformio.ini index 2a0d8e2..5888865 100644 --- a/examples/zephyr-hello-world/platformio.ini +++ b/examples/zephyr-hello-world/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [env:hifive1-revb] platform = sifive diff --git a/examples/zephyr-synchronization/README.md b/examples/zephyr-synchronization/README.md index 2b519af..94eb487 100644 --- a/examples/zephyr-synchronization/README.md +++ b/examples/zephyr-synchronization/README.md @@ -12,7 +12,7 @@ How to build PlatformIO based project ===================================== -1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html) +1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html) 2. Download [development platform with examples](https://github.com/platformio/platform-sifive/archive/develop.zip) 3. Extract ZIP archive 4. Run these commands: diff --git a/examples/zephyr-synchronization/platformio.ini b/examples/zephyr-synchronization/platformio.ini index da9f77c..26bb20c 100644 --- a/examples/zephyr-synchronization/platformio.ini +++ b/examples/zephyr-synchronization/platformio.ini @@ -5,7 +5,7 @@ ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples -; http://docs.platformio.org/page/projectconf.html +; https://docs.platformio.org/page/projectconf.html [env:hifive1-revb] platform = sifive From 8f9315d9340a7b18222392a23ea816bb82b46140 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 4 Apr 2022 12:04:36 +0300 Subject: [PATCH 2/8] Use the latest Github OS images --- .github/workflows/examples.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 1cc6abc..ded431b 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-18.04, windows-latest, macos-latest] + os: [ubuntu-latest, windows-latest, macos-latest] python-version: [3.7] example: - "examples/freedom-e-sdk_freertos-blinky" @@ -25,10 +25,6 @@ jobs: - "examples/zephyr-blink" - "examples/zephyr-hello-world" - "examples/zephyr-synchronization" - exclude: - - {python-version: 2.7, example: "examples/zephyr-blink"} - - {python-version: 2.7, example: "examples/zephyr-hello-world"} - - {python-version: 2.7, example: "examples/zephyr-synchronization"} runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 From ff2a68087ea8972ff575e767a155be05ed9a07c4 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 8 Apr 2022 12:16:11 +0300 Subject: [PATCH 3/8] Symlink dev-platform --- .github/workflows/examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index ded431b..1c9b2d2 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -38,7 +38,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -U https://github.com/platformio/platformio/archive/develop.zip - platformio platform install file://. + pio pkg install --global --platform symlink://. - name: Build examples run: | platformio run -d ${{ matrix.example }} From a54c117d99a85d7a5cfe8cc831e8936611cedeff Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 28 May 2022 16:34:12 +0300 Subject: [PATCH 4/8] Remove unnecessary files --- builder/compat.py | 38 ----------- builder/main.py | 1 - .../.travis.yml | 67 ------------------- .../freedom-e-sdk_freertos-blinky/.travis.yml | 67 ------------------- .../.travis.yml | 67 ------------------- examples/freedom-e-sdk_hello/.travis.yml | 67 ------------------- .../freedom-e-sdk_multicore-hello/.travis.yml | 67 ------------------- .../freedom-e-sdk_sifive-welcome/.travis.yml | 67 ------------------- examples/freedom-e-sdk_spi/.travis.yml | 67 ------------------- .../freedom-e-sdk_test-coreip/.travis.yml | 67 ------------------- .../freedom-e-sdk_timer-interrupt/.travis.yml | 67 ------------------- examples/freedom-e-sdk_user-mode/.travis.yml | 67 ------------------- .../freedom-e-sdk_user-syscall/.travis.yml | 67 ------------------- examples/native-blink_asm/.travis.yml | 67 ------------------- examples/zephyr-blink/.travis.yml | 67 ------------------- examples/zephyr-hello-world/.travis.yml | 67 ------------------- examples/zephyr-synchronization/.travis.yml | 67 ------------------- 17 files changed, 1044 deletions(-) delete mode 100644 builder/compat.py delete mode 100644 examples/freedom-e-sdk_freertos-blinky-system-view/.travis.yml delete mode 100644 examples/freedom-e-sdk_freertos-blinky/.travis.yml delete mode 100644 examples/freedom-e-sdk_freertos-pmp-blinky/.travis.yml delete mode 100644 examples/freedom-e-sdk_hello/.travis.yml delete mode 100644 examples/freedom-e-sdk_multicore-hello/.travis.yml delete mode 100644 examples/freedom-e-sdk_sifive-welcome/.travis.yml delete mode 100644 examples/freedom-e-sdk_spi/.travis.yml delete mode 100644 examples/freedom-e-sdk_test-coreip/.travis.yml delete mode 100644 examples/freedom-e-sdk_timer-interrupt/.travis.yml delete mode 100644 examples/freedom-e-sdk_user-mode/.travis.yml delete mode 100644 examples/freedom-e-sdk_user-syscall/.travis.yml delete mode 100644 examples/native-blink_asm/.travis.yml delete mode 100644 examples/zephyr-blink/.travis.yml delete mode 100644 examples/zephyr-hello-world/.travis.yml delete mode 100644 examples/zephyr-synchronization/.travis.yml diff --git a/builder/compat.py b/builder/compat.py deleted file mode 100644 index b8dfe3d..0000000 --- a/builder/compat.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2014-present PlatformIO -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from SCons.Script import AlwaysBuild, Import - - -Import("env") - - -# Added in PIO Core 4.4.0 -if not hasattr(env, "AddPlatformTarget"): - - def AddPlatformTarget( - env, - name, - dependencies, - actions, - title=None, - description=None, - always_build=True, - ): - target = env.Alias(name, dependencies, actions) - if always_build: - AlwaysBuild(target) - return target - - env.AddMethod(AddPlatformTarget) diff --git a/builder/main.py b/builder/main.py index 89a6570..e925350 100644 --- a/builder/main.py +++ b/builder/main.py @@ -22,7 +22,6 @@ env = DefaultEnvironment() -env.SConscript("compat.py", exports="env") platform = env.PioPlatform() board_config = env.BoardConfig() diff --git a/examples/freedom-e-sdk_freertos-blinky-system-view/.travis.yml b/examples/freedom-e-sdk_freertos-blinky-system-view/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_freertos-blinky-system-view/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_freertos-blinky/.travis.yml b/examples/freedom-e-sdk_freertos-blinky/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_freertos-blinky/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_freertos-pmp-blinky/.travis.yml b/examples/freedom-e-sdk_freertos-pmp-blinky/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_freertos-pmp-blinky/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_hello/.travis.yml b/examples/freedom-e-sdk_hello/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_hello/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_multicore-hello/.travis.yml b/examples/freedom-e-sdk_multicore-hello/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_multicore-hello/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_sifive-welcome/.travis.yml b/examples/freedom-e-sdk_sifive-welcome/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_sifive-welcome/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_spi/.travis.yml b/examples/freedom-e-sdk_spi/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_spi/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_test-coreip/.travis.yml b/examples/freedom-e-sdk_test-coreip/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_test-coreip/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_timer-interrupt/.travis.yml b/examples/freedom-e-sdk_timer-interrupt/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_timer-interrupt/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_user-mode/.travis.yml b/examples/freedom-e-sdk_user-mode/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_user-mode/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/freedom-e-sdk_user-syscall/.travis.yml b/examples/freedom-e-sdk_user-syscall/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/freedom-e-sdk_user-syscall/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/native-blink_asm/.travis.yml b/examples/native-blink_asm/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/native-blink_asm/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/zephyr-blink/.travis.yml b/examples/zephyr-blink/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/zephyr-blink/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/zephyr-hello-world/.travis.yml b/examples/zephyr-hello-world/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/zephyr-hello-world/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N diff --git a/examples/zephyr-synchronization/.travis.yml b/examples/zephyr-synchronization/.travis.yml deleted file mode 100644 index 7c486f1..0000000 --- a/examples/zephyr-synchronization/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Continuous Integration (CI) is the practice, in software -# engineering, of merging all developer working copies with a shared mainline -# several times a day < https://docs.platformio.org/page/ci/index.html > -# -# Documentation: -# -# * Travis CI Embedded Builds with PlatformIO -# < https://docs.travis-ci.com/user/integration/platformio/ > -# -# * PlatformIO integration with Travis CI -# < https://docs.platformio.org/page/ci/travis.html > -# -# * User Guide for `platformio ci` command -# < https://docs.platformio.org/page/userguide/cmd_ci.html > -# -# -# Please choose one of the following templates (proposed below) and uncomment -# it (remove "# " before each line) or use own configuration according to the -# Travis CI documentation (see above). -# - - -# -# Template #1: General project. Test it using existing `platformio.ini`. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio run - - -# -# Template #2: The project is intended to be used as a library with examples. -# - -# language: python -# python: -# - "2.7" -# -# sudo: false -# cache: -# directories: -# - "~/.platformio" -# -# env: -# - PLATFORMIO_CI_SRC=path/to/test/file.c -# - PLATFORMIO_CI_SRC=examples/file.ino -# - PLATFORMIO_CI_SRC=path/to/test/directory -# -# install: -# - pip install -U platformio -# - platformio update -# -# script: -# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N From 2df607506d7a49d33055e240119ad2744721e536 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 28 May 2022 16:34:23 +0300 Subject: [PATCH 5/8] Improve support for hand-written asm source files --- builder/frameworks/_bare.py | 25 ++++++++++++++----------- builder/frameworks/freedom-e-sdk.py | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/builder/frameworks/_bare.py b/builder/frameworks/_bare.py index e359e31..7bf49f0 100644 --- a/builder/frameworks/_bare.py +++ b/builder/frameworks/_bare.py @@ -22,29 +22,32 @@ board_config = env.BoardConfig() +machine_flags = [ + "-march=%s" % board_config.get("build.march"), + "-mabi=%s" % board_config.get("build.mabi"), + "-mcmodel=%s" % board_config.get("build.mcmodel") +] + env.Append( - CCFLAGS=[ + ASFLAGS=machine_flags, + + ASPPFLAGS=[ + "-x", "assembler-with-cpp", + ], + + CCFLAGS=machine_flags + [ "-Os", "-Wall", # show warnings - "-march=%s" % board_config.get("build.march"), - "-mabi=%s" % board_config.get("build.mabi"), - "-mcmodel=%s" % board_config.get("build.mcmodel") ], - LINKFLAGS=[ + LINKFLAGS=machine_flags + [ "-Os", "-ffunction-sections", "-fdata-sections", "-nostartfiles", - "-march=%s" % board_config.get("build.march"), - "-mabi=%s" % board_config.get("build.mabi"), - "-mcmodel=%s" % board_config.get("build.mcmodel"), "--specs=nano.specs", "-Wl,--gc-sections" ], LIBS=["c"], ) - -# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode) -env.Append(ASFLAGS=env.get("CCFLAGS", [])[:]) diff --git a/builder/frameworks/freedom-e-sdk.py b/builder/frameworks/freedom-e-sdk.py index 8a03cb0..fa1c2f3 100644 --- a/builder/frameworks/freedom-e-sdk.py +++ b/builder/frameworks/freedom-e-sdk.py @@ -195,7 +195,7 @@ def build_system_view_lib(): target = "freedom-e310-arty" env.Append( - ASFLAGS=[ + ASPPFLAGS=[ "--specs=nano.specs" ], CCFLAGS=[ From 0493a5f9f35693fb89337e6a1d71706c9d0a82e5 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 28 May 2022 16:34:33 +0300 Subject: [PATCH 6/8] Add compatibility with PIO Core 6.0 --- .github/workflows/examples.yml | 12 +++++------- README.md | 4 ++-- platform.json | 2 +- platform.py | 19 ++++++++++--------- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 1c9b2d2..5b1bf5b 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -8,7 +8,6 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: [3.7] example: - "examples/freedom-e-sdk_freertos-blinky" - "examples/freedom-e-sdk_freertos-blinky-system-view" @@ -27,18 +26,17 @@ jobs: - "examples/zephyr-synchronization" runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: "recursive" - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + - name: Set up Python + uses: actions/setup-python@v3 with: - python-version: ${{ matrix.python-version }} + python-version: "3.9" - name: Install dependencies run: | - python -m pip install --upgrade pip pip install -U https://github.com/platformio/platformio/archive/develop.zip pio pkg install --global --platform symlink://. - name: Build examples run: | - platformio run -d ${{ matrix.example }} + pio run -d ${{ matrix.example }} diff --git a/README.md b/README.md index ef1d31b..43551a5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SiFive: development platform for [PlatformIO](http://platformio.org) +# SiFive: development platform for [PlatformIO](https://platformio.org) [![Build Status](https://github.com/platformio/platform-sifive/workflows/Examples/badge.svg)](https://github.com/platformio/platform-sifive/actions) @@ -9,7 +9,7 @@ SiFive brings the power of open source and software automation to the semiconduc # Usage -1. [Install PlatformIO](http://platformio.org) +1. [Install PlatformIO](https://platformio.org) 2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file: ## Stable version diff --git a/platform.json b/platform.json index 24a6817..756a8d2 100644 --- a/platform.json +++ b/platform.json @@ -10,7 +10,7 @@ "RISC-V" ], "engines": { - "platformio": "^5" + "platformio": "^6" }, "repository": { "type": "git", diff --git a/platform.py b/platform.py index 51250c9..557f29d 100644 --- a/platform.py +++ b/platform.py @@ -14,12 +14,13 @@ import copy import os -import platform +import sys -from platformio.managers.platform import PlatformBase -from platformio.util import get_systype +from platformio.public import PlatformBase +IS_WINDOWS = sys.platform.startswith("win") + class SifivePlatform(PlatformBase): def configure_default_packages(self, variables, targets): @@ -27,7 +28,7 @@ def configure_default_packages(self, variables, targets): for p in self.packages: if p in ("tool-cmake", "tool-dtc", "tool-ninja"): self.packages[p]["optional"] = False - if "windows" not in get_systype(): + if not IS_WINDOWS: self.packages["tool-gperf"]["optional"] = False upload_protocol = variables.get( @@ -38,16 +39,16 @@ def configure_default_packages(self, variables, targets): if upload_protocol == "renode" and "debug" not in targets: self.packages["tool-renode"]["type"] = "uploader" - return PlatformBase.configure_default_packages(self, variables, targets) + return super().configure_default_packages(variables, targets) def get_boards(self, id_=None): - result = PlatformBase.get_boards(self, id_) + result = super().get_boards(id_) if not result: return result if id_: return self._add_default_debug_tools(result) else: - for key, value in result.items(): + for key in result: result[key] = self._add_default_debug_tools(result[key]) return result @@ -82,7 +83,7 @@ def _add_default_debug_tools(self, board): "-port", "2331" ], "executable": ("JLinkGDBServerCL.exe" - if platform.system() == "Windows" else + if IS_WINDOWS else "JLinkGDBServer") }, "onboard": tool in debug.get("onboard_tools", []) @@ -118,7 +119,7 @@ def _add_default_debug_tools(self, board): "-e", "machine StartGdbServer 3333 True" ], "executable": ("bin/Renode" - if platform.system() == "Windows" else + if IS_WINDOWS else "renode"), "ready_pattern": "GDB server with all CPUs started on port" From b7019a87b3facae429425d0552dd4531c21d962d Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Mon, 30 May 2022 11:52:59 +0300 Subject: [PATCH 7/8] Properly configure custom debug speed --- platform.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/platform.py b/platform.py index 557f29d..055f04c 100644 --- a/platform.py +++ b/platform.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import copy import os import sys @@ -21,6 +20,7 @@ IS_WINDOWS = sys.platform.startswith("win") + class SifivePlatform(PlatformBase): def configure_default_packages(self, variables, targets): @@ -157,18 +157,14 @@ def _add_default_debug_tools(self, board): board.manifest["debug"] = debug return board - def configure_debug_options(self, initial_debug_options, ide_data): - debug_options = copy.deepcopy(initial_debug_options) - server_executable = debug_options["server"]["executable"].lower() - adapter_speed = initial_debug_options.get("speed") - if adapter_speed: + def configure_debug_session(self, debug_config): + if debug_config.speed: + server_executable = (debug_config.server or {}).get("executable", "").lower() if "openocd" in server_executable: - debug_options["server"]["arguments"].extend( - ["-c", "adapter_khz %s" % adapter_speed] + debug_config.server["arguments"].extend( + ["-c", "adapter speed %s" % debug_config.speed] ) elif "jlink" in server_executable: - debug_options["server"]["arguments"].extend( - ["-speed", adapter_speed] + debug_config.server["arguments"].extend( + ["-speed", debug_config.speed] ) - - return debug_options From ffd5368a641fe7318ef7bd430921ac5cd3df11bd Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Mon, 30 May 2022 18:19:31 +0300 Subject: [PATCH 8/8] Bump version to 5.2.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 756a8d2..02d3c46 100644 --- a/platform.json +++ b/platform.json @@ -16,7 +16,7 @@ "type": "git", "url": "https://github.com/platformio/platform-sifive.git" }, - "version": "5.1.1", + "version": "5.2.0", "frameworks": { "freedom-e-sdk": { "package": "framework-freedom-e-sdk",