@@ -934,6 +934,7 @@ help-internal:
@echo ' <pkg>-dirclean - Remove <pkg> build directory'
@echo ' <pkg>-reconfigure - Restart the build from the configure step'
@echo ' <pkg>-rebuild - Restart the build from the build step'
+ @$(call print-help,$(PACKAGE_HELP))
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
@echo ' busybox-menuconfig - Run BusyBox menuconfig'
endif
@@ -436,6 +436,12 @@ information is (assuming the package name is +libfoo+) :
FLAT binary format is only 4k bytes. If the application consumes more stack,
append the required number here.
+* +LIBFOO_HELP+ defines the help entries visible when running `make help`.
+ The expected content for this variable is a list of single- or double-
+ quoted strings, with each string in the format "action : help for action".
+ This is seldom used, as packages rarely have custom rules. Do not use
+ this variable.
+
The recommended way to define these variables is to use the following
syntax:
@@ -910,6 +910,8 @@ ifeq ($$(patsubst %/,ERROR,$$($(2)_SITE)),ERROR)
$$(error $(2)_SITE ($$($(2)_SITE)) cannot have a trailing slash)
endif
+PACKAGE_HELP += $$($(2)_HELP)
+
endif # $(2)_KCONFIG_VAR
endef # inner-generic-package
Add a package-variable to store the package-specific make rules. Although this variable would be seldom used, we still document it. However, we make sure the documentation explicitly states that this variable should not be used (if it needs to be, the submitter of a package will be told so during reviews). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Jérôme Pouiller <jezz@sysmic.org> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Makefile | 1 + docs/manual/adding-packages-generic.txt | 6 ++++++ package/pkg-generic.mk | 2 ++ 3 files changed, 9 insertions(+)