[Buildroot] [Bug 13836] package build failure when target install set to no on pkg-generic pkg types
bugzilla at busybox.net
bugzilla at busybox.net
Sun Jun 13 13:25:33 UTC 2021
https://bugs.busybox.net/show_bug.cgi?id=13836
--- Comment #2 from Yann E. MORIN <yann.morin.1998 at free.fr> ---
Matt, All,
I was thinking a proper solution to the issue would be something
along the lines of:
```diff
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 9fbc63d19e..5e53d008e1 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -1120,6 +1120,12 @@ endif # ifneq ($$(call qstrip,$$($(2)_SOURCE)),)
# configuration
ifeq ($$($$($(2)_KCONFIG_VAR)),y)
+ifeq ($$($(2)_TYPE),target)
+ifeq ($$(filter YES,$$($(2)_INSTALL_STAGING) $$($(2)_INSTALL_IMAGES)
$$($(2)_INSTALL_TARGET)),)
+$$(error $(1) does not install anything anywhere)
+endif
+endif
+
# Ensure the calling package is the declared provider for all the virtual
# packages it claims to be an implementation of.
ifneq ($$($(2)_PROVIDES),)
```
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the buildroot
mailing list