Skip to content

Commit 3158204

Browse files
committed
devtool: symlink + clippy for rpi4
1 parent 2c2997f commit 3158204

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

devtool

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
utils/devtool.rb

utils/devtool.rb

+9-6
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def clean
2929
Dir.chdir(@folder) { FileUtils.rm_rf('target') }
3030
end
3131

32-
def clippy
33-
puts "Clippy #{@folder}".light_blue
32+
def clippy(bsp)
33+
puts "Clippy #{@folder} - BSP: #{bsp}".light_blue
3434

35-
Dir.chdir(@folder) { exit(1) unless system('make clippy') }
35+
Dir.chdir(@folder) { exit(1) unless system("BSP=#{bsp} make clippy") }
3636
end
3737

3838
def fmt(args)
@@ -90,9 +90,11 @@ def clean
9090
FileUtils.rm_rf('xbuild_sysroot')
9191
end
9292

93-
def clippy
93+
def clippy(bsp = 'rpi3')
94+
bsp = ARGV[1] if ARGV[1]
95+
9496
@crates.each do |c|
95-
c.clippy
97+
c.clippy(bsp)
9698
puts
9799
puts
98100
end
@@ -157,7 +159,8 @@ def ready_for_publish
157159
fmt
158160
misspell
159161
rubocop
160-
clippy
162+
clippy('rpi4')
163+
clippy('rpi3')
161164
copyright
162165

163166
clean

0 commit comments

Comments
 (0)