diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-09-15 12:34:52 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-09-15 12:34:52 +0000 |
commit | d59be1dcfdbd25a3132dd459e001a8962c2f3f56 (patch) | |
tree | cea325f6f707b26c3c910ba49271c551fc17e98d | |
parent | 614fba333cb9dcfb930161117aa5dfafd635a11b (diff) | |
download | master-187ad058-d59be1dcfdbd25a3132dd459e001a8962c2f3f56.tar.gz master-187ad058-d59be1dcfdbd25a3132dd459e001a8962c2f3f56.tar.bz2 master-187ad058-d59be1dcfdbd25a3132dd459e001a8962c2f3f56.zip |
opkg: add host and package parallel build support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33424 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/opkg/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/package/opkg/Makefile b/package/opkg/Makefile index 56b4a54741..597c96bf39 100644 --- a/package/opkg/Makefile +++ b/package/opkg/Makefile @@ -21,6 +21,10 @@ PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz PKG_FIXUP:=autoreconf PKG_REMOVE_FILES = autogen.sh aclocal.m4 +PKG_BUILD_PARALLEL:=1 +HOST_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk @@ -56,14 +60,11 @@ CONFIGURE_ARGS += \ --with-opkgetcdir=/etc \ --with-opkglockfile=/var/lock/opkg.lock -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ +MAKE_FLAGS = \ CC="$(TARGET_CC)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ HOST_CPU="$(PKGARCH)" \ LDFLAGS="-Wl,--gc-sections" \ - all install -endef define Package/opkg/install $(INSTALL_DIR) $(1)/usr/lib/opkg @@ -87,7 +88,7 @@ HOST_CONFIGURE_ARGS+= \ --with-opkglockfile=/tmp/opkg.lock define Host/Compile - $(MAKE) -C $(HOST_BUILD_DIR) CC="$(HOSTCC)" all + $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) CC="$(HOSTCC)" all endef define Host/Install |