aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/spi_flash
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-02-07 20:48:21 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-02-07 20:48:21 -0500
commit1049282eec1eb1717df6ac49c0e533bb034e1961 (patch)
treedd60537eef6269d648090507ad87e41673fe55ae /scripts/spi_flash
parenta7b50b6002d2982c6b426f180a5f6bf9db976e1f (diff)
downloadkutter-1049282eec1eb1717df6ac49c0e533bb034e1961.tar.gz
kutter-1049282eec1eb1717df6ac49c0e533bb034e1961.tar.xz
kutter-1049282eec1eb1717df6ac49c0e533bb034e1961.zip
chelper: Fix check for failed code build
Commit 73b78af6 inadvertently removed the check for a successful gcc compilation. Add the check back in. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/spi_flash')
-rw-r--r--scripts/spi_flash/fatfs_lib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/spi_flash/fatfs_lib.py b/scripts/spi_flash/fatfs_lib.py
index 5894bb52..2f27c083 100644
--- a/scripts/spi_flash/fatfs_lib.py
+++ b/scripts/spi_flash/fatfs_lib.py
@@ -73,7 +73,7 @@ def check_fatfs_build(printfunc=lambda o: o):
else:
cmd = "%s %s" % (chelper.GCC_CMD, chelper.COMPILE_ARGS)
printfunc("Building FatFS shared library...")
- os.system(cmd % (destlib, ' '.join(srcfiles)))
+ chelper.do_build_code(cmd % (destlib, ' '.join(srcfiles)))
printfunc("Done\n")
global fatfs_ffi_main, fatfs_ffi_lib
ffi_main.cdef(FATFS_CDEFS)