-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from david-antliff-imgtec/gengetopts-daemons
Updated daemons to use gengetopts, as the tools have always done. Also, bootstrap config files have been moved from core/ to config/ and renamed *.bsc as per #219. Documentation and test configuration has been updated.
- Loading branch information
Showing
89 changed files
with
10,962 additions
and
6,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FILES:=awa_bootstrapd_cmdline | ||
|
||
# prevent autodeletion of intermediate files: | ||
#.SECONDARY: | ||
|
||
all: $(FILES:=.c) | ||
|
||
.PHONY: gen_cmdline | ||
gen_cmdline: $(FILES) | ||
|
||
%_cmdline.c %_cmdline.h: %.ggo | ||
gengetopt --input=$^ --include-getopt --unamed-opts=PATHS --file $*_cmdline | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(FILES:=.c) $(FILES:=.h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# gengetopt configuration file | ||
package "awa_bootstrapd" | ||
purpose "Awa LWM2M Bootstrap Server" | ||
versiontext "Copyright (c) 2016 Imagination Technologies Limited and/or its affiliated group companies." | ||
args "--no-version" | ||
|
||
option "ip" a "Accept client bootstrap requests on IP address ADDR" string optional default="0.0.0.0" typestr="ADDR" | ||
option "interface" e "Accept client bootstrap requests on network interface IF" string optional typestr="IF" | ||
option "addressFamily" f "Address family for network interface. AF=4 for IPv4, AF=6 for IPv6" | ||
int optional default="4" typestr="AF" values="4","6" | ||
option "port" p "Use port number PORT for CoAP communications" int optional default="15685" typestr="PORT" | ||
option "config" c "Load server list configuration from FILE" string optional typestr="FILE" multiple(1-4) | ||
option "secure" s "CoAP communications are secured with DTLS" flag off | ||
option "daemonize" d "Detach process from terminal and run in the background" flag off | ||
option "verbose" v "Generate verbose output" flag off | ||
option "logFile" l "Log output to FILE" string optional typestr="FILE" | ||
option "version" V "Print version and exit" flag off | ||
|
||
text "\n" | ||
text "Example:\n" | ||
text " awa_bootstrapd --port 15685 --config bootstrap.config\n" | ||
text "\n" |
Oops, something went wrong.