Browse Source
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.pull/5236/head
Jim Mussared
5 years ago
committed by
Damien George
8 changed files with 85 additions and 44 deletions
@ -1,6 +1,6 @@ |
|||||
freeze('modules') |
freeze('$(PORT_DIR)/modules') |
||||
freeze('$(MPY)/tools', ('upip.py', 'upip_utarfile.py')) |
freeze('$(MPY_DIR)/tools', ('upip.py', 'upip_utarfile.py')) |
||||
freeze('$(MPY)/ports/esp8266/modules', 'ntptime.py') |
freeze('$(MPY_DIR)/ports/esp8266/modules', 'ntptime.py') |
||||
freeze('$(MPY)/ports/esp8266/modules', ('webrepl.py', 'webrepl_setup.py', 'websocket_helper.py',)) |
freeze('$(MPY_DIR)/ports/esp8266/modules', ('webrepl.py', 'webrepl_setup.py', 'websocket_helper.py',)) |
||||
freeze('$(MPY)/drivers/dht', 'dht.py') |
freeze('$(MPY_DIR)/drivers/dht', 'dht.py') |
||||
freeze('$(MPY)/drivers/onewire') |
freeze('$(MPY_DIR)/drivers/onewire') |
||||
|
@ -1,8 +1,6 @@ |
|||||
include('boards/manifest.py') |
include('manifest.py') |
||||
|
|
||||
LIB = '../../../micropython-lib' |
freeze('$(MPY_LIB_DIR)/upysh', 'upysh.py') |
||||
|
freeze('$(MPY_LIB_DIR)/urequests', 'urequests.py') |
||||
freeze(LIB + '/upysh', 'upysh.py') |
freeze('$(MPY_LIB_DIR)/umqtt.simple', 'umqtt/simple.py') |
||||
freeze(LIB + '/urequests', 'urequests.py') |
freeze('$(MPY_LIB_DIR)/umqtt.robust', 'umqtt/robust.py') |
||||
freeze(LIB + '/umqtt.simple', 'umqtt/simple.py') |
|
||||
freeze(LIB + '/umqtt.robust', 'umqtt/robust.py') |
|
||||
|
@ -1,4 +1,4 @@ |
|||||
freeze('modules') |
freeze('$(PORT_DIR)/modules') |
||||
freeze('$(MPY)/tools', ('upip.py', 'upip_utarfile.py')) |
freeze('$(MPY_DIR)/tools', ('upip.py', 'upip_utarfile.py')) |
||||
freeze('$(MPY)/drivers/dht', 'dht.py') |
freeze('$(MPY_DIR)/drivers/dht', 'dht.py') |
||||
freeze('$(MPY)/drivers/onewire') |
freeze('$(MPY_DIR)/drivers/onewire') |
||||
|
@ -1,3 +1,3 @@ |
|||||
freeze('$(MPY)/drivers/dht', 'dht.py') |
freeze('$(MPY_DIR)/drivers/dht', 'dht.py') |
||||
freeze('$(MPY)/drivers/display', ('lcd160cr.py', 'lcd160cr_test.py')) |
freeze('$(MPY_DIR)/drivers/display', ('lcd160cr.py', 'lcd160cr_test.py')) |
||||
freeze('$(MPY)/drivers/onewire', 'onewire.py') |
freeze('$(MPY_DIR)/drivers/onewire', 'onewire.py') |
||||
|
@ -1,2 +1,2 @@ |
|||||
freeze_as_mpy('$(MPY)/tools', 'upip.py') |
freeze_as_mpy('$(MPY_DIR)/tools', 'upip.py') |
||||
freeze_as_mpy('$(MPY)/tools', 'upip_utarfile.py', opt=3) |
freeze_as_mpy('$(MPY_DIR)/tools', 'upip_utarfile.py', opt=3) |
||||
|
Loading…
Reference in new issue