Skip to content

Commit

Permalink
Adding BLISP into the core repository
Browse files Browse the repository at this point in the history
Blisp is a software used for flashing RISC-V microcontrollers
it is used for example to flashing the pinecil.
I was not able to add a bottle for various reasons. But the build from source works.
  • Loading branch information
altf4arnold committed Oct 5, 2024
1 parent 84790fe commit fae9d46
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/b/blisp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class Blisp < Formula
desc "ISP tool & library for Bouffalo Labs RISC-V Microcontrollers and SoCs "
homepage "https://github.com/pine64/blisp"
license "MIT"
url "https://github.com/pine64/blisp.git",
tag: "v0.0.4",
revision: "f601b6b965a922b4a9f400d1c8fd946b69708728"
head "https://github.com/pine64/blisp.git", branch: "master"

depends_on "cmake" => :build

def install
# Remove unrecognized options if they cause configure to fail
# https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method
mkdir "build" do
system "cmake", "..", "-DBLISP_BUILD_CLI=ON"
system "cmake", "--build", "."
end
bin.install "build/tools/blisp"
end

test do
# Verify that the binary can be executed and output is correct
assert_match "blisp", shell_output("#{bin}/blisp --version")
end
end

0 comments on commit fae9d46

Please sign in to comment.