started working on automatically downloading cape code
diff --git a/aos/build/externals.gyp b/aos/build/externals.gyp
index 695fc9f..1d5d7fb 100644
--- a/aos/build/externals.gyp
+++ b/aos/build/externals.gyp
@@ -16,6 +16,7 @@
'compiler_rt_version': 'RELEASE_32_final',
'libevent_version': '2.0.21',
'libcdd_version': '094g',
+ 'stm32flash_commit': '8399fbe1baf2b7d097746786458021d92895d71b',
},
'targets': [
{
@@ -211,6 +212,24 @@
'include_dirs': ['<(compiled_abs)/'],
},
},
+ {
+ 'target_name': 'stm32flash',
+ 'type': 'static_library',
+ 'sources': [
+ '<(externals)/stm32flash-<(stm32flash_commit)/stm32flash/init.c',
+ '<(externals)/stm32flash-<(stm32flash_commit)/stm32flash/parsers/hex.c',
+ '<(externals)/stm32flash-<(stm32flash_commit)/stm32flash/serial_common.c',
+ '<(externals)/stm32flash-<(stm32flash_commit)/stm32flash/serial_platform.c',
+ '<(externals)/stm32flash-<(stm32flash_commit)/stm32flash/utils.c',
+ '<(externals)/stm32flash-<(stm32flash_commit)/stm32flash/stm32.c',
+ ],
+ 'cflags': [
+ '-Wno-error',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': ['<(externals_abs)/stm32flash-<(stm32flash_commit)'],
+ },
+ },
],
'includes': [
'libgcc-additions/libgcc-additions.gypi',