btrfs-progs: Enable parallel build
authorMichael Büsch <mb@bu3sch.de>
Sat, 16 Oct 2010 21:50:11 +0000 (21:50 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sat, 16 Oct 2010 21:50:11 +0000 (21:50 +0000)
SVN-Revision: 23490

utils/btrfs-progs/Makefile

index 7651133..4e173d7 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/
 PKG_MD5SUM:=69e29ecd922e3f9dcb74a3a8f80b4f68
 
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/btrfs-progs
@@ -35,15 +38,12 @@ endef
 
 progs = btrfsctl mkfs.btrfs btrfs-debug-tree btrfs-show btrfs-vol btrfsck
 
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               CC="$(TARGET_CC)" \
-               CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
-               LDFLAGS="$(TARGET_LDFLAGS)" \
-               prefix=/usr \
-               DESTDIR=$(PKG_INSTALL_DIR) \
-               all install
-endef
+MAKE_FLAGS+=\
+       CC="$(TARGET_CC)" \
+       CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
+       LDFLAGS="$(TARGET_LDFLAGS)" \
+       prefix=/usr \
+       DESTDIR=$(PKG_INSTALL_DIR)
 
 define Package/btrfs-progs/install
        $(INSTALL_DIR) $(1)/usr/bin