From 87b1d5c77f03e214266803e6f73e00b8ea02afa1 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 28 Apr 2023 10:23:35 -0400 Subject: [PATCH 01/12] Add OSS fuzz as a fuzzing option for host builds --- scripts/build/build/targets.py | 5 +++-- scripts/build/builders/host.py | 22 +++++++++++++--------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index afeff7ef8a2b73..6aa969deb52be3 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -21,7 +21,7 @@ from builders.efr32 import Efr32App, Efr32Board, Efr32Builder from builders.esp32 import Esp32App, Esp32Board, Esp32Builder from builders.genio import GenioApp, GenioBuilder -from builders.host import HostApp, HostBoard, HostBuilder, HostCryptoLibrary +from builders.host import HostApp, HostBoard, HostBuilder, HostCryptoLibrary, HostFuzzingType from builders.imx import IMXApp, IMXBuilder from builders.infineon import InfineonApp, InfineonBoard, InfineonBuilder from builders.k32w import K32WApp, K32WBuilder @@ -140,7 +140,8 @@ def BuildHostTarget(): target.AppendModifier("asan", use_asan=True).ExceptIfRe("-tsan") target.AppendModifier("tsan", use_tsan=True).ExceptIfRe("-asan") target.AppendModifier("ubsan", use_ubsan=True) - target.AppendModifier("libfuzzer", use_libfuzzer=True).OnlyIfRe("-clang") + target.AppendModifier("libfuzzer", fuzzing_type=HostFuzzingType.LIB_FUZZER).OnlyIfRe("-clang").ExceptIfRe('-ossfuzz') + target.AppendModifier("ossfuzz", fuzzing_type=HostFuzzingType.OSS_FUZZ).OnlyIfRe("-clang").ExceptIfRe('-libfuzzer') target.AppendModifier('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)') target.AppendModifier('dmalloc', use_dmalloc=True) target.AppendModifier('clang', use_clang=True) diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index 91fa10d0c36693..05f168bc34d84f 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -34,6 +34,12 @@ def gn_argument(self): elif self == HostCryptoLibrary.BORINGSSL: return 'chip_crypto="boringssl"' +class HostFuzzingType(Enum): + """Defines fuzz target options available for host targets.""" + NONE = auto() + LIB_FUZZER = auto() + OSS_FUZZ = auto() + class HostApp(Enum): ALL_CLUSTERS = auto() @@ -239,14 +245,10 @@ class HostBuilder(GnBuilder): def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, enable_ipv4=True, enable_ble=True, enable_wifi=True, enable_thread=True, use_tsan=False, use_asan=False, use_ubsan=False, - separate_event_loop=True, use_libfuzzer=False, use_clang=False, - interactive_mode=True, extra_tests=False, - use_platform_mdns=False, enable_rpcs=False, - use_coverage=False, use_dmalloc=False, - minmdns_address_policy=None, - minmdns_high_verbosity=False, - imgui_ui=False, - crypto_library: HostCryptoLibrary = None): + separate_event_loop=True, fuzzing_type:HostFuzzingType=HostFuzzingType.NONE, use_clang=False, + interactive_mode=True, extra_tests=False, use_platform_mdns=False, enable_rpcs=False, + use_coverage=False, use_dmalloc=False, minmdns_address_policy=None, + minmdns_high_verbosity=False, imgui_ui=False, crypto_library: HostCryptoLibrary = None): super(HostBuilder, self).__init__( root=os.path.join(root, 'examples', app.ExamplePath()), runner=runner) @@ -296,8 +298,10 @@ def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, if not interactive_mode: self.extra_gn_options.append('config_use_interactive_mode=false') - if use_libfuzzer: + if fuzzing_type == HostFuzzingType.LIB_FUZZER: self.extra_gn_options.append('is_libfuzzer=true') + elif fuzzing_type == HostFuzzingType.OSS_FUZZ: + self.extra_gn_options.append('oss_fuzz=true') if imgui_ui: self.extra_gn_options.append('chip_examples_enable_imgui_ui=true') From 737095361ff479b546ccbe340ead3e1dcc80fb55 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 28 Apr 2023 10:48:47 -0400 Subject: [PATCH 02/12] Fix unit tests --- scripts/build/testdata/all_targets_linux_x64.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index b117fe363a994d..2c069a8bc91593 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -8,7 +8,7 @@ efr32-{brd4161a,brd4187c,brd4186c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,b esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-provider,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-coverage][-dmalloc][-clang] -linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,contact-sensor}[-nodeps][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui] +linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,contact-sensor}[-nodeps][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui] linux-x64-efr32-test-runner[-clang] imx-{chip-tool,lighting-app,thermostat,all-clusters-app,all-clusters-minimal-app,ota-provider-app}[-release] infineon-psoc6-{lock,light,all-clusters,all-clusters-minimal}[-ota][-updateimage] From 1235f138f059b9e2b1ef715acd9779e4e0ef21c2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 28 Apr 2023 11:04:27 -0400 Subject: [PATCH 03/12] Fix fuzz targets for fake tests as well --- scripts/build/build/targets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 6aa969deb52be3..49a6d74cbd2f43 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -68,7 +68,8 @@ def BuildHostFakeTarget(): target.AppendModifier("asan", use_asan=True).ExceptIfRe("-tsan") target.AppendModifier("tsan", use_tsan=True).ExceptIfRe("-asan") target.AppendModifier("ubsan", use_ubsan=True) - target.AppendModifier("libfuzzer", use_libfuzzer=True).OnlyIfRe("-clang") + target.AppendModifier("libfuzzer", fuzzing_type=HostFuzzingType.LIB_FUZZER).OnlyIfRe("-clang").ExceptIfRe('-ossfuzz') + target.AppendModifier("ossfuzz", fuzzing_type=HostFuzzingType.OSS_FUZZ).OnlyIfRe("-clang").ExceptIfRe('-libfuzzer') target.AppendModifier('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)') target.AppendModifier('dmalloc', use_dmalloc=True) target.AppendModifier('clang', use_clang=True) From 76f972c11cadea9418278693932cb112ca82220a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 28 Apr 2023 11:16:31 -0400 Subject: [PATCH 04/12] Fix documentation and tests --- docs/guides/BUILDING.md | 39 ++++++++++++++++++- scripts/build/builders/host.py | 3 ++ .../build/testdata/all_targets_linux_x64.txt | 2 +- 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 08900d3313e340..1cf6903f6f0952 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -57,7 +57,7 @@ sudo apt-get install git gcc g++ pkg-config libssl-dev libdbus-1-dev \ #### UI builds -If building `-with-ui` variant, also install SDL2: +If building via `build_examples.py` and `-with-ui` variant, also install SDL2: ``` sudo apt-get install libsdl2-dev @@ -251,6 +251,43 @@ ninja -C out/host src/inet/tests:tests_run > > This means that the tests passed in a previous build. +## Using `build_examples.py` + +The script `./scripts/build/build_examples.py` provides a uniform build interface +into using `gn`, `cmake`, `ninja` and other tools as needed to compile various +platforms. + +Use `./scripts/build/build_examples.py targets` to see a list of supported targets. + +Example build commands: + +``` +# Compiles and runs all tests on the host: +/scripts/build/build_examples.py --target linux-x64-tests build + +# Compiles fuzzing tagets using libfuzzer (fuzzing requires clang) +/scripts/build/build_examples.py --target linux-x64-tests-clang-libfuzzer build + +# Compiles a esp32 example +./scripts/build/build_examples.py --target esp32-m5stack-all-clusters build + +# Compiles a nrf example +./scripts/build/build_examples.py --target nrf-nrf5340dk-pump build +``` + +### Fuzzing tests + +Fuzzing tests are only compiled but not executed (you have to manually execute them). + +To compile, use: + +``` +./scripts/build/build_examples.py --target linux-x64-tests-clang-libfuzzer build +``` + +After which tests should be located in `out/linux-x64-tests-clang-libfuzzer/tests/`. + + ## Build custom configuration The build is configured by setting build arguments. These you can set in one of diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index 05f168bc34d84f..cb62f103ec8a62 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -371,6 +371,9 @@ def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, if self.app == HostApp.SIMULATED_APP2: self.extra_gn_options.append('chip_tests_zap_config="app2"') + if self.app == HostApp.TESTS and fuzzing_type != HostFuzzingType.NONE: + self.build_command = 'fuzz_tests' + def GnBuildArgs(self): if self.board == HostBoard.NATIVE: return self.extra_gn_options diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 2c069a8bc91593..63ad58f917a54a 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -7,7 +7,7 @@ cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor,switch} efr32-{brd4161a,brd4187c,brd4186c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock,thermostat}[-rpc][-with-ota-requestor][-sed][-low-power][-shell][-no_logging][-openthread_mtd][-enable_heap_monitoring][-no_openthread_cli][-show_qr_code][-wifi][-rs911x][-wf200][-wifi_ipv4][-additional_data_advertising][-use_ot_lib][-use_ot_coap_lib][-no-version] esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-provider,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app -linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-coverage][-dmalloc][-clang] +linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang] linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,contact-sensor}[-nodeps][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui] linux-x64-efr32-test-runner[-clang] imx-{chip-tool,lighting-app,thermostat,all-clusters-app,all-clusters-minimal-app,ota-provider-app}[-release] From 90f68b9d6d0a266e417b206c8e66accb846ed01e Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 28 Apr 2023 15:27:34 +0000 Subject: [PATCH 05/12] Restyled by prettier-markdown --- docs/guides/BUILDING.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 1cf6903f6f0952..576dfd5e22fe77 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -253,11 +253,12 @@ ninja -C out/host src/inet/tests:tests_run ## Using `build_examples.py` -The script `./scripts/build/build_examples.py` provides a uniform build interface -into using `gn`, `cmake`, `ninja` and other tools as needed to compile various -platforms. +The script `./scripts/build/build_examples.py` provides a uniform build +interface into using `gn`, `cmake`, `ninja` and other tools as needed to compile +various platforms. -Use `./scripts/build/build_examples.py targets` to see a list of supported targets. +Use `./scripts/build/build_examples.py targets` to see a list of supported +targets. Example build commands: @@ -277,7 +278,8 @@ Example build commands: ### Fuzzing tests -Fuzzing tests are only compiled but not executed (you have to manually execute them). +Fuzzing tests are only compiled but not executed (you have to manually execute +them). To compile, use: @@ -285,8 +287,8 @@ To compile, use: ./scripts/build/build_examples.py --target linux-x64-tests-clang-libfuzzer build ``` -After which tests should be located in `out/linux-x64-tests-clang-libfuzzer/tests/`. - +After which tests should be located in +`out/linux-x64-tests-clang-libfuzzer/tests/`. ## Build custom configuration From 7a3993f2d12cd9aff49b245ac23c0ca43bcb4ad7 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 28 Apr 2023 15:27:36 +0000 Subject: [PATCH 06/12] Restyled by autopep8 --- scripts/build/builders/host.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index cb62f103ec8a62..4ee845ea7fd969 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -34,6 +34,7 @@ def gn_argument(self): elif self == HostCryptoLibrary.BORINGSSL: return 'chip_crypto="boringssl"' + class HostFuzzingType(Enum): """Defines fuzz target options available for host targets.""" NONE = auto() @@ -245,7 +246,7 @@ class HostBuilder(GnBuilder): def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, enable_ipv4=True, enable_ble=True, enable_wifi=True, enable_thread=True, use_tsan=False, use_asan=False, use_ubsan=False, - separate_event_loop=True, fuzzing_type:HostFuzzingType=HostFuzzingType.NONE, use_clang=False, + separate_event_loop=True, fuzzing_type: HostFuzzingType = HostFuzzingType.NONE, use_clang=False, interactive_mode=True, extra_tests=False, use_platform_mdns=False, enable_rpcs=False, use_coverage=False, use_dmalloc=False, minmdns_address_policy=None, minmdns_high_verbosity=False, imgui_ui=False, crypto_library: HostCryptoLibrary = None): From f3c99c5bcea33c4493f45c9c6b495e94434baaca Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 28 Apr 2023 11:43:36 -0400 Subject: [PATCH 07/12] Update docks --- docs/guides/BUILDING.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 576dfd5e22fe77..861cc63b2a1873 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -267,7 +267,7 @@ Example build commands: /scripts/build/build_examples.py --target linux-x64-tests build # Compiles fuzzing tagets using libfuzzer (fuzzing requires clang) -/scripts/build/build_examples.py --target linux-x64-tests-clang-libfuzzer build +/scripts/build/build_examples.py --target linux-x64-tests-clang-asan-libfuzzer build # Compiles a esp32 example ./scripts/build/build_examples.py --target esp32-m5stack-all-clusters build @@ -279,16 +279,17 @@ Example build commands: ### Fuzzing tests Fuzzing tests are only compiled but not executed (you have to manually execute -them). +them). For best error detection, some form of sanitizer like `asan` should +be used. To compile, use: ``` -./scripts/build/build_examples.py --target linux-x64-tests-clang-libfuzzer build +./scripts/build/build_examples.py --target linux-x64-tests-clang-asan-libfuzzer build ``` After which tests should be located in -`out/linux-x64-tests-clang-libfuzzer/tests/`. +`out/linux-x64-tests-clang-asan-libfuzzer/tests/`. ## Build custom configuration From 7d43b3a6cde1d8835b7482c5a573583bf36020ed Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 28 Apr 2023 15:43:57 +0000 Subject: [PATCH 08/12] Restyled by prettier-markdown --- docs/guides/BUILDING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 861cc63b2a1873..158defa7c1762f 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -279,8 +279,8 @@ Example build commands: ### Fuzzing tests Fuzzing tests are only compiled but not executed (you have to manually execute -them). For best error detection, some form of sanitizer like `asan` should -be used. +them). For best error detection, some form of sanitizer like `asan` should be +used. To compile, use: From ec362e1055366700609793a2796460797f411885 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 1 May 2023 10:23:52 -0400 Subject: [PATCH 09/12] Update text a bit to say unit tests and libfuzzer --- docs/guides/BUILDING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 158defa7c1762f..47ddc218bb1747 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -276,11 +276,11 @@ Example build commands: ./scripts/build/build_examples.py --target nrf-nrf5340dk-pump build ``` -### Fuzzing tests +### `libfuzzer` unit tests -Fuzzing tests are only compiled but not executed (you have to manually execute -them). For best error detection, some form of sanitizer like `asan` should be -used. +`libfuzzer` unit tests tests are only compiled but not executed (you have to +manually execute them). For best error detection, some form of sanitizer +like `asan` should be used. To compile, use: From 70845ceb4f2fa32996d2ee2e80ed4834f50986b7 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 1 May 2023 10:28:45 -0400 Subject: [PATCH 10/12] Add ossfuzz docs --- docs/guides/BUILDING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 47ddc218bb1747..b61c775135b0c6 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -291,6 +291,16 @@ To compile, use: After which tests should be located in `out/linux-x64-tests-clang-asan-libfuzzer/tests/`. +#### `ossfuzz` configurations + +`ossfuzz` configurations are not stand-alone fuzzing and instead serve +as an integration point with external fuzzing automated builds. + +They pick up environment variables such as `$CFLAGS`, `$CXXFLAGS` and +`$LIB_FUZZING_ENGINE`. + +You likely want `libfuzzer` + `asan` builds instead for local testing. + ## Build custom configuration The build is configured by setting build arguments. These you can set in one of From 70168d3cde25b7bea87928151c5a7251afee9f23 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 1 May 2023 10:29:37 -0400 Subject: [PATCH 11/12] Restyle --- docs/guides/BUILDING.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index b61c775135b0c6..de4b78845ab0c9 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -278,9 +278,9 @@ Example build commands: ### `libfuzzer` unit tests -`libfuzzer` unit tests tests are only compiled but not executed (you have to -manually execute them). For best error detection, some form of sanitizer -like `asan` should be used. +`libfuzzer` unit tests tests are only compiled but not executed (you have to +manually execute them). For best error detection, some form of sanitizer like +`asan` should be used. To compile, use: @@ -293,8 +293,8 @@ After which tests should be located in #### `ossfuzz` configurations -`ossfuzz` configurations are not stand-alone fuzzing and instead serve -as an integration point with external fuzzing automated builds. +`ossfuzz` configurations are not stand-alone fuzzing and instead serve as an +integration point with external fuzzing automated builds. They pick up environment variables such as `$CFLAGS`, `$CXXFLAGS` and `$LIB_FUZZING_ENGINE`. From eeaff1b928548df3f2ecba6aa4e0d72f1901ca78 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 2 May 2023 14:09:09 -0400 Subject: [PATCH 12/12] Fix paths for scripts to add the leading . --- docs/guides/BUILDING.md | 4 ++-- third_party/mbedtls/repo | 2 +- third_party/openthread/repo | 2 +- third_party/pigweed/repo | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index de4b78845ab0c9..26ff8d59485e13 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -264,10 +264,10 @@ Example build commands: ``` # Compiles and runs all tests on the host: -/scripts/build/build_examples.py --target linux-x64-tests build +./scripts/build/build_examples.py --target linux-x64-tests build # Compiles fuzzing tagets using libfuzzer (fuzzing requires clang) -/scripts/build/build_examples.py --target linux-x64-tests-clang-asan-libfuzzer build +./scripts/build/build_examples.py --target linux-x64-tests-clang-asan-libfuzzer build # Compiles a esp32 example ./scripts/build/build_examples.py --target esp32-m5stack-all-clusters build diff --git a/third_party/mbedtls/repo b/third_party/mbedtls/repo index e323fb3ab5bf9d..a31c6eb509fd67 160000 --- a/third_party/mbedtls/repo +++ b/third_party/mbedtls/repo @@ -1 +1 @@ -Subproject commit e323fb3ab5bf9dbdec8731c29108697e8d611755 +Subproject commit a31c6eb509fd67b9c21721f0d0f38c1468f706c7 diff --git a/third_party/openthread/repo b/third_party/openthread/repo index 6bfcc0d7d495fc..34ecac8536f6a8 160000 --- a/third_party/openthread/repo +++ b/third_party/openthread/repo @@ -1 +1 @@ -Subproject commit 6bfcc0d7d495fcc7bcf1cdd4070bee14c391ef95 +Subproject commit 34ecac8536f6a8e23391b7f25b7ec401bf1ae305 diff --git a/third_party/pigweed/repo b/third_party/pigweed/repo index b88cd71d271c41..5c4ea8e31764a8 160000 --- a/third_party/pigweed/repo +++ b/third_party/pigweed/repo @@ -1 +1 @@ -Subproject commit b88cd71d271c41e34a36dfc1c435e1e6ee3bc72a +Subproject commit 5c4ea8e31764a8ab1c55b7df4086fe610c4bf4af