diff options
author | Jack Lloyd <[email protected]> | 2020-03-15 08:18:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-03-15 08:28:48 -0400 |
commit | 0eed28a9cfdbc2ebc8fc973c5058bbe831ee19ca (patch) | |
tree | 2fd4cdce6fea86d9395a396982f4a7634250c98e /src/scripts/ci_build.py | |
parent | fe9465577388d4a6fd10758cb12d50f3986875d1 (diff) |
Build and link the tests and cli on baremetal as well
Not actually useful for the most part but it ensures everything builds
in a no-filesystem environment which is useful.
Add a OS feature for atomic operations since these aren't necessarily
available.
Diffstat (limited to 'src/scripts/ci_build.py')
-rwxr-xr-x | src/scripts/ci_build.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py index 07c21bf74..bd6828d6e 100755 --- a/src/scripts/ci_build.py +++ b/src/scripts/ci_build.py @@ -27,13 +27,9 @@ def get_concurrency(): return def_concurrency def build_targets(target, target_os): - if target == 'baremetal': - yield 'static' - return - if target in ['shared', 'mini-shared', 'bsi', 'nist']: yield 'shared' - elif target in ['static', 'mini-static', 'fuzzers']: + elif target in ['static', 'mini-static', 'fuzzers', 'baremetal']: yield 'static' elif target_os in ['windows']: yield 'shared' @@ -155,7 +151,7 @@ def determine_flags(target, target_os, target_cpu, target_cc, cc_bin, if target == 'baremetal': cc_bin = 'arm-none-eabi-c++' - flags += ['--cpu=arm32', '--disable-neon', '--without-stack-protector'] + flags += ['--cpu=arm32', '--disable-neon', '--without-stack-protector', '--ldflags=-specs=nosys.specs'] test_cmd = None if is_cross_target: @@ -559,10 +555,6 @@ def main(args=None): if target in ['coverage']: make_targets += ['bogo_shim'] - if target in ['baremetal']: - # everything else builds, but fails to link - make_targets = ['libs'] - cmds.append(make_prefix + make_cmd + make_targets) if options.compiler_cache in ccache_show_stats: |