mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:23:09 +02:00
opkg: add host and package parallel build support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33424 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
aeb80f6ab0
commit
9a7bc8a8b5
@ -21,6 +21,10 @@ PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
|
|||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_REMOVE_FILES = autogen.sh aclocal.m4
|
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)/package.mk
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
@ -56,14 +60,11 @@ CONFIGURE_ARGS += \
|
|||||||
--with-opkgetcdir=/etc \
|
--with-opkgetcdir=/etc \
|
||||||
--with-opkglockfile=/var/lock/opkg.lock
|
--with-opkglockfile=/var/lock/opkg.lock
|
||||||
|
|
||||||
define Build/Compile
|
MAKE_FLAGS = \
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
HOST_CPU="$(PKGARCH)" \
|
HOST_CPU="$(PKGARCH)" \
|
||||||
LDFLAGS="-Wl,--gc-sections" \
|
LDFLAGS="-Wl,--gc-sections" \
|
||||||
all install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/opkg/install
|
define Package/opkg/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/opkg
|
$(INSTALL_DIR) $(1)/usr/lib/opkg
|
||||||
@ -87,7 +88,7 @@ HOST_CONFIGURE_ARGS+= \
|
|||||||
--with-opkglockfile=/tmp/opkg.lock
|
--with-opkglockfile=/tmp/opkg.lock
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
$(MAKE) -C $(HOST_BUILD_DIR) CC="$(HOSTCC)" all
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) CC="$(HOSTCC)" all
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
|
Loading…
Reference in New Issue
Block a user