summaryrefslogtreecommitdiff
path: root/mk/kernel-build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/kernel-build.mk')
-rw-r--r--mk/kernel-build.mk15
1 files changed, 3 insertions, 12 deletions
diff --git a/mk/kernel-build.mk b/mk/kernel-build.mk
index 11b5a4890..8ee6d1ac3 100644
--- a/mk/kernel-build.mk
+++ b/mk/kernel-build.mk
@@ -3,11 +3,8 @@
include $(TOPDIR)/rules.mk
include $(TOPDIR)/mk/linux.mk
-#include ${TOPDIR}/mk/buildhlp.mk
include ${TOPDIR}/mk/kernel-vars.mk
-KERNEL_PKGDIR:=$(LINUX_BUILD_DIR)/kernel-pkg
-
$(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION)/.patched:
$(TRACE) target/$(ADK_TARGET)-kernel-patch
$(PATCH) $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/linux-$(KERNEL_VERSION) ../linux/patches/$(KERNEL_VERSION) *.patch $(MAKE_TRACE)
@@ -37,17 +34,11 @@ $(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.config
INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules \
modules_install $(MAKE_TRACE)
$(TRACE) target/$(ADK_TARGET)-create-packages
- $(MAKE) $(KERNEL_PKG) $(TARGETS)
+ifneq ($(strip $(TARGETS)),)
+ $(MAKE) $(TARGETS)
+endif
touch -c $(LINUX_DIR)/vmlinux
-$(KERNEL_PKG):
- $(TRACE) target/$(ADK_TARGET)-create-kernel-package
- rm -rf $(KERNEL_PKGDIR)
- @mkdir -p $(KERNEL_PKGDIR)/etc
- ${BASH} ${SCRIPT_DIR}/make-ipkg-dir.sh ${KERNEL_PKGDIR} \
- ../linux/kernel.control ${ADK_TARGET}-${KERNEL_VERSION} ${CPU_ARCH}
- $(PKG_BUILD) $(KERNEL_PKGDIR) $(PACKAGE_DIR) $(MAKE_TRACE)
-
prepare:
compile: $(LINUX_DIR)/vmlinux
install: compile