Changeset 33424


Ignore:
Timestamp:
2012-09-15T14:34:52+02:00 (5 years ago)
Author:
nbd
Message:

opkg: add host and package parallel build support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/opkg/Makefile

    r31262 r33424  
    2121PKG_FIXUP:=autoreconf 
    2222PKG_REMOVE_FILES = autogen.sh aclocal.m4 
     23 
     24PKG_BUILD_PARALLEL:=1 
     25HOST_BUILD_PARALLEL:=1 
     26PKG_INSTALL:=1 
    2327 
    2428include $(INCLUDE_DIR)/package.mk 
     
    5761        --with-opkglockfile=/var/lock/opkg.lock 
    5862 
    59 define Build/Compile 
    60         $(MAKE) -C $(PKG_BUILD_DIR) \ 
     63MAKE_FLAGS = \ 
    6164                CC="$(TARGET_CC)" \ 
    6265                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    6366                HOST_CPU="$(PKGARCH)" \ 
    6467                LDFLAGS="-Wl,--gc-sections" \ 
    65                 all install 
    66 endef 
    6768 
    6869define Package/opkg/install 
     
    8889 
    8990define Host/Compile 
    90         $(MAKE) -C $(HOST_BUILD_DIR) CC="$(HOSTCC)" all 
     91        $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) CC="$(HOSTCC)" all 
    9192endef 
    9293 
Note: See TracChangeset for help on using the changeset viewer.