mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
dev-embedded/esp-idf: drop 5.2.1
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
|
||||
DIST esp-idf-5.2.2.zip 1488330027 BLAKE2B 00ba4c6f6a08ff1a8a398b8fea3dff1cb23e9f61435d9b69035df81579b65a026030f7fc67bb1b43c90484b5c4cfbd5143383b4171f0fed70931e58718c906fa SHA512 35b2b6ab028a9075702e7441b0354e7c30deaabc97da1b758a6206e2c78760b415ed5d60cbaf7b90b5fdce95f9faeb99d6ae1ad4991635024e2a3cfcbc8c38f2
|
||||
DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
|
||||
DIST openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz 2252682 BLAKE2B fbec39f77c7e2d423eacaf45d0f8c3373e24c65c3d5e2db0edf5b952945edcc838dd41f8c852ff0b2104dce62184b3b0803014e53d8dd4dcf6427955ec18f194 SHA512 5acb5d90740ea8b54be57fe80956c2bbcc6bb3c48dc4969043a7d49da7e9135ede4add8bdf8f7d772681867aca1faa72594fa8f70e7e8d2bc7ed93128ff1ec8d
|
||||
DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
|
||||
DIST riscv32-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 30707431 BLAKE2B 99809fbd5abe99c4890fbf4edd964ee53bc9269b9bb15f487316d0092a9d7aae9d3f9f61f7597f5721aec4f95813908c8ce6a3f6f97cd453d1610a5caa7dc42e SHA512 1ad4854c53f435b08d634f8e5e1a9169037745684b13972876176483badc7ebf5a6c38109e7ac5c3f484df76e82bf790244661ac70b1e52dd3b2fc8a4956e5ff
|
||||
DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94
|
||||
DIST xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz 36942094 BLAKE2B ecb04aacb864ad625d603b59fb39df9e76ff63cbbab39fa2370154c939e5113e56fc7eeff03411c33d73adf05376531f8d107c6da55e5b619390b5272d4f1ad5 SHA512 7afee5aa9919420d847d5dc351598ba7a0ba41c61e20647501b62d83c65868fd1673f45065b0563204cd30049e5dcceb3a0c095f7f0382d7166904ee202ea730
|
||||
DIST xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 31010320 BLAKE2B dcca888811260e86f9cde19ee1a2e7737c73de6a8060d100a362a4c41a606779b82cb04ff62184c5dfa226e6ac9b81b018f4da30e748cbcd644a80ff2122b86a SHA512 8b224393345b45124d5f0698e01e8e465d785c62cea6845eefd7ff852463966dc13ae94f6edb9a6b16871a6cfaa43b4d275740173579994d352303359c122deb
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11,12} )
|
||||
|
||||
VER="13.2.0_20230928"
|
||||
|
||||
CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
|
||||
|
||||
inherit python-r1
|
||||
|
||||
DESCRIPTION="Espressif IoT Development Framework"
|
||||
HOMEPAGE="https://www.espressif.com/"
|
||||
|
||||
# https://github.com/espressif/binutils-esp32ulp/releases/download/v2.28.51-esp-20191205/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz
|
||||
SRC_URI="https://dl.espressif.com/github_assets/espressif/${PN}/releases/download/v${PV}/${PN}-v${PV}.zip -> ${P}.zip
|
||||
https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230921/openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz
|
||||
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20231023/xtensa-esp-elf-gdb-12.1_20231023-x86_64-linux-gnu.tar.gz"
|
||||
SRC_URI+=" ${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz"
|
||||
SRC_URI+=" riscv32? ( ${CROSSTOOL_URL}/riscv32-esp-elf-${VER}-x86_64-linux-gnu.tar.xz )"
|
||||
|
||||
#https://dl.espressif.com/dl/toolchains/preview/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz
|
||||
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="riscv32"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
|
||||
dev-libs/libusb:1
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||
dev-embedded/esp-coredump[${PYTHON_USEDEP}]
|
||||
dev-embedded/esptool
|
||||
dev-embedded/esp-idf-kconfig[${PYTHON_USEDEP}]
|
||||
dev-embedded/esp-idf-monitor[${PYTHON_USEDEP}]
|
||||
dev-embedded/esp-idf-panic-decoder[${PYTHON_USEDEP}]
|
||||
dev-embedded/esp-idf-size[${PYTHON_USEDEP}]
|
||||
dev-embedded/freertos-gdb[${PYTHON_USEDEP}]
|
||||
dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
|
||||
QA_PRESTRIPPED="opt/*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/allow-system-install-${PN}-5.1.2.patch"
|
||||
)
|
||||
|
||||
install_tool() {
|
||||
shopt -s globstar
|
||||
|
||||
into /opt/${1}
|
||||
|
||||
if [[ -d "../${1}/lib" ]]; then
|
||||
if stat *.so &>/dev/null; then
|
||||
for i in ../${1}/lib/**/*.so*; do
|
||||
dolib.so ${i}
|
||||
done
|
||||
fi
|
||||
|
||||
if stat *.a &>/dev/null; then
|
||||
for i in ../${1}/lib/**/*.a*; do
|
||||
dolib.a ${i}
|
||||
done
|
||||
fi
|
||||
|
||||
insinto /opt/${1}/lib
|
||||
doins -r ../${1}/lib/*
|
||||
fi
|
||||
|
||||
exeinto /opt/${1}/bin
|
||||
doexe ../${1}/bin/*
|
||||
(
|
||||
cd ../${1}
|
||||
for i in libexec/**/*; do
|
||||
exeinto /opt/${1}/$(dirname ${i})
|
||||
if [[ -x "${i}" && ! -d "${i}" ]]; then
|
||||
doexe ${i}
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -d "include" ]]; then
|
||||
insinto /opt/${1}
|
||||
doins -r include
|
||||
fi
|
||||
|
||||
if [[ -d "share" ]]; then
|
||||
insinto /opt/${1}
|
||||
doins -r share
|
||||
fi
|
||||
)
|
||||
|
||||
(
|
||||
cd "${D}"/opt/${1}/bin/ || die
|
||||
for i in *; do
|
||||
dodir /opt/bin
|
||||
cd "${D}"/opt/bin || die
|
||||
dosym ../${1}/bin/${i} /opt/bin/${i}
|
||||
done
|
||||
)
|
||||
|
||||
shopt -u globstar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
|
||||
dobin idf
|
||||
|
||||
install_tool xtensa-esp-elf
|
||||
install_tool xtensa-esp-elf/xtensa-esp-elf
|
||||
|
||||
if use riscv32; then
|
||||
install_tool riscv32-esp-elf
|
||||
install_tool riscv32-esp-elf/riscv32-esp-elf
|
||||
fi
|
||||
|
||||
install_tool openocd-esp32
|
||||
|
||||
# Remove unsupported python versions
|
||||
rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{6..10} || die
|
||||
install_tool xtensa-esp-elf-gdb
|
||||
|
||||
echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
|
||||
doenvd 99esp-idf
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
|
||||
rm -r .git || die
|
||||
find . -name ".git" -exec rm -rf {} \; || die
|
||||
doins -r .
|
||||
}
|
||||
Reference in New Issue
Block a user