Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cm-projects
RIOT
Commits
c04877dd
Commit
c04877dd
authored
10 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
make: add bindist targets / Makefiles
parent
1caf0bcc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.bindist
+30
-0
30 additions, 0 deletions
Makefile.bindist
Makefile.include
+3
-0
3 additions, 0 deletions
Makefile.include
with
33 additions
and
0 deletions
Makefile.bindist
0 → 100644
+
30
−
0
View file @
c04877dd
DIST_FILES
+=
bin/
$(
BOARD
)
/
$(
APPLICATION
)
.a
ifneq
(, $(filter check_bindist, $(MAKECMDGOALS)))
include
Makefile.distcheck
else
DIRS
+=
$(
BINARY_DIRS
)
endif
bindist
:
all
@
mkdir
-p
bindist
@
for
i
in
$(
DIST_FILES
)
;
do
\
echo
Copying
$$
i to bindist.
;
\
cp
-a
--parents
$$
i bindist
;
\
done
@
cp
-a
bin/
$(
BOARD
)
/
$(
APPLICATION
)
.elf bindist
@echo
"BINDIST_RIOT_VERSION=$(RIOT_VERSION)"
>
bindist/Makefile.distcheck
@echo
"BINDIST_GIT_HEAD=$$(git --work-tree=$(RIOTBASE) describe)"
>>
bindist/Makefile.distcheck
prepare_check_bindist
:
@
[
"
$(
BINDIST_RIOT_VERSION
)
"
=
"
$(
RIOT_VERSION
)
"
]
||
\
echo
"Warning! RIOT_VERSION doesn't match!"
@
[
"
$(
BINDIST_GIT_HEAD
)
"
=
"
$$(
git --work-tree=
$(
RIOTBASE
)
describe
)
"
]
||
\
echo
"Warning! git describe doesn't match!"
check_bindist
:
prepare_check_bindist all
@
test
$(
shell
md5sum
bin/
$(
BOARD
)
/
$(
APPLICATION
)
.elf |
cut
-f1
-d
\
)
\
=
$(
shell
md5sum
$(
APPLICATION
)
.elf |
cut
-f1
-d
\
)
\
&&
echo
"bin/
$(
BOARD
)
/
$(
APPLICATION
)
.elf matches
$(
APPLICATION
)
.elf."
\
||
echo
"bin/
$(
BOARD
)
/
$(
APPLICATION
)
.elf and
$(
APPLICATION
)
.elf don't match!"
This diff is collapsed.
Click to expand it.
Makefile.include
+
3
−
0
View file @
c04877dd
...
...
@@ -451,3 +451,6 @@ endif
# Include desvirt Makefile
include
$(RIOTBASE)/dist/tools/desvirt/Makefile.desvirt
# include bindist target
include
$(RIOTBASE)/Makefile.bindist
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