File tree Expand file tree Collapse file tree 7 files changed +45
-9
lines changed Expand file tree Collapse file tree 7 files changed +45
-9
lines changed Original file line number Diff line number Diff line change 55
55
- name : Set Toolchain Path
56
56
run : echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
57
57
58
+ - name : Get Dependencies
59
+ run : python3 tools/get_dependencies.py ${{ matrix.family }}
60
+
58
61
- name : Build
59
62
run : python3 tools/build_family.py ${{ matrix.family }}
60
63
Original file line number Diff line number Diff line change 89
89
run : |
90
90
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
91
91
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
92
- git submodule update --init hw/mcu/raspberry_pi/Pico-PIO-USB
93
92
94
93
- name : Get Dependencies
95
- run : |
96
- b=`find hw/bsp/${{ matrix.family }}/boards -depth -maxdepth 1 -type d -name '[^.]?*' -printf %f -quit`
97
- make -C examples/device/board_test BOARD=${b} get-deps
94
+ run : python3 tools/get_dependencies.py ${{ matrix.family }}
98
95
99
96
- name : Build
100
97
run : python3 tools/build_family.py ${{ matrix.family }}
@@ -127,16 +124,16 @@ jobs:
127
124
- name : Setup Python
128
125
uses : actions/setup-python@v3
129
126
127
+ - name : Install ARM GCC
128
+ uses : carlosperate/arm-none-eabi-gcc-action@v1
129
+ with :
130
+ release : ' 11.2-2022.02'
131
+
130
132
- name : Checkout TinyUSB
131
133
uses : actions/checkout@v3
132
134
133
135
- name : Checkout common submodules in lib
134
136
run : git submodule update --init lib/FreeRTOS-Kernel lib/lwip
135
137
136
- - name : Install ARM GCC
137
- uses : carlosperate/arm-none-eabi-gcc-action@v1
138
- with :
139
- release : ' 11.2-2022.02'
140
-
141
138
- name : Build
142
139
run : python3 tools/build_board.py ${{ matrix.example }}
Original file line number Diff line number Diff line change 52
52
- name : Set Toolchain Path
53
53
run : echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
54
54
55
+ - name : Get Dependencies
56
+ run : python3 tools/get_dependencies.py ${{ matrix.family }}
57
+
55
58
- name : Build
56
59
run : python3 tools/build_family.py ${{ matrix.family }}
57
60
Original file line number Diff line number Diff line change 53
53
- name : Set Toolchain Path
54
54
run : echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
55
55
56
+ - name : Get Dependencies
57
+ run : python3 tools/get_dependencies.py ${{ matrix.family }}
58
+
56
59
- name : Build
57
60
run : python3 tools/build_family.py ${{ matrix.family }}
58
61
Original file line number Diff line number Diff line change 53
53
- name : Set Toolchain Path
54
54
run : echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
55
55
56
+ - name : Get Dependencies
57
+ run : python3 tools/get_dependencies.py ${{ matrix.family }}
58
+
56
59
- name : Build
57
60
run : python3 tools/build_family.py ${{ matrix.family }}
58
61
Original file line number Diff line number Diff line change 1
1
JLINK_DEVICE = rp2040_m0_0
2
2
PYOCD_TARGET = rp2040
3
3
4
+ DEPS_SUBMODULES += hw/mcu/raspberry_pi/Pico-PIO-USB
5
+
4
6
ifeq ($(DEBUG ) , 1)
5
7
CMAKE_DEFSYM += -DCMAKE_BUILD_TYPE=Debug
6
8
endif
Original file line number Diff line number Diff line change
1
+ import os
2
+ import sys
3
+ import subprocess
4
+
5
+
6
+ # dependency lookup (ABC sorted)
7
+ # deps = {
8
+ # 'LPC11UXX' : [ [] ]
9
+ # }
10
+
11
+
12
+ def get_family_dep (family ):
13
+ for entry in os .scandir ("hw/bsp/{}/boards" .format (family )):
14
+ if entry .is_dir ():
15
+ result = subprocess .run ("make -C examples/device/board_test BOARD={} get-deps" .format (entry .name ),
16
+ shell = True , stdout = subprocess .PIPE , stderr = subprocess .STDOUT )
17
+ print (result .stdout .decode ("utf-8" ))
18
+ return result .returncode
19
+
20
+ status = 0
21
+ all_family = sys .argv [1 :]
22
+ for f in all_family :
23
+ status += get_family_dep (f )
24
+
25
+ sys .exit (status )
You can’t perform that action at this time.
0 commit comments