summaryrefslogtreecommitdiff
path: root/debugger
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2011-10-31 13:36:50 -0700
committerBen Widawsky <ben@bwidawsk.net>2011-10-31 17:34:16 -0700
commit15830ea54be914b1f4005154b2dcba52fa6b6120 (patch)
tree0df8cf67ee927e2b1b4aa07b653cb72776950217 /debugger
parent32910231514d938be269c3b087f0d444709b0466 (diff)
i-g-t/debugger: Only allow the shader debugger if the user has specified a gen4asm
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'debugger')
-rw-r--r--debugger/system_routine/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/debugger/system_routine/Makefile b/debugger/system_routine/Makefile
index 3b071e03..8cb43c63 100644
--- a/debugger/system_routine/Makefile
+++ b/debugger/system_routine/Makefile
@@ -27,8 +27,7 @@ OBJCOPY?=objcopy
PRECPP=./pre_cpp.py
CPP_FLAGS=-x assembler-with-cpp -P
-GEN_AS?=~/intel-gfx/intel-gen4asm/src/intel-gen4asm
-GEN_AS_FLAGS?=-g6 -a -b
+GEN4ASM_FLAGS?=-g6 -a -b
TEMP:=$(shell mktemp)
TEMP2:=$(shell mktemp)
@@ -41,7 +40,7 @@ all: sr
sr.c: sr.g4a eviction_macro evict.h
$(PRECPP) $^ > $(TEMP)
$(CPP) $(CPP_FLAGS) $(DEFINES) -o $(TEMP2) $(TEMP)
- $(GEN_AS) $(GEN_AS_FLAGS) $(TEMP2) -o $@
+ $(GEN4ASM) $(GEN4ASM_FLAGS) $(TEMP2) -o $@
sr : sr.o
$(OBJCOPY) -O binary -K gen_eu_bytes $^ $@
@@ -51,7 +50,7 @@ sr : sr.o
test.c: test.g4a
$(PRECPP) $^ > $(TEMP)
$(CPP) $(CPP_FLAGS) $(DEFINES) -o $(TEMP2) $(TEMP)
- $(GEN_AS) $(GEN_AS_FLAGS) $(TEMP2) -o $@
+ $(GEN4ASM) $(GEN4ASM_FLAGS) $(TEMP2) -o $@
test : test.o
$(OBJCOPY) -O binary -K gen_eu_bytes $^ $@
@@ -59,7 +58,7 @@ test : test.o
helper: sr.g4a eviction_macro
$(PRECPP) $^ > help
$(CPP) $(CPP_FLAGS) $(DEFINES) -o help2 help
- $(GEN_AS) $(GEN_AS_FLAGS) help2 -o $@
+ $(GEN4ASM) $(GEN4ASM_FLAGS) help2 -o $@
eviction_macro :