File tree 6 files changed +33
-0
lines changed
examples/jf-admin-app/linux 6 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,5 @@ chip_enable_additional_data_advertising = true
34
34
chip_enable_rotating_device_id = true
35
35
36
36
chip_enable_read_client = false
37
+
38
+ chip_device_config_enable_joint_fabric = true
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import("//build_overrides/chip.gni")
16
16
import (" ${ chip_root } /src/access/access.gni" )
17
17
import (" ${ chip_root } /src/app/common_flags.gni" )
18
18
import (" ${ chip_root } /src/app/icd/icd.gni" )
19
+ import (" ${ chip_root } /src/platform/device.gni" )
19
20
20
21
config (" server_config" ) {
21
22
defines = []
@@ -63,6 +64,13 @@ static_library("server") {
63
64
" Server.h" ,
64
65
]
65
66
67
+ if (chip_device_config_enable_joint_fabric ) {
68
+ sources += [
69
+ " JointFabricDatastore.cpp" ,
70
+ " JointFabricDatastore.h" ,
71
+ ]
72
+ }
73
+
66
74
public_configs = [ " :server_config" ]
67
75
68
76
cflags = [ " -Wconversion" ]
Original file line number Diff line number Diff line change 82
82
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
83
83
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
84
84
85
+ #if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
86
+ #include < app/server/JointFabricDatastore.h>
87
+ #endif // CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
88
+
85
89
namespace chip {
86
90
87
91
inline constexpr size_t kMaxBlePendingPackets = 1 ;
@@ -419,7 +423,9 @@ class Server
419
423
420
424
app::reporting::ReportScheduler * GetReportScheduler () { return mReportScheduler ; }
421
425
426
+ #if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
422
427
app::JointFabricDatastore & GetJointFabricDatastore () { return mJointFabricDatastore ; }
428
+ #endif // CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
423
429
424
430
#if CHIP_CONFIG_ENABLE_ICD_SERVER
425
431
app::ICDManager & GetICDManager () { return mICDManager ; }
@@ -700,7 +706,9 @@ class Server
700
706
Access::AccessControl mAccessControl ;
701
707
app::AclStorage * mAclStorage ;
702
708
709
+ #if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
703
710
app::JointFabricDatastore mJointFabricDatastore ;
711
+ #endif // CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
704
712
705
713
TestEventTriggerDelegate * mTestEventTriggerDelegate ;
706
714
Crypto::OperationalKeystore * mOperationalKeystore ;
Original file line number Diff line number Diff line change 456
456
#define CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF 0
457
457
#endif
458
458
459
+ /**
460
+ * CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
461
+ *
462
+ * Enable support for Joint Fabric in core SDK.
463
+ */
464
+ #ifndef CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
465
+ #define CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC 0
466
+ #endif
467
+
459
468
/**
460
469
* CHIP_DEVICE_CONFIG_WIFIPAF_MIN_ADVERTISING_TIMEOUT_SECS
461
470
*
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ if (chip_device_platform != "none" && chip_device_platform != "external") {
141
141
" CHIP_USE_TRANSITIONAL_DEVICE_INSTANCE_INFO_PROVIDER=${ chip_use_transitional_device_instance_info_provider } " ,
142
142
" CHIP_DEVICE_CONFIG_ENABLE_DYNAMIC_MRP_CONFIG=${ chip_device_config_enable_dynamic_mrp_config } " ,
143
143
" CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF=${ chip_device_config_enable_wifipaf } " ,
144
+ " CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC=${ chip_device_config_enable_joint_fabric } " ,
144
145
]
145
146
146
147
public_deps = [ " ${ chip_root } /src/app/icd/server:icd-server-config" ]
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ declare_args() {
120
120
}
121
121
}
122
122
123
+ declare_args () {
124
+ # Enable Joint Fabric features
125
+ chip_device_config_enable_joint_fabric = false
126
+ }
127
+
123
128
declare_args () {
124
129
# Include wifi-paf to commission the device or not
125
130
# This is a feature of Wi-Fi spec that it can be enabled if wifi is enabled
You can’t perform that action at this time.
0 commit comments