Makefile 602 B

1234567891011121314151617181920212223
  1. # SPDX-License-Identifier: GPL-2.0
  2. obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
  3. vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
  4. ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
  5. override flavour := linux-ppc64le
  6. else
  7. override flavour := linux-ppc64
  8. endif
  9. quiet_cmd_perl = PERL $@
  10. cmd_perl = $(PERL) $(<) $(flavour) > $(@)
  11. targets += aesp8-ppc.S ghashp8-ppc.S
  12. $(obj)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE
  13. $(call if_changed,perl)
  14. $(obj)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE
  15. $(call if_changed,perl)
  16. clean-files := aesp8-ppc.S ghashp8-ppc.S