使用ninja 编译 链接成功
This commit is contained in:
2
BUILD.gn
2
BUILD.gn
@@ -38,7 +38,7 @@ module_group(module_name) {
|
||||
"common",
|
||||
"os",
|
||||
"plc",
|
||||
# "ftm",
|
||||
"ftm",
|
||||
"pib",
|
||||
"cli",
|
||||
# "import"
|
||||
|
@@ -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/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_tx.c
|
||||
endif
|
||||
|
10
plc/BUILD.gn
10
plc/BUILD.gn
@@ -11,9 +11,15 @@
|
||||
|
||||
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 = []
|
||||
include_dirs = []
|
||||
}
|
8
plc/common/BUILD.gn
Normal file
8
plc/common/BUILD.gn
Normal 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
8
plc/cvg/BUILD.gn
Normal 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
15
plc/halmac/BUILD.gn
Normal 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
8
plc/halmac/hw3/BUILD.gn
Normal 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
8
plc/halphy/BUILD.gn
Normal 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
8
plc/htbus/BUILD.gn
Normal file
@@ -0,0 +1,8 @@
|
||||
import("//build/buildcfg.gni")
|
||||
|
||||
module_name = "kl_sdk"
|
||||
|
||||
kernel_module(module_name) {
|
||||
sources=[]
|
||||
include_dirs=[]
|
||||
}
|
Reference in New Issue
Block a user