diff options
| author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-09-06 18:43:34 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-08 14:59:39 +0100 |
| commit | 821cf70f093663b29eb9e8e25b3e148e28dc1421 (patch) | |
| tree | 70085140ae63367e244b02a0d5fb496e38d54c35 | |
| parent | 5db679c9173df1435a4437a6ac3eb24874309974 (diff) | |
| download | poky-821cf70f093663b29eb9e8e25b3e148e28dc1421.tar.gz | |
oe-setup-builddir: Keep templateconf.cfg relative if $TEMPLATECONF is
Before commit 7b96dc80 (scripts/oe-setup-builddir: write to
conf/templateconf.cfg after the build is set up), the path written to
templateconf.cfg was relative if $TEMPLATECONF was relative, but
afterwards it became absolute.
Restore the original behavior of saving the relative path to
templateconf.cfg.
(From OE-Core rev: 49e75009780a09873dc3987ae1c40f2ac95bc667)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | scripts/oe-setup-builddir | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir index b06880c9cb..201cea30bf 100755 --- a/scripts/oe-setup-builddir +++ b/scripts/oe-setup-builddir | |||
| @@ -46,7 +46,10 @@ fi | |||
| 46 | 46 | ||
| 47 | . "$OEROOT/.templateconf" | 47 | . "$OEROOT/.templateconf" |
| 48 | 48 | ||
| 49 | # | 49 | # Keep the original TEMPLATECONF before possibly prefixing it with $OEROOT below. |
| 50 | ORG_TEMPLATECONF=$TEMPLATECONF | ||
| 51 | |||
| 52 | # | ||
| 50 | # $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf | 53 | # $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf |
| 51 | # | 54 | # |
| 52 | if [ -n "$TEMPLATECONF" ]; then | 55 | if [ -n "$TEMPLATECONF" ]; then |
| @@ -131,5 +134,5 @@ fi | |||
| 131 | unset OECORENOTESCONF | 134 | unset OECORENOTESCONF |
| 132 | 135 | ||
| 133 | if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then | 136 | if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then |
| 134 | echo "$TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg" | 137 | echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg" |
| 135 | fi | 138 | fi |
