ifeq ($(findstring y, $(CONFIG_ARCH_SHAOLINSWORD)$(CONFIG_ARCH_HI3751V811)),)
KBUILD_CFLAGS += -Werror -Idrivers
ifeq ($(CONFIG_SOCT_DRV_BUILD_KO),y)
obj-m += hpcie.o
hpcie-objs := core/pcie.o dfx/dfx.o dfx/proc.o \
              platform/platform.o  platform/wudangstick/phy.o \
              custom/custom.o
else
obj-$(CONFIG_HPCIE) += core/ dfx/ platform/ custom/
endif
endif
