diff --git a/Makefile b/Makefile index aa85a3ddec4f801a480a2fbff1307b5631e5ffc6..b55a9cedccfb44f185d1cc7a1bc6e0fc861f6ee0 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ obj-$(CONFIG_DRIVERS_HDF) += osal/ obj-$(CONFIG_DRIVERS_HDF) += network/ obj-$(CONFIG_DRIVERS_HDF) += config/ -ifeq ($(TARGET_PRODUCT), hi3516dv300) +ifneq ($(TARGET_PRODUCT), Hi3516DV300) ifeq ($(CONFIG_DRIVERS_HDF_TEST), y) obj-y += ../../../../$(PRODUCT_PATH)/config/hdf_test/ obj-y += test/ diff --git a/model/display/Makefile b/model/display/Makefile index 3d5bda0d53b6aa5a094f7ff2356ab4a4ad892af7..125d6ff0d28cd1657ef7ee23e198f0a82917bad6 100644 --- a/model/display/Makefile +++ b/model/display/Makefile @@ -12,13 +12,6 @@ # # -ifeq ($(TARGET_PRODUCT), Hi3516DV300) -SEC_LIB_SOURCES = memcpy_s.c memmove_s.c memset_s.c securecutil.c secureinput_a.c secureprintoutput_a.c snprintf_s.c sprintf_s.c strcat_s.c strcpy_s.c strncat_s.c strncpy_s.c strtok_s.c vsnprintf_s.c vsprintf_s.c - -PWD:=$(shell pwd) -SEC_OBJECTS:=$(patsubst %.c,%.o,$(SEC_LIB_SOURCES)) -endif - DISPLAY_ROOT_DIR = ../../../../../framework/model/display/driver obj-y += \ $(DISPLAY_ROOT_DIR)/hdf_disp.o \ @@ -44,8 +37,4 @@ ccflags-y += -lm -lc -lgcc \ -Iinclude/../drivers/hdf/framework/include/platform \ -Iinclude/../drivers/hdf/framework/include/config \ -Iinclude/../drivers/hdf/khdf/osal/include -ifeq ($(TARGET_PRODUCT), Hi3516DV300) -ccflags-y += -I$(PROJECT_ROOT)/third_party/bounds_checking_function/include -else ifeq ($(TARGET_PRODUCT), hi3516dv300) ccflags-y += -I$(PROJECT_ROOT)/third_party/bounds_checking_function/include -endif diff --git a/model/input/Makefile b/model/input/Makefile index 698379b2046b0e3ab93342fed05cd10bd9572be1..024bc5e2d1b856f72a17ec8583d95f4cf1871422 100644 --- a/model/input/Makefile +++ b/model/input/Makefile @@ -12,11 +12,6 @@ # # -SEC_LIB_SOURCES = memcpy_s.c memmove_s.c memset_s.c securecutil.c secureinput_a.c secureprintoutput_a.c snprintf_s.c sprintf_s.c strcat_s.c strcpy_s.c strncat_s.c strncpy_s.c strtok_s.c vsnprintf_s.c vsprintf_s.c - -PWD:=$(shell pwd) -SEC_OBJECTS:=$(patsubst %.c,%.o,$(SEC_LIB_SOURCES)) - INPUT_ROOT_DIR = ../../../../../framework/model/input/driver obj-$(CONFIG_DRIVERS_HDF_INPUT) += \ @@ -46,10 +41,5 @@ ccflags-y += -Iinclude/../drivers/hdf/framework/model/input/driver \ -Iinclude/../drivers/hdf/framework/core/shared/include \ -Iinclude/../drivers/hdf/framework/utils/include \ -Iinclude/../drivers/hdf/khdf/osal/include -ifeq ($(TARGET_PRODUCT), Hi3516DV300) -ccflags-y += -I$(PROJECT_ROOT)/third_party/bounds_checking_function/include \ - -I$(PROJECT_ROOT)/third_party/FreeBSD/sys/dev/evdev -else ifeq ($(TARGET_PRODUCT), hi3516dv300) ccflags-y += -I$(PROJECT_ROOT)/third_party/bounds_checking_function/include \ -I$(PROJECT_ROOT)/third_party/FreeBSD/sys/dev/evdev -endif