mirror of
https://git.busybox.net/buildroot.git
synced 2025-01-26 22:33:27 +08:00
pkg-utils: kconfig helpers: add basic usage documentation
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
85a016f5e1
commit
358bf95445
@ -33,17 +33,17 @@ $(eval $(call caseconvert-helper,LOWERCASE,$(join $(addsuffix :,$([TO])),$([FROM
|
||||
# package, and more.
|
||||
#
|
||||
|
||||
define KCONFIG_ENABLE_OPT
|
||||
define KCONFIG_ENABLE_OPT # (option, file)
|
||||
$(SED) "/\\<$(1)\\>/d" $(2)
|
||||
echo "$(1)=y" >> $(2)
|
||||
endef
|
||||
|
||||
define KCONFIG_SET_OPT
|
||||
define KCONFIG_SET_OPT # (option, value, file)
|
||||
$(SED) "/\\<$(1)\\>/d" $(3)
|
||||
echo "$(1)=$(2)" >> $(3)
|
||||
endef
|
||||
|
||||
define KCONFIG_DISABLE_OPT
|
||||
define KCONFIG_DISABLE_OPT # (option, file)
|
||||
$(SED) "/\\<$(1)\\>/d" $(2)
|
||||
echo "# $(1) is not set" >> $(2)
|
||||
endef
|
||||
|
Loading…
Reference in New Issue
Block a user