Browse Source

Fix bug related to renaming of ADK_TARGET_KERNEL_*

I'm not sure if this correct, or complete. I only know that it's the diff hunk
in mk/kernel-build.mk that we need. The other ones were found by searching for
ADK_TARGET_KERNEL_USE_CUSTOMCONFIG; I suspect these code blocks need to be
duplicated for ADK_TARGET_WALDUX_KERNEL_USE_CUSTOMCONFIG?
stk 6 years ago
parent
commit
682240a047
3 changed files with 7 additions and 7 deletions
  1. 4 4
      mk/build.mk
  2. 1 1
      mk/kernel-build.mk
  3. 2 2
      target/Makefile

+ 4 - 4
mk/build.mk

@@ -249,13 +249,13 @@ kernelconfig:
 		${KERNEL_MAKE_OPTS} \
 		menuconfig
 
-ifeq ($(ADK_TARGET_KERNEL_USE_CUSTOMCONFIG),y)
+ifeq ($(ADK_TARGET_LINUX_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)
+	@echo "Saving kernel configuration to $(ADK_TOPDIR)/$(ADK_TARGET_LINUX_KERNEL_CUSTOMCONFIG_PATH)"
+	$(CP) $(LINUX_DIR)/.config $(ADK_TOPDIR)/$(ADK_TARGET_LINUX_KERNEL_CUSTOMCONFIG_PATH)
 else
 savekconfig:
-	@echo "You have to enable ADK_TARGET_KERNEL_USE_CUSTOMCONFIG to be able to save the current kernel configuration."
+	@echo "You have to enable ADK_TARGET_LINUX_KERNEL_USE_CUSTOMCONFIG to be able to save the current kernel configuration."
 endif
 
 

+ 1 - 1
mk/kernel-build.mk

@@ -80,7 +80,7 @@ $(LINUX_DIR)/.config: $(LINUX_DIR)/.prepared
 ifeq ($(ADK_TARGET_LINUX_KERNEL_USE_DEFCONFIG)$(ADK_TARGET_WALDUX_KERNEL_USE_DEFCONFIG),y)
 	${KERNEL_MAKE_ENV} $(MAKE) -C "${LINUX_DIR}" ${KERNEL_MAKE_OPTS} $(ADK_TARGET_KERNEL_DEFCONFIG) $(MAKE_TRACE)
 else ifeq ($(ADK_TARGET_LINUX_KERNEL_USE_CUSTOMCONFIG),y)
-	@if [ ! -f $(ADK_TOPDIR)/$(ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH) ];then \
+	@if [ ! -f $(ADK_TOPDIR)/$(ADK_TARGET_LINUX_KERNEL_CUSTOMCONFIG_PATH) ];then \
 		echo "no kernel configuration found in $(ADK_TOPDIR)/$(ADK_TARGET_LINUX_KERNEL_CUSTOMCONFIG_PATH)"; \
 		exit 1; \
 	fi

+ 2 - 2
target/Makefile

@@ -4,8 +4,8 @@
 include $(ADK_TOPDIR)/rules.mk
 include $(ADK_TOPDIR)/mk/rootfs.mk
 
-ifeq ($(ADK_TARGET_KERNEL_USE_CUSTOMCONFIG),y)
-KERNEL_MODULES_USED:=$(shell grep -s =m $(ADK_TOPDIR)/$(ADK_TARGET_KERNEL_CUSTOMCONFIG_PATH))
+ifeq ($(ADK_TARGET_LINUX_KERNEL_USE_CUSTOMCONFIG),y)
+KERNEL_MODULES_USED:=$(shell grep -s =m $(ADK_TOPDIR)/$(ADK_TARGET_LINUX_KERNEL_CUSTOMCONFIG_PATH))
 else
 KERNEL_MODULES_USED:=$(shell grep ^ADK_$(ADK_TARGET_OS)_KERNEL $(ADK_TOPDIR)/.config|grep =m)
 endif