summaryrefslogtreecommitdiff
path: root/ports/esp32/boards/manifest.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-10-16 15:12:39 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-21 23:01:41 +1100
commit8ba963cfa3da8e712e94c2429cfd6f064b1b4c69 (patch)
tree80ba4c57de3e596b2752d630621b6e5c1727ba06 /ports/esp32/boards/manifest.py
parent12413e92a3f938bdfe844bd65bf189ee1431e1d0 (diff)
tools/makemanifest.py: Eval relative paths w.r.t. current manifest file.
When loading a manifest file, e.g. by include(), it will chdir first to the directory of that manifest. This means that all file operations within a manifest are relative to that manifest's location. As a consequence of this, additional environment variables are needed to find absolute paths, so the following are added: $(MPY_LIB_DIR), $(PORT_DIR), $(BOARD_DIR). And rename $(MPY) to $(MPY_DIR) to be consistent. Existing manifests are updated to match.
Diffstat (limited to 'ports/esp32/boards/manifest.py')
-rw-r--r--ports/esp32/boards/manifest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ports/esp32/boards/manifest.py b/ports/esp32/boards/manifest.py
index 3da8af57f..2b07639ee 100644
--- a/ports/esp32/boards/manifest.py
+++ b/ports/esp32/boards/manifest.py
@@ -1,6 +1,6 @@
-freeze('modules')
-freeze('$(MPY)/tools', ('upip.py', 'upip_utarfile.py'))
-freeze('$(MPY)/ports/esp8266/modules', 'ntptime.py')
-freeze('$(MPY)/ports/esp8266/modules', ('webrepl.py', 'webrepl_setup.py', 'websocket_helper.py',))
-freeze('$(MPY)/drivers/dht', 'dht.py')
-freeze('$(MPY)/drivers/onewire')
+freeze('$(PORT_DIR)/modules')
+freeze('$(MPY_DIR)/tools', ('upip.py', 'upip_utarfile.py'))
+freeze('$(MPY_DIR)/ports/esp8266/modules', 'ntptime.py')
+freeze('$(MPY_DIR)/ports/esp8266/modules', ('webrepl.py', 'webrepl_setup.py', 'websocket_helper.py',))
+freeze('$(MPY_DIR)/drivers/dht', 'dht.py')
+freeze('$(MPY_DIR)/drivers/onewire')