build.gn自动添加 Makefile输出的src_files.txt文件

This commit is contained in:
2025-01-17 19:35:35 +08:00
parent f790b7f9d4
commit e202cbfdbe
18 changed files with 90 additions and 770 deletions

View File

@@ -11,25 +11,10 @@
import("//build/buildcfg.gni")
module_name = "kl_sdk"
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
sources = [
"freertos/src/croutine.c",
"freertos/src/event_groups.c",
"freertos/src/hook.c",
"freertos/src/list.c",
"freertos/src/queue.c",
"freertos/src/tasks.c",
"freertos/src/timers.c",
"freertos/src/version.c",
"freertos/src/portable/RISCV/port.c",
"freertos/src/portable/RISCV/portasm.S",
"freertos/src/portable/MemMang/heap_5/heap_5.c"
]
include_dirs = [
"//os/freertos/src/include",
"//os/freertos/src/portable/RISCV",
"//startup/riscv/inc",
module_group(module_name) {
modules = [
"freertos",
]
}