From 31582044c72736d71f4572e7eca1715f46d6fed1 Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Tue, 24 Mar 2020 21:57:58 +0100 Subject: [PATCH] devtool: symlink + clippy for rpi4 --- devtool | 1 + utils/devtool.rb | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 120000 devtool diff --git a/devtool b/devtool new file mode 120000 index 00000000..2eb79114 --- /dev/null +++ b/devtool @@ -0,0 +1 @@ +utils/devtool.rb \ No newline at end of file diff --git a/utils/devtool.rb b/utils/devtool.rb index ca9f66a8..5428e5d1 100755 --- a/utils/devtool.rb +++ b/utils/devtool.rb @@ -29,10 +29,10 @@ class TutorialCrate Dir.chdir(@folder) { FileUtils.rm_rf('target') } end - def clippy - puts "Clippy #{@folder}".light_blue + def clippy(bsp) + puts "Clippy #{@folder} - BSP: #{bsp}".light_blue - Dir.chdir(@folder) { exit(1) unless system('make clippy') } + Dir.chdir(@folder) { exit(1) unless system("BSP=#{bsp} make clippy") } end def fmt(args) @@ -90,9 +90,11 @@ class DevTool FileUtils.rm_rf('xbuild_sysroot') end - def clippy + def clippy(bsp = 'rpi3') + bsp = ARGV[1] if ARGV[1] + @crates.each do |c| - c.clippy + c.clippy(bsp) puts puts end @@ -157,7 +159,8 @@ class DevTool fmt misspell rubocop - clippy + clippy('rpi4') + clippy('rpi3') copyright clean