Ignore:
Timestamp:
2006-05-31T22:58:13+02:00 (10 years ago)
Author:
nbd
Message:

add support for parallel build of packages (tested with -j8)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/package/Makefile

    r3869 r3874  
    1111 
    1212%-prepare: $(STAMP_DIR) $(TARGET_DIR) 
    13         $(MAKE) -C $(patsubst %-prepare,%,$@) prepare 
     13        $(MAKE) -C $(patsubst %-prepare,%,$@) prepare MAKEFLAGS="$(BUILD_MAKEFLAGS)" 
    1414 
    1515%-compile: $(STAMP_DIR) $(TARGET_DIR) 
    1616        @echo "-> make $@" 
    17         $(MAKE) -C $(patsubst %-compile,%,$@) compile 
     17        $(MAKE) -C $(patsubst %-compile,%,$@) compile MAKEFLAGS="$(BUILD_MAKEFLAGS)" 
    1818 
    1919%-install: $(STAMP_DIR) $(TARGET_DIR) 
    2020        @echo "-> make $@" 
    21         $(MAKE) -C $(patsubst %-install,%,$@) install 
     21        $(MAKE) -C $(patsubst %-install,%,$@) install MAKEFLAGS="$(BUILD_MAKEFLAGS)" 
    2222 
    2323%-clean: $(STAMP_DIR) $(TARGET_DIR) 
    24         $(MAKE) -C $(patsubst %-clean,%,$@) clean 
     24        $(MAKE) -C $(patsubst %-clean,%,$@) clean MAKEFLAGS="$(BUILD_MAKEFLAGS)" 
    2525 
    2626 
     
    3030all: compile 
    3131clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) 
    32 compile: $(COMPILE_PACKAGES) 
    33 install: base-files-install $(INSTALL_PACKAGES) 
     32compile-targets: $(COMPILE_PACKAGES) 
     33compile: 
     34        $(MAKE) -j$(CONFIG_JLEVEL) compile-targets 
     35install-targets: base-files-install $(INSTALL_PACKAGES) 
     36install: 
     37        rm -rf $(BUILD_DIR)/root 
     38        $(MAKE) install-targets 
    3439 
    35  
Note: See TracChangeset for help on using the changeset viewer.