- 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
- ln -sf $(PKG_BUILD_DIR) $(LINUX_HEADERS_DIR)
+ $(call Kernel/Prepare/Default)
+ $(SED) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR)/Makefile
+ ln -sf linux-$(LINUX_VERSION) $(LINUX_HEADERS_DIR)
+ yes '' | $(KMAKE) oldconfig
+ $(KMAKE) include/linux/version.h include/asm
+ if [ -d $(PKG_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm ]; then \
+ $(CP) \
+ $(PKG_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm/. \
+ $(PKG_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \
+ fi
+ $(call Build/Configure/$(ARCH))