@@ -31,7 +31,7 @@ if os.getenv("RELEASE"):
31
31
assert os .path .exists (cert_fn ), 'Certificate file not found. Please specify absolute path'
32
32
else :
33
33
BUILD_TYPE = "DEBUG"
34
- cert_fn = File ("../certs/debug" ).srcnode ().abspath
34
+ cert_fn = File ("../certs/debug" ).srcnode ().relpath
35
35
common_flags += ["-DALLOW_DEBUG" ]
36
36
37
37
if os .getenv ("DEBUG" ):
@@ -99,7 +99,7 @@ def to_c_uint32(x):
99
99
def get_key_header (name ):
100
100
from Crypto .PublicKey import RSA
101
101
102
- public_fn = File ( f'../certs/{ name } .pub' ). srcnode (). abspath
102
+ public_fn = f'../certs/{ name } .pub'
103
103
rsa = RSA .importKey (open (public_fn ).read ())
104
104
assert (rsa .size_in_bits () == 1024 )
105
105
@@ -132,7 +132,7 @@ with open("obj/cert.h", "w") as f:
132
132
133
133
for project_name in build_projects :
134
134
project = build_projects [project_name ]
135
- linkerscript_fn = File (project ["LINKER_SCRIPT" ]).srcnode ().abspath
135
+ linkerscript_fn = File (project ["LINKER_SCRIPT" ]).srcnode ().relpath
136
136
137
137
flags = [
138
138
"-Wall" ,
@@ -193,5 +193,5 @@ for project_name in build_projects:
193
193
main_bin = project_env .Objcopy (f"obj/{ project_name } .bin" , main_elf )
194
194
195
195
# Sign main
196
- sign_py = File ("../crypto/sign.py" ).srcnode ().abspath
196
+ sign_py = File ("../crypto/sign.py" ).srcnode ().relpath
197
197
panda_bin_signed = project_env .Command (f"obj/{ project_name } .bin.signed" , main_bin , f"SETLEN=1 { sign_py } $SOURCE $TARGET { cert_fn } " )
0 commit comments