1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

43 Commits

Author SHA1 Message Date
Francisco Molina
fc92f31e46 pkg/pkg.mk: silence info if QUIETER 2022-06-01 10:54:01 +02:00
Francisco Molina
1340a5e867 pkg/pkg: add GIT_QUIET 2022-04-22 15:22:34 +02:00
Karl Fessel
cc3fc8ebb7 makesystem: clone pkgs without history
there is no git clone left since git clone does not support getting
specific commits ->:
- init empty repo,
- setup remote origin
- configure
- fetch
- checkout
2022-04-11 20:28:48 +02:00
0dfb2645ea make: pkg.mk: don't call git am if there are no patches 2022-03-25 11:51:20 +01:00
92ca97e31b pkg: support PKG_MIRROR_URL, use if PKG_USE_MIRROR=1 (default) 2021-10-01 13:14:03 +02:00
benpicco
0b69747389
Merge pull request #16023 from maribu/max_pdu_size
sys/net/netopt: Drop deprecated NETOPT_MAX_PACKET_SIZE
2021-08-26 14:40:18 +02:00
Benjamin Valentin
a586d1ba4c pkg/pkg.mk: allow for custom patch dir 2021-08-25 15:35:50 +02:00
025e5db592
pkg/pkg.mk: avoid git fetch if version is already there 2021-05-31 09:46:10 +02:00
06b152fac0
pkg/pkg.mk: improve clean and distclean for in-source builds 2020-07-10 13:30:37 +02:00
b633f875e2
pkg/pkg.mk: better distinguish between source and build directory 2020-06-26 09:25:43 +02:00
6b3f241be2
pkg/pkg.mk: define GITCACHE and only export GIT_CACHE_DIR from there 2020-06-23 14:54:25 +02:00
b4e268423e
Merge pull request #14286 from aabadie/pr/pkg/cmake_build_source_dir
pkg: tools: ensure cmake based packages/tools are built out-of-source
2020-06-23 12:50:39 +02:00
962eea6c4e
pkg.mk: all depends on prepare 2020-06-23 11:17:28 +02:00
b87898df5e
pkg/pkg.mk: silent prepare target when there's nothing to be done 2020-06-23 11:05:31 +02:00
3cdc337c22
pkg/pkg.mk: add custom prepared target
This target is called by the prepare target and does nothing by default
2020-06-19 14:24:33 +02:00
Francisco Molina
1a069f2631
pkg/pkg.mk: explicitly exclude state files 2020-06-16 16:27:57 +02:00
cb4bce393d
pkg/pkg.mk: fix patch prerequisites variable name 2020-06-09 15:14:01 +02:00
4bc8674822
pkg/pkg.mk: fix typo on 'prerequisites' 2020-06-09 15:13:26 +02:00
2b45d0e976
pkg/pkg.mk: remove non needed capital letter 2020-06-09 15:12:54 +02:00
Gaëtan Harter
9b6526c911 pkg/pkg.mk: use intermediate state files
Rely on file creation and dependencies instead of .PHONY targets.
Files will be rebuilt when changing version as the main `Makefile` will
have been updated. All steps are re-done on version change.

When deleting patches, the '.prepare' step should be redone thanks
to the included 'patch-dep.inc' file (TODO TEST ME).

Implementation in order:

* '.git': means the repository has been cloned.
* '.git-downloaded': Fetches the wanted version
* '.git-prepared': will clean checkout the version and apply patches
2020-01-08 20:55:19 +01:00
Gaëtan Harter
1a07471311 pkg/pkg.mk: ensure file is included at the beginning
This should prevent issues where the Makefile use 'PKG_BUILDDIR' before
them being defined.

This will also allow changing the state targets to be file targets.
2020-01-08 20:54:54 +01:00
Gaëtan Harter
0b7f5c2272 pkg/pkg.mk: prepare to move include at the beginning
The file must not change the default goal otherwise it could change
packages behavior.
2020-01-08 20:54:54 +01:00
Gaëtan Harter
239f16a8f6 pkg/pkg.mk: explicit set --git-dir and --work-tree for git
This should prevent issues when the directory is not a git repository
which would for example checkout force or clean in the RIOT repository
instead.
2020-01-06 00:37:47 +01:00
Gaëtan Harter
edca088193 pkg/pkg.mk: add checks for required variables
Ensure the required variables are defined before including 'pkg.mk'.
2020-01-06 00:18:05 +01:00
Toon Stegen
f6b97a444e make/pkg: make git commands quiet 2019-10-29 13:58:21 +01:00
Toon Stegen
6ef9b4b340 make/pkg: don't warn on whitespace errors 2019-10-29 13:58:21 +01:00
Toon Stegen
a6255240fb make/pkg: don't print executed commands 2019-10-29 13:58:21 +01:00
Hauke Petersen
cf8f3125fc make/pkg: allow to set SOURCE_LOCAL per pkg 2019-09-23 11:44:17 +02:00
Juan Carrano
f8f229b6f7 pkg/pkg.mk: make sure we are building the correct commit.
Once the repo is downloaded, the version is not checked gain. This
means that even if a package's Makefile is touched, that will only
cause a rebuild of the previously downloaded version. For packages
that are normally not deleted, like edbg, this renders PKG_VERSION
bumps ineffective, unless the user manually deletes the repo
directory.

This patch fixes that by always checking that the repo is at the
right commit.
2019-03-19 11:49:41 +01:00
cladmi
d154123c92
pkg.mk: do not use user identity when applying patches
Use fixed identity when applying patches, it fixes issues when they are
not set in the build computer or if HOME is not exported.

The commits are only used in the build system so adding the building user
information is useless.
2018-09-19 12:09:54 +02:00
Gaëtan Harter
8ec1fb2c2f
pkg/pkg.mk: allow overwriting GITAMFLAGS from environment var
On IoT-LAB the git version does not support `--no-gpg-sign` so I would like a
way to overwrite GITAMFLAGS from environment variable.
2018-07-25 18:53:07 +02:00
8d6f5ddfcf
Merge pull request #9015 from cladmi/pr/pkg/do_not_sign_patches
pkg/pkg.mk: do not sign when applying patches
2018-04-25 09:40:10 +02:00
Gaëtan Harter
2fe2fff92d
pkg/pkg.mk: Do not sign when applying patches
Disable signing every applied patches for user that have gpgsign by default.
2018-04-24 21:11:33 +02:00
Gaëtan Harter
593dac9044
pkg/pkg.mk: add GITAMFLAGS variable 2018-04-24 21:11:25 +02:00
Gaëtan Harter
caccc2102d
pkg: cleanup old GIT_APPLY_PATCHES variable
variable usage was removed in 0fb50ebeda
2018-04-24 21:07:04 +02:00
9227c6f0d8 pkg: add local.mk, allow source folder override for git packages 2018-02-13 14:11:28 +01:00
98bb1f2781 pkg: add prepare targets 2017-06-28 14:39:05 +02:00
8d88781e05 make: pkg: make use of PKGDIRBASE 2017-03-10 14:18:44 +01:00
Martine Lenders
0fb50ebeda pkg: do not build concurrently 2016-06-01 17:25:50 +02:00
29e7ea454a make: pkg: remove pkg source dir before checkout 2016-03-31 23:09:23 +02:00
bec43ac340 pkg: move pkgdir to $BINDIRBASE/pkg/$BOARD/$PKG_NAME, do proper clean 2016-03-25 14:28:04 +01:00
Martine Lenders
8e360aa97f pkg: clarify that current download target is only for git 2016-03-24 00:57:14 +01:00
5673c51729 pkg: add unified package git checkout makefile 2016-03-23 14:35:08 +01:00