From 2749a886cbb6df7376d9b7856a73066c1eb18a12 Mon Sep 17 00:00:00 2001 From: mb Date: Wed, 8 Sep 2010 10:34:23 +0000 Subject: [PATCH] Python: Enable parallel build git-svn-id: svn://svn.openwrt.org/openwrt/packages@22985 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- lang/python/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lang/python/Makefile b/lang/python/Makefile index efc99a2f5..4068ae4ae 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -14,6 +14,7 @@ PKG_RELEASE:=3 PKG_SOURCE:=Python-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION)/ PKG_MD5SUM:=fee5408634a54e721a93531aba37f8c1 +PKG_BUILD_PARALLEL:=1 PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION) @@ -130,11 +131,14 @@ define Build/Compile OPT="$(HOST_CFLAGS)" \ ./configure --without-cxx-main --without-threads --prefix=$(PKG_INSTALL_DIR)/host; \ ); - $(MAKE) -C $(PKG_BUILD_DIR) \ + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ python Parser/pgen + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + HOSTPYTHON=$(PKG_BUILD_DIR)/python \ + sharedmods $(MAKE) -C $(PKG_BUILD_DIR) \ HOSTPYTHON=$(PKG_BUILD_DIR)/python \ - sharedmods install + install (cd $(PKG_BUILD_DIR);mv Parser/pgen hostpgen) # The python executable needs to stay in the rootdir since its location will # be used to compute the path of the config files. @@ -152,10 +156,14 @@ define Build/Compile ac_cv_py_format_size_t=no \ OPT="$(TARGET_CFLAGS)" \ ) + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + $(MAKE_OPTS) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all $(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE_OPTS) \ DESTDIR="$(PKG_INSTALL_DIR)" \ - all install + install endef define Build/InstallDev -- 2.11.0