summaryrefslogtreecommitdiff
path: root/mk/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/build.mk')
-rw-r--r--mk/build.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk
index b77e5a38a..03ce69536 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -227,6 +227,16 @@ kernelconfig:
${KERNEL_MAKE_OPTS} \
menuconfig
+ifeq ($(ADK_TARGET_KERNEL_USE_CUSTOMCONFIG),y)
+savekconfig:
+ @echo "Saving kernel configuration to $(ADK_TOPDIR)/$(ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH)"
+ $(CP) $(LINUX_DIR)/.config $(ADK_TOPDIR)/$(ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH)
+else
+savekconfig:
+ @echo "You have to enable ADK_TARGET_KERNEL_USE_CUSTOMCONFIG to be able to save the current kernel configuration."
+endif
+
+
# create a new package from package/.template
newpackage:
@echo "Creating new package $(PKG)"