summaryrefslogtreecommitdiff
path: root/util/m5/Makefile.sparc
diff options
context:
space:
mode:
authorKevin Brodsky <kevin.brodsky@arm.com>2018-09-18 15:20:04 +0100
committerCiro Santilli <ciro.santilli@arm.com>2018-09-26 13:12:12 +0000
commit7a6183aa6162419912daa5647d13f030ab0904e2 (patch)
tree17c1c8e7253608029cafd62bae5240143e0b883d /util/m5/Makefile.sparc
parenta470ef51456fe05e8d8ae6a95493e1da5a088a0d (diff)
downloadgem5-7a6183aa6162419912daa5647d13f030ab0904e2.tar.xz
util: Do not use $(PWD) in Makefiles
644e8cdf5ee7 ("util: Move the m5ops.h file to a shared directory") added include/ to the include path for m5 Makefiles, based on $(PWD): $(PWD)/../../include. Unfortunately, this breaks when using `make -C <path>`, as -C does not move PWD accordingly. The fix is simply to remove $(PWD), as a relative path is just fine here. Change-Id: Ia046c29761363b6670e52c52a604c7e70a6a305a Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com> Signed-off-by: Ciro Santilli <ciro.santilli@arm.com> Reviewed-by: Ciro Santilli <ciro.santilli@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/12844 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'util/m5/Makefile.sparc')
-rw-r--r--util/m5/Makefile.sparc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/m5/Makefile.sparc b/util/m5/Makefile.sparc
index e1b17ea2c..87c3d1532 100644
--- a/util/m5/Makefile.sparc
+++ b/util/m5/Makefile.sparc
@@ -35,7 +35,7 @@ CC=$(CROSS_COMPILE)gcc
AS=$(CROSS_COMPILE)as
LD=$(CROSS_COMPILE)ld
-CFLAGS=-O2 -m64 -I$(PWD)/../../include
+CFLAGS=-O2 -m64 -I../../include
OBJS=m5.o m5op_sparc.o m5_mmap.o
all: m5