Skip to content

Commit

Permalink
[ESP32] Use the nvs generator from pypi instead from IDF_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Sep 12, 2024
1 parent 22db90a commit 7d9189b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions scripts/setup/requirements.esp32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ python-socketio<5
itsdangerous<2.1 ; python_version < "3.11"
esp_idf_monitor==1.1.1
esp-idf-kconfig==1.2.0
esp_idf_nvs_partition_gen==0.1.2
10 changes: 1 addition & 9 deletions scripts/tools/generate_esp32_chip_factory_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from types import SimpleNamespace

import cryptography.x509
import esp_idf_nvs_partition_gen.nvs_partition_gen as nvs_partition_gen
from esp_secure_cert.tlv_format import generate_partition_ds, generate_partition_no_ds, tlv_priv_key_t, tlv_priv_key_type_t

CHIP_TOPDIR = os.path.dirname(os.path.realpath(__file__))[:-len(os.path.join('scripts', 'tools'))]
Expand All @@ -33,15 +34,6 @@
sys.path.insert(0, os.path.join(CHIP_TOPDIR, 'src', 'setup_payload', 'python'))
from SetupPayload import CommissioningFlow, SetupPayload # noqa: E402 isort:skip

if os.getenv('IDF_PATH'):
sys.path.insert(0, os.path.join(os.getenv('IDF_PATH'),
'components',
'nvs_flash',
'nvs_partition_generator'))
import nvs_partition_gen
else:
sys.stderr.write("Please set the IDF_PATH environment variable.")
exit(0)

INVALID_PASSCODES = [00000000, 11111111, 22222222, 33333333, 44444444, 55555555,
66666666, 77777777, 88888888, 99999999, 12345678, 87654321]
Expand Down

0 comments on commit 7d9189b

Please sign in to comment.