From bdd1bf8b8936a83edb151a429983ed28069f5f95 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Sat, 22 Jun 2019 14:02:27 +0200 Subject: [PATCH] build: warn when packages have no associated install section Declaring a package without the appropriate install section is an easy mistake to make, especially when renaming packages. Since this is also easy to detect, warn about it when it happens. Signed-off-by: Jonas Gorski No-objections-at-all-by: Jo-Philipp Wich (cherry picked from commit 5ede3fcdf74dcc1b1b4c9415152b2e8b26a45ead) --- include/package-ipkg.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 38252b95cdb..442d3854f04 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -124,6 +124,8 @@ ifeq ($(DUMP),) endif $(PKG_INSTALL_STAMP).$(1): prepare-package-install echo "$(1)" >> $(PKG_INSTALL_STAMP) + else + $(if $(CONFIG_PACKAGE_$(1)),$$(warning WARNING: skipping $(1) -- package has no install section)) endif endif