From 3eac6f74189d2242c482bdb906cc11577a1f65e5 Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Fri, 27 Sep 2024 14:50:43 +0200 Subject: [PATCH] Updated script workflow --- scripts/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package.py b/scripts/package.py index c916fa00c..40604e269 100644 --- a/scripts/package.py +++ b/scripts/package.py @@ -548,7 +548,7 @@ def str2bool(v): # Package all boards as separate packages packages = {} - if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/boards')): + if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/boards')) or not args.package_boards_or_mcus: packages = package_board_files( repo_dir, os.path.join(os.getcwd(), 'bsp/board/include/boards'), @@ -560,7 +560,7 @@ def str2bool(v): json.dump(packages, metadata, indent=4) # Package all cards as separate packages - if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/mcu_cards')): + if check_files_in_directory(os.path.join(os.getcwd(), 'resources/queries/mcu_cards')) or not args.package_boards_or_mcus: packages_cards = package_card_files( repo_dir, os.path.join(os.getcwd(), 'bsp/board/include/mcu_cards'),