modify lora_radio_driver path and compile OK

This commit is contained in:
Liu_Weichao 2023-03-17 10:05:59 +08:00
parent a4eec2646d
commit 47cea831ba
12 changed files with 905 additions and 852 deletions

4
.gitmodules vendored
View File

@ -22,6 +22,6 @@
[submodule "Ubiquitous/RT-Thread_Fusion_XiUOS/aiit_board/xidatong-riscv64/kendryte-sdk/kendryte-sdk-source"] [submodule "Ubiquitous/RT-Thread_Fusion_XiUOS/aiit_board/xidatong-riscv64/kendryte-sdk/kendryte-sdk-source"]
path = Ubiquitous/RT-Thread_Fusion_XiUOS/aiit_board/xidatong-riscv64/kendryte-sdk/kendryte-sdk-source path = Ubiquitous/RT-Thread_Fusion_XiUOS/aiit_board/xidatong-riscv64/kendryte-sdk/kendryte-sdk-source
url = https://code.gitlink.org.cn/chunyexixiaoyu/kendryte-sdk-source.git url = https://code.gitlink.org.cn/chunyexixiaoyu/kendryte-sdk-source.git
[submodule "APP_Framework/lib/lora_radio_driver"] [submodule "APP_Framework/lib/lorawan/lora_radio_driver"]
path = APP_Framework/lib/lora_radio_driver path = APP_Framework/lib/lorawan/lora_radio_driver
url = https://gitlink.org.cn/IACU/lora_radio_driver.git url = https://gitlink.org.cn/IACU/lora_radio_driver.git

View File

@ -9,8 +9,9 @@ menu "lib"
config APP_SELECT_OTHER_LIB config APP_SELECT_OTHER_LIB
bool "app select other lib" bool "app select other lib"
endchoice endchoice
source "$APP_DIR/lib/cJSON/Kconfig" source "$APP_DIR/lib/cJSON/Kconfig"
source "$APP_DIR/lib/queue/Kconfig" source "$APP_DIR/lib/queue/Kconfig"
source "$APP_DIR/lib/lvgl/Kconfig" source "$APP_DIR/lib/lvgl/Kconfig"
source "$APP_DIR/lib/embedded_database/Kconfig" source "$APP_DIR/lib/embedded_database/Kconfig"
source "$APP_DIR/lib/lorawan/Kconfig"
endmenu endmenu

View File

@ -14,4 +14,8 @@ ifeq ($(CONFIG_LIB_USING_CJSON),y)
SRC_DIR += cJSON SRC_DIR += cJSON
endif endif
ifeq ($(CONFIG_LIB_USING_LORAWAN),y)
SRC_DIR += lorawan
endif
include $(KERNEL_ROOT)/compiler.mk include $(KERNEL_ROOT)/compiler.mk

View File

@ -1,3 +1,5 @@
menuconfig LIB_USING_CJSON menu "lib using cJSON"
bool "USING cJSON" menuconfig LIB_USING_CJSON
default n bool "USING cJSON"
default n
endmenu

View File

@ -1,6 +1,10 @@
menuconfig USING_EMBEDDED_DATABASE menu "lib using embedded_database"
bool "embedded database"
default n menuconfig USING_EMBEDDED_DATABASE
if USING_EMBEDDED_DATABASE bool "embedded database"
source "$APP_DIR/lib/embedded_database/flashdb/Kconfig" default n
endif if USING_EMBEDDED_DATABASE
source "$APP_DIR/lib/embedded_database/flashdb/Kconfig"
endif
endmenu

@ -1 +0,0 @@
Subproject commit 8dec1f0d86f73c898fa9bad58f3478afe9d5cba6

View File

@ -0,0 +1,17 @@
menu "lib using LoRaWan"
menuconfig LIB_USING_LORAWAN
bool "Using LoRaWan lib"
default n
if LIB_USING_LORAWAN
menuconfig LIB_USING_LORA_RADIO
bool "LoRaWan using lora-radio-driver lib"
default n
if LIB_USING_LORA_RADIO
source "$APP_DIR/lib/lorawan/lora_radio_driver/Kconfig"
endif
endif
endmenu

View File

@ -0,0 +1,7 @@
SRC_DIR :=
ifeq ($(CONFIG_LIB_USING_LORA_RADIO),y)
SRC_DIR += lora_radio_driver
endif
include $(KERNEL_ROOT)/compiler.mk

@ -0,0 +1 @@
Subproject commit a400879b133bdce5051f7a550a4a05bfdbceb26c

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
menuconfig LIB_USING_QUEUE menu "lib using queue"
bool "USING QUEUE"
default n menuconfig LIB_USING_QUEUE
bool "USING QUEUE"
default n
endmenu

View File

@ -512,11 +512,21 @@ KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control/plc_protoc
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control/plc_protocol/s7 # KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control/plc_protocol/s7 #
endif endif
ifeq ($(CONFIG_LIB_USING_CJSON), y) ifeq ($(CONFIG_LIB_USING_CJSON), y)
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/cJSON KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/cJSON
endif endif
ifeq ($(CONFIG_LIB_USING_LORAWAN), y)
ifeq ($(CONFIG_LIB_USING_LORA_RADIO), y)
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/lorawan/lora_radio_driver/lora-radio/common #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/lorawan/lora_radio_driver/lora-radio/include #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/lorawan/lora_radio_driver/lora-radio/sx126x #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/lorawan/lora_radio_driver/lora-radio/sx127x #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/lorawan/lora_radio_driver/ports/lora-module/inc #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/lorawan/lora_radio_driver/ports/samples/lora-radio-tester #
endif
endif
ifeq ($(CONFIG_CRYPTO), y) ifeq ($(CONFIG_CRYPTO), y)
KERNELPATHS += -I$(KERNEL_ROOT)/framework/security/crypto/include # KERNELPATHS += -I$(KERNEL_ROOT)/framework/security/crypto/include #
endif endif