Skip to content

Commit

Permalink
crypto: arm64/aes - remove Makefile hack
Browse files Browse the repository at this point in the history
Do it more simiply. This also fixes single target builds.

[before]

  $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- arch/arm64/crypto/aes-glue-ce.i
    [snip]
  make[4]: *** No rule to make target 'arch/arm64/crypto/aes-glue-ce.i'.  Stop.

[after]

  $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- arch/arm64/crypto/aes-glue-ce.i
    [snip]
    CPP     arch/arm64/crypto/aes-glue-ce.i

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
masahir0y authored and herbertx committed Aug 11, 2023
1 parent 7f1045c commit ac2d838
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/arm64/crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o
obj-$(CONFIG_CRYPTO_AES_ARM64_BS) += aes-neon-bs.o
aes-neon-bs-y := aes-neonbs-core.o aes-neonbs-glue.o

CFLAGS_aes-glue-ce.o := -DUSE_V8_CRYPTO_EXTENSIONS

$(obj)/aes-glue-%.o: $(src)/aes-glue.c FORCE
$(call if_changed_rule,cc_o_c)

quiet_cmd_perlasm = PERLASM $@
cmd_perlasm = $(PERL) $(<) void $(@)

Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/crypto/aes-glue-ce.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define USE_V8_CRYPTO_EXTENSIONS
#include "aes-glue.c"
1 change: 1 addition & 0 deletions arch/arm64/crypto/aes-glue-neon.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "aes-glue.c"

0 comments on commit ac2d838

Please sign in to comment.