blob: c7cf2b29d0b7bca01b5b06b137b34cb5afba1ea6 [file] [log] [blame]
# Copyright (c) 2020 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/freertos.gni")
import("//build_overrides/qpg_sdk.gni")
import("${freertos_root}/freertos.gni")
import("${qpg_sdk_build_root}/qpg_sdk.gni")
declare_args() {
# Build target to use for QPG SDK. Use this to set global SDK defines.
qpg_sdk_target = ""
}
assert(qpg_sdk_target != "", "qpg_sdk_target must be specified")
group("qpg_sdk") {
public_deps = [
":freertos",
qpg_sdk_target,
]
}
config("qpg_freertos_config") {
include_dirs = [
"${qpg_sdk_root}/Applications/Matter/shared/config/inc",
"${qpg_sdk_root}/Components/ThirdParty/Lwip",
"${freertos_root}/repo/portable/GCC/ARM_CM3",
]
}
freertos_target("freertos") {
sources = [
"${freertos_root}/repo/portable/GCC/ARM_CM3/port.c",
# "${freertos_root}/repo/portable/MemMang/heap_3.c",
]
public_configs = [ ":qpg_freertos_config" ]
}