Skip to content

Commit

Permalink
Merge branch 'sve' into cherry-pick-29873290196796fbf23e28083163f8565…
Browse files Browse the repository at this point in the history
…bb479ba
  • Loading branch information
woody-apple authored Jul 29, 2022
2 parents ee0a178 + 94440c5 commit 25857f3
Show file tree
Hide file tree
Showing 762 changed files with 36,609 additions and 17,030 deletions.
4 changes: 4 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ BeagleBone
befc
betaprogram
BinaryInputBasic
Binfmt
bitbake
bld
BLE
Expand Down Expand Up @@ -160,7 +161,9 @@ btmgmt
BTN
BTP
btvirt
BuildKit
buildwithmatter
buildX
burndown
ButtonIsr
BytesMain
Expand All @@ -178,6 +181,7 @@ CatalogVendorId
CBB
cbd
CBOR
Ccache
ccf
CCMP
CCS
Expand Down
15 changes: 14 additions & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,20 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
enable_host_gcc_build = enable_default_builds && host_os != "win"

# Enable building chip with gcc & mbedtls.
enable_host_gcc_mbedtls_build = enable_default_builds && host_os != "win"
enable_host_gcc_mbedtls_build = false

# Enable limited testing with gcc & mbedtls.
enable_host_gcc_mbedtls_crypto_tests =
enable_default_builds && host_os != "win"

# Enable building chip with clang & boringssl
enable_host_clang_boringssl_build = false

# Enable limited testing with clang & boringssl. On Mac, boringssl does
# not compile with ASAN enabled.
enable_host_clang_boringssl_crypto_tests =
enable_default_builds && host_os != "win" &&
!(is_asan == true && host_os == "mac")

# Enable building chip with clang & boringssl
enable_host_clang_boringssl_build = false
Expand Down
3 changes: 0 additions & 3 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@ declare_args() {
# Enable Thread sanitizer
is_tsan = false

# Enable address sanitizer
is_asan = false

# Enable memory sanitizer
is_msan = false

Expand Down
3 changes: 3 additions & 0 deletions build/config/compiler/compiler.gni
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ declare_args() {

# Generate code coverage analysis artifacts when enabled.
use_coverage = false

# Enable address sanitizer
is_asan = false
}
10 changes: 8 additions & 2 deletions config/ameba/chip.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,24 @@ string(APPEND CHIP_GN_ARGS "pw_build_LINK_DEPS = [\"//third_party/connectedhomei
string(APPEND CHIP_GN_ARGS "pw_rpc_CONFIG = \"//third_party/connectedhomeip/third_party/pigweed/repo/pw_rpc:disable_global_mutex\"")
endif (matter_enable_rpc)

# Build Matter Shell
if (matter_enable_shell)
string(APPEND CHIP_GN_ARGS "chip_build_libshell = true\n")
endif (matter_enable_shell)

# Build ota-requestor
if (matter_enable_ota_requestor)
string(APPEND CHIP_GN_ARGS "chip_enable_ota_requestor = true\n")
endif (matter_enable_ota_requestor)

# Rotating ID
if (matter_enable_rotating_id)
string(APPEND CHIP_GN_ARGS "chip_enable_additional_data_advertising = true\n")
string(APPEND CHIP_GN_ARGS "chip_enable_rotating_device_id = true\n")
else(matter_enable_rotating_id)
else (matter_enable_rotating_id)
string(APPEND CHIP_GN_ARGS "chip_enable_additional_data_advertising = false\n")
string(APPEND CHIP_GN_ARGS "chip_enable_rotating_device_id = false\n")
endif(matter_enable_rotating_id)
endif (matter_enable_rotating_id)

file(GENERATE OUTPUT ${CHIP_OUTPUT}/args.gn CONTENT ${CHIP_GN_ARGS})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,44 +320,55 @@ server cluster LevelControl = 8 {
request struct MoveToLevelRequest {
INT8U level = 0;
INT16U transitionTime = 1;
BITMAP8 optionMask = 2;
BITMAP8 optionOverride = 3;
BITMAP8 optionsMask = 2;
BITMAP8 optionsOverride = 3;
}

request struct MoveRequest {
MoveMode moveMode = 0;
INT8U rate = 1;
BITMAP8 optionMask = 2;
BITMAP8 optionOverride = 3;
BITMAP8 optionsMask = 2;
BITMAP8 optionsOverride = 3;
}

request struct StepRequest {
StepMode stepMode = 0;
INT8U stepSize = 1;
INT16U transitionTime = 2;
BITMAP8 optionMask = 3;
BITMAP8 optionOverride = 4;
BITMAP8 optionsMask = 3;
BITMAP8 optionsOverride = 4;
}

request struct StopRequest {
BITMAP8 optionMask = 0;
BITMAP8 optionOverride = 1;
BITMAP8 optionsMask = 0;
BITMAP8 optionsOverride = 1;
}

request struct MoveToLevelWithOnOffRequest {
INT8U level = 0;
INT16U transitionTime = 1;
BITMAP8 optionsMask = 2;
BITMAP8 optionsOverride = 3;
}

request struct MoveWithOnOffRequest {
MoveMode moveMode = 0;
INT8U rate = 1;
BITMAP8 optionsMask = 2;
BITMAP8 optionsOverride = 3;
}

request struct StepWithOnOffRequest {
StepMode stepMode = 0;
INT8U stepSize = 1;
INT16U transitionTime = 2;
BITMAP8 optionsMask = 3;
BITMAP8 optionsOverride = 4;
}

request struct StopWithOnOffRequest {
BITMAP8 optionsMask = 0;
BITMAP8 optionsOverride = 1;
}

command MoveToLevel(MoveToLevelRequest): DefaultSuccess = 0;
Expand All @@ -367,7 +378,7 @@ server cluster LevelControl = 8 {
command MoveToLevelWithOnOff(MoveToLevelWithOnOffRequest): DefaultSuccess = 4;
command MoveWithOnOff(MoveWithOnOffRequest): DefaultSuccess = 5;
command StepWithOnOff(StepWithOnOffRequest): DefaultSuccess = 6;
command StopWithOnOff(): DefaultSuccess = 7;
command StopWithOnOff(StopWithOnOffRequest): DefaultSuccess = 7;
}

server cluster BinaryInputBasic = 15 {
Expand Down Expand Up @@ -451,15 +462,15 @@ server cluster AccessControl = 31 {
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
fabric_idx adminFabricIndex = 254;
fabric_idx fabricIndex = 254;
}

info event access(read: administer) AccessControlExtensionChanged = 1 {
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
fabric_idx adminFabricIndex = 254;
fabric_idx fabricIndex = 254;
}

attribute access(read: administer, write: administer) AccessControlEntry acl[] = 0;
Expand Down Expand Up @@ -565,6 +576,7 @@ server cluster Basic = 40 {
}

info event Leave = 2 {
fabric_idx fabricIndex = 0;
}

info event ReachableChanged = 3 {
Expand Down Expand Up @@ -1180,7 +1192,7 @@ server cluster GeneralDiagnostics = 51 {
INT64U eventTrigger = 1;
}

command TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
}

server cluster SoftwareDiagnostics = 52 {
Expand Down Expand Up @@ -1565,7 +1577,7 @@ server cluster OperationalCredentials = 62 {
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
readonly attribute OCTET_STRING trustedRootCertificates[] = 4;
readonly attribute fabric_idx currentFabricIndex = 5;
readonly attribute int8u currentFabricIndex = 5;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

Expand Down Expand Up @@ -3465,7 +3477,7 @@ server cluster ApplicationBasic = 1293 {
}

readonly attribute char_string<32> vendorName = 0;
readonly attribute int16u vendorID = 1;
readonly attribute vendor_id vendorID = 1;
readonly attribute char_string<32> applicationName = 2;
readonly attribute int16u productID = 3;
readonly attribute ApplicationStatusEnum status = 5;
Expand Down Expand Up @@ -3606,7 +3618,7 @@ server cluster TestCluster = 4294048773 {
}

info event TestFabricScopedEvent = 2 {
fabric_idx arg1 = 254;
fabric_idx fabricIndex = 254;
}

attribute boolean boolean = 0;
Expand Down
Loading

0 comments on commit 25857f3

Please sign in to comment.