infra/pkg-kconfig: commonalise update-(def)config code
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 1 Dec 2017 15:09:44 +0000 (16:09 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 31 Mar 2018 20:34:55 +0000 (22:34 +0200)
commitf542085a61ee0e1d85e32a1f6f71ccea9101ea31
tree7cc1b6fe24e8d0094c209df52bde9a478df32cbf
parent3d02062787041877b56c51b20cbc13af24264aa1
infra/pkg-kconfig: commonalise update-(def)config code

Except for the nice human-friendly reminder of the command that the user
was just running, and the name of the file to copy from, those two rules
are exactly the same.

Make that a common macro that is shared, so that it's easier to add more
checks, and to simplify maintenance.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-kconfig.mk