8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b3012 commit 06ac9e4Copy full SHA for 06ac9e4
Formula/e/elf2uf2-rs.rb
@@ -0,0 +1,20 @@
1
+class Elf2uf2Rs < Formula
2
+ desc "Convert ELF files to UF2 for USB Flashing Bootloaders"
3
+ homepage "https://github.com/JoNil/elf2uf2-rs"
4
+ url "https://github.com/JoNil/elf2uf2-rs/archive/refs/tags/2.1.1.tar.gz"
5
+ sha256 "c6845f696112193bbe6517ab0c9b9fc85dff1083911557212412e07c506ccd7c"
6
+ license "0BSD"
7
+
8
+ depends_on "rust" => :build
9
10
+ def install
11
+ system "cargo", "install", *std_cargo_args
12
+ (pkgshare/"examples").install Dir.glob("*.elf")
13
+ (pkgshare/"examples").install Dir.glob("*.uf2")
14
+ end
15
16
+ test do
17
+ system bin/"elf2uf2-rs", pkgshare/"examples"/"hello_usb.elf", "converted.uf2"
18
+ assert compare_file pkgshare/"examples"/"hello_usb.uf2", testpath/"converted.uf2"
19
20
+end
0 commit comments