crasbe
291bfeced6
buildsystem_sanity_check: add JLINK_POST_FLASH to unexported variables
2024-11-19 17:15:31 +01:00
Marian Buschsieweke
e960a19f24
build system: simplify docker image pinning
...
It turns out that the ID mechanics of docker are even more crazy than
realized before: On Linux (x86_64) they use a different SHA256 when
referring to a locally installed image than when referring to the
same image at dockerhub. On Mac OS (Apple Silicon), the use the repo
SHA256 also when referring to the local image.
Instead of increasing the complexity of the current solution even more
by covering both cases, we now use
`docker.io/riot/riotbuild@sha256:<SHA256_OF_DOCKERHUB_IMAGE>` to refer
to a specific docker image, which hopefully works across systems.
Instead of pulling the image explicitly, we now can rely on docker
to do so automatically if the pinned image is not found locally. As
a result, the knob to disable automatic pulling has been dropped.
Fixes https://github.com/RIOT-OS/RIOT/issues/20853
2024-10-09 21:05:57 +02:00
Marian Buschsieweke
17dcb97571
dist/tools/buildsystem_sanity_check: check pinned docker version
...
This tests if the latest manifest on dockerhub matches the pinned
version. The idea is that PRs are not merged until the pinning is
fixed, so that we can ensure that `make BUILD_IN_DOCKER=1` will
always succeed with the pinned version.
2024-06-08 02:12:15 +02:00
Marian Buschsieweke
ce8f89b798
Merge pull request #20721 from maribu/dist/tools/buildsystem_sanity_check/make-shellcheck-happy
...
dist/tools/buildsystem_sanity_check: make shellcheck happy
2024-06-07 22:28:56 +00:00
Marian Buschsieweke
098167ad23
dist/tools/buildsystem_sanity_check: fix and cleanup
...
The build system sanity check test script currently does not pass
shellcheck, preventing PRs improving it from getting merged.
In addition, the github annotation was broken.
This commit fixes the issues pointed out by shellcheck as well as
the Github annotation.
Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2024-06-07 20:12:15 +02:00
Marian Buschsieweke
47f52bd750
build system: provide netif_ethernet implicitly
...
If there is an Ethernet peripheral (periph_eth feature provided), we
can conclude that an Ethernet network interface can be provided.
Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2024-06-03 12:25:21 +02:00
Marian Buschsieweke
195d6617b2
dist/tools/buildsystem_sanity_check: Relax on Makefile.features
...
In order to extend features based on provided features, we need to
check contents of `FEATURES_PROVIDED`.
2024-05-28 20:53:52 +02:00
Fabian Hüßler
4e1ac37400
buildsystem: add target debug-client
2023-06-10 00:04:56 +02:00
7bac10f13d
dist/tools/buildsystem_sanity_check: add check for tests subdirs
2023-05-28 09:42:40 +02:00
b8001f48b2
tools/buildsystem_sanity_check: update exclude list
2023-05-11 14:30:51 +02:00
chrysn
d94b4e0ec1
makefiles: Reject 2>&1 > /dev/null
...
While this could theoretically be desired, it's usually just a mishap.
It is unlikely that legitimate cases will be needed in the build system;
if so, they can exclude themselves.
See-Also: https://github.com/RIOT-OS/RIOT/pull/16775
2022-04-16 10:04:17 +02:00
Francisco Molina
be7b8179d0
makefiles/docker.inc.mk: add DOCKER_ENV_VARS_ALWAYS
...
This adds a list of variables that should always be passed to docker
since they are commonly set in Makefile/Makefile.include and therefore
can not be checked for their origin.
2022-02-10 13:27:01 +01:00
Martine Lenders
c851ec60b8
buildsystem_sanity_check: Check for RIOT_CONFIG_* variables
2021-09-07 11:23:12 +02:00
7e21f25779
make: namespace openocd PRE_FLASH_CHECK_SCRIPT variable
2021-02-23 21:22:55 +01:00
6f47505997
make: namespace pyocd FLASH_TARGET_TYPE variable
2021-02-23 21:22:52 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable
2021-02-23 21:22:52 +01:00
Martine Lenders
ab71561759
dist/tools/buildsystem_sanity_check: annotate errors in Github Action
2021-01-12 16:31:08 +01:00
Martine Lenders
1d61f38bf2
dist/tools/buildsystem_sanity_check: output line number with git grep
2021-01-12 16:30:22 +01:00
Martine Lenders
afe9e990fa
dist/tools/buildsystem_sanity_check: fix typo in error message
2021-01-12 16:29:46 +01:00
Martine Lenders
d7391b3cc3
dist/tools/buildsystem_sanity_check: add colon to every error message
2021-01-12 16:28:50 +01:00
Martine Lenders
fe74043e9a
dist/tools: move check for PKG_SOURCE_LOCAL to buildsystem_sanity_check
2021-01-08 15:04:28 +01:00
da16710229
ci: ensure EMULATOR* variables are not exported
2020-11-20 12:31:15 +01:00
Leandro Lanzieri
bbfca7e1ef
Merge pull request #14458 from miri64/vagrant/enh/freebsd
...
vagrant: add Vagrantfile to test native in FreeBSD
2020-08-25 16:32:05 +02:00
Martine S. Lenders
1d435de445
buildsystem_sanity_check: whitelist Vagrantfiles
...
Vagrantfiles are not part of our build-system so they should be ignored
by its sanity check.
2020-08-25 16:01:59 +02:00
Francisco
d665546d6f
Merge pull request #14464 from benpicco/python3
...
Convert remaining Python2 users to Python3
2020-08-18 09:11:23 +02:00
b7f2ad8d76
ci/build_system_check: improve check for features provided in Makefile.features
...
- Take into account potential spaces at the beginning of a line
- Check all Makefile.<something> files, not only the ones in boards and cpus
2020-07-20 13:06:05 +02:00
Benjamin Valentin
12cf6f0137
buildsystem_sanity_check: use python3
2020-07-08 14:57:54 +02:00
88452abfcf
ci/build_system_check: ensure no export of APPDEPS/BUILDDEPS/DEBUGDEPS
2020-06-28 12:15:18 +02:00
Francisco Molina
9909cdfffd
dist/buildsystem_sanity_check: no USEMODULE in Makefile.include
2020-06-25 11:02:00 +02:00
e785d43003
ci/build_system_check: fix typo in function name
2020-06-25 10:15:23 +02:00
Francisco
a665fcc542
Merge pull request #14123 from jue89/fix/ztimer_pseudomodules
...
ztimer: relocate PSEUDOMODULES definitions
2020-06-24 22:56:07 +02:00
c36109516a
dist/buildsystem_check: ensure no export of toolchains vars
2020-06-24 11:01:01 +02:00
1084d6593f
dist/buildsystem_check: ensure no export of GITCACHE/GIT_CACHE_DIR
2020-06-23 14:54:25 +02:00
Leandro Lanzieri
4d65bc8e0a
cpu: Rename CPU_ARCH to CPU_CORE
2020-06-16 12:05:40 +02:00
Leandro Lanzieri
1783a56767
buildsystem_check: Add check for features provided
...
This checks that providing features for boards and CPUs is only being
done in Makefile.features.
2020-05-29 11:07:09 +02:00
Juergen Fitschen
0a4beec345
buildsystem_sanity_check: don't touch PSEUDOMODULES in Makefile.dep
2020-05-23 16:35:05 +02:00
Leandro Lanzieri
d60295db3c
Merge pull request #13720 from aabadie/pr/native_no_export
...
native: only export NATIVEINCLUDES in vars.inc.mk
2020-04-07 12:55:45 +02:00
27811518a0
ci/buildsystem: ensure NATIVEINCLUDES is only exported in vars
2020-03-26 10:26:14 +01:00
405c0cfef5
makefiles/openocd: export OPENOCD_CMD_RESET_RUN only when required
2020-03-26 10:00:37 +01:00
0e86aae445
ci/buildsystem: ensure PRE_FLASH_CHECK_SCRIPT is not exported
2020-03-26 09:37:41 +01:00
08adbb283c
ci/buildsystem: ensure OPENOCD_PRE_FLASH_CMDS is not exported
2020-03-26 09:31:22 +01:00
4aa351c746
ci/buildsystem: ensure OPENOCD_PRE_VERIFY_CMDS is not exported
2020-03-26 09:31:21 +01:00
ad5b9d7faf
ci/buildsystem_check: force no export of JLINK_PRE_FLASH
2020-03-10 16:31:50 +01:00
5e85994abf
ci/buildsystem_check: force no export of JLINK_RESET_FILE
2020-03-10 16:30:57 +01:00
c586db5ae2
ci/buildsystem_check: ensure JLINK_IF is not exported
2020-03-10 16:29:20 +01:00
9c2e5c9b7c
ci/buildsystem_check: ensure JLINK_DEVICE is not exported
2020-03-10 16:28:26 +01:00
980e06bcd6
ci/buildssytem: ensure PYOCD_ADAPTER_INIT is not exported
2020-03-08 15:12:44 +01:00
c27870face
ci/buildssytem: ensure FLASH_TARGET_TYPE is not exported
2020-03-08 15:12:44 +01:00
95d607b54d
Merge pull request #13480 from aabadie/pr/tools/openocd_export_variables
...
tools/openocd: export configuration variables only to required targets
2020-03-03 18:16:05 +01:00
a9768151dd
ci/buildssytem: ensure APPDEPS not exported
2020-03-03 14:19:55 +01:00