mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
Switch panda to scons builder (#635)
* add scons builder * cleanup 1 * remove building from python code * add pedal build * fixup flags * add EON flag * change github actions to scons * fixup automated tests * move flashing scripts * fix indent * remove version.mk * fix not in git * fix linker script filename * untested pedal flashing scripts * add release option * better asserts * swap condition * enable usb and fix flash script * usb flash is not supported * use button to enable dfu mode * no usb because misra * remove sleep
This commit is contained in:
@@ -92,16 +92,8 @@ class PandaDFU(object):
|
||||
self.reset()
|
||||
|
||||
def recover(self):
|
||||
from panda import BASEDIR, build_st
|
||||
if self.legacy:
|
||||
fn = "obj/bootstub.comma.bin"
|
||||
print("building legacy bootstub")
|
||||
build_st(fn, "Makefile.legacy")
|
||||
else:
|
||||
fn = "obj/bootstub.panda.bin"
|
||||
print("building panda bootstub")
|
||||
build_st(fn)
|
||||
fn = os.path.join(BASEDIR, "board", fn)
|
||||
from panda import BASEDIR
|
||||
fn = os.path.join(BASEDIR, "board", "obj", "bootstub.panda.bin")
|
||||
|
||||
with open(fn, "rb") as f:
|
||||
code = f.read()
|
||||
|
||||
Reference in New Issue
Block a user