diff options
author | taotieren | 2023-11-21 11:19:40 +0800 |
---|---|---|
committer | taotieren | 2023-11-21 11:19:40 +0800 |
commit | 03ee6d1e31bda015d1025b73f060933cc71f76a6 (patch) | |
tree | aa548054e309fcdd74e44373a42fc7d5f2360dd4 | |
parent | f0ddf1f0ca40a2942b7ea23710c2feae7295b8c8 (diff) | |
download | aur-mounriver-studio-toolchain-bin.tar.gz |
Update 1.90-0
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 39 insertions, 21 deletions
@@ -1,5 +1,5 @@ pkgbase = mounriver-studio-toolchain-bin - pkgver = 1.80 + pkgver = 1.90 pkgrel = 0 url = http://www.mounriver.com/ arch = x86_64 @@ -13,17 +13,19 @@ pkgbase = mounriver-studio-toolchain-bin optdepends = ch341eepromtool: An i2c serial EEPROM programming tool for the WCH CH341A optdepends = ch341prog-git: A simple command line tool (programmer) interfacing with ch341a optdepends = ch341eeprom-git: A libusb based programming tool for 24xx I²C EEPROMs using the WCH CH341A + optdepends = ch343ser-dkms: USB serial driver for ch342/ch343/ch344/ch347/ch347f/ch9101/ch9102/ch9103/ch9104, etc (dkms). optdepends = wchisp: WCH ISP Tool in Rust provides = MRS-Toolchain - noextract = mounriver-studio-toolchain-bin-1.80.tar.xz + noextract = mounriver-studio-toolchain-bin-1.90.tar.xz options = !strip - source = mounriver-studio-toolchain-bin-1.80.tar.xz::http://file.mounriver.com/tools/MRS_Toolchain_Linux_x64_V1.80.tar.xz - sha256sums = 873c5806667c963f076bb9555922c9008c508fc31781f4e070298045abee9924 + source = mounriver-studio-toolchain-bin-1.90.tar.xz::http://file.mounriver.com/tools/MRS_Toolchain_Linux_x64_V1.90.tar.xz + sha256sums = 3ceeee75d260d0bd9482fec260ba48c91280884fbca175349c6dcd01d62c7ba8 pkgname = mounriver-studio-toolchain-bin pkgdesc = This MRS Toolchain includes the tool chain for RISC-V kernel chip under Linux x64 and the debug download tool OpenOCD. depends = mounriver-studio-toolchain-openocd-bin - depends = mounriver-studio-toolchain-riscv-bin + depends = mounriver-studio-toolchain-riscv-gcc-bin + depends = mounriver-studio-toolchain-riscv-gcc12-bin pkgname = mounriver-studio-toolchain-openocd-bin pkgdesc = MRS Toolchain OpenOCD supports erasure, programming, verification and debugging of the chip. @@ -35,6 +37,10 @@ pkgname = mounriver-studio-toolchain-openocd-bin depends = libudev.so depends = libjaylink.so -pkgname = mounriver-studio-toolchain-riscv-bin +pkgname = mounriver-studio-toolchain-riscv-gcc-bin + pkgdesc = MRS Toolchain Support for RISC-V assembly and GNU C compilation, link operation. + depends = bash + +pkgname = mounriver-studio-toolchain-riscv-gcc12-bin pkgdesc = MRS Toolchain Support for RISC-V assembly and GNU C compilation, link operation. depends = bash @@ -1,8 +1,8 @@ # Maintainer: taotieren <admin@taotieren.com> pkgbase=mounriver-studio-toolchain-bin -pkgname=($pkgbase mounriver-studio-toolchain-openocd-bin mounriver-studio-toolchain-riscv-bin) -pkgver=1.80 +pkgname=($pkgbase mounriver-studio-toolchain-openocd-bin mounriver-studio-toolchain-riscv-gcc-bin mounriver-studio-toolchain-riscv-gcc12-bin) +pkgver=1.90 pkgrel=0 arch=('x86_64') url='http://www.mounriver.com/' @@ -10,14 +10,15 @@ license=('GPL2' 'GPL3' 'custom') provides=('MRS-Toolchain') makedepends=('tar') optdepends=('ch34x-dkms-git: CH341SER driver with fixed bug' - 'i2c-ch341-dkms: CH341 USB-I2C adapter driver' - 'spi-ch341-usb-dkms: SPI/GPIO driver for CH341' - 'ch341eepromtool: An i2c serial EEPROM programming tool for the WCH CH341A' - 'ch341prog-git: A simple command line tool (programmer) interfacing with ch341a' - 'ch341eeprom-git: A libusb based programming tool for 24xx I²C EEPROMs using the WCH CH341A' - 'wchisp: WCH ISP Tool in Rust') + 'i2c-ch341-dkms: CH341 USB-I2C adapter driver' + 'spi-ch341-usb-dkms: SPI/GPIO driver for CH341' + 'ch341eepromtool: An i2c serial EEPROM programming tool for the WCH CH341A' + 'ch341prog-git: A simple command line tool (programmer) interfacing with ch341a' + 'ch341eeprom-git: A libusb based programming tool for 24xx I²C EEPROMs using the WCH CH341A' + 'ch343ser-dkms: USB serial driver for ch342/ch343/ch344/ch347/ch347f/ch9101/ch9102/ch9103/ch9104, etc (dkms).' + 'wchisp: WCH ISP Tool in Rust') source=("${pkgbase}-${pkgver}.tar.xz::http://file.mounriver.com/tools/MRS_Toolchain_Linux_x64_V${pkgver}.tar.xz") -sha256sums=('873c5806667c963f076bb9555922c9008c508fc31781f4e070298045abee9924') +sha256sums=('3ceeee75d260d0bd9482fec260ba48c91280884fbca175349c6dcd01d62c7ba8') options=('!strip') noextract=(${pkgbase}-${pkgver}.tar.xz) @@ -31,7 +32,7 @@ prepare() { package_mounriver-studio-toolchain-bin() { pkgdesc="This MRS Toolchain includes the tool chain for RISC-V kernel chip under Linux x64 and the debug download tool OpenOCD." - depends=(mounriver-studio-toolchain-openocd-bin mounriver-studio-toolchain-riscv-bin) + depends=(mounriver-studio-toolchain-openocd-bin mounriver-studio-toolchain-riscv-gcc-bin mounriver-studio-toolchain-riscv-gcc12-bin) } package_mounriver-studio-toolchain-openocd-bin() { @@ -50,9 +51,6 @@ package_mounriver-studio-toolchain-openocd-bin() { _install 755 bin -name "openocd" _install 644 share - - install -Dm0644 "${srcdir}/README" "${pkgdir}/usr/share/${pkgname}/README" - install -Dm0644 "${srcdir}/beforeinstall/50-wch.rules" "${pkgdir}/usr/lib/udev/rules.d/50-wch.rules" install -Dm0644 "${srcdir}/beforeinstall/60-openocd.rules" "${pkgdir}/usr/lib/udev/rules.d/60-openocd-wch.rules" @@ -69,11 +67,25 @@ exec /opt/wch/${pkgname%-bin}/bin/openocd -f /opt/wch/${pkgname%-bin}/bin/wch-ri EOF } -package_mounriver-studio-toolchain-riscv-bin() { +package_mounriver-studio-toolchain-riscv-gcc-bin() { + pkgdesc="MRS Toolchain Support for RISC-V assembly and GNU C compilation, link operation." + depends=('bash') + install -dm0755 "${pkgdir}/opt/wch/${pkgname%-bin}" + cp -a "${srcdir}"/RISC-V_Embedded_GCC/* "${pkgdir}/opt/wch/${pkgname%-bin}" + + install -Dm0644 /dev/stdin "${pkgdir}/etc/profile.d/${pkgname%-bin}.sh" << EOF +#!/bin/sh +[ -d /opt/wch/${pkgname%-bin}/bin ] && append_path '/opt/wch/${pkgname%-bin}/bin' + +export PATH +EOF +} + +package_mounriver-studio-toolchain-riscv-gcc12-bin() { pkgdesc="MRS Toolchain Support for RISC-V assembly and GNU C compilation, link operation." depends=('bash') install -dm0755 "${pkgdir}/opt/wch/${pkgname%-bin}" - cp -a "${srcdir}"/RISC-V\ Embedded\ GCC/* "${pkgdir}/opt/wch/${pkgname%-bin}" + cp -a "${srcdir}"/RISC-V_Embedded_GCC12/* "${pkgdir}/opt/wch/${pkgname%-bin}" install -Dm0644 /dev/stdin "${pkgdir}/etc/profile.d/${pkgname%-bin}.sh" << EOF #!/bin/sh |