forked from openkylin/platform_build
envsetup.sh: cd to toplevel in get_build_var
dumpvar doesn't work right if we're not called from the toplevel; due to the way the build system works internally, -C does not suffice. This was already done in get_abs_build_var. Redundant -C calls removed since we're at the toplevel already. Change-Id: Iaaa48982547d099186922cc3ddc417a82c85e9a5 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
3d3dd4a186
commit
6905e2163f
|
@ -34,7 +34,7 @@ function get_abs_build_var()
|
|||
return
|
||||
fi
|
||||
(\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.
|
||||
|
@ -45,8 +45,8 @@ function get_build_var()
|
|||
echo "Couldn't locate the top of the tree. Try setting TOP." >&2
|
||||
return
|
||||
fi
|
||||
CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
|
||||
make --no-print-directory -C "$T" -f build/core/config.mk dumpvar-$1
|
||||
(\cd $T; CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
|
||||
make --no-print-directory -f build/core/config.mk dumpvar-$1)
|
||||
}
|
||||
|
||||
# check to see if the supplied product is one we can build
|
||||
|
|
Loading…
Reference in New Issue