4802db3dad
Add the infrastructure for adding generated kconfig snippet in the menuconfig. For now, the kconfig snippet is generated empty, the recipe for filling it in will be introduced in sub-sequent patches. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Samuel Martin <s.martin49@gmail.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# The Buildroot manual
|
|
#
|
|
################################################################################
|
|
|
|
MANUAL_SOURCES = $(sort $(wildcard docs/manual/*.txt) $(wildcard docs/images/*))
|
|
MANUAL_RESOURCES = $(TOPDIR)/docs/images
|
|
|
|
# Ensure the kconfig snippet is generated (for MANUAL_GEN_LISTS, below):
|
|
MANUAL_DEPENDENCIES += prepare-kconfig
|
|
|
|
# Our manual needs to generate lists
|
|
define MANUAL_GEN_LISTS
|
|
$(Q)$(call MESSAGE,"Updating the manual lists...")
|
|
$(Q)$(COMMON_CONFIG_ENV) \
|
|
BR2_DEFCONFIG="" \
|
|
TOPDIR=$(TOPDIR) \
|
|
O=$(@D) \
|
|
python -B $(TOPDIR)/support/scripts/gen-manual-lists.py
|
|
endef
|
|
MANUAL_POST_RSYNC_HOOKS += MANUAL_GEN_LISTS
|
|
|
|
# Our list-generating script requires argparse
|
|
define MANUAL_CHECK_LISTS_DEPS
|
|
$(Q)if ! python -c "import argparse" >/dev/null 2>&1 ; then \
|
|
echo "You need python with argparse on your host to generate" \
|
|
"the list of packages in the manual"; \
|
|
exit 1; \
|
|
fi
|
|
endef
|
|
MANUAL_CHECK_DEPENDENCIES_HOOKS += MANUAL_CHECK_LISTS_DEPS
|
|
|
|
$(eval $(call asciidoc-document))
|