Files
meta-openembedded/meta-oe/recipes-devtools/kconfig-frontends/files/missing-mkdir.patch
Peter Kjellerstedt ec5bffa7d2 kconfig-frontends: Add recipe
This provides the kconfig infrastructure that is used for the Linux
kernel as a standalone package. It is not, however, intended to be
used for the kernel itself, but can be used by other packages that are
based on kconfig.

This is a verbatim copy of the corresponding recipe in OE-core since
that recipe is being removed.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-06-19 19:30:41 +02:00

38 lines
1.1 KiB
Diff

Upstream-Status: Submitted
Signed-off-by: Ross Burton <ross.burton@intel.com>
From ca05ee2fb6db5b3b1edc16dba6150a2c6078a6cf Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@intel.com>
Date: Tue, 9 May 2017 15:30:00 +0100
Subject: [PATCH] Makefile: ensure utils/ exists before writing to it
Since utils/ was changed to not build recursively it's possible that in
out-of-tree builds the utils/ directory hasn't been created when Make runs the
utils/kconfig-tweak target which tries to write to file inside utils/.
To ensure this can work, mkdir the directory.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am
index c8e96ef..1baa110 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -173,2 +173,3 @@ bin_SCRIPTS += frontends/kconfig
frontends/kconfig: frontends/kconfig.in
+ $(MKDIR_P) $(@D)
$(AM_V_GEN)$(SED) -e 's/@KCFG_LIST@/$(kcfg_list)/g' \
@@ -348,6 +348,7 @@ EXTRA_DIST += \
utils/kconfig-tweak.in.patch
utils/kconfig-tweak: utils/kconfig-tweak.in
+ $(MKDIR_P) $(@D)
$(AM_V_GEN)$(SED) -e "s/@CONFIG_@/$(config_prefix)/g" \
$< >$@
@chmod +x $@
--
2.8.1