revert x86 define check, modify makefiles

This commit is contained in:
R4SAS 2020-11-11 02:56:21 +03:00
parent eab9a07e3f
commit 600c7b5b26
8 changed files with 87 additions and 110 deletions

View file

@ -58,14 +58,7 @@ endif
endif
ifeq ($(USE_AESNI),yes)
ifneq (, $(findstring aarch64, $(SYS)))
CXXFLAGS += -DARM64AES
else
ifeq (, $(findstring arm, $(SYS))) # no arm in dumpmachine
# check if AES-NI is supported by CPU
ifeq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
CPU_FLAGS += -maes
endif
endif
ifeq (, $(findstring arm, $(SYS))$(findstring aarch64, $(SYS)) # no arm and aarch64 in dumpmachine
CXXFLAGS += -D__AES__
endif
endif