使用ninja 编译 链接成功

This commit is contained in:
2025-01-20 15:11:32 +08:00
parent f5142aaba1
commit 5b60aa9da3
9 changed files with 67 additions and 6 deletions

View File

@@ -11,9 +11,15 @@
import("//build/buildcfg.gni")
module_name = "kl_sdk"
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
sources=[]
include_dirs=[]
module_group(module_name) {
modules = ["halmac","halphy","common","cvg","htbus",":kl_sdk"]
}
module_name1 = "kl_sdk"
source_module(module_name1) {
sources = []
include_dirs = []
}

8
plc/common/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
plc/cvg/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=[]
}

15
plc/halmac/BUILD.gn Normal file
View File

@@ -0,0 +1,15 @@
import("//build/buildcfg.gni")
module_name = get_path_info(rebase_path("."), "name")
module_group(module_name) {
modules = ["hw3",":kl_sdk"]
}
module_name1 = "kl_sdk"
source_module(module_name1) {
sources = []
include_dirs = []
}

8
plc/halmac/hw3/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
plc/halphy/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
plc/htbus/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=[]
}