Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
516d2d28
Commit
516d2d28
authored
Jun 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{Makefile,compile.sh}: add option to shrink AFCv3 DDR size
The default is to shrink the DDR size to 2^28 bytes.
parent
33b102a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
Makefile
Makefile
+9
-0
compile.sh
compile.sh
+4
-0
No files found.
Makefile
View file @
516d2d28
...
...
@@ -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
...
...
compile.sh
View file @
516d2d28
...
...
@@ -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
}
"'
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment