diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/oe-setup-builddir | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir index e3c8c6d437..a13860c7d9 100755 --- a/scripts/oe-setup-builddir +++ b/scripts/oe-setup-builddir | |||
| @@ -34,16 +34,6 @@ chmod -st "$BUILDDIR/conf" 2>/dev/null || echo "WARNING: unable to chmod $BUILDD | |||
| 34 | 34 | ||
| 35 | cd "$BUILDDIR" || die "Failed to change directory to $BUILDDIR!" | 35 | cd "$BUILDDIR" || die "Failed to change directory to $BUILDDIR!" |
| 36 | 36 | ||
| 37 | if [ -z "$TEMPLATECONF" ] && [ -f "$BUILDDIR/conf/templateconf.cfg" ]; then | ||
| 38 | TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg") | ||
| 39 | # The following two are no longer valid; unsetting them will automatically get them replaced | ||
| 40 | # with correct ones. | ||
| 41 | if [ "$TEMPLATECONF" = meta/conf ] || [ "$TEMPLATECONF" = meta-poky/conf ]; then | ||
| 42 | unset TEMPLATECONF | ||
| 43 | rm "$BUILDDIR/conf/templateconf.cfg" | ||
| 44 | fi | ||
| 45 | fi | ||
| 46 | |||
| 47 | . "$OEROOT/.templateconf" | 37 | . "$OEROOT/.templateconf" |
| 48 | 38 | ||
| 49 | # Keep the original TEMPLATECONF before possibly prefixing it with $OEROOT below. | 39 | # Keep the original TEMPLATECONF before possibly prefixing it with $OEROOT below. |
| @@ -132,4 +122,6 @@ fi | |||
| 132 | [ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF" | 122 | [ ! -r "$OECORENOTESCONF" ] || cat "$OECORENOTESCONF" |
| 133 | unset OECORENOTESCONF | 123 | unset OECORENOTESCONF |
| 134 | 124 | ||
| 135 | echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg" | 125 | if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then |
| 126 | echo "$ORG_TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg" | ||
| 127 | fi | ||
