29 lines
857 B
Ruby
29 lines
857 B
Ruby
class UBootTools < Formula
|
|
desc "Universal boot loader"
|
|
homepage "https://www.denx.de/wiki/U-Boot/"
|
|
url "http://ftp.denx.de/pub/u-boot/u-boot-2018.07.tar.bz2"
|
|
sha256 "9f10df88bc91b35642e461217f73256bbaeeca9ae2db8db56197ba5e89e1f6d4"
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 1
|
|
sha256 "ef92748f2dce7b805eb70b9e6381d15c4897206e62cc17041a0ec0ff76bf9078" => :mojave
|
|
sha256 "c9af409154e2a3c626cab9711d1538b99eec39f977b11f2abf75ca34bae755e9" => :high_sierra
|
|
sha256 "baef3b783798fee71d0623fc1387954cf1e190d501617ae56238bc75180fc2da" => :sierra
|
|
end
|
|
|
|
depends_on "openssl"
|
|
|
|
def install
|
|
system "make", "sandbox_defconfig"
|
|
system "make", "tools"
|
|
bin.install "tools/mkimage"
|
|
bin.install "tools/dumpimage"
|
|
man1.install "doc/mkimage.1"
|
|
end
|
|
|
|
test do
|
|
system bin/"mkimage", "-V"
|
|
system bin/"dumpimage", "-V"
|
|
end
|
|
end
|