Commit 5e31ce37 authored by Alessandro Rubini's avatar Alessandro Rubini

build: provide a fix for local pathnames in configs

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 4e495868
#!/bin/sh
#
# Please run this script any time you copy a buildroot config in here.
# This removes references to the location where wr-switch-sw is run,
# so the configuration file can be used elsewhere.
configs_dir=$(dirname $0)
wr_switch_sw_dir=$(cd $configs_dir/../..; /bin/pwd)
grep -l "$wr_switch_sw_dir" $configs_dir/* |
while read fname; do
echo "Fixing $(basename $fname)"
sed -i "s,$wr_switch_sw_dir.*configs/buildroot,__WR_SWITCH_SW__," $fname
done
......@@ -993,14 +993,17 @@ and run @code{make menuconfig} (this the Buildroot configuration,
not the one of wr-switch-sw). After making your choices, copy back
the file @code{.config} to @t{configs/buildroot} in this package,
so you can select it by running @t{make menuconfig} in wr-switch-sw.
Otherwise, the saved configuration file can be selected as a full
path name in @i{menuconfig}.
Then, please run @t{configs/buildroot/RUNME} (without arguments)
in order to remove your local pathnames in the configuration file;
the file without local pathnames can be committed and published for
other people to use.
You can also set @code{WRS_BUILDROOT_CONFIG} to the full pathname of
your configuration file of choice (this used to be the only way
to pass a custom configuration file). The file must be a copy of the
@code{.config} after the @code{make menuconfig} step described above,
withing buildroot.
within buildroot.
Note that if the variable is not pointing to a regular file it is
ignored with a simple warning -- rather than stopping the build procedure.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment