dev-embedded/pico-sdk - 2.2.0 (guru)

Search

Install

Install this version:

emerge -a =dev-embedded/pico-sdk-2.2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-embedded/pico-sdk-2.2.0

Or alternatively:

emerge --autounmask-write -a =dev-embedded/pico-sdk-2.2.0

Package Information

Description:
Libraries and tools for C/C++ development on RP2040 and RP2350 microcontrollers
Homepage:
https://github.com/raspberrypi/pico-sdk
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
2.2.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Libraries and tools for C/C++ development on RP2040 and RP2350 microcontrollers"
HOMEPAGE="https://github.com/raspberrypi/pico-sdk"

SRC_URI="
	https://github.com/raspberrypi/pico-sdk/releases/download/${PV}/${P}.tar.gz

	https://github.com/bluekitchen/btstack/archive/501e6d2b86e6c92bfb9c390bcf55709938e25ac1.tar.gz
		-> btstack-501e6d2b86e6c92bfb9c390bcf55709938e25ac1.tar.gz

	https://github.com/georgerobotics/cyw43-driver/archive/refs/tags/v1.1.0.tar.gz
		-> cyw43-driver-1.1.0.tar.gz

	https://github.com/lwip-tcpip/lwip/archive/refs/tags/STABLE-2_2_1_RELEASE.tar.gz
		-> lwip-STABLE-2_2_1_RELEASE.tar.gz

	https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-3.6.2/mbedtls-3.6.2.tar.bz2

	https://github.com/hathach/tinyusb/archive/refs/tags/0.18.0.tar.gz
		-> tinyusb-0.18.0.tar.gz
"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"

src_prepare() {
	default

	cp -r "${WORKDIR}"/btstack-501e6d2b86e6c92bfb9c390bcf55709938e25ac1/. "${S}/lib/btstack" || die
	cp -r "${WORKDIR}"/cyw43-driver-1.1.0/. "${S}/lib/cyw43-driver" || die
	cp -r "${WORKDIR}"/lwip-STABLE-2_2_1_RELEASE/. "${S}/lib/lwip" || die
	cp -r "${WORKDIR}"/mbedtls-3.6.2/. "${S}/lib/mbedtls" || die
	cp -r "${WORKDIR}"/tinyusb-0.18.0/. "${S}/lib/tinyusb" || die
}

src_install() {
	dodir /opt/pico-sdk
	cp -r "${S}/." "${D}/opt/pico-sdk/" || die

	echo "PICO_SDK_PATH=/opt/pico-sdk" > "${T}/99pico-sdk" || die
	doenvd "${T}/99pico-sdk"
}

pkg_postinst() {
	elog "If you want to use the Pico SDK now, run:"
	elog "    source /etc/profile"
}

Manifest for 2.2.0

Type File Size Source URLs
DIST btstack-501e6d2b86e6c92bfb9c390bcf55709938e25ac1.tar.gz 54737745 bytes https://github.com/bluekitchen/btstack/archive/501e6d2b86e6c92bfb9c390bcf55709938e25ac1.tar.gz
DIST cyw43-driver-1.1.0.tar.gz 1777995 bytes https://github.com/georgerobotics/cyw43-driver/archive/refs/tags/v1.1.0.tar.gz
DIST lwip-STABLE-2_2_1_RELEASE.tar.gz 1598662 bytes https://github.com/lwip-tcpip/lwip/archive/refs/tags/STABLE-2_2_1_RELEASE.tar.gz
DIST mbedtls-3.6.2.tar.bz2 4979769 bytes https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-3.6.2/mbedtls-3.6.2.tar.bz2
DIST pico-sdk-2.2.0.tar.gz 2483547 bytes https://github.com/raspberrypi/pico-sdk/releases/download/2.2.0/pico-sdk-2.2.0.tar.gz
DIST tinyusb-0.18.0.tar.gz 3282996 bytes https://github.com/hathach/tinyusb/archive/refs/tags/0.18.0.tar.gz