File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ utils/devtool.rb
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ def clean
29
29
Dir . chdir ( @folder ) { FileUtils . rm_rf ( 'target' ) }
30
30
end
31
31
32
- def clippy
33
- puts "Clippy #{ @folder } " . light_blue
32
+ def clippy ( bsp )
33
+ puts "Clippy #{ @folder } - BSP: #{ bsp } " . light_blue
34
34
35
- Dir . chdir ( @folder ) { exit ( 1 ) unless system ( ' make clippy' ) }
35
+ Dir . chdir ( @folder ) { exit ( 1 ) unless system ( "BSP= #{ bsp } make clippy" ) }
36
36
end
37
37
38
38
def fmt ( args )
@@ -90,9 +90,11 @@ def clean
90
90
FileUtils . rm_rf ( 'xbuild_sysroot' )
91
91
end
92
92
93
- def clippy
93
+ def clippy ( bsp = 'rpi3' )
94
+ bsp = ARGV [ 1 ] if ARGV [ 1 ]
95
+
94
96
@crates . each do |c |
95
- c . clippy
97
+ c . clippy ( bsp )
96
98
puts
97
99
puts
98
100
end
@@ -157,7 +159,8 @@ def ready_for_publish
157
159
fmt
158
160
misspell
159
161
rubocop
160
- clippy
162
+ clippy ( 'rpi4' )
163
+ clippy ( 'rpi3' )
161
164
copyright
162
165
163
166
clean
You can’t perform that action at this time.
0 commit comments