8000 elf2uf2-rs 2.1.1 (new formula) · Homebrew/homebrew-core@42b5dab · GitHub
[go: up one dir, main page]

Skip to content

Commit 42b5dab

Browse files
kpcyrddaeho-ro
authored andcommitted
elf2uf2-rs 2.1.1 (new formula)
1 parent 05b3012 commit 42b5dab

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Formula/e/elf2uf2-rs.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
on_linux do
11+
depends_on "pkgconf" => :build
12+
depends_on "systemd" # for libudev
13+
end
14+
15+
def install
16+
system "cargo", "install", *std_cargo_args
17+
(pkgshare/"examples").install Dir.glob("*.elf")
18+
(pkgshare/"examples").install Dir.glob("*.uf2")
19+
end
20+
21+
test do
22+
system bin/"elf2uf2-rs", pkgshare/"examples"/"hello_usb.elf", "converted.uf2"
23+
assert compare_file pkgshare/"examples"/"hello_usb.uf2", testpath/"converted.uf2"
24+
end
25+
end

audit_exceptions/mismatched_binary_allowlist.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"afl++": "share/afl/testcases/others/elf/small_exec.elf",
33
"aws-sam-cli": "libexec/lib/python*/site-packages/samcli/local/rapid/aws-lambda-rie-*",
44
"balena-cli": "**/*",
5+
"elf2uf2-rs": "share/elf2uf2-rs/examples/*.elf",
56
"faust": "share/faust/android/app/lib/libsndfile/lib/*/libsndfile.so",
67
"i686-elf-grub": "lib/i686-elf/grub/i386-pc/*",
78
"lima": "share/lima/lima-guestagent.Linux-*",

0 commit comments

Comments
 (0)
0