Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
contiki-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NATAF Emmanuel
contiki-ng
Commits
1cdd4ffb
Commit
1cdd4ffb
authored
6 years ago
by
George Oikonomou
Browse files
Options
Downloads
Patches
Plain Diff
Move the help and usage targets to a separate Makefile
parent
75b5c889
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.help
+29
-0
29 additions, 0 deletions
Makefile.help
Makefile.include
+1
-28
1 addition, 28 deletions
Makefile.include
with
30 additions
and
28 deletions
Makefile.help
0 → 100644
+
29
−
0
View file @
1cdd4ffb
usage
:
@
echo
"Usage:"
@
echo
" make [TARGET=(TARGET)] [BOARD=(BOARD)] [DEFINES=(DEFINES)] [PORT=(PORT)] [target]"
@
echo
""
@
echo
"Typical usage:"
@
echo
" make [TARGET=(TARGET)] [BOARD=(BOARD)] [all]"
@
echo
""
@
echo
" Will build Contiki-NG firmware(s) from the current example dir"
@
echo
" for platform TARGET, board BOARD."
@
echo
""
@
echo
"Miscellaneous targets:"
@
echo
" targets Prints list of supported platforms"
@
echo
" boards Prints a list of supported boards for TARGET"
@
echo
" savetarget Saves TARGET and BOARD for future invocations of make"
@
echo
" savedefines Saves DEFINES for future invocations of make"
@
echo
" clean Removes all compiled files for TARGET"
@
echo
" distclean Removes all compiled files for all TARGETs"
@
echo
" viewconf Prints Contiki-NG build configuration for TARGET"
@
echo
" %.flashprof Shows a Flash/ROM profile of a given firmware (e.g. hello-world.flashprof)"
@
echo
" %.ramprof Shows a RAM profile of a given firmware (e.g. hello-world.ramprof)"
@
echo
" %.o Produces an object file from a given source file (e.g. hello-world.o)"
@
echo
" %.e Produces the pre-processed version of a given source file (e.g. hello-world.e)"
@
echo
" %.s Produces an assembly file from a given source file (e.g. hello-world.s)"
@
echo
" login View the serial output of the device connected to PORT"
@
echo
" serialview Same as login, but prepend serial output with a unix timestamp"
@
echo
" serialdump same as serialview, but also save the output to a file"
@
echo
" motelist-all Prints a list of connected devices"
help
:
usage
This diff is collapsed.
Click to expand it.
Makefile.include
+
1
−
28
View file @
1cdd4ffb
...
@@ -395,34 +395,7 @@ endif
...
@@ -395,34 +395,7 @@ endif
%.flashprof
:
%.$(TARGET)
%.flashprof
:
%.$(TARGET)
$(
NM
)
-S
-td
--size-sort
$<
|
grep
-i
" [t] "
|
cut
-d
' '
-f2
,4
$(
NM
)
-S
-td
--size-sort
$<
|
grep
-i
" [t] "
|
cut
-d
' '
-f2
,4
usage
:
include
$(CONTIKI)/Makefile.help
@
echo
"Usage:"
@
echo
" make [TARGET=(TARGET)] [BOARD=(BOARD)] [DEFINES=(DEFINES)] [PORT=(PORT)] [target]"
@
echo
""
@
echo
"Typical usage:"
@
echo
" make [TARGET=(TARGET)] [BOARD=(BOARD)] [all]"
@
echo
""
@
echo
" Will build Contiki-NG firmware(s) from the current example dir"
@
echo
" for platform TARGET, board BOARD."
@
echo
""
@
echo
"Miscellaneous targets:"
@
echo
" targets Prints list of supported platforms"
@
echo
" boards Prints a list of supported boards for TARGET"
@
echo
" savetarget Saves TARGET and BOARD for future invocations of make"
@
echo
" savedefines Saves DEFINES for future invocations of make"
@
echo
" clean Removes all compiled files for TARGET"
@
echo
" distclean Removes all compiled files for all TARGETs"
@
echo
" viewconf Prints Contiki-NG build configuration for TARGET"
@
echo
" %.flashprof Shows a Flash/ROM profile of a given firmware (e.g. hello-world.flashprof)"
@
echo
" %.ramprof Shows a RAM profile of a given firmware (e.g. hello-world.ramprof)"
@
echo
" %.o Produces an object file from a given source file (e.g. hello-world.o)"
@
echo
" %.e Produces the pre-processed version of a given source file (e.g. hello-world.e)"
@
echo
" %.s Produces an assembly file from a given source file (e.g. hello-world.s)"
@
echo
" login View the serial output of the device connected to PORT"
@
echo
" serialview Same as login, but prepend serial output with a unix timestamp"
@
echo
" serialdump same as serialview, but also save the output to a file"
help
:
usage
targets
:
targets
:
@
ls
$(
CONTIKI
)
/arch/platform
$(
TARGETDIRS
)
@
ls
$(
CONTIKI
)
/arch/platform
$(
TARGETDIRS
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment