From 07bc348c914f04657b284cb1ace92df8ef3a15d9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 17 Jan 2017 12:01:46 +0100 Subject: hwstub: add tool to dump memory regions (such as ROM, RAM, or peripherals) Although this case be done with hwstub_shell, this is common enough to deserve its own tool. Change-Id: I9253e40850f37257464548a3acefb14ea083841d --- utils/hwstub/tools/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/hwstub/tools/Makefile') diff --git a/utils/hwstub/tools/Makefile b/utils/hwstub/tools/Makefile index 15585bc097..6f1e3181e3 100644 --- a/utils/hwstub/tools/Makefile +++ b/utils/hwstub/tools/Makefile @@ -9,7 +9,7 @@ INCLUDES=-I$(HWSTUB_INCLUDE_DIR) -I$(REGTOOLS_INCLUDE_DIR) `pkg-config --cflags CFLAGS=-Wall -O2 -std=c99 -g $(INCLUDES) -D_XOPEN_SOURCE=600 CXXFLAGS=-Wall -O2 -std=c++11 -g $(INCLUDES) LDFLAGS=-lhwstub `pkg-config --libs libusb-1.0` `pkg-config --libs lua5.2` -lreadline -L$(HWSTUB_LIB_DIR) -L$(REGTOOLS_LIB_DIR) -lsocdesc `xml2-config --libs` -pthread -EXEC=hwstub_shell hwstub_load hwstub_server hwstub_test +EXEC=hwstub_shell hwstub_load hwstub_server hwstub_test hwstub_dump SRC=$(wildcard *.c) SRCXX=$(wildcard *.cpp) OBJ=$(SRC:.c=.o) $(SRCXX:.cpp=.o) @@ -38,6 +38,9 @@ hwstub_shell: hwstub_shell.o prompt.o $(LIBS) hwstub_load: hwstub_load.o $(LIBS) $(LD) -o $@ $^ $(LDFLAGS) +hwstub_dump: hwstub_dump.o $(LIBS) + $(LD) -o $@ $^ $(LDFLAGS) + hwstub_server: hwstub_server.o $(LIBS) $(LD) -o $@ $^ $(LDFLAGS) -- cgit v1.2.3