Skip to content

Commit d4fa871

Browse files
andrei-menzopolrestyled-commits
authored andcommitted
[NXP] Fix OTA Factory Data compilation (project-chip#37703)
* [nxp][platform][common] Remove FactoryDataProviderImpl header The PLATFORM_FACTORY_DATA_PROVIDER_IMPL_HEADER macro is set in e different source_set (nxp_factory_data) than nxp_ota where it is used (OTAFactoryDataProcessor.cpp) so it doesn't compile. However FactoryDataProviderImpl is not used in OTAFactoryDataProcessor.cpp so it can be removed. Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com> * [nxp][platform][mcxw71] Remove FactoryDataProviderImpl header The PLATFORM_FACTORY_DATA_PROVIDER_IMPL_HEADER macro is set in e different source_set (nxp_factory_data) than nxp_ota where it is used (OTAFactoryDataProcessor.cpp) so it doesn't compile. However FactoryDataProviderImpl is not used in OTAFactoryDataProcessor.cpp so it can be removed. Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com> * Restyled by clang-format --------- Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent a8c56d1 commit d4fa871

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/platform/nxp/common/ota/OTAFactoryDataProcessor.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@
2424
#include <platform/nxp/common/factory_data/legacy/FactoryDataDriver.h>
2525
#include <platform/nxp/common/factory_data/legacy/FactoryDataProvider.h>
2626
#include <platform/nxp/common/ota/OTATlvProcessor.h>
27-
#include PLATFORM_FACTORY_DATA_PROVIDER_IMPL_HEADER
2827

2928
namespace chip {
3029

31-
using FactoryProvider = DeviceLayer::FactoryDataProvider;
32-
using FactoryProviderImpl = DeviceLayer::FactoryDataProviderImpl;
33-
using FactoryDataDriver = DeviceLayer::FactoryDataDriver;
34-
using Tags = FactoryProvider::FactoryDataId;
30+
using FactoryProvider = DeviceLayer::FactoryDataProvider;
31+
using FactoryDataDriver = DeviceLayer::FactoryDataDriver;
32+
using Tags = FactoryProvider::FactoryDataId;
3533

3634
/**
3735
* OTA custom payload that uses Matter TLVs.

src/platform/nxp/mcxw71_k32w1/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ source_set("nxp_factory_data") {
4343
"${chip_root}/src/credentials/CertificationDeclaration.h",
4444
]
4545

46-
defines = [ "PLATFORM_FACTORY_DATA_PROVIDER_IMPL_HEADER=\"platform/nxp/common/factory_data/legacy/FactoryDataProviderImpl.h\"" ]
47-
4846
deps = [
4947
":nxp_platform",
5048
"${chip_root}/src/credentials:credentials",

0 commit comments

Comments
 (0)