package/pkg-kconfig: only define -update-{def, }config if supported
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 25 Jul 2021 14:11:46 +0000 (16:11 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 31 Jul 2021 11:31:23 +0000 (13:31 +0200)
commitde669abcb40ea20a685c7269efd79f94ee95381d
tree5d347b4b2a8a416220ab3585086714518f4e8138
parentd0c82f20c75f683d8cafde08a0e558a9a13d3ded
package/pkg-kconfig: only define -update-{def, }config if supported

The foo-update-config and foo-update-defconfig targets only work if a
custom config file was defined. Remove those targets entirely if they
don't work to begin with.

This was originally handled with an error condition in the
kconfig-package-update-config macro. However, it makes more sense to
simply remove the target if it anyway can't be used.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[yann.morin.1998@free.fr: move PHONY before corresponding rule]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/pkg-kconfig.mk