From: Xiang Rui rui.xiang@huawei.com
Team:OTHERS Feature or Bugfix:Feature
Signed-off-by: Xiang Rui rui.xiang@huawei.com Reviewed-by: dingtianhong dingtianhong@huawei.com Signed-off-by: Zhang Zekun zhangzekun11@huawei.com Reviewed-by: Weilong Chen chenweilong@huawei.com --- drivers/Kconfig | 1 + drivers/Makefile | 1 + drivers/hisi/Kconfig | 16 ++++++++++++++++ drivers/hisi/Makefile | 1 + drivers/hisi/securec/Kconfig | 1 + drivers/hisi/securec/Makefile | 1 + drivers/hisi/securec/src | 1 + include/linux/securec.h | 1 + include/linux/securectype.h | 1 + 9 files changed, 24 insertions(+) create mode 100644 drivers/hisi/Kconfig create mode 100644 drivers/hisi/Makefile create mode 100644 drivers/hisi/securec/Kconfig create mode 100644 drivers/hisi/securec/Makefile create mode 120000 drivers/hisi/securec/src create mode 120000 include/linux/securec.h create mode 120000 include/linux/securectype.h
diff --git a/drivers/Kconfig b/drivers/Kconfig index b1b3d958f065..0baf1751bd52 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -240,4 +240,5 @@ source "drivers/most/Kconfig"
source "drivers/roh/Kconfig"
+source "drivers/hisi/Kconfig" endmenu diff --git a/drivers/Makefile b/drivers/Makefile index bfbf65533169..2cc108e0486d 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -187,6 +187,7 @@ obj-$(CONFIG_TEE) += tee/ obj-$(CONFIG_MULTIPLEXER) += mux/ obj-$(CONFIG_UNISYS_VISORBUS) += visorbus/ obj-$(CONFIG_SIOX) += siox/ +obj-$(CONFIG_HISILICON_PLATFORM) += hisi/ obj-$(CONFIG_GNSS) += gnss/ obj-$(CONFIG_INTERCONNECT) += interconnect/ obj-$(CONFIG_COUNTER) += counter/ diff --git a/drivers/hisi/Kconfig b/drivers/hisi/Kconfig new file mode 100644 index 000000000000..601100a51b79 --- /dev/null +++ b/drivers/hisi/Kconfig @@ -0,0 +1,16 @@ +menu "Hisilicon platform" + +menuconfig HISILICON_PLATFORM + bool "Hisilicon Platform Support For D Mini" + default n + help + Say yes here to support the hisilicon platform + +if HISILICON_PLATFORM + +source "drivers/hisi/securec/Kconfig" + +endif #HISILICON_PLATFORM + +endmenu + diff --git a/drivers/hisi/Makefile b/drivers/hisi/Makefile new file mode 100644 index 000000000000..6b13fc4f87d0 --- /dev/null +++ b/drivers/hisi/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_HISI_HW_SECUREC) += securec/ diff --git a/drivers/hisi/securec/Kconfig b/drivers/hisi/securec/Kconfig new file mode 100644 index 000000000000..10b8b4bb39fe --- /dev/null +++ b/drivers/hisi/securec/Kconfig @@ -0,0 +1 @@ + source "drivers/hisi/securec/src/Kconfig" diff --git a/drivers/hisi/securec/Makefile b/drivers/hisi/securec/Makefile new file mode 100644 index 000000000000..a3d93c4abd79 --- /dev/null +++ b/drivers/hisi/securec/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_HISI_HW_SECUREC) += src/memcpy_s.o src/memmove_s.o src/memset_s.o src/securecutil.o src/strcat_s.o src/strcpy_s.o src/strncat_s.o src/strncpy_s.o src/sprintf_s.o src/vsprintf_s.o src/snprintf_s.o src/vsnprintf_s.o src/secureprintoutput_a.o src/sscanf_s.o src/vsscanf_s.o src/secureinput_a.o src/strtok_s.o diff --git a/drivers/hisi/securec/src b/drivers/hisi/securec/src new file mode 120000 index 000000000000..2b9adbe09db1 --- /dev/null +++ b/drivers/hisi/securec/src @@ -0,0 +1 @@ +../../../../../libc_sec/src/ \ No newline at end of file diff --git a/include/linux/securec.h b/include/linux/securec.h new file mode 120000 index 000000000000..e008ab162ada --- /dev/null +++ b/include/linux/securec.h @@ -0,0 +1 @@ +../../../../libc_sec/include/securec.h \ No newline at end of file diff --git a/include/linux/securectype.h b/include/linux/securectype.h new file mode 120000 index 000000000000..0bed29002733 --- /dev/null +++ b/include/linux/securectype.h @@ -0,0 +1 @@ +../../../../libc_sec/include/securectype.h \ No newline at end of file