-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This software allows for flashing of RISC-V microcontrollers and SOC's. The software is relatively basic and documented as part of flashing procedures on the pine64 wiki (pinecil)
- Loading branch information
1 parent
84790fe
commit 14f928c
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Blisp < Formula | ||
desc "ISP tool & library for Bouffalo Labs RISC-V Microcontrollers and SoCs" | ||
homepage "https://github.com/pine64/blisp" | ||
url "https://github.com/pine64/blisp.git", | ||
tag: "v0.0.4", | ||
revision: "f601b6b965a922b4a9f400d1c8fd946b69708728" | ||
license "MIT" | ||
head "https://github.com/pine64/blisp.git", branch: "master" | ||
|
||
depends_on "cmake" => :build | ||
|
||
def install | ||
system "cmake", "-S", ".", "-B", "build", "-DBLISP_BUILD_CLI=ON", *std_cmake_args | ||
system "cmake", "--build", "build" | ||
system "cmake", "--install", "build" | ||
rm Dir["#{lib}/blisp*.h"] | ||
end | ||
|
||
test do | ||
Check failure on line 19 in Formula/b/blisp.rb GitHub Actions / Linux`brew test --verbose blisp` failed on Linux!
Check failure on line 19 in Formula/b/blisp.rb GitHub Actions / macOS 15-arm64`brew test --verbose blisp` failed on macOS Sequoia (15) on Apple Silicon!
|
||
output = shell_output("#{bin}/blisp write -c bl70x --reset Pinecilv2_EN.bin 2>&1", 1) | ||
assert_match "Device not found", output | ||
end | ||
end |