|
| 1 | +# Copyright (c) 2025 Project CHIP Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | + |
| 16 | +import("//build_overrides/nxp_sdk.gni") |
| 17 | +import("${nxp_sdk_build_root}/nxp_sdk.gni") |
| 18 | + |
| 19 | +ota_root = get_path_info(".", "abspath") |
| 20 | + |
| 21 | +ota_sources = [ |
| 22 | + "${ota_root}/OTAImageProcessorImpl.cpp", |
| 23 | + "${ota_root}/OTAImageProcessorImpl.h", |
| 24 | + "${ota_root}/OTATlvProcessor.cpp", |
| 25 | + "${ota_root}/OTATlvProcessor.h", |
| 26 | + "${ota_root}/OTAFirmwareProcessor.cpp", |
| 27 | + "${ota_root}/OTAFirmwareProcessor.h", |
| 28 | + "${ota_root}/OTAHooks.cpp", |
| 29 | +] |
| 30 | + |
| 31 | +if (nxp_use_factory_data && nxp_enable_ota_factory_data_processor) { |
| 32 | + ota_sources += [ |
| 33 | + "${ota_root}/OTAFactoryDataProcessor.cpp", |
| 34 | + "${ota_root}/OTAFactoryDataProcessor.h", |
| 35 | + ] |
| 36 | +} |
0 commit comments