From 52624710cd005b71d5e2a77eccc737eb4d7a34a9 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 29 Aug 2019 10:47:23 +0200 Subject: [PATCH] Update script compilation FrSky --- tools/build-frsky.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/build-frsky.py b/tools/build-frsky.py index d07c0a3ee..699049f2f 100755 --- a/tools/build-frsky.py +++ b/tools/build-frsky.py @@ -86,7 +86,7 @@ def build(board, srcdir): os.mkdir("output") path = tempfile.mkdtemp() os.chdir(path) - command = "cmake -DFRSKY_RELEASE=YES %s" % (board, cmake_options, srcdir) + command = "cmake %s -DFRSKY_RELEASE=YES %s" % (cmake_options, srcdir) print(command) os.system(command) os.system("make firmware -j6") @@ -115,7 +115,9 @@ def main(): parser.add_argument("srcdir", type=dir_path) args = parser.parse_args() - for board in args.boards: + + boards = options.keys() if "ALL" in args.boards else args.boards + for board in boards: build(board, args.srcdir)