Skip to content

Commit

Permalink
rebase and fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs committed Aug 16, 2022
1 parent 3bfc7f2 commit 0d180e9
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion examples/chef/efr32/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Expand Down
1 change: 0 additions & 1 deletion examples/light-switch-app/efr32/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Expand Down
1 change: 0 additions & 1 deletion examples/lighting-app/efr32/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Expand Down
1 change: 0 additions & 1 deletion examples/lock-app/efr32/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Expand Down
1 change: 0 additions & 1 deletion examples/window-app/efr32/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Expand Down
6 changes: 4 additions & 2 deletions scripts/checkout_submodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ def make_chip_root_safe_directory() -> None:
subprocess.check_call(['git', 'config', '--global', '--add', 'safe.directory', CHIP_ROOT])


def checkout_modules(modules: list, shallow: bool, force: bool) -> None:
def checkout_modules(modules: list, shallow: bool, force: bool, recursive: bool) -> None:
names = [module.name.replace('submodule "', '').replace('"', '') for module in modules]
names = ', '.join(names)
logging.info(f'Checking out: {names}')

cmd = ['git', '-C', CHIP_ROOT, 'submodule', 'update', '--init']
cmd += ['--depth', '1'] if shallow else []
cmd += ['--force'] if force else []
cmd += ['--recursive'] if recursive else []
cmd += [module.path for module in modules]

subprocess.check_call(cmd)
Expand Down Expand Up @@ -109,6 +110,7 @@ def main():
parser.add_argument('--force', action='store_true', help='Perform action despite of warnings')
parser.add_argument('--deinit-unmatched', action='store_true',
help='Deinitialize submodules for non-matching platforms')
parser.add_argument('--recursive', action='store_true', help='Recursive init of the listed submodules')
args = parser.parse_args()

modules = list(load_module_info())
Expand All @@ -117,7 +119,7 @@ def main():
unmatched_modules = [m for m in modules if not module_matches_platforms(m, selected_platforms)]

make_chip_root_safe_directory()
checkout_modules(selected_modules, args.shallow, args.force)
checkout_modules(selected_modules, args.shallow, args.force, args.recursive)

if args.deinit_unmatched:
deinit_modules(unmatched_modules, args.force)
Expand Down
1 change: 0 additions & 1 deletion src/test_driver/efr32/.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

# The location of the build configuration file.
buildconfig = "${build_root}/config/BUILDCONFIG.gn"
Expand Down
2 changes: 1 addition & 1 deletion third_party/silabs/matter_support

0 comments on commit 0d180e9

Please sign in to comment.