public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/
@ 2022-12-05 23:00 David Roman
  0 siblings, 0 replies; 6+ messages in thread
From: David Roman @ 2022-12-05 23:00 UTC (permalink / raw
  To: gentoo-commits

commit:     52a76d2f26e17bf8706bdcc1c9834b9ee9164420
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Dec  5 22:53:11 2022 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Dec  5 23:00:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=52a76d2f

dev-embedded/esp-idf: new package, add 5.0

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest                      |   6 +
 dev-embedded/esp-idf/esp-idf-5.0.ebuild            | 146 +++++++++++++++++++++
 .../files/allow-system-install-esp-idf-5.0.patch   |  37 ++++++
 dev-embedded/esp-idf/metadata.xml                  |  14 ++
 4 files changed, 203 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
new file mode 100644
index 000000000..c02384ab5
--- /dev/null
+++ b/dev-embedded/esp-idf/Manifest
@@ -0,0 +1,6 @@
+DIST esp-idf-5.0.zip 880574300 BLAKE2B 25afdb2e6ee28b86b2072e86ce2de713574e59195480b0be0efbe720e849120585917b393f5de77bf52a7c0245857a09e5c44db41cf96ff966d79640d9138736 SHA512 0fa438ca9afbc02a65259ae21e4957950eb3a373174bbc288b2f316b57a9384ac668ce487ae31373ff27dda85b8300e4c63ef927afce7a35380f8d2e793a4ea0
+DIST openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz 2051435 BLAKE2B 59fd510cf3c12514791fa85b76d81722685add64f0a690793b52c5d41101c727fefe064727b148577c3fc522ffae79e8f632d34f300a9543377027579b9cea70 SHA512 f8296460efa3d43b23a51c81a840a2e7c13272fa213770bfdb269decd23a3571be9c4ff4be6647d87e56e156284952d9a8c92b24244eaa6996fae18497ce15f8
+DIST riscv32-esp-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 110107900 BLAKE2B 70688adf6eb613f6d0a3700d5730882b7ff9dec110cbc4157c822dfe1d2abfe21f902e52c695ed410fef39f9c03dfffa3b9c7effac04464dfce4e8b0dcf88814 SHA512 cf7443e1480456fbf5d0824d4745740d8f5e5858c403e70b3931adfa582816c2e0c53c53dc51d493809d9e6780077bc1b1fae51bc146ba1b6272dc3554c1fedb
+DIST xtensa-esp32-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 64781328 BLAKE2B 7216df8a7a88f73f9beac705aa4a7703a8215301afb4c9ca64c9d16a2fafb574a06079d2e5288b2784e4cd3e5e8e2b3d03708e21c42bc48a30abb06199207616 SHA512 72cd2e5d3168d1ada66c53428ddec1ee47785fc9720e9c1b4aacc41021e59335a8e2d07cc14b064b1f3ea9c01bd747b7cdff69ff83e5586bf1abb4acf5986508
+DIST xtensa-esp32s2-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 51546516 BLAKE2B f4f4bc5bc138f181819416f0b3b4a67270588f827afd64693da4caf8c1a100a04787aa23cfafedb535e5c26aea7af51ad9e08316a0abba99d5549fb62e73aae5 SHA512 72071cb911eb62eff22d46b98f3ac6af87c1b0af4adc036e7f093e24987048c388a689138627ce1a721b93ef9a63a4a6046cbcc91f92e033b5330e4aacf746ea
+DIST xtensa-esp32s3-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 51899328 BLAKE2B 9ea6e702345fe158d5bbf8c86fffa11faaa4e74f58ab0ad22ba7c2e46fe41bb06897b6e2912852564b19d773642b23ad897a9f0655eb020a354a2d98c3296d97 SHA512 54afc2a307489d719d72c1a9506b325b1152395e87fa8fa78d90b79bc827625e23f86aa104e02f78fc1f074d191b552de5c1853a52ba1ccadae93865c58f5873

diff --git a/dev-embedded/esp-idf/esp-idf-5.0.ebuild b/dev-embedded/esp-idf/esp-idf-5.0.ebuild
new file mode 100644
index 000000000..1edac2122
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.0.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..10} )
+
+VER="esp-2022r1"
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
+
+inherit python-single-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.11.0-esp32-20221026/openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz
+	${CROSSTOOL_URL}/xtensa-esp32-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+	${CROSSTOOL_URL}/xtensa-esp32s2-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+	${CROSSTOOL_URL}/xtensa-esp32s3-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
+	${CROSSTOOL_URL}/riscv32-esp-elf-gcc11_2_0-${VER}-linux-amd64.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
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+IUSE="+esp32 esp32s2 esp32s3 riscv32"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+SLOT="0"
+
+RDEPEND="
+	${PYTHON_DEPS}
+	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
+
+	$(python_gen_cond_dep '
+		dev-python/click[${PYTHON_USEDEP}]
+		dev-python/bitstring[${PYTHON_USEDEP}]
+		dev-python/construct[${PYTHON_USEDEP}]
+		dev-python/ecdsa[${PYTHON_USEDEP}]
+		dev-python/future[${PYTHON_USEDEP}]
+		dev-python/kconfiglib[${PYTHON_USEDEP}]
+		dev-python/pyelftools[${PYTHON_USEDEP}]
+		dev-python/pyparsing[${PYTHON_USEDEP}]
+		dev-python/pyserial[${PYTHON_USEDEP}]
+		dev-python/python-socketio[${PYTHON_USEDEP}]
+		dev-python/pyyaml[${PYTHON_USEDEP}]
+		dev-python/reedsolomon[${PYTHON_USEDEP}]
+		dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
+	')
+"
+
+RESTRICT="strip"
+
+QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
+QA_PRESTRIPPED="opt/*"
+
+PATCHES=("${FILESDIR}/allow-system-install-${P}.patch")
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+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
+	)
+}
+
+src_install() {
+	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
+	dobin idf
+
+	if use esp32; then
+		install_tool xtensa-esp32-elf
+		install_tool xtensa-esp32-elf/xtensa-esp32-elf
+	fi
+
+	if use esp32s2; then
+		install_tool xtensa-esp32s2-elf
+	fi
+
+	if use esp32s3; then
+		install_tool xtensa-esp32s3-elf
+	fi
+
+	if use riscv32; then
+		install_tool riscv32-esp-elf
+	fi
+	install_tool openocd-esp32
+
+	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
+	doenvd 99esp-idf
+
+	insinto /usr/share/${PN}
+
+	rm -r .git || die
+	doins -r .
+}

diff --git a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.patch b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.patch
new file mode 100644
index 000000000..74fd3a318
--- /dev/null
+++ b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.patch
@@ -0,0 +1,37 @@
+diff --git a/tools/idf.py b/tools/idf.py
+index 0b91e13ff0..8ff1479f16 100755
+--- a/tools/idf.py
++++ b/tools/idf.py
+@@ -35,16 +35,11 @@ sys.dont_write_bytecode = True
+ 
+ import python_version_checker  # noqa: E402
+ 
+-try:
+-    from idf_py_actions.errors import FatalError  # noqa: E402
+-    from idf_py_actions.tools import (PropertyDict, executable_exists, get_target, idf_version,  # noqa: E402
++from idf_py_actions.errors import FatalError  # noqa: E402
++from idf_py_actions.tools import (PropertyDict, executable_exists, get_target, idf_version,  # noqa: E402
+                                       merge_action_lists, realpath)
+-    if os.getenv('IDF_COMPONENT_MANAGER') != '0':
+-        from idf_component_manager import idf_extensions
+-except ImportError:
+-    # For example, importing click could cause this.
+-    print('Please use idf.py only in an ESP-IDF shell environment.', file=sys.stderr)
+-    sys.exit(1)
++if os.getenv('IDF_COMPONENT_MANAGER') != '0':
++    from idf_component_manager import idf_extensions
+ 
+ # Use this Python interpreter for any subprocesses we launch
+ PYTHON = sys.executable
+diff --git a/tools/idf_tools.py b/tools/idf_tools.py
+index a388bbdb5f..63aa9c3cf4 100755
+--- a/tools/idf_tools.py
++++ b/tools/idf_tools.py
+@@ -2039,6 +2039,7 @@ def action_install_python_env(args):  # type: ignore
+ 
+ 
+ def action_check_python_dependencies(args):  # type: ignore
++    return
+     use_constraints = not args.no_constraints
+     req_paths = get_requirements('')  # no new features -> just detect the existing ones
+ 

diff --git a/dev-embedded/esp-idf/metadata.xml b/dev-embedded/esp-idf/metadata.xml
new file mode 100644
index 000000000..fb3de0aa4
--- /dev/null
+++ b/dev-embedded/esp-idf/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>davidroman96@gmail.com</email>
+		<name>David Roman</name>
+	</maintainer>
+	<use>
+		<flag name="esp32">Enable support for esp32</flag>
+		<flag name="esp32s2">Enable support for esp32</flag>
+		<flag name="esp32s3">Enable support for esp32</flag>
+		<flag name="riscv32">Enable support for esp32</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/
@ 2023-07-05 13:20 David Roman
  0 siblings, 0 replies; 6+ messages in thread
From: David Roman @ 2023-07-05 13:20 UTC (permalink / raw
  To: gentoo-commits

commit:     3528b85730f888f624e70d8c5de1c037f53269db
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed Jul  5 13:20:45 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Jul  5 13:20:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3528b857

dev-embedded/esp-idf: drop 5.0

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest                      |   1 -
 dev-embedded/esp-idf/esp-idf-5.0.ebuild            | 146 ---------------------
 .../files/allow-system-install-esp-idf-5.0.patch   |  37 ------
 3 files changed, 184 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 5ad2eef15..0f413d12e 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,5 +1,4 @@
 DIST esp-idf-5.0.2.zip 1000558879 BLAKE2B 6127dfb7f78261060b4981e414fea95a4ef7162bb3da11cf53aeb6504396d9e0958044dd66ba1329e87004fd1149c41a86638b4f7a6c3a9d7236fc908961818d SHA512 c58013a5597c00c2ee1c8ae8814b18365f5949b5d834b1fccbee3dce944561d9f2c4296aad578cfc5d79fcd5f86cfa6a5024ff1472305d08ab65e6634be65f05
-DIST esp-idf-5.0.zip 880574300 BLAKE2B 25afdb2e6ee28b86b2072e86ce2de713574e59195480b0be0efbe720e849120585917b393f5de77bf52a7c0245857a09e5c44db41cf96ff966d79640d9138736 SHA512 0fa438ca9afbc02a65259ae21e4957950eb3a373174bbc288b2f316b57a9384ac668ce487ae31373ff27dda85b8300e4c63ef927afce7a35380f8d2e793a4ea0
 DIST openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz 2051435 BLAKE2B 59fd510cf3c12514791fa85b76d81722685add64f0a690793b52c5d41101c727fefe064727b148577c3fc522ffae79e8f632d34f300a9543377027579b9cea70 SHA512 f8296460efa3d43b23a51c81a840a2e7c13272fa213770bfdb269decd23a3571be9c4ff4be6647d87e56e156284952d9a8c92b24244eaa6996fae18497ce15f8
 DIST riscv32-esp-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz 110107900 BLAKE2B 70688adf6eb613f6d0a3700d5730882b7ff9dec110cbc4157c822dfe1d2abfe21f902e52c695ed410fef39f9c03dfffa3b9c7effac04464dfce4e8b0dcf88814 SHA512 cf7443e1480456fbf5d0824d4745740d8f5e5858c403e70b3931adfa582816c2e0c53c53dc51d493809d9e6780077bc1b1fae51bc146ba1b6272dc3554c1fedb
 DIST xtensa-esp-elf-gdb-11.2_20220823-x86_64-linux-gnu.tar.gz 26947336 BLAKE2B 4970451c7b61df0158294bad456a86718631d24cd73efdd4523de6afcba3f780dd54c07549effc6ab3a0838044b3eb2b817346fc11f8a5ad70f827587e65fdbc SHA512 9532d3cd3c82142c65504e641a68cd836ad1642200e4a512ade62380b149d23ddfa0dccdd339825fdf5a3c55107717a21382469bcf19103113f624a2960ca247

diff --git a/dev-embedded/esp-idf/esp-idf-5.0.ebuild b/dev-embedded/esp-idf/esp-idf-5.0.ebuild
deleted file mode 100644
index 328cd094e..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.0.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_10 )
-
-VER="esp-2022r1"
-CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/${VER}"
-
-inherit python-single-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.11.0-esp32-20221026/openocd-esp32-linux-amd64-0.11.0-esp32-20221026.tar.gz
-	${CROSSTOOL_URL}/xtensa-esp32-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/xtensa-esp32s2-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/xtensa-esp32s3-elf-gcc11_2_0-${VER}-linux-amd64.tar.xz
-	${CROSSTOOL_URL}/riscv32-esp-elf-gcc11_2_0-${VER}-linux-amd64.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
-
-KEYWORDS="~amd64"
-LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-SLOT="0"
-
-RDEPEND="
-	${PYTHON_DEPS}
-	dev-embedded/esptool[${PYTHON_SINGLE_USEDEP}]
-
-	$(python_gen_cond_dep '
-		dev-python/click[${PYTHON_USEDEP}]
-		dev-python/bitstring[${PYTHON_USEDEP}]
-		dev-python/construct[${PYTHON_USEDEP}]
-		dev-python/ecdsa[${PYTHON_USEDEP}]
-		dev-python/future[${PYTHON_USEDEP}]
-		dev-python/kconfiglib[${PYTHON_USEDEP}]
-		dev-python/pyelftools[${PYTHON_USEDEP}]
-		dev-python/pyparsing[${PYTHON_USEDEP}]
-		dev-python/pyserial[${PYTHON_USEDEP}]
-		dev-python/python-socketio[${PYTHON_USEDEP}]
-		dev-python/pyyaml[${PYTHON_USEDEP}]
-		dev-python/reedsolomon[${PYTHON_USEDEP}]
-		dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-	')
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=("${FILESDIR}/allow-system-install-${P}.patch")
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-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
-	)
-}
-
-src_install() {
-	echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
-	dobin idf
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-	fi
-
-	if use riscv32; then
-		install_tool riscv32-esp-elf
-	fi
-	install_tool openocd-esp32
-
-	echo "IDF_PATH=/usr/share/${PN}" > 99esp-idf || die
-	doenvd 99esp-idf
-
-	insinto /usr/share/${PN}
-
-	rm -r .git || die
-	doins -r .
-}

diff --git a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.patch b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.patch
deleted file mode 100644
index 74fd3a318..000000000
--- a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff --git a/tools/idf.py b/tools/idf.py
-index 0b91e13ff0..8ff1479f16 100755
---- a/tools/idf.py
-+++ b/tools/idf.py
-@@ -35,16 +35,11 @@ sys.dont_write_bytecode = True
- 
- import python_version_checker  # noqa: E402
- 
--try:
--    from idf_py_actions.errors import FatalError  # noqa: E402
--    from idf_py_actions.tools import (PropertyDict, executable_exists, get_target, idf_version,  # noqa: E402
-+from idf_py_actions.errors import FatalError  # noqa: E402
-+from idf_py_actions.tools import (PropertyDict, executable_exists, get_target, idf_version,  # noqa: E402
-                                       merge_action_lists, realpath)
--    if os.getenv('IDF_COMPONENT_MANAGER') != '0':
--        from idf_component_manager import idf_extensions
--except ImportError:
--    # For example, importing click could cause this.
--    print('Please use idf.py only in an ESP-IDF shell environment.', file=sys.stderr)
--    sys.exit(1)
-+if os.getenv('IDF_COMPONENT_MANAGER') != '0':
-+    from idf_component_manager import idf_extensions
- 
- # Use this Python interpreter for any subprocesses we launch
- PYTHON = sys.executable
-diff --git a/tools/idf_tools.py b/tools/idf_tools.py
-index a388bbdb5f..63aa9c3cf4 100755
---- a/tools/idf_tools.py
-+++ b/tools/idf_tools.py
-@@ -2039,6 +2039,7 @@ def action_install_python_env(args):  # type: ignore
- 
- 
- def action_check_python_dependencies(args):  # type: ignore
-+    return
-     use_constraints = not args.no_constraints
-     req_paths = get_requirements('')  # no new features -> just detect the existing ones
- 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/
@ 2023-11-20 13:39 David Roman
  0 siblings, 0 replies; 6+ messages in thread
From: David Roman @ 2023-11-20 13:39 UTC (permalink / raw
  To: gentoo-commits

commit:     7a5dda267258de854fe9ddc6ee646b939e45e1e1
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Nov 20 13:39:22 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Nov 20 13:39:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7a5dda26

dev-embedded/esp-idf: drop 5.1, 5.1-r1

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest                      |   1 -
 dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild         | 160 ---------------------
 dev-embedded/esp-idf/esp-idf-5.1.ebuild            | 159 --------------------
 .../esp-idf/files/pyparsing-esp-idf-5.1.patch      |  37 -----
 4 files changed, 357 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index dd7351dcd2..6db04f63b8 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,6 +1,5 @@
 DIST esp-idf-5.1.1.zip 1131279692 BLAKE2B 87a74ec1ae7f54a067cddf3d4e4b0797ced4b8164019c68b33e89d356a56232a17ca350363298868af4eb27b003b2d96f48aa30d41a085b6460a800ccbb50eb2 SHA512 88fc90a0f74b9e3dd90b9d32aa473e8943b89abd6684249659553d4cae6c90d2c31409bd2d29cd4e9653f3770f6b3a03e684041ca1c9d7770925062ddd3a71e3
 DIST esp-idf-5.1.2.zip 1200519153 BLAKE2B d8714163e3a449e24bec8a93ce666d269ddb7d406d7e3dc0b5db0845b7a9c05f6a5186796f8bbda68bb0a8e40a2743a88792eb341e72a276e4ec1e3e8b04c34d SHA512 46e96419b5f58d8b41d5b7b35f6e96beee94f6c1e20ba22eaf48a7f3d3cf4f3c9b8aa79468e6ea95718f598f6e30e7b72be616d1fb856045758191eb244151c8
-DIST esp-idf-5.1.zip 1062080629 BLAKE2B 78df1d6abfdde5731499422c6d05e0cdf0d6c46b73f6e7a6b94f61c5bb66ddfeffffe9a1f5dba5996397141ca2dc3372fbca5b915b828bb30069d8d711f7858b SHA512 85cc37a910398cb82fca4ff6257d23c28a993cf7deb3f7e34129513cd89e8a495ec7b38d3a206482489ffe4996d800a2742fd6c69cc5ce425b4d0522d19d9592
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz 2126949 BLAKE2B ae53bf574c60a7f004b49946f03fe936fefeee2574bf47ac71b2144d066e77e64190889b3650e39010aaf568fef13e05dc773355f1b7f59f547b181346c78080 SHA512 3a7f0e2ff4e68d203847271b1b95fc9c9581adf5d4f503cdc20770985f2b8b59d39f358e46d0d7358e8c94c8ff1437c4747579e02dd92b7a07a0ba23a885d191
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST riscv32-esp-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz 131410024 BLAKE2B 6961ddad1570aa69cbe7a4b1cd6722831d725b83a2d865b5babeea9b2d1762e4dda3cf35bdd4c5137758e15267a229136439387ff72577d5d558a924cd6161aa SHA512 dd0a95408fb487d444cb2c1efc9a0d21404eba2080b16cd9958dd9a9d22c5bf36f3c5e0309b082a226b39e4aeaf9a07ac89af740e2d5c01f85147d26dff7d233

diff --git a/dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild b/dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild
deleted file mode 100644
index 1842cc7f90..0000000000
--- a/dev-embedded/esp-idf/esp-idf-5.1-r1.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_11 )
-
-VER="12.2.0_20230208"
-
-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-20230419/openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" esp32? ( ${CROSSTOOL_URL}/xtensa-esp32-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" esp32s2? ( ${CROSSTOOL_URL}/xtensa-esp32s2-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" esp32s3? ( ${CROSSTOOL_URL}/xtensa-esp32s3-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
-
-KEYWORDS="~amd64"
-LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-SLOT="0"
-
-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-size[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.0.2.patch"
-	"${FILESDIR}/pyparsing-${P}.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-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
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-		install_tool xtensa-esp32s2-elf/xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-		install_tool xtensa-esp32s3-elf/xtensa-esp32s3-elf
-	fi
-
-	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 .
-}

diff --git a/dev-embedded/esp-idf/esp-idf-5.1.ebuild b/dev-embedded/esp-idf/esp-idf-5.1.ebuild
deleted file mode 100644
index 8f660c8e09..0000000000
--- a/dev-embedded/esp-idf/esp-idf-5.1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_11 )
-
-VER="12.2.0_20230208"
-
-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-20230419/openocd-esp32-linux-amd64-0.12.0-esp32-20230419.tar.gz
-	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz"
-SRC_URI+=" esp32? ( ${CROSSTOOL_URL}/xtensa-esp32-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" esp32s2? ( ${CROSSTOOL_URL}/xtensa-esp32s2-elf-${VER}-x86_64-linux-gnu.tar.xz )"
-SRC_URI+=" esp32s3? ( ${CROSSTOOL_URL}/xtensa-esp32s3-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
-
-KEYWORDS="~amd64"
-LICENSE="Apache-2.0"
-IUSE="+esp32 esp32s2 esp32s3 riscv32"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-SLOT="0"
-
-BDEPEND="app-arch/unzip"
-RDEPEND="
-	${PYTHON_DEPS}
-
-	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-size[${PYTHON_USEDEP}]
-	dev-embedded/idf-component-manager[${PYTHON_USEDEP}]
-"
-
-RESTRICT="strip"
-
-QA_PREBUILT="opt/* usr/lib* usr/share/esp-idf/*"
-QA_PRESTRIPPED="opt/*"
-
-PATCHES=(
-	"${FILESDIR}/allow-system-install-${PN}-5.0.2.patch"
-	"${FILESDIR}/pyparsing-${P}.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-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
-
-	if use esp32; then
-		install_tool xtensa-esp32-elf
-		install_tool xtensa-esp32-elf/xtensa-esp32-elf
-	fi
-
-	if use esp32s2; then
-		install_tool xtensa-esp32s2-elf
-		install_tool xtensa-esp32s2-elf/xtensa-esp32s2-elf
-	fi
-
-	if use esp32s3; then
-		install_tool xtensa-esp32s3-elf
-		install_tool xtensa-esp32s3-elf/xtensa-esp32s3-elf
-	fi
-
-	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 .
-}

diff --git a/dev-embedded/esp-idf/files/pyparsing-esp-idf-5.1.patch b/dev-embedded/esp-idf/files/pyparsing-esp-idf-5.1.patch
deleted file mode 100644
index bd08b43d60..0000000000
--- a/dev-embedded/esp-idf/files/pyparsing-esp-idf-5.1.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-commit 4020b0deb036ffa3fd01d2dac2297670f65fb7c3
-Author: radim.karnis <radim.karnis@espressif.com>
-Date:   Tue Jun 20 13:16:22 2023 +0200
-
-    fix: Compatibility with pyparsing>=3.1.0
-
-diff --git a/tools/ldgen/ldgen/entity.py b/tools/ldgen/ldgen/entity.py
-index 35021a51b5..aecdcab91b 100644
---- a/tools/ldgen/ldgen/entity.py
-+++ b/tools/ldgen/ldgen/entity.py
-@@ -1,5 +1,5 @@
- #
--# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
-+# SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
- # SPDX-License-Identifier: Apache-2.0
- #
- 
-@@ -9,8 +9,8 @@ import os
- from enum import Enum
- from functools import total_ordering
- 
--from pyparsing import (Group, Literal, OneOrMore, ParseException, SkipTo, Suppress, White, Word, ZeroOrMore, alphas,
--                       nums, rest_of_line)
-+from pyparsing import (Group, Literal, OneOrMore, ParseException, Regex, SkipTo, Suppress, White, Word, ZeroOrMore,
-+                       alphas, nums, rest_of_line)
- 
- 
- @total_ordering
-@@ -139,7 +139,7 @@ class EntityDB:
- 
-         # 00 {section} 0000000 ...
-         #              CONTENTS, ALLOC, ....
--        section_entry = (Suppress(Word(nums)) + SkipTo(' ') + Suppress(rest_of_line)
-+        section_entry = (Suppress(Word(nums)) + Regex(r'\.\S+') + Suppress(rest_of_line)
-                          + Suppress(ZeroOrMore(Word(alphas) + Literal(',')) + Word(alphas)))
- 
-         content = Group(object_line


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/
  2024-06-04 12:26 [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/esp-idf/files/, dev-embedded/esp-idf/ David Roman
@ 2024-06-04  9:18 ` David Roman
  0 siblings, 0 replies; 6+ messages in thread
From: David Roman @ 2024-06-04  9:18 UTC (permalink / raw
  To: gentoo-commits

commit:     de0d832f6d0bff5349e0b256c19f846a3dfcc304
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Jun  4 08:49:10 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Jun  4 08:49:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=de0d832f

dev-embedded/esp-idf: drop 5.2

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest                      |   1 -
 dev-embedded/esp-idf/esp-idf-5.2.ebuild            | 145 ---------------------
 .../files/allow-system-install-esp-idf-5.0.2.patch |  39 ------
 3 files changed, 185 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 883f50799..46f062765 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,5 +1,4 @@
 DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
-DIST esp-idf-5.2.zip 1287699728 BLAKE2B d91d69da49423afa1c5345053af1da65d0c2d610f72a9a0c30a56bf9d4d2a9f10d2d30a2187e6db63953d5b9547877240cda8ff2d31032e7b4b9f2fad74c21e9 SHA512 fbbdd08aff3fe310638312d46a61466f97a039906a7766cc4ab5343b41a66f742b065b375695f8b2e749104bb7214eb31a1357e24c231048fc03fc81a615c90e
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
 DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.ebuild
deleted file mode 100644
index 906a2a656..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.2.ebuild
+++ /dev/null
@@ -1,145 +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
-	${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
-	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}"
-
-RESTRICT="strip"
-
-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[${PYTHON_USEDEP}]
-	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}]
-"
-
-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 .
-}

diff --git a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.2.patch b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.2.patch
deleted file mode 100644
index 1bd97c6f4..000000000
--- a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.2.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff --git a/tools/idf.py b/tools/idf.py
-index 10226bcfef..5f4556f71a 100755
---- a/tools/idf.py
-+++ b/tools/idf.py
-@@ -31,16 +31,12 @@ sys.dont_write_bytecode = True
- 
- import python_version_checker  # noqa: E402
- 
--try:
--    from idf_py_actions.errors import FatalError  # noqa: E402
--    from idf_py_actions.tools import (PROG, SHELL_COMPLETE_RUN, SHELL_COMPLETE_VAR, PropertyDict,  # noqa: E402
--                                      debug_print_idf_version, get_target, merge_action_lists, print_warning)
--    if os.getenv('IDF_COMPONENT_MANAGER') != '0':
--        from idf_component_manager import idf_extensions
--except ImportError:
--    # For example, importing click could cause this.
--    print('Please use idf.py only in an ESP-IDF shell environment.', file=sys.stderr)
--    sys.exit(1)
-+from idf_py_actions.errors import FatalError  # noqa: E402
-+from idf_py_actions.tools import (PROG, SHELL_COMPLETE_RUN, SHELL_COMPLETE_VAR, PropertyDict,  # noqa: E402
-+                                  debug_print_idf_version, get_target, merge_action_lists, print_warning)
-+
-+if os.getenv('IDF_COMPONENT_MANAGER') != '0':
-+    from idf_component_manager import idf_extensions
- 
- # Use this Python interpreter for any subprocesses we launch
- PYTHON = sys.executable
-diff --git a/tools/idf_tools.py b/tools/idf_tools.py
-index 8a17ed224d..2103e9d60a 100755
---- a/tools/idf_tools.py
-+++ b/tools/idf_tools.py
-@@ -2113,6 +2113,7 @@ def action_install_python_env(args):  # type: ignore
- 
- 
- def action_check_python_dependencies(args):  # type: ignore
-+    return
-     use_constraints = not args.no_constraints
-     req_paths = get_requirements('')  # no new features -> just detect the existing ones
- 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/esp-idf/files/, dev-embedded/esp-idf/
@ 2024-06-04 12:26 David Roman
  2024-06-04  9:18 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/ David Roman
  0 siblings, 1 reply; 6+ messages in thread
From: David Roman @ 2024-06-04 12:26 UTC (permalink / raw
  To: gentoo-commits

commit:     de0d832f6d0bff5349e0b256c19f846a3dfcc304
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Jun  4 08:49:10 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Jun  4 08:49:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=de0d832f

dev-embedded/esp-idf: drop 5.2

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest                      |   1 -
 dev-embedded/esp-idf/esp-idf-5.2.ebuild            | 145 ---------------------
 .../files/allow-system-install-esp-idf-5.0.2.patch |  39 ------
 3 files changed, 185 deletions(-)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 883f50799..46f062765 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,5 +1,4 @@
 DIST esp-idf-5.2.1.zip 1300409360 BLAKE2B a55ee7852165bd14fcc72fd0bc9c8f1dbfeb3a0f86766b5354112c54d3081709d192b87e368bf31502629e6a85cd9a75055fb0a20ee20a755f9d3951fb14b3ce SHA512 bbcfcbbec38ffc0f7d07c57bb8a3431e0237d0f61a02b176bfb222b71cff0f3065fadbdcf43221b33f14565fc646a3e287ce5fde7d5d7dae2d036b2e11d113e4
-DIST esp-idf-5.2.zip 1287699728 BLAKE2B d91d69da49423afa1c5345053af1da65d0c2d610f72a9a0c30a56bf9d4d2a9f10d2d30a2187e6db63953d5b9547877240cda8ff2d31032e7b4b9f2fad74c21e9 SHA512 fbbdd08aff3fe310638312d46a61466f97a039906a7766cc4ab5343b41a66f742b065b375695f8b2e749104bb7214eb31a1357e24c231048fc03fc81a615c90e
 DIST openocd-esp32-linux-amd64-0.12.0-esp32-20230921.tar.gz 2193783 BLAKE2B 8f94d628bb415ab75daa85d51c94e8d2a9a1d9399b706963b8bd663d145e440a9e86d7f29000f196d1c9e2585c24882739a80ba29c5b83a96ada384f262f0941 SHA512 8ca3c932c5b7b236133c2a305d95b8059d9db14640efc077e34c256390da05e177479a973aa974005f34fba4a74119dcdb59d876344bdef8940b58c3c948c9f7
 DIST riscv32-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 143575940 BLAKE2B a888291f4b2c482cf2f3620519fc02607ba22d99f8d02e20415daf58cf2eecfa96144b0fc6fdbf98b3569ff0e5755d854650735e30cbfab56701a3d61627ddba SHA512 71b5def3d291eb80ab98adfbd23626ea4c6c5d8b30ab34a9f8a100013df58c4867044b974d8ced9405b5b45b26232835806746814051f55b650dde82bffe40f4
 DIST xtensa-esp-elf-13.2.0_20230928-x86_64-linux-gnu.tar.xz 112588084 BLAKE2B 9b462426d09f0071d205066d6e9897d035a3c65bef6c9bf2cccefdbcbb3629af38cec5b5411e5f32c1e0b19d51c78675e264544c1f730a1b0554262c9b6dd7d1 SHA512 60e718d8bc4007966d4b66ca57a56b144ac6614e6a283ceb6681a29aab60f1f621049e3b691440e3da38a47d7260467a06c91c190d383aeb5c915df2dd908b94

diff --git a/dev-embedded/esp-idf/esp-idf-5.2.ebuild b/dev-embedded/esp-idf/esp-idf-5.2.ebuild
deleted file mode 100644
index 906a2a656..000000000
--- a/dev-embedded/esp-idf/esp-idf-5.2.ebuild
+++ /dev/null
@@ -1,145 +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
-	${CROSSTOOL_URL}/xtensa-esp-elf-${VER}-x86_64-linux-gnu.tar.xz
-	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}"
-
-RESTRICT="strip"
-
-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[${PYTHON_USEDEP}]
-	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}]
-"
-
-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 .
-}

diff --git a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.2.patch b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.2.patch
deleted file mode 100644
index 1bd97c6f4..000000000
--- a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.0.2.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff --git a/tools/idf.py b/tools/idf.py
-index 10226bcfef..5f4556f71a 100755
---- a/tools/idf.py
-+++ b/tools/idf.py
-@@ -31,16 +31,12 @@ sys.dont_write_bytecode = True
- 
- import python_version_checker  # noqa: E402
- 
--try:
--    from idf_py_actions.errors import FatalError  # noqa: E402
--    from idf_py_actions.tools import (PROG, SHELL_COMPLETE_RUN, SHELL_COMPLETE_VAR, PropertyDict,  # noqa: E402
--                                      debug_print_idf_version, get_target, merge_action_lists, print_warning)
--    if os.getenv('IDF_COMPONENT_MANAGER') != '0':
--        from idf_component_manager import idf_extensions
--except ImportError:
--    # For example, importing click could cause this.
--    print('Please use idf.py only in an ESP-IDF shell environment.', file=sys.stderr)
--    sys.exit(1)
-+from idf_py_actions.errors import FatalError  # noqa: E402
-+from idf_py_actions.tools import (PROG, SHELL_COMPLETE_RUN, SHELL_COMPLETE_VAR, PropertyDict,  # noqa: E402
-+                                  debug_print_idf_version, get_target, merge_action_lists, print_warning)
-+
-+if os.getenv('IDF_COMPONENT_MANAGER') != '0':
-+    from idf_component_manager import idf_extensions
- 
- # Use this Python interpreter for any subprocesses we launch
- PYTHON = sys.executable
-diff --git a/tools/idf_tools.py b/tools/idf_tools.py
-index 8a17ed224d..2103e9d60a 100755
---- a/tools/idf_tools.py
-+++ b/tools/idf_tools.py
-@@ -2113,6 +2113,7 @@ def action_install_python_env(args):  # type: ignore
- 
- 
- def action_check_python_dependencies(args):  # type: ignore
-+    return
-     use_constraints = not args.no_constraints
-     req_paths = get_requirements('')  # no new features -> just detect the existing ones
- 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/
@ 2024-07-25 10:05 David Roman
  0 siblings, 0 replies; 6+ messages in thread
From: David Roman @ 2024-07-25 10:05 UTC (permalink / raw
  To: gentoo-commits

commit:     f0484f4e466f615fcce1a8a1a75df9273b60cfa6
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Jul 25 10:05:34 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Jul 25 10:05:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f0484f4e

dev-embedded/esp-idf: add 5.3

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 dev-embedded/esp-idf/Manifest                      |   3 +
 dev-embedded/esp-idf/esp-idf-5.3.ebuild            | 158 +++++++++++++++++++++
 .../files/allow-system-install-esp-idf-5.3.patch   |  12 ++
 3 files changed, 173 insertions(+)

diff --git a/dev-embedded/esp-idf/Manifest b/dev-embedded/esp-idf/Manifest
index 86ecf0c47..e47926ecb 100644
--- a/dev-embedded/esp-idf/Manifest
+++ b/dev-embedded/esp-idf/Manifest
@@ -1,6 +1,9 @@
 DIST esp-idf-5.2.2.zip 1488330027 BLAKE2B 00ba4c6f6a08ff1a8a398b8fea3dff1cb23e9f61435d9b69035df81579b65a026030f7fc67bb1b43c90484b5c4cfbd5143383b4171f0fed70931e58718c906fa SHA512 35b2b6ab028a9075702e7441b0354e7c30deaabc97da1b758a6206e2c78760b415ed5d60cbaf7b90b5fdce95f9faeb99d6ae1ad4991635024e2a3cfcbc8c38f2
+DIST esp-idf-5.3.zip 1617510710 BLAKE2B 423c993efc32af9bd4b25509439c94ae06d474a20db70fc14b2dffaeb476aa647ff0f774cd58b5872de3e4c1768ce8b9e5dd7a99c6d36cba54cd7fea2eb2f5fa SHA512 3a5a7668a7c1419cfd0ead032a856d55a99e70d306c7db6bd3301d1349a128ed95a220c9a5adf310dd749e70ba460acb0c502d64b54d54e7a082422885c2b619
 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-13.2.0_20240530-x86_64-linux-gnu.tar.xz 145544808 BLAKE2B b55513bf4cd6526a438aa5460806f0886438a52932631f5d142bc9c5f0b0affcda7a830b2f9b13c83ed356a4cebd7e3e0c0b5c29e718e880d312b6aa2f61c5b2 SHA512 fb4c868877bd9e68bedceb816c1aeec1736e2876bc1adf3138d59b73f0e9b0fb14eb826c885749b6070e6cf1e8e794f0a53c85bf5c5c896d8b3a6c7e6d0d821b
 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-13.2.0_20240530-x86_64-linux-gnu.tar.xz 112073272 BLAKE2B 88b6abb5202ebb2ffa03f3cdeca2fc0ef23cb02d96e86388e3334620d7a36ff6401a6e886380f10a4eff68638c60705f3d66d68fa047dc3e37744b41b643da73 SHA512 ecb11e32269513d778d320a429c4403ce50e8556b7e547dee7efb3a1ae333ad526732415cabe79bef30e2e9626305f83f6ca60dc1bd1864adfbfc7b9240e5c46
 DIST xtensa-esp-elf-gdb-14.2_20240403-x86_64-linux-gnu.tar.gz 31010320 BLAKE2B dcca888811260e86f9cde19ee1a2e7737c73de6a8060d100a362a4c41a606779b82cb04ff62184c5dfa226e6ac9b81b018f4da30e748cbcd644a80ff2122b86a SHA512 8b224393345b45124d5f0698e01e8e465d785c62cea6845eefd7ff852463966dc13ae94f6edb9a6b16871a6cfaa43b4d275740173579994d352303359c122deb

diff --git a/dev-embedded/esp-idf/esp-idf-5.3.ebuild b/dev-embedded/esp-idf/esp-idf-5.3.ebuild
new file mode 100644
index 000000000..fba617de1
--- /dev/null
+++ b/dev-embedded/esp-idf/esp-idf-5.3.ebuild
@@ -0,0 +1,158 @@
+# 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_20240530"
+GDB_VER="14.2_20240403"
+
+CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
+
+inherit estack python-r1
+
+DESCRIPTION="Espressif IoT Development Framework"
+HOMEPAGE="https://www.espressif.com/"
+
+# See https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt for information about version dependencies
+
+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-20240318/openocd-esp32-linux-amd64-0.12.0-esp32-20240318.tar.gz
+	https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/xtensa-esp-elf-gdb-${GDB_VER}-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://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v${GDB_VER}/riscv32-esp-elf-gdb-${GDB_VER}-x86_64-linux-gnu.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.3.patch"
+)
+
+install_tool() {
+	eshopts_push -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
+	)
+
+	eshopts_pop
+}
+
+src_install() {
+	newbin - idf <<-EOF
+	#!/bin/sh
+
+	# Silence a warning by idf.py
+	export IDF_PYTHON_ENV_PATH=
+	exec python /usr/share/${PN}/tools/idf.py \$@
+EOF
+
+	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.{8..10} || die
+	install_tool xtensa-esp-elf-gdb
+	if use riscv32; then
+		install_tool riscv32-esp-elf-gdb
+	fi
+
+	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 .
+}

diff --git a/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.3.patch b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.3.patch
new file mode 100644
index 000000000..2b2a3de26
--- /dev/null
+++ b/dev-embedded/esp-idf/files/allow-system-install-esp-idf-5.3.patch
@@ -0,0 +1,12 @@
+diff --git a/tools/idf_tools.py b/tools/idf_tools.py
+index 4c0cfe8b68..e20b7152df 100755
+--- a/tools/idf_tools.py
++++ b/tools/idf_tools.py
+@@ -2685,6 +2685,7 @@ def action_check_python_dependencies(args):  # type: ignore
+     Checks if all the dependencies (from requirements, constraints...) are installed properly.
+     Raises SystemExit if not.
+     """
++    return
+     use_constraints = not args.no_constraints
+     req_paths = get_requirements('')  # no new features -> just detect the existing ones
+ 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-07-25 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04 12:26 [gentoo-commits] repo/proj/guru:master commit in: dev-embedded/esp-idf/files/, dev-embedded/esp-idf/ David Roman
2024-06-04  9:18 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-embedded/esp-idf/, dev-embedded/esp-idf/files/ David Roman
  -- strict thread matches above, loose matches on Subject: below --
2024-07-25 10:05 David Roman
2023-11-20 13:39 David Roman
2023-07-05 13:20 David Roman
2022-12-05 23:00 David Roman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox