From 7fa9235fb915e537d21054dc6a60af6981969ba5 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 7 Oct 2020 11:32:05 +0200 Subject: kernel, barebox: use explicit list of config targets The problem with the pattern rule is that it also matches some files, such as $(PTXDIST_TOPDIR)/config/images/barebox_partitions.config. This results in strange error messages. Use a global list of possible config targets and use it to generate explicit lists of make targets. Signed-off-by: Michael Olbrich --- rules/pre/kernel.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules/pre') diff --git a/rules/pre/kernel.make b/rules/pre/kernel.make index 3984d7d64..fee34596d 100644 --- a/rules/pre/kernel.make +++ b/rules/pre/kernel.make @@ -104,4 +104,8 @@ endif KERNEL_CROSS_COMPILE := $(KERNEL_TOOLCHAIN_LINK)$(PTXCONF_COMPILER_PREFIX_KERNEL) +define ptx/kconfig-targets +$(addprefix $(strip $(1))_,menuconfig nconfig oldconfig allmodconfig allyesconfig allnoconfig alldefconfig randconfig) +endef + # vim: syntax=make -- cgit v1.2.3