Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ccb437d authored by Ying Wang's avatar Ying Wang Committed by Gerrit Code Review
Browse files

Merge "envsetup.sh: cd to toplevel in get_build_var"

parents 3d3dd4a1 6905e216
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ function get_abs_build_var()
        return
        return
    fi
    fi
    (\cd $T; CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
    (\cd $T; CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
      make --no-print-directory -C "$T" -f build/core/config.mk dumpvar-abs-$1)
      make --no-print-directory -f build/core/config.mk dumpvar-abs-$1)
}
}


# Get the exact value of a build variable.
# Get the exact value of a build variable.
@@ -45,8 +45,8 @@ function get_build_var()
        echo "Couldn't locate the top of the tree.  Try setting TOP." >&2
        echo "Couldn't locate the top of the tree.  Try setting TOP." >&2
        return
        return
    fi
    fi
    CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
    (\cd $T; CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
      make --no-print-directory -C "$T" -f build/core/config.mk dumpvar-$1
      make --no-print-directory -f build/core/config.mk dumpvar-$1)
}
}


# check to see if the supplied product is one we can build
# check to see if the supplied product is one we can build