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:
Thomas De Schampheleire 2014-07-14 13:50:25 +02:00 committed by Thomas Petazzoni
parent 85a016f5e1
commit 358bf95445

View File

@ -33,17 +33,17 @@ $(eval $(call caseconvert-helper,LOWERCASE,$(join $(addsuffix :,$([TO])),$([FROM
# package, and more. # package, and more.
# #
define KCONFIG_ENABLE_OPT define KCONFIG_ENABLE_OPT # (option, file)
$(SED) "/\\<$(1)\\>/d" $(2) $(SED) "/\\<$(1)\\>/d" $(2)
echo "$(1)=y" >> $(2) echo "$(1)=y" >> $(2)
endef endef
define KCONFIG_SET_OPT define KCONFIG_SET_OPT # (option, value, file)
$(SED) "/\\<$(1)\\>/d" $(3) $(SED) "/\\<$(1)\\>/d" $(3)
echo "$(1)=$(2)" >> $(3) echo "$(1)=$(2)" >> $(3)
endef endef
define KCONFIG_DISABLE_OPT define KCONFIG_DISABLE_OPT # (option, file)
$(SED) "/\\<$(1)\\>/d" $(2) $(SED) "/\\<$(1)\\>/d" $(2)
echo "# $(1) is not set" >> $(2) echo "# $(1) is not set" >> $(2)
endef endef