From 60442e489a3a4c2b652b36a3ad7cb65d8949ddeb Mon Sep 17 00:00:00 2001 From: Liu_Weichao Date: Mon, 20 Dec 2021 16:14:02 +0800 Subject: [PATCH] feat Framework/connection/industrial_xxx DIR --- APP_Framework/Framework/connection/Kconfig | 21 +++++++++++++++++++ APP_Framework/Framework/connection/Makefile | 12 +++++++++++ .../connection/industrial_ethernet/Kconfig | 0 .../connection/industrial_ethernet/Makefile | 2 ++ .../connection/industrial_fieldbus/Kconfig | 0 .../connection/industrial_fieldbus/Makefile | 2 ++ .../connection/industrial_wlan/Kconfig | 0 .../connection/industrial_wlan/Makefile | 2 ++ 8 files changed, 39 insertions(+) create mode 100644 APP_Framework/Framework/connection/industrial_ethernet/Kconfig create mode 100644 APP_Framework/Framework/connection/industrial_ethernet/Makefile create mode 100644 APP_Framework/Framework/connection/industrial_fieldbus/Kconfig create mode 100644 APP_Framework/Framework/connection/industrial_fieldbus/Makefile create mode 100644 APP_Framework/Framework/connection/industrial_wlan/Kconfig create mode 100644 APP_Framework/Framework/connection/industrial_wlan/Makefile diff --git a/APP_Framework/Framework/connection/Kconfig b/APP_Framework/Framework/connection/Kconfig index a537e6a24..43094d28f 100644 --- a/APP_Framework/Framework/connection/Kconfig +++ b/APP_Framework/Framework/connection/Kconfig @@ -8,6 +8,27 @@ if SUPPORT_CONNECTION_FRAMEWORK bool "Using connection framework debug log function" default y + menuconfig CONNECTION_INDUSTRIAL_ETHERNET + bool "Using industrial ethernet" + default n + if CONNECTION_INDUSTRIAL_ETHERNET + source "$APP_DIR/Framework/connection/industrial_ethernet/Kconfig" + endif + + menuconfig CONNECTION_INDUSTRIAL_FIELDBUS + bool "Using industrial fieldbus" + default n + if CONNECTION_INDUSTRIAL_FIELDBUS + source "$APP_DIR/Framework/connection/industrial_fieldbus/Kconfig" + endif + + menuconfig CONNECTION_INDUSTRIAL_WLAN + bool "Using industrial wlan" + default n + if CONNECTION_INDUSTRIAL_WLAN + source "$APP_DIR/Framework/connection/industrial_wlan/Kconfig" + endif + menuconfig CONNECTION_ADAPTER_LORA bool "Using lora adapter device" default n diff --git a/APP_Framework/Framework/connection/Makefile b/APP_Framework/Framework/connection/Makefile index 54ebc25ba..a030ee9ad 100644 --- a/APP_Framework/Framework/connection/Makefile +++ b/APP_Framework/Framework/connection/Makefile @@ -1,5 +1,17 @@ SRC_FILES := adapter.c adapter_agent.c +ifeq ($(CONFIG_CONNECTION_INDUSTRIAL_ETHERNET),y) + SRC_DIR += industrial_ethernet +endif + +ifeq ($(CONFIG_CONNECTION_INDUSTRIAL_FIELDBUS),y) + SRC_DIR += industrial_fieldbus +endif + +ifeq ($(CONFIG_CONNECTION_INDUSTRIAL_WLAN),y) + SRC_DIR += industrial_wlan +endif + ifeq ($(CONFIG_CONNECTION_ADAPTER_LORA),y) SRC_DIR += lora endif diff --git a/APP_Framework/Framework/connection/industrial_ethernet/Kconfig b/APP_Framework/Framework/connection/industrial_ethernet/Kconfig new file mode 100644 index 000000000..e69de29bb diff --git a/APP_Framework/Framework/connection/industrial_ethernet/Makefile b/APP_Framework/Framework/connection/industrial_ethernet/Makefile new file mode 100644 index 000000000..98aa92bfb --- /dev/null +++ b/APP_Framework/Framework/connection/industrial_ethernet/Makefile @@ -0,0 +1,2 @@ + +include $(KERNEL_ROOT)/compiler.mk diff --git a/APP_Framework/Framework/connection/industrial_fieldbus/Kconfig b/APP_Framework/Framework/connection/industrial_fieldbus/Kconfig new file mode 100644 index 000000000..e69de29bb diff --git a/APP_Framework/Framework/connection/industrial_fieldbus/Makefile b/APP_Framework/Framework/connection/industrial_fieldbus/Makefile new file mode 100644 index 000000000..98aa92bfb --- /dev/null +++ b/APP_Framework/Framework/connection/industrial_fieldbus/Makefile @@ -0,0 +1,2 @@ + +include $(KERNEL_ROOT)/compiler.mk diff --git a/APP_Framework/Framework/connection/industrial_wlan/Kconfig b/APP_Framework/Framework/connection/industrial_wlan/Kconfig new file mode 100644 index 000000000..e69de29bb diff --git a/APP_Framework/Framework/connection/industrial_wlan/Makefile b/APP_Framework/Framework/connection/industrial_wlan/Makefile new file mode 100644 index 000000000..98aa92bfb --- /dev/null +++ b/APP_Framework/Framework/connection/industrial_wlan/Makefile @@ -0,0 +1,2 @@ + +include $(KERNEL_ROOT)/compiler.mk