diff options
author | Anas Nashif <anas.nashif@intel.com> | 2015-11-27 10:04:08 -0500 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:24:54 -0500 |
commit | 182a646c0d6e64114ab90b9d4808966a0842564f (patch) | |
tree | 9eafab5d7ade3f55eeb7716aefa29bebe0d3afce /Makefile.inc | |
parent | 1efdcaad47eca404a24c744cb5aa421fed33b16a (diff) |
build: use realpath instead of readlink -f
readlink is not portable and does not work the same way on different
platforms, use Make realpath instead.
Change-Id: I5348000b624d8ac76c2c409962dd1930761ed6ce
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc index 371733007..963eddfcc 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -8,9 +8,9 @@ O ?= $(PROJECT_BASE)/outdir # Turn O into an absolute path; we call the main Kbuild with $(MAKE) -C # which changes the working directory, relative paths don't work right. -# Need to create the directory first to make readlink happy +# Need to create the directory first to make realpath happy $(shell mkdir -p $(O)) -override O := $(shell readlink -f $(O)) +override O := $(realpath $(O)) export ARCH MDEF_FILE QEMU_EXTRA_FLAGS PROJECT_BASE |