From 14f928c9bcff105f19fad03ed42385169617d745 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 6 Oct 2024 21:31:16 +0200 Subject: [PATCH] iblisp 0.0.4 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) --- Formula/b/blisp.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/b/blisp.rb diff --git a/Formula/b/blisp.rb b/Formula/b/blisp.rb new file mode 100644 index 00000000000000..68fa652ab7c5ca --- /dev/null +++ b/Formula/b/blisp.rb @@ -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 + output = shell_output("#{bin}/blisp write -c bl70x --reset Pinecilv2_EN.bin 2>&1", 1) + assert_match "Device not found", output + end +end