Skip to content

Commit 94b914c

Browse files
Marek Matejmarekmatej
authored andcommitted
zephyr: scripts: use esptool version from hal requirements
Use package-managers to provide hal requirements.txt. Update the generator script accordingly and add the actual `requirements.txt` file. Fix the path used to access the flash_stub. Signed-off-by: Marek Matej <marek.matej@espressif.com>
1 parent e7fa981 commit 94b914c

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

zephyr/esp32c6/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ if(CONFIG_SOC_SERIES_ESP32C6)
127127
-T${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_rom/${CONFIG_SOC_SERIES}/ld/${CONFIG_SOC_SERIES}.rom.version.ld
128128
-T${CMAKE_CURRENT_SOURCE_DIR}/../../components/esp_rom/${CONFIG_SOC_SERIES}/ld/${CONFIG_SOC_SERIES}.rom.wdt.ld
129129
-T${CMAKE_CURRENT_SOURCE_DIR}/../../components/soc/${CONFIG_SOC_SERIES}/ld/${CONFIG_SOC_SERIES}.peripherals.ld
130-
-T${CMAKE_CURRENT_SOURCE_DIR}/../../tools/esptool_py/flasher_stub/ld/rom_32c6.ld
130+
-T${CMAKE_CURRENT_SOURCE_DIR}/../../tools/flasher_stub/ld/rom_32c6.ld
131131
)
132132

133133
zephyr_compile_definitions(ESP_PLATFORM)

zephyr/module.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ build:
44
kconfig: zephyr/Kconfig
55
settings:
66
dts_root: .
7+
package-managers:
8+
pip:
9+
requirement-files:
10+
- zephyr/requirements.txt
711
blobs:
812
- path: lib/esp32c6/libble_app.a
913
sha256: fa816b02b51ae563003da5debad67ec9b80e90db9cd736bb2e0fb64224c7093b

zephyr/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
esptool>=5.0.1

zephyr/scripts/blobs/esp_genblobs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
module_yaml = """\
2020
name: hal_espressif
21+
package-managers:
22+
pip:
23+
requirement-files:
24+
- zephyr/requirements.txt
2125
build:
2226
cmake: zephyr
2327
kconfig: zephyr/Kconfig

0 commit comments

Comments
 (0)