-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NXP] Add ota gn file & minor fixes (#37121)
* [openthread][mcxw71] Add ot-nxp platform file as include directory Signed-off-by: marius-alex-tache <[email protected]> * [platform][mcxw71] Remove unused openthread dep in mbedtls config file Signed-off-by: marius-alex-tache <[email protected]> * [platform][common] Add ota.gni to be reused by platform layer List some OTA files in an organized manner to avoid duplication in other gn files. Signed-off-by: marius-alex-tache <[email protected]> * [platform][mcxw71] Use ota.gni Signed-off-by: marius-alex-tache <[email protected]> * Restyled by clang-format * Restyled by gn --------- Signed-off-by: marius-alex-tache <[email protected]> Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
789e941
commit c7024d3
Showing
4 changed files
with
50 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (c) 2025 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/nxp_sdk.gni") | ||
import("${nxp_sdk_build_root}/nxp_sdk.gni") | ||
|
||
ota_root = get_path_info(".", "abspath") | ||
|
||
ota_sources = [ | ||
"${ota_root}/OTAFirmwareProcessor.cpp", | ||
"${ota_root}/OTAFirmwareProcessor.h", | ||
"${ota_root}/OTAHooks.cpp", | ||
"${ota_root}/OTAImageProcessorImpl.cpp", | ||
"${ota_root}/OTAImageProcessorImpl.h", | ||
"${ota_root}/OTATlvProcessor.cpp", | ||
"${ota_root}/OTATlvProcessor.h", | ||
] | ||
|
||
if (nxp_use_factory_data && nxp_enable_ota_factory_data_processor) { | ||
ota_sources += [ | ||
"${ota_root}/OTAFactoryDataProcessor.cpp", | ||
"${ota_root}/OTAFactoryDataProcessor.h", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters