- mkdir -p $(TOOLCHAIN_BUILD_DIR)
- bzcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) $(TAR_WILDCARDS) -C $(TOOLCHAIN_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
+ $(call Build/Prepare/$(ARCH))
+endef
+else
+define Build/Prepare
+ $(call Kernel/Prepare/Default)
+ $(SED) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR)/Makefile