aboutsummaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-28 16:41:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-28 18:10:51 +0200
commit29902d75cff05eb43e9a2aac40599e4023c605b3 (patch)
treea6c2d86094299eab69df5b81be662f2a5a4843f4 /autobuild/agl
parentf5df816bd35ab9cd68a1729a5973297c0049d1c0 (diff)
Autobuild scripts directory execution proof
autobuild scripts can be executed from anywhere we should always have the build directory at the project root path. Change-Id: I4b4be077c4ea986e054deb21f0b8a07d2db5e131 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'autobuild/agl')
-rwxr-xr-xautobuild/agl/autobuild.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/autobuild/agl/autobuild.in b/autobuild/agl/autobuild.in
index dd341c4..dc3bdec 100755
--- a/autobuild/agl/autobuild.in
+++ b/autobuild/agl/autobuild.in
@@ -14,10 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-BUILD_DIR := @PROJECT_BINARY_DIR@
-PACKAGING_DIR := @PROJECT_PKG_ENTRY_POINT@
-
-VPATH = etc:$(PACKAGING_DIR):$(PACKAGING_DIR)/etc:$(BUILD_DIR)
+THISFILE := $(lastword $(MAKEFILE_LIST))
+BUILD_DIR := $(abspath $(dir $(THISFILE)/../../../../..)/build)
.PHONY: all clean distclean configure build package