SmartAudio/lichee/linux-4.9/drivers/crypto/sunxi-ss/Makefile

45 lines
859 B
Makefile
Executable File

obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o
sun4i-ss-y += sun4i/sun4i-ss-core.o sun4i/sun4i-ss-hash.o sun4i/sun4i-ss-cipher.o
obj-$(CONFIG_CRYPTO_DEV_SUNXI) += ss.o
ss-y += sunxi_ss.o sunxi_ss_proc_comm.o
#ss-y += ss_kernel_test.o
#ifdef CONFIG_ARCH_SUN8IW6
# SUNXI_SS_VER = v2
#endif
ifdef CONFIG_ARCH_SUN8IW11
SUNXI_SS_VER = v3
endif
ifdef CONFIG_ARCH_SUN8IW12
SUNXI_SS_VER = v3
endif
ifdef CONFIG_ARCH_SUN8IW15
SUNXI_SS_VER = v3
endif
ifdef CONFIG_ARCH_SUN8IW17
SUNXI_SS_VER = v3
endif
ifdef CONFIG_ARCH_SUN8IW7
SUNXI_SS_VER = v3
endif
ifdef CONFIG_ARCH_SUN50I
SUNXI_SS_VER = v3
endif
ifdef CONFIG_ARCH_SUN50IW8
SUNXI_SS_VER = v4
endif
ifdef CONFIG_ARCH_SUN8IW8
SUNXI_SS_VER = v1
endif
ss-y += $(SUNXI_SS_VER)/sunxi_ss_reg.o $(SUNXI_SS_VER)/sunxi_ss_proc.o
ccflags-y += -Idrivers/crypto/sunxi-ss/$(SUNXI_SS_VER)
#ccflags-y += -DDEBUG