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
e91c6d20
Commit
e91c6d20
authored
Jun 14, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile.sh: add "with_examples"" option to build examples
parent
d879779e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
compile.sh
compile.sh
+16
-0
No files found.
compile.sh
View file @
e91c6d20
#!/usr/bin/env bash
VALID_BOARDS_STR
=
"Valid values are:
\"
ml605
\"
and
\"
afcv3
\"
."
VALID_WITH_EXAMPLES_STR
=
"Valid values are:
\"
with_examples
\"
or
\"
without_examples
\"
."
#######################################
# All of our Makefile options
...
...
@@ -19,6 +20,13 @@ if [ "$BOARD" != "afcv3" ] && [ "$BOARD" != "ml605" ]; then
exit
1
fi
WITH_EXAMPLES
=
$2
if
[
-n
"
$WITH_EXAMPLES
"
]
&&
[
"
$WITH_EXAMPLES
"
!=
"with_examples"
]
&&
[
"
$WITH_EXAMPLES
"
!=
"without_examples"
]
;
then
echo
"Wrong variable value. "
$VALID_WITH_EXAMPLES_STR
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
...
...
@@ -76,10 +84,18 @@ COMMAND_LIBBPMCLIENT="\
LOCAL_MSG_DBG=
${
LOCAL_MSG_DBG
}
&&
\
sudo make libbpmclient_install"
if
[
"
$WITH_EXAMPLES
"
=
"with_examples"
]
;
then
COMMAND_EXAMPLES
=
"
\
make examples"
else
COMMAND_EXAMPLES
=
""
fi
COMMAND_ARRAY
=(
"
${
COMMAND_DEPS
}
"
"
${
COMMAND_HAL
}
"
"
${
COMMAND_LIBBPMCLIENT
}
"
"
${
COMMAND_EXAMPLES
}
"
)
for
i
in
"
${
COMMAND_ARRAY
[@]
}
"
...
...
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