添加一些BUILD.gn文件, 添加 source_module模板

This commit is contained in:
2025-01-20 11:33:46 +08:00
parent 01283e9f23
commit f5142aaba1
8 changed files with 85 additions and 18 deletions

View File

@@ -11,9 +11,16 @@
import("//build/buildcfg.gni")
module_name = "kl_sdk"
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
module_group(module_name) {
modules = ["pkt","io_lib","utils",":kl_sdk"]
}
module_name1 = "kl_sdk"
source_module(module_name1) {
sources = []
include_dirs = []
}

8
common/io_lib/BUILD.gn Normal file
View File

@@ -0,0 +1,8 @@
import("//build/buildcfg.gni")
module_name = "kl_sdk"
kernel_module(module_name) {
sources=[]
include_dirs=[]
}

8
common/pkt/BUILD.gn Normal file
View File

@@ -0,0 +1,8 @@
import("//build/buildcfg.gni")
module_name = "kl_sdk"
kernel_module(module_name) {
sources=[]
include_dirs=[]
}

8
common/utils/BUILD.gn Normal file
View File

@@ -0,0 +1,8 @@
import("//build/buildcfg.gni")
module_name = "kl_sdk"
kernel_module(module_name) {
sources=[]
include_dirs=[]
}