- mkdir -p $(TOOL_BUILD_DIR)
- bzcat $(DL_DIR)/$(PKG_SOURCE) | tar --wildcards -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - \
- linux-$(PKG_VERSION)/include \
- linux-$(PKG_VERSION)/Makefile \
- linux-$(PKG_VERSION)/Rules.make \
- linux-$(PKG_VERSION)/arch/$(LINUX_KARCH)/Makefile \
- linux-$(PKG_VERSION)/scripts \
- linux-$(PKG_VERSION)/arch/$(LINUX_KARCH)/config*.in \
- linux-$(PKG_VERSION)/*/*/Config.in \
- linux-$(PKG_VERSION)/*/Config.in
- $(PATCH) $(PKG_BUILD_DIR) ./patches
- $(SED) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR)/Makefile
+ mkdir -p $(TOOLCHAIN_BUILD_DIR)
+ bzcat $(DL_DIR)/$(PKG_SOURCE) | $(HOST_TAR) -C $(TOOLCHAIN_BUILD_DIR) $(TAR_OPTIONS)
+ $(PATCH) $(PKG_BUILD_DIR) $(TOPDIR)/target/linux/generic-$(KERNEL)/patches
+ $(SED) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR)/Makefile