From a17b603f1cdcbe29984e744f809e10fea1c4b94f Mon Sep 17 00:00:00 2001 From: Mario Haustein Date: Mon, 24 Oct 2016 13:24:38 +0200 Subject: add Makefile target for saving the kernel configuration to an external file Signed-off-by: Mario Haustein --- mk/build.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mk/build.mk') 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)" -- cgit v1.2.3