离线
TA的每日心情 | 拍拍 2022-10-3 08:50 |
---|
签到天数: 1 天 [LV.1]
|
有人预言,RISC-V或将是继Intel和Arm之后的第三大主流处理器体系。欢迎访问全球首家只专注于RISC-V单片机行业应用的中文网站
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 魏定国 于 2022-11-6 10:07 编辑
为 Nuclei Studio IDE 打包了 AUR 包,便于 Arch Linux 用户安装。连接:
https://aur.archlinux.org/packages/nucleistudioide/
nucleistudioide PKGBUILD 脚本
- # Maintainer: taotieren
- pkgname=nucleistudioide
- pkgver=202102
- pkgrel=9
- pkgdesc="Nuclei Studio IDE 是基于 MCU Eclipse IDE 开发的一款针对芯来公司处理器核产品的集成开发环境工具,用于 RISC-V 开发继承了 Eclipse IDE 平台的各种优势。"
- arch=("x86_64")
- makedepends=()
- depends=('nuclei-gcc' 'nuclei-openocd')
- optdepends=('jlink-software-and-documentation: Segger JLink software & documentation pack for Linux')
- conflicts=()
- url="https://www.nucleisys.com/download.php"
- license=('unknow')
- options=(!strip)
- source=("https://www.nucleisys.com/upload/files/nucleistudio/NucleiStudio_IDE_202102-lin64.tgz")
- sha256sums=('a005671317725f33e177d2ba9272cd77e0c04ef3d28c7cf8de4565c3f83b651e')
- package() {
- cd "$srcdir"
- msg2 'Installing Nuclei Studio IDE'
- install -d -m755 "${pkgdir}/opt/nuclei"
- tar zxf "NucleiStudio_IDE_${pkgver}-lin64.tgz"
- rm -rf "NucleiStudio_IDE_${pkgver}/NucleiStudio/toolchain/openocd"
- rm -rf "NucleiStudio_IDE_${pkgver}/NucleiStudio/toolchain/gcc"
-
- mv "${srcdir}/NucleiStudio_IDE_${pkgver}/NucleiStudio" "${pkgdir}/opt/nuclei"
- msg2 'Instalation of binary file'
- install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <
- #!/bin/sh
- /opt/nuclei/NucleiStudio/NucleiStudio "\$@"
- EOF
- install -Dm644 /dev/stdin "${pkgdir}/etc/udev/rules.d/99-nuclei.rules" <
- # Copy this file to /etc/udev/rules.d/
- # If rules fail to reload automatically, you can refresh udev rules
- # with the command "udevadm control --reload"
- # This rules are based on the udev rules from the OpenOCD project, with unsupported probes removed.
- # See http://openocd.org/ for more details.
- #
- # This file is available under the GNU General Public License v2.0
- ACTION!="add|change", GOTO="nuclei_rules_end"
- #SUBSYSTEM=="gpio", MODE="0660", GROUP="plugdev", TAG+="uaccess"
- SUBSYSTEM!="usb|tty|hidraw", GOTO="nuclei_rules_end"
- # [GNU MCU Eclipse] -----------------------------------------------------------
- # To simplify access, the access rights were changed from:
- # MODE="660", GROUP="plugdev", TAG+="uaccess"
- # to:
- # MODE="666"
- # -----------------------------------------------------------------------------
- # Please keep this list sorted by VID:PID
- # nuclei
- SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="666", GROUP="plugdev"
- SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="666", GROUP="plugdev"
- LABEL="nuclei_rules_end"
- EOF
- msg2 'Installing desktop shortcut'
- install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <
- [Desktop Entry]
- Name=NucleiStudioIDE
- Comment=NucleiStudioIDE
- GenericName=NucleiStudioIDE
- Exec=env GDK_BACKEND=x11 nucleistudioide %F
- Icon=
- Path=/opt/nuclei/NucleiStudio/
- Terminal=false
- StartupNotify=true
- Type=Application
- Categories=Development
- EOF
- }
- #
- # makepkg --printsrcinfo > .SRCINFO
- #
- # vim: set ts=8 sw=8 tw=0 noet:
复制代码
https://aur.archlinux.org/packages/nuclei-gcc/
nuclei-gcc PKGBUILD 脚本
- # Maintainer: taotieren
- pkgname=nuclei-gcc
- pkgver=2020.08
- pkgrel=1
- pkgdesc="nuclei-gcc 是 Nuclei Studio IDE 的编译工具。"
- arch=("x86_64")
- makedepends=()
- depends=()
- optdepends=()
- conflicts=()
- url="https://www.nucleisys.com/download.php"
- license=('unknow')
- options=(!strip)
- source=("https://www.nucleisys.com/upload/files/toochain/gcc/nuclei_riscv_newlibc_prebuilt_linux64_${pkgver}.tar.bz2")
- sha256sums=('398C25B9385B8122D2E864BF71E47B1D871F6C326C21D0AE6D3AFD2858F36041')
- package() {
- msg2 'Installing Nuclei GCC'
- install -dm755 "${pkgdir}/opt/nuclei/NucleiStudio/toolchain"
- mv "${srcdir}/gcc" "${pkgdir}/opt/nuclei"
- ln -sf "/opt/nuclei/gcc" "${pkgdir}/opt/nuclei/NucleiStudio/toolchain/gcc"
- }
- #
- # makepkg --printsrcinfo > .SRCINFO
- #
- # vim: set ts=8 sw=8 tw=0 noet:
复制代码
https://aur.archlinux.org/packages/nuclei-openocd/
nuclei-openocd PKGBUILD 脚本
- # Maintainer: taotieren
- pkgname=nuclei-openocd
- pkgver=0.10.0
- pkgrel=1
- pkgdesc="nuclei-openocd 是 Nuclei Studio IDE 的调试工具。"
- arch=("x86_64")
- makedepends=()
- depends=()
- optdepends=()
- conflicts=()
- url="https://www.nucleisys.com/download.php"
- license=('unknow')
- options=(!strip)
- source=("https://www.nucleisys.com/upload/files/toochain/openocd/nuclei-openocd-${pkgver}-15-linux-x64.tgz")
- sha256sums=('636E48FFBA7AB4B63F28F36DB2549C09FB04CD2F876E450B8C3E39AF4E5B983F')
- package() {
- cd "$srcdir"
- msg2 'Installing Nuclei OpenOCD'
- install -dm755 "${pkgdir}/opt/nuclei/NucleiStudio/toolchain"
- tar zxf "nuclei-openocd-${pkgver}-15-linux-x64.tgz"
- mv "Nuclei/openocd" "${pkgdir}/opt/nuclei"
- ln -sf "/opt/nuclei/openocd/0.10.0-15" "${pkgdir}/opt/nuclei/NucleiStudio/toolchain/openocd"
- }
- #
- # makepkg --printsrcinfo > .SRCINFO
- #
- # vim: set ts=8 sw=8 tw=0 noet:
复制代码
界面预览,会自动依赖 JLink 并自动安装 JLink 和全局 JLink 识别。
其他 Linux 发行版本可以参考 PKGBUILD 中的打包操作进行相应的移植。
完 |
上一篇: 开源RISC-V处理器(蜂鸟E203)学习(一)修改仿真环境(vcs+verdi)下一篇: [IDE] ArchLinux 下使用 MounRiver Studio 社区版开发
|