Commit 516d2d28 authored by Lucas Russo's avatar Lucas Russo

{Makefile,compile.sh}: add option to shrink AFCv3 DDR size

The default is to shrink the DDR size to 2^28 bytes.
parent 33b102a3
......@@ -13,6 +13,9 @@ MAKE = make
# Select board in which we will work. Options are: ml605 or afcv3
BOARD ?= ml605
# Select if we want to have the AFCv3 DDR memory shrink to 2^28 or the full size 2^32. Options are: (y)es ot (n)o.
# This is a TEMPORARY fix until the AFCv3 FPGA firmware is fixed. If unsure, select (y)es.
SHRINK_AFCV3_DDR_SIZE ?= y
#Select if we want to compile code with all messages outputs. Options are: y(es) or n(o)
LOCAL_MSG_DBG ?= n
#Select if we want to compile with debug mode on. Options are: y(es) or n(o)
......@@ -65,6 +68,12 @@ LIBSDBFS_DIR = foreign/libsdbfs
# General C flags
CFLAGS = -std=gnu99 -O2
ifeq ($(BOARD),afcv3)
ifeq ($(SHRINK_AFCV3_DDR_SIZE),y)
CFLAGS += -D__SHRINK_AFCV3_DDR_SIZE__
endif
endif
# Board selection
ifeq ($(BOARD),ml605)
CFLAGS += -D__BOARD_ML605__ -D__WR_SHIFT_FIX__=2
......
......@@ -19,6 +19,9 @@ if [ "$BOARD" != "afcv3" ] && [ "$BOARD" != "ml605" ]; then
exit 1
fi
# Select if we want to have the AFCv3 DDR memory shrink to 2^28 or the full size 2^32. Options are: (y)es ot (n)o.
# This is a TEMPORARY fix until the AFCv3 FPGA firmware is fixed. If unsure, select (y)es.
SHRINK_AFCV3_DDR_SIZE=y
#Select if we want to compile code with all messages outputs. Options are: y(es) or n(o)
LOCAL_MSG_DBG=n
#Select if we want to compile with debug mode on. Options are: y(es) or n(o)
......@@ -52,6 +55,7 @@ COMMAND_DEPS="\
COMMAND_HAL="\
make BOARD=${BOARD} \
SHRINK_AFCV3_DDR_SIZE=${SHRINK_AFCV3_DDR_SIZE} \
ERRHAND_DBG=${ERRHAND_DBG} \
ERRHAND_MIN_LEVEL=${ERRHAND_MIN_LEVEL} \
ERRHAND_SUBSYS_ON='"${ERRHAND_SUBSYS_ON}"' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment