mirror of https://github.com/commaai/panda.git
set pythonpath in build.mk
This commit is contained in:
parent
19d7149e6f
commit
251724e66f
|
@ -17,7 +17,7 @@ DFU_UTIL = "dfu-util"
|
|||
|
||||
# this no longer pushes the bootstub
|
||||
flash: obj/$(PROJ_NAME).bin
|
||||
python -c "from panda import Panda; Panda().flash('obj/$(PROJ_NAME).bin')"
|
||||
PYTHONPATH=../ python -c "from panda import Panda; Panda().flash('obj/$(PROJ_NAME).bin')"
|
||||
|
||||
ota: obj/$(PROJ_NAME).bin
|
||||
curl http://192.168.0.10/stupdate --upload-file $<
|
||||
|
@ -26,7 +26,7 @@ bin: obj/$(PROJ_NAME).bin
|
|||
|
||||
# this flashes everything
|
||||
recover: obj/bootstub.$(PROJ_NAME).bin obj/$(PROJ_NAME).bin
|
||||
-python -c "from panda import Panda; Panda().reset(enter_bootloader=True)"
|
||||
PYTHONPATH=../ python -c "from panda import Panda; Panda().reset(enter_bootloader=True)"
|
||||
sleep 1.0
|
||||
$(DFU_UTIL) -a 0 -s 0x08004000 -D obj/$(PROJ_NAME).bin
|
||||
$(DFU_UTIL) -a 0 -s 0x08000000:leave -D obj/bootstub.$(PROJ_NAME).bin
|
||||
|
|
Loading…
Reference in New Issue