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
9227c6f0
Commit
9227c6f0
authored
7 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
pkg: add local.mk, allow source folder override for git packages
parent
ef20fe7b
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
pkg/local.mk
+24
-0
24 additions, 0 deletions
pkg/local.mk
pkg/pkg.mk
+7
-0
7 additions, 0 deletions
pkg/pkg.mk
with
31 additions
and
0 deletions
pkg/local.mk
0 → 100644
+
24
−
0
View file @
9227c6f0
#
# This file allows specifying a local folder using PKG_SOURCE_LOCAL.
#
# Every clean or prepare will remove $(PKG_BUILDDIR) and copy over
# $(PKG_SOURCE_LOCAL). This is intended to be used during package development.
#
# WARNING: any local changes made to $(PKG_BUILDDIR) *will* get lost!
.PHONY
:
prepare git-download clean
git-download
:
@
true
prepare
:
$(PKG_BUILDDIR)/.prepared
@
true
$(PKG_BUILDDIR)/.prepared
:
rm
-Rf
$(
PKG_BUILDDIR
)
mkdir
-p
$$(
dirname
$(
PKG_BUILDDIR
))
cp
-a
$(
PKG_SOURCE_LOCAL
)
$(
PKG_BUILDDIR
)
touch
$@
clean
::
@
rm
-f
$(
PKG_BUILDDIR
)
/.prepared
This diff is collapsed.
Click to expand it.
pkg/pkg.mk
+
7
−
0
View file @
9227c6f0
...
...
@@ -4,6 +4,11 @@
PKG_DIR
?=
$(
CURDIR
)
PKG_BUILDDIR
?=
$(
PKGDIRBASE
)
/
$(
PKG_NAME
)
# allow overriding package source with local folder (useful during development)
ifneq
(,$(PKG_SOURCE_LOCAL))
include
$(RIOTBASE)/pkg/local.mk
else
.PHONY
:
prepare git-download clean
prepare
:
git-download
...
...
@@ -39,3 +44,5 @@ clean::
distclean
::
rm
-rf
"
$(
PKG_BUILDDIR
)
"
endif
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