Skip to content

Commit

Permalink
Modify GN to build FreeRTOS from third party source repo (#9986)
Browse files Browse the repository at this point in the history
* Modify GN to build FreeRTOS from third party source repo

* Remove lowercase "portable" folder
  • Loading branch information
lucicop authored and pull[bot] committed Sep 28, 2021
1 parent 903632d commit 1080128
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion third_party/qpg_sdk/BUILD.gn
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# 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() {
Expand All @@ -23,5 +25,24 @@ declare_args() {
assert(qpg_sdk_target != "", "qpg_sdk_target must be specified")

group("qpg_sdk") {
public_deps = [ qpg_sdk_target ]
public_deps = [
":freertos",
qpg_sdk_target,
]
}

config("qpg_freertos_config") {
include_dirs = [
"${chip_root}/third_party/qpg_sdk/repo/qpg6100/comps/gpFreeRTOS/config",
"${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" ]
}
2 changes: 1 addition & 1 deletion third_party/qpg_sdk/repo
Submodule repo updated from 9ae193 to b9ba5a

0 comments on commit 1080128

Please sign in to comment.