aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-07-18 00:40:11 -0400
committerMichal Marek <mmarek@suse.cz>2014-07-18 04:17:58 -0400
commit011bf1254772b20083b1bab53f3aa58b1ec95eb1 (patch)
tree882d1151003d1ed86a3f4885ba5142619dcedabd /Makefile
parent1791ff7179f689cb54182a1215686f8138850412 (diff)
kbuild: allow to override Python command name
The specification of Python 3 is largely different from that of Python 2. For example, arch/ia64/scripts/unwcheck.py seems to be written in Python 2, not compatible with Python 3. It is not a good idea to invoke python scripts with the hard-coded command name 'python'. The command 'python' could possibly be Python 3 on some systems. For that case, it is reasonable to allow to override the command name by giving 'PYTHON=python2' from the command line. The 'python' in arch/ia64/Makefile should be replaced with '$(PYTHON)'. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: linux-ia64@vger.kernel.org Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 97b286128c1e..89fe23a0825c 100644
--- a/Makefile
+++ b/Makefile
@@ -366,6 +366,7 @@ GENKSYMS = scripts/genksyms/genksyms
366INSTALLKERNEL := installkernel 366INSTALLKERNEL := installkernel
367DEPMOD = /sbin/depmod 367DEPMOD = /sbin/depmod
368PERL = perl 368PERL = perl
369PYTHON = python
369CHECK = sparse 370CHECK = sparse
370 371
371CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ 372CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
@@ -416,7 +417,7 @@ KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(S
416export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION 417export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
417export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC 418export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
418export CPP AR NM STRIP OBJCOPY OBJDUMP 419export CPP AR NM STRIP OBJCOPY OBJDUMP
419export MAKE AWK GENKSYMS INSTALLKERNEL PERL UTS_MACHINE 420export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE
420export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS 421export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
421 422
422export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS 423export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS