OSDN Git Service

envsetup: set OUT_DIR to an absolute path always
authorChirayu Desai <chirayudesai1@gmail.com>
Thu, 27 Sep 2012 12:41:25 +0000 (18:11 +0530)
committerMichael Bestas <mikeioannina@gmail.com>
Sat, 31 Dec 2016 18:16:44 +0000 (20:16 +0200)
commit5e06fcc68d6419dc4ecc39289e31f53f501c4a21
tree9375b1c4fd638a308a2912890de2e16711b5811d
parentd843b9c43f32d0c5b2482af327b504023fa7cf83
envsetup: set OUT_DIR to an absolute path always

OUT_DIR was set to $(TOPDIR)out previously,
but $(TOPDIR) was null, so it was a relative path.
This broke releasetools, inline kernel building, etc
since they require absolute paths.
Fix it so that it is set to $(shell readlink -f .)/out
if $(TOPDIR) is null.

Also remove hacks which checked if (OUT_DIR) was out
and changed it to $(ANDROID_BUILD_TOP)/out to workaround
the aforementioned problem.

Change-Id: I459a3b1325a1bbea0565cd73f6acf160d4ed9b39

build: work around missing readlink -f on Mac

Change-Id: I5d56366cf33a2b02f1886c87815d00cff279779d

envsetup: use $(CURDIR) for getting current directory

Change-Id: I5f00faf64ec31d86dd2e48ec038748ce8499380b
core/envsetup.mk