Install this version:
emerge -a =dev-embedded/picotool-2.3.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-embedded/picotool-2.3.0
Or alternatively:
emerge --autounmask-write -a =dev-embedded/picotool-2.3.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.3.0 | 8 | ~amd64 | 0 |
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
SDK_PV=2.3.0
SDK_PN=pico-sdk
SDK_P=${SDK_PN}-${SDK_PV}
DESCRIPTION="tool for interacting with rp2040 devices and binaries"
HOMEPAGE="https://github.com/raspberrypi/picotool"
SRC_URI="
https://github.com/raspberrypi/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/raspberrypi/${SDK_PN}/releases/download/${SDK_PV}/${SDK_P}.tar.gz
"
# picotool (BSD)
# |- clipp (MIT)
# |- pico-sdk (BSD)
LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/${PN}-1.1.2-musl.patch )
# Binary that runs on-chip.
QA_PREBUILT="usr/share/picotool/xip_ram_perms.elf"
src_prepare() {
mv "${WORKDIR}"/${SDK_P} "${S}"/pico-sdk || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DPICO_SDK_PATH="${S}"/pico-sdk
)
cmake_src_configure
}
src_install() {
cmake_src_install
dostrip -x /usr/share/picotool/xip_ram_perms.elf
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pico-sdk-2.3.0.tar.gz | 2635388 bytes | https://github.com/raspberrypi/pico-sdk/releases/download/2.3.0/pico-sdk-2.3.0.tar.gz |
| DIST | picotool-2.3.0.tar.gz | 1351724 bytes | https://github.com/raspberrypi/picotool/archive/refs/tags/2.3.0.tar.gz |