使用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

@@ -38,7 +38,7 @@ module_group(module_name) {
"common", "common",
"os", "os",
"plc", "plc",
# "ftm", "ftm",
"pib", "pib",
"cli", "cli",
# "import" # "import"

View File

@@ -30,7 +30,7 @@ SUB_DIRS += $(TOPDIR)/bb_cpu/common $(TOPDIR)/bb_cpu/bb \
$(TOPDIR)/dtest/dtest3/mac_phy/rf_mac \ $(TOPDIR)/dtest/dtest3/mac_phy/rf_mac \
$(TOPDIR)/dtest/dtest3/mac_phy/double_cpu $(TOPDIR)/dtest/dtest3/mac_phy/double_cpu
EXT_SRC += $(TOPDIR)/dtest/dtest3/mac_phy/rf_phy/rf_phy_main.c \ EXT_SRC += \
$(TOPDIR)/dtest/dtest3/mac_phy/rf_phy/rf_phy_rx.c \ $(TOPDIR)/dtest/dtest3/mac_phy/rf_phy/rf_phy_rx.c \
$(TOPDIR)/dtest/dtest3/mac_phy/rf_phy/rf_phy_tx.c $(TOPDIR)/dtest/dtest3/mac_phy/rf_phy/rf_phy_tx.c
endif endif

View File

@@ -11,9 +11,15 @@
import("//build/buildcfg.gni") 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 = ["halmac","halphy","common","cvg","htbus",":kl_sdk"]
}
module_name1 = "kl_sdk"
source_module(module_name1) {
sources = [] sources = []
include_dirs = [] 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=[]
}