
#
# This config supports the baseline architecture, all of Bitmanipulation
# *and* the *proposed* standard Scalar cryptography extensions.
#
# Much of the Scalar crypto extension is expected to build on the
# bitmanip extension, hence it is important to work out the subset of
# bitmanip which is useful to crypto.
#

export RISCV_ARCH=riscv64-unknown-elf
export RISCV=$(REPO_BUILD)/$(RISCV_ARCH)

CC      = $(RISCV)/bin/$(RISCV_ARCH)-gcc
AR      = $(RISCV)/bin/$(RISCV_ARCH)-ar
OBJDUMP = $(RISCV)/bin/$(RISCV_ARCH)-objdump
SIZE    = $(RISCV)/bin/$(RISCV_ARCH)-size
PK      = $(RISCV)/riscv32-unknown-elf/bin/pk

BITMANIP        = 1
ZSCRYPTO        = 1
XLEN            = 32

CONF_ARCH       = rv32imac
CONF_ABI        = ilp32
CONF_ARCH_SPIKE = rv32imafdcbk

CONF_CFLAGS     = -O3 -march=$(CONF_ARCH) -mabi=$(CONF_ABI) -D__ZSCRYPTO=1

