Makefile: introduce check-package target
The snippet of code that runs a check-package on all .mk/.hash/Config.in files is currently only available within .gitlab-ci.yml, and isn't immediately and easily usable by Buildroot users. In order to simplify this, this commit introduces a top-level "check-package" make target that implements the same logic. The .gitlab-ci.yml file is changed to use "make check-package". Since this target is oriented towards Buildroot developers, we intentionally do not clutter the already noisy "make help" text with this additional make target. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
6ca73d671e
commit
1290241dc6
@ -43,8 +43,7 @@ check-flake8:
|
|||||||
|
|
||||||
check-package:
|
check-package:
|
||||||
script:
|
script:
|
||||||
- find . -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \)
|
- make check-package
|
||||||
-exec ./utils/check-package {} +
|
|
||||||
|
|
||||||
.defconfig: &defconfig
|
.defconfig: &defconfig
|
||||||
# Running the defconfigs for every push is too much, so limit to
|
# Running the defconfigs for every push is too much, so limit to
|
||||||
|
@ -43,8 +43,7 @@ check-flake8:
|
|||||||
|
|
||||||
check-package:
|
check-package:
|
||||||
script:
|
script:
|
||||||
- find . -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \)
|
- make check-package
|
||||||
-exec ./utils/check-package {} +
|
|
||||||
|
|
||||||
.defconfig: &defconfig
|
.defconfig: &defconfig
|
||||||
# Running the defconfigs for every push is too much, so limit to
|
# Running the defconfigs for every push is too much, so limit to
|
||||||
|
6
Makefile
6
Makefile
@ -130,7 +130,7 @@ export BR2_VERSION_FULL := $(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlo
|
|||||||
noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \
|
||||||
defconfig %_defconfig allyesconfig allnoconfig alldefconfig silentoldconfig release \
|
defconfig %_defconfig allyesconfig allnoconfig alldefconfig silentoldconfig release \
|
||||||
randpackageconfig allyespackageconfig allnopackageconfig \
|
randpackageconfig allyespackageconfig allnopackageconfig \
|
||||||
print-version olddefconfig distclean manual manual-%
|
print-version olddefconfig distclean manual manual-% check-package
|
||||||
|
|
||||||
# Some global targets do not trigger a build, but are used to collect
|
# Some global targets do not trigger a build, but are used to collect
|
||||||
# metadata, or do various checks. When such targets are triggered,
|
# metadata, or do various checks. When such targets are triggered,
|
||||||
@ -1125,6 +1125,10 @@ release:
|
|||||||
print-version:
|
print-version:
|
||||||
@echo $(BR2_VERSION_FULL)
|
@echo $(BR2_VERSION_FULL)
|
||||||
|
|
||||||
|
check-package:
|
||||||
|
find $(TOPDIR) -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \) \
|
||||||
|
-exec ./utils/check-package {} +
|
||||||
|
|
||||||
.PHONY: .gitlab-ci.yml
|
.PHONY: .gitlab-ci.yml
|
||||||
.gitlab-ci.yml: .gitlab-ci.yml.in
|
.gitlab-ci.yml: .gitlab-ci.yml.in
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
Loading…
Reference in New Issue
Block a user