Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
9a54fa10
Commit
9a54fa10
authored
Nov 20, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build scripts: force .config if missing
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
30125a40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
wrs_functions
build/scripts/wrs_functions
+14
-0
No files found.
build/scripts/wrs_functions
View file @
9a54fa10
...
...
@@ -168,3 +168,17 @@ wrs_download () {
# Every time wrs_functions is loaded, re-set WRS_MAKE_J
export WRS_MAKE_J_NUMBER=$(expr $(grep ^processor /proc/cpuinfo | wc -l) + 1)
export WRS_MAKE_J=-j$WRS_MAKE_J_NUMBER
# Also, check the configuration each time this is executed (i.e., each step)
WRS_CONFIG_DIR=$(dirname "$WRS_BASE_DIR")
if [ -f "$WRS_CONFIG_DIR/.config" ]; then
true
else
echo "No configuration, using default" >& 2
(cd "$WRS_CONFIG_DIR" && make defconfig)
if [ $? -ne 0 ]; then wrs_die "Configuration failed"; fi
fi
# and import the configuration variables
. $WRS_CONFIG_DIR/.config
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