Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp firmware cooker
Commits
e80b35a7
Commit
e80b35a7
authored
Sep 14, 2017
by
p4u
Committed by
Roger Pueyo Centelles
Oct 27, 2017
Browse files
Add --update-communities option
Signed-off-by:
p4u
<
p4u@dabax.net
>
parent
854c63d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
cooker
View file @
e80b35a7
...
...
@@ -13,7 +13,7 @@ J=${J:-$make_j}
usage
()
{
echo
"Usage:
$0
[-f [--force]] [-d <target> [--sdk|ib|force]] [-i <target> [--sdk-file=<file>|ib-file=<file>]]
[--download-all|build-all|update-feeds] [--targets|flavors|communities|profiles=<target>]
[--download-all|build-all|update-feeds] [--targets|flavors|communities|
update-communities|
profiles=<target>]
[-b <target> [-j<N>] [--no-update|no-link-ib|remote|clean|force-local|package=<pkg>]]
[-c <target> [--profile=<profile>|no-update|remote|flavor=<flavor>|community=<path>|extra-pkg=<list>]]
[--help]"
...
...
@@ -26,6 +26,7 @@ usage() {
echo
" --profiles=<target> : list available hardware profiles for a specific target"
echo
" --flavors : list available LibreMesh flavors for cooking"
echo
" --communities : list available community profiles"
echo
" --update-communities : update or download community profiles"
echo
" --update-feeds : update previously downloaded feeds (only works for Git feeds)"
echo
" -f : download feeds based on feeds.conf.default file. Feeds will be shared among all targets"
echo
" --force : force reinstall of feeds (remove old if exist)"
...
...
@@ -281,6 +282,11 @@ download_communities() {
echo
"-> Cannot fetch communities repository"
exit
1
}
}
||
{
cd
$communities_dir
&&
git pull
||
{
echo
"-> Cannot update communities repository"
exit
1
}
}
}
...
...
@@ -404,7 +410,7 @@ list_profiles() {
[
-z
"
$1
"
]
&&
usage
OPTS
=
$(
getopt
-o
hd:fb:c:d:i:j:
-l
targets,build-all,download-all,profiles:,flavors,profile:,flavor:,
\
update-feeds,no-update,no-link-ib,only-sdk,only-ib,remote,ib,sdk,sdk-file:,ib-file:,help,force,clean,
\
communities,community:,cook-all,package:,extra-pkg:,force-local
-n
$0
--
"
$@
"
)
communities,update-
communities,community:,cook-all,package:,extra-pkg:,force-local
-n
$0
--
"
$@
"
)
eval set
--
"
$OPTS
"
while
true
;
do
...
...
@@ -498,12 +504,12 @@ while true; do
shift
;
shift
;;
--clean
)
sdk_clean
=
1
shift
sdk_clean
=
1
shift
;;
--package
)
package
=
$2
shift
;
shift
package
=
$2
shift
;
shift
;;
-c
)
cook
=
1
...
...
@@ -526,6 +532,10 @@ while true; do
force_local
=
"1"
shift
;;
--update-communities
)
update_communities
=
"1"
shift
;;
--community
)
community
=
"
${
2
%/*
}
"
community_profile
=
"
${
2
#*/
}
"
...
...
@@ -570,6 +580,8 @@ profile=${profile:-Default}
download_feeds
}
[
"
$update_communities
"
==
"1"
]
&&
download_communities
[
"
$build_sdk
"
==
"1"
]
&&
build_sdk
$target
[
"
$cook
"
==
"1"
]
&&
{
...
...
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