Skip to content

Commit

Permalink
blisp 0.0.4
Browse files Browse the repository at this point in the history
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)

blisp: update build and test and autobump

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
altf4arnold authored and chenrui333 committed Oct 6, 2024
1 parent ce807e7 commit 1aad4b7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ bkt
black
blast
blis
blisp
blocky
bluepill
blueutil
Expand Down
35 changes: 35 additions & 0 deletions Formula/b/blisp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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/archive/refs/tags/v0.0.4.tar.gz"
sha256 "288a8165f7dce604657f79ee8eea895cc2fa4e4676de5df9853177defd77cf78"
license "MIT"
head "https://github.com/pine64/blisp.git", branch: "master"

depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "argtable3"
depends_on "libserialport"

def install
args = %w[
-DBLISP_USE_SYSTEM_LIBRARIES=ON
-DBLISP_BUILD_CLI=ON
]

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"

# workaround for fixing the header installations,
# should be fixed with a new release, https://github.com/pine64/blisp/issues/67
include.install Dir[lib/"blisp*.h"]
end

test do
output = shell_output("#{bin}/blisp write -c bl70x --reset Pinecilv2_EN.bin 2>&1", 3)
assert_match "Device not found", output

assert_match version.to_s, shell_output("#{bin}/blisp --version")
end
end

0 comments on commit 1aad4b7

Please sign in to comment.