Merge pull request #142 from gbrlwck/mescc-fix
MEScc fix + exception message
This commit is contained in:
commit
8bacb5138e
|
@ -59,7 +59,11 @@ class SysGeneral:
|
||||||
readable_hash = hashlib.sha256(downloaded_content).hexdigest()
|
readable_hash = hashlib.sha256(downloaded_content).hexdigest()
|
||||||
if expected_hash == readable_hash:
|
if expected_hash == readable_hash:
|
||||||
return
|
return
|
||||||
raise Exception("Checksum mismatch")
|
raise Exception(f"Checksum mismatch for file {os.path.basename(file_name)}:\n\
|
||||||
|
expected: {expected_hash}\n\
|
||||||
|
actual: {readable_hash}\n\
|
||||||
|
When in doubt, try deleting the file in question -- it will be downloaded again when running \
|
||||||
|
this script the next time")
|
||||||
|
|
||||||
raise Exception("File checksum is not yet recorded")
|
raise Exception("File checksum is not yet recorded")
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ chmod 755 ${bindir}/mes-m2
|
||||||
|
|
||||||
# Build Mes C library using mes-m2 bootstrapped Mes
|
# Build Mes C library using mes-m2 bootstrapped Mes
|
||||||
|
|
||||||
alias mescc="${MES} --no-auto-compile -e main ${bindir}/mescc.scm -- -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -c"
|
alias mescc="${MES} -e main ${bindir}/mescc.scm -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -c"
|
||||||
|
|
||||||
# Start with crt1.o
|
# Start with crt1.o
|
||||||
mescc lib/linux/x86-mes-mescc/crt1.c
|
mescc lib/linux/x86-mes-mescc/crt1.c
|
||||||
|
|
Loading…
Reference in New Issue