summaryrefslogtreecommitdiffstats
path: root/rules/pre
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-10-07 11:32:05 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-10-07 18:31:44 +0200
commit7fa9235fb915e537d21054dc6a60af6981969ba5 (patch)
treeba1eebf819ce680188fef7e4e09a7d7c54eddbef /rules/pre
parentdb8c3e7ff86d42987585b3b8e0b4cf9191bd5aa0 (diff)
downloadptxdist-7fa9235fb915e537d21054dc6a60af6981969ba5.tar.gz
ptxdist-7fa9235fb915e537d21054dc6a60af6981969ba5.tar.xz
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 <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pre')
-rw-r--r--rules/pre/kernel.make4
1 files changed, 4 insertions, 0 deletions
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