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
d03d83a7
Commit
d03d83a7
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
pkg: micro-ecc: adapt to use pkg.mk
parent
190e2b4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/micro-ecc/Makefile
+3
-26
3 additions, 26 deletions
pkg/micro-ecc/Makefile
with
3 additions
and
26 deletions
pkg/micro-ecc/Makefile
+
3
−
26
View file @
d03d83a7
PKG_NAME
=
micro-ecc
PKG_NAME
=
micro-ecc
PKG_URL
=
https://github.com/kmackay/micro-ecc.git
PKG_URL
=
https://github.com/kmackay/micro-ecc.git
PKG_VERSION
=
b6c0cdbe7d20af48b0c2a909a66ff00b093d1542
PKG_VERSION
=
b6c0cdbe7d20af48b0c2a909a66ff00b093d1542
PKG_DIR
=
$(
CURDIR
)
PKG_BUILDDIR
=
$(
BINDIR
)
/pkg/
$(
PKG_NAME
)
ifneq
($(RIOTBASE),)
ifneq
($(RIOTBASE),)
INCLUDES
+=
-I
$(
RIOTBASE
)
/sys/include
-I
$(
RIOTBASE
)
/sys/net/include
\
INCLUDES
+=
-I
$(
RIOTBASE
)
/sys/include
-I
$(
RIOTBASE
)
/sys/net/include
\
-I
$(
RIOTBASE
)
/sys/posix/include
-I
$(
RIOTBASE
)
/sys/posix/include
endif
endif
MODULE
:=
$(
shell
basename
$(
CURDIR
))
.PHONY
:
all
.PHONY
:
all clean patch reset
all
:
download
all
:
patch
make
-C
$(
PKG_BUILDDIR
)
make
-C
$(
PKG_BUILDDIR
)
make
$(
BINDIR
)$(
MODULE
)
.a
patch
:
$(PKG_BUILDDIR)/Makefile
$(PKG_BUILDDIR)/Makefile
:
$(PKG_BUILDDIR)
cd
$(
PKG_BUILDDIR
)
&&
\
for
patch
in
$(
PKG_DIR
)
/[0-9][0-9][0-9][0-9]
*
.patch
;
do
git am
"
$${
patch
}
"
||
{
git am
--abort
;
exit
1
;
}
;
done
touch
$(
PKG_BUILDDIR
)
/Makefile
$(PKG_BUILDDIR)
:
mkdir
-p
$(
BINDIR
)
/pkg
&&
\
$(
GITCACHE
)
clone
"
$(
PKG_URL
)
"
"
$(
PKG_VERSION
)
"
"
$(
PKG_BUILDDIR
)
"
clean
::
rm
-Rf
$(
PKG_BUILDDIR
)
distclean
::
rm
-rf
$(
PKG_BUILDDIR
)
#$(BINDIR)$(MODULE).a: $(BINDIR)micro-ecc_*.a
include
$(RIOTBASE)/pkg/pkg.mk
# mkdir -p $(BINDIR)$(MODULE); cd $(BINDIR)$(MODULE); for var in $?; do ar -x $$var; done; ar -r -c -s $(BINDIR)$(MODULE).a *.o
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