From ba612586f0000c7e64a771b5254392e496259a43 Mon Sep 17 00:00:00 2001 From: Sean Marquez Date: Wed, 18 Oct 2023 21:43:27 -0700 Subject: [PATCH 1/2] install utilities as part of OSHW tools --- playbook.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/playbook.yaml b/playbook.yaml index d59bbfd..a0a77bb 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -59,6 +59,7 @@ - install_doctools - install_plantuml - install_avr_build_tools + - install_oshw_tools tasks: - name: Install build-essential @@ -94,6 +95,7 @@ gather_facts: yes tags: - install_avr_build_tools + - install_oshw_tools - install_doctools - install_utilities @@ -539,7 +541,9 @@ hosts: localhost connection: local gather_facts: yes - tags: install_utilities + tags: + - install_utilities + - install_oshw_tools vars: git_version: "2.42.0" From 739f8fd1fefca84bd8597690747817a10338a27a Mon Sep 17 00:00:00 2001 From: Sean Marquez Date: Thu, 19 Oct 2023 14:56:42 -0700 Subject: [PATCH 2/2] remove megaTinyCore --- playbook.yaml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/playbook.yaml b/playbook.yaml index a0a77bb..bc6ef69 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -396,7 +396,6 @@ vars: arduino_version: "1.8.19" arduino_cli_version: "0.33.0" - megatinycore_version: "2.6.8" arduino_pico_version: "3.3.0" arduino_esp32_version: "2.0.9" @@ -430,22 +429,14 @@ shell: mv /home/kasm-default-profile/install_files/arduino-cli_{{ arduino_cli_version }}/arduino-cli /usr/local/bin - name: Create arduino workspace directory in /home/kasm-default-profile/.arduino15/ for installing Arduino board libraries shell: mkdir -p /home /home/kasm-default-profile/.arduino15/ - - name: install package_drazzy.com_index.json for megaTinyCore - get_url: - url: http://drazzy.com/package_drazzy.com_index.json - dest: /home/kasm-default-profile/.arduino15/ - name: install package_rp2040_index.json for QT Py get_url: url: https://github.com/earlephilhower/arduino-pico/releases/download/{{ arduino_pico_version }}/package_rp2040_index.json dest: /home/kasm-default-profile/.arduino15/ - - name: install megatinycore {{ megatinycore_version }} using arduino-cli - shell: arduino-cli core install megaTinyCore:megaavr@{{ megatinycore_version }} --additional-urls http://drazzy.com/package_drazzy.com_index.json - name: install Arduino-Pico {{ arduino_pico_version }} using arduino-cli shell: arduino-cli core install rp2040:rp2040@{{ arduino_pico_version }} --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/{{ arduino_pico_version }}/package_rp2040_index.json - name: Download Arduino-ESP32 {{ arduino_esp32_version }} package index to /home/kasm-default-profile/.arduino15/ shell: wget https://github.com/espressif/arduino-esp32/releases/download/{{ arduino_esp32_version }}/package_esp32_index.json -O /home/kasm-default-profile/.arduino15/package_esp32_index.json - - name: Add megatinycore {{ megatinycore_version }} package index to /home/kasm-default-profile/.arduino15/preferences.txt - shell: echo "boardsmanager.additional.urls=http://drazzy.com/package_drazzy.com_index.json" >> /home/kasm-default-profile/.arduino15/preferences.txt - name: Add Arduino-Pico {{ arduino_pico_version }} package index to /home/kasm-default-profile/.arduino15/preferences.txt shell: echo "boardsmanager.additional.urls=https://github.com/earlephilhower/arduino-pico/releases/download/{{ arduino_pico_version }}/package_rp2040_index.json" >> /home/kasm-default-profile/.arduino15/preferences.txt - name: Add Arduino-ESP32 {{ arduino_esp32_version }} package index to /home/kasm-default-profile/.arduino15/preferences.txt @@ -458,9 +449,6 @@ - name: Get Arduino CLI version shell: arduino-cli version | sed 's/arduino-cli/\n/g' | sed 's/Commit:/\n/g' | grep Version | sed 's/[[:alpha:]|[:space:]]//g' | sed 's/://g' register: installed_arduino_cli_version - - name: Get megaTinyCore version - shell: arduino-cli core list | grep megaTinyCore | awk '{ print $2'} - register: installed_megatinycore_version - name: Get Arduino-Pico version shell: arduino-cli core list | grep rp2040 | awk '{ print $2'} register: installed_arduino_pico_version @@ -473,9 +461,6 @@ - name: Display Arduino CLI version debug: msg: "Arduino CLI version = {{ installed_arduino_cli_version.stdout }}" - - name: Display megaTinyCore version - debug: - msg: "megaTinyCore version = {{ installed_megatinycore_version.stdout }}" - name: Display Arduino-Pico version debug: msg: "Arduino-Pico version = {{ installed_arduino_pico_version.stdout }}" @@ -490,10 +475,6 @@ fail: msg: "Arduino CLI Version Error: Expected {{ arduino_cli_version }} | Found {{ installed_arduino_cli_version.stdout }}" when: installed_arduino_cli_version.stdout != arduino_cli_version - - name: Test megaTinyCore version - fail: - msg: "megaTinyCore Version Error: Expected {{ megatinycore_version }} | Found {{ installed_megatinycore_version.stdout }}" - when: installed_megatinycore_version.stdout != megatinycore_version - name: Test Arduino-Pico version fail: msg: "Arduino-Pico Version Error: Expected {{ arduino_pico_version }} | Found {{ installed_arduino_pico_version.stdout }}"