Skip to content

Commit 8ebe19d

Browse files
authored
[Python] Resync CHIP project config with standalone config (#34155)
This mainly reuses the default defines for test setup parameters. No functional changes.
1 parent 196a13b commit 8ebe19d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

config/python/CHIPProjectConfig.h

+11-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
#define CHIP_CONFIG_EVENT_LOGGING_NUM_EXTERNAL_CALLBACKS 2
2727

2828
// Uncomment this for a large Tunnel MTU.
29-
//#define CHIP_CONFIG_TUNNEL_INTERFACE_MTU (9000)
29+
// #define CHIP_CONFIG_TUNNEL_INTERFACE_MTU (9000)
3030

3131
// Enable support functions for parsing command-line arguments
3232
#define CHIP_CONFIG_ENABLE_ARG_PARSER 1
3333

34-
// Use a default pairing code if one hasn't been provisioned in flash.
35-
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
36-
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
34+
// Enable use of test setup parameters for testing purposes only.
35+
//
36+
// WARNING: This option makes it possible to circumvent basic chip security functionality.
37+
// Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.
38+
//
39+
#ifndef CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS
40+
#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 1
41+
#endif
3742

3843
// Enable reading DRBG seed data from /dev/(u)random.
3944
// This is needed for test applications and the CHIP device manager to function
@@ -46,6 +51,8 @@
4651
// WARNING: These options make it possible to circumvent basic Chip security functionality,
4752
// including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
4853
//
54+
// To build with this flag, pass 'treat_warnings_as_errors=false' to gn/ninja.
55+
//
4956
#define CHIP_CONFIG_SECURITY_TEST_MODE 0
5057

5158
#define CHIP_CONFIG_ENABLE_UPDATE 1

0 commit comments

Comments
 (0)