kconfig: use $(PERL) in Makefile
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 17 Dec 2019 04:18:19 +0000 (13:18 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 6 Jan 2020 17:18:45 +0000 (02:18 +0900)
The top Makefile defines and exports the variable 'PERL'. Use it in
case somebody wants to specify a particular version of perl from the
command line.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/Makefile

index f826a257d576693ac128f458cc194767f067ac99..953a2859302c1e73c0617a7b92ba54639db34fd3 100644 (file)
@@ -47,7 +47,7 @@ build_gconfig: $(obj)/gconf
 build_xconfig: $(obj)/qconf
 
 localyesconfig localmodconfig: $(obj)/conf
-       $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
+       $(Q)$(PERL) $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
        $(Q)if [ -f .config ]; then                             \
                cmp -s .tmp.config .config ||                   \
                (mv -f .config .config.old.1;                   \