ifeq ($(findstring y, $(CONFIG_ARCH_RESERVED19)$(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/reserved13/phy.o \ custom/custom.o else obj-$(CONFIG_HPCIE) += core/ dfx/ platform/ custom/ endif endif