* [PATCH] merge_config.sh: Avoid creating unnessary source softlinks
@ 2013-04-04 19:02 John Stultz
2013-04-05 15:26 ` Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: John Stultz @ 2013-04-04 19:02 UTC (permalink / raw)
To: linux-kernel
Cc: John Stultz, Zhangfei Gao, Viresh Kumar, Michal Marek,
Bruce Ashfield, Darren Hart
Viresh noticed when using merge_config.sh that a source softlink
was being created even when he didn't specify the -O option.
The problem arises due to the previous commit 409f117e2d6b
which added the -O option. Basically if -O is not specified,
we still pass '-O=.' to the make command, which then generates
a source softlink to ./
This patch adds an extra check so if there is no -O specified
to merge_config.sh, we don't pass one on to make.
Cc: Zhangfei Gao <zhangfei.gao@linaro.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Darren Hart <dvhart@linux.intel.com>
Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
scripts/kconfig/merge_config.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh
index 05274fc..81b0c61 100755
--- a/scripts/kconfig/merge_config.sh
+++ b/scripts/kconfig/merge_config.sh
@@ -120,10 +120,18 @@ if [ "$MAKE" = "false" ]; then
exit
fi
+# If we have an output dir, setup the O= argument, otherwise leave
+# it blank, since O=. will create an unnecessary ./source softlink
+OUTPUT_ARG=""
+if [ "$OUTPUT" != "." ] ; then
+ OUTPUT_ARG="O=$OUTPUT"
+fi
+
+
# Use the merged file as the starting point for:
# alldefconfig: Fills in any missing symbols with Kconfig default
# allnoconfig: Fills in any missing symbols with # CONFIG_* is not set
-make KCONFIG_ALLCONFIG=$TMP_FILE O=$OUTPUT $ALLTARGET
+make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET
# Check all specified config values took (might have missed-dependency issues)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] merge_config.sh: Avoid creating unnessary source softlinks
2013-04-04 19:02 [PATCH] merge_config.sh: Avoid creating unnessary source softlinks John Stultz
@ 2013-04-05 15:26 ` Darren Hart
2013-04-10 8:57 ` Michal Marek
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2013-04-05 15:26 UTC (permalink / raw)
To: John Stultz
Cc: linux-kernel, Zhangfei Gao, Viresh Kumar, Michal Marek,
Bruce Ashfield
On 04/04/2013 12:02 PM, John Stultz wrote:
> Viresh noticed when using merge_config.sh that a source softlink
> was being created even when he didn't specify the -O option.
>
> The problem arises due to the previous commit 409f117e2d6b
> which added the -O option. Basically if -O is not specified,
> we still pass '-O=.' to the make command, which then generates
> a source softlink to ./
>
> This patch adds an extra check so if there is no -O specified
> to merge_config.sh, we don't pass one on to make.
>
> Cc: Zhangfei Gao <zhangfei.gao@linaro.org>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Cc: Michal Marek <mmarek@suse.cz>
> Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
> Cc: Darren Hart <dvhart@linux.intel.com>
> Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
> Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
> Signed-off-by: John Stultz <john.stultz@linaro.org>
Thanks John!
Acked-by: Darren Hart <dvhart@linux.intel.com>
> ---
> scripts/kconfig/merge_config.sh | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh
> index 05274fc..81b0c61 100755
> --- a/scripts/kconfig/merge_config.sh
> +++ b/scripts/kconfig/merge_config.sh
> @@ -120,10 +120,18 @@ if [ "$MAKE" = "false" ]; then
> exit
> fi
>
> +# If we have an output dir, setup the O= argument, otherwise leave
> +# it blank, since O=. will create an unnecessary ./source softlink
> +OUTPUT_ARG=""
> +if [ "$OUTPUT" != "." ] ; then
> + OUTPUT_ARG="O=$OUTPUT"
> +fi
> +
> +
> # Use the merged file as the starting point for:
> # alldefconfig: Fills in any missing symbols with Kconfig default
> # allnoconfig: Fills in any missing symbols with # CONFIG_* is not set
> -make KCONFIG_ALLCONFIG=$TMP_FILE O=$OUTPUT $ALLTARGET
> +make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET
>
>
> # Check all specified config values took (might have missed-dependency issues)
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] merge_config.sh: Avoid creating unnessary source softlinks
2013-04-05 15:26 ` Darren Hart
@ 2013-04-10 8:57 ` Michal Marek
0 siblings, 0 replies; 3+ messages in thread
From: Michal Marek @ 2013-04-10 8:57 UTC (permalink / raw)
To: Darren Hart
Cc: John Stultz, linux-kernel, Zhangfei Gao, Viresh Kumar,
Bruce Ashfield
On Fri, Apr 05, 2013 at 08:26:56AM -0700, Darren Hart wrote:
>
>
> On 04/04/2013 12:02 PM, John Stultz wrote:
> > Viresh noticed when using merge_config.sh that a source softlink
> > was being created even when he didn't specify the -O option.
> >
> > The problem arises due to the previous commit 409f117e2d6b
> > which added the -O option. Basically if -O is not specified,
> > we still pass '-O=.' to the make command, which then generates
> > a source softlink to ./
> >
> > This patch adds an extra check so if there is no -O specified
> > to merge_config.sh, we don't pass one on to make.
> >
> > Cc: Zhangfei Gao <zhangfei.gao@linaro.org>
> > Cc: Viresh Kumar <viresh.kumar@linaro.org>
> > Cc: Michal Marek <mmarek@suse.cz>
> > Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
> > Cc: Darren Hart <dvhart@linux.intel.com>
> > Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
> > Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
> > Signed-off-by: John Stultz <john.stultz@linaro.org>
>
> Thanks John!
>
> Acked-by: Darren Hart <dvhart@linux.intel.com>
Added to kbuild.git#kconfig.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-10 8:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 19:02 [PATCH] merge_config.sh: Avoid creating unnessary source softlinks John Stultz
2013-04-05 15:26 ` Darren Hart
2013-04-10 8:57 ` Michal Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.