* [PATCH 0/2] Fix and adjustment to tools/fuzz
@ 2017-01-19 19:12 Wei Liu
2017-01-19 19:12 ` [PATCH 1/2] tools/fuzz: fix compilation after 897129d Wei Liu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Wei Liu @ 2017-01-19 19:12 UTC (permalink / raw)
To: Xen-devel; +Cc: Wei Liu, Ian Jackson
Wei Liu (2):
tools/fuzz: fix compilation after 897129d
tools/fuzz: make sure targets are always built
tools/fuzz/Makefile | 6 ++----
tools/fuzz/libelf/Makefile | 3 +++
tools/fuzz/x86_instruction_emulator/Makefile | 5 ++++-
3 files changed, 9 insertions(+), 5 deletions(-)
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] tools/fuzz: fix compilation after 897129d
2017-01-19 19:12 [PATCH 0/2] Fix and adjustment to tools/fuzz Wei Liu
@ 2017-01-19 19:12 ` Wei Liu
2017-01-19 19:12 ` [PATCH 2/2] tools/fuzz: make sure targets are always built Wei Liu
2017-01-20 10:30 ` [PATCH] tools/fuzz: remove redundant rule in x86 insn fuzzer Wei Liu
2 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2017-01-19 19:12 UTC (permalink / raw)
To: Xen-devel; +Cc: Wei Liu, Ian Jackson
We need to add -D__XEN_TOOLS__ so that the correct register names are
generated.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
tools/fuzz/x86_instruction_emulator/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/fuzz/x86_instruction_emulator/Makefile b/tools/fuzz/x86_instruction_emulator/Makefile
index a97f507..505de39 100644
--- a/tools/fuzz/x86_instruction_emulator/Makefile
+++ b/tools/fuzz/x86_instruction_emulator/Makefile
@@ -14,7 +14,7 @@ x86_emulate/x86_emulate.c x86_emulate/x86_emulate.h:
x86_emulate.c x86_emulate.h: %:
[ -L $* ] || ln -sf $(XEN_ROOT)/tools/tests/x86_emulator/$*
-CFLAGS += $(CFLAGS_xeninclude)
+CFLAGS += $(CFLAGS_xeninclude) -D__XEN_TOOLS__
x86_emulate.o: x86_emulate.c x86_emulate.h x86_emulate/x86_emulate.c x86_emulate/x86_emulate.h
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] tools/fuzz: make sure targets are always built
2017-01-19 19:12 [PATCH 0/2] Fix and adjustment to tools/fuzz Wei Liu
2017-01-19 19:12 ` [PATCH 1/2] tools/fuzz: fix compilation after 897129d Wei Liu
@ 2017-01-19 19:12 ` Wei Liu
2017-01-20 10:30 ` [PATCH] tools/fuzz: remove redundant rule in x86 insn fuzzer Wei Liu
2 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2017-01-19 19:12 UTC (permalink / raw)
To: Xen-devel; +Cc: Wei Liu, Ian Jackson
Invocation of `make' in top-level directory would end up invoking the
install target.
Adjust fuzzing target makefiles a bit so that they are always build in
that situation.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
tools/fuzz/Makefile | 6 ++----
tools/fuzz/libelf/Makefile | 3 +++
tools/fuzz/x86_instruction_emulator/Makefile | 3 +++
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/tools/fuzz/Makefile b/tools/fuzz/Makefile
index ce00b82..986fbb8 100644
--- a/tools/fuzz/Makefile
+++ b/tools/fuzz/Makefile
@@ -5,7 +5,5 @@ SUBDIRS-y :=
SUBDIRS-y += libelf
SUBDIRS-y += x86_instruction_emulator
-.PHONY: all clean distclean
-all clean distclean: %: subdirs-%
-
-install:
+.PHONY: all clean distclean install
+all clean distclean install: %: subdirs-%
diff --git a/tools/fuzz/libelf/Makefile b/tools/fuzz/libelf/Makefile
index 0e9d40a..c73ce44 100644
--- a/tools/fuzz/libelf/Makefile
+++ b/tools/fuzz/libelf/Makefile
@@ -29,3 +29,6 @@ distclean: clean
.PHONY: clean
clean:
rm -f *.o *.a
+
+.PHONY: install
+install: all
diff --git a/tools/fuzz/x86_instruction_emulator/Makefile b/tools/fuzz/x86_instruction_emulator/Makefile
index 505de39..20431b0 100644
--- a/tools/fuzz/x86_instruction_emulator/Makefile
+++ b/tools/fuzz/x86_instruction_emulator/Makefile
@@ -34,3 +34,6 @@ distclean: clean
.PHONY: clean
clean:
rm -f *.a *.o
+
+.PHONY: install
+install: all
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] tools/fuzz: remove redundant rule in x86 insn fuzzer
2017-01-19 19:12 [PATCH 0/2] Fix and adjustment to tools/fuzz Wei Liu
2017-01-19 19:12 ` [PATCH 1/2] tools/fuzz: fix compilation after 897129d Wei Liu
2017-01-19 19:12 ` [PATCH 2/2] tools/fuzz: make sure targets are always built Wei Liu
@ 2017-01-20 10:30 ` Wei Liu
2 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2017-01-20 10:30 UTC (permalink / raw)
To: Xen-devel; +Cc: Wei Liu, Ian Jackson
The predefined pattern rule works.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
tools/fuzz/x86_instruction_emulator/Makefile | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/fuzz/x86_instruction_emulator/Makefile b/tools/fuzz/x86_instruction_emulator/Makefile
index 20431b0..1777bf6 100644
--- a/tools/fuzz/x86_instruction_emulator/Makefile
+++ b/tools/fuzz/x86_instruction_emulator/Makefile
@@ -21,8 +21,6 @@ x86_emulate.o: x86_emulate.c x86_emulate.h x86_emulate/x86_emulate.c x86_emulate
x86-insn-emulator.a: x86_emulate.o
$(AR) rc $@ $^
-x86-insn-emulator-fuzzer.o: x86-insn-emulator-fuzzer.c
-
# Common targets
.PHONY: all
all: x86-instruction-emulator-fuzzer-all
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-20 10:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-19 19:12 [PATCH 0/2] Fix and adjustment to tools/fuzz Wei Liu
2017-01-19 19:12 ` [PATCH 1/2] tools/fuzz: fix compilation after 897129d Wei Liu
2017-01-19 19:12 ` [PATCH 2/2] tools/fuzz: make sure targets are always built Wei Liu
2017-01-20 10:30 ` [PATCH] tools/fuzz: remove redundant rule in x86 insn fuzzer Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).