diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-17 12:01:46 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-24 15:34:19 +0100 |
commit | 07bc348c914f04657b284cb1ace92df8ef3a15d9 (patch) | |
tree | 6c40fee0321f9ae2f51a774fed9720194644364a /utils/hwstub/tools/Makefile | |
parent | f4091be1d304b3ab996f7ac9f528e9a7fb9cf09b (diff) | |
download | rockbox-07bc348c914f04657b284cb1ace92df8ef3a15d9.tar.gz rockbox-07bc348c914f04657b284cb1ace92df8ef3a15d9.zip |
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
Diffstat (limited to 'utils/hwstub/tools/Makefile')
-rw-r--r-- | utils/hwstub/tools/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
9 | CFLAGS=-Wall -O2 -std=c99 -g $(INCLUDES) -D_XOPEN_SOURCE=600 | 9 | CFLAGS=-Wall -O2 -std=c99 -g $(INCLUDES) -D_XOPEN_SOURCE=600 |
10 | CXXFLAGS=-Wall -O2 -std=c++11 -g $(INCLUDES) | 10 | CXXFLAGS=-Wall -O2 -std=c++11 -g $(INCLUDES) |
11 | 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 | 11 | 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 |
12 | EXEC=hwstub_shell hwstub_load hwstub_server hwstub_test | 12 | EXEC=hwstub_shell hwstub_load hwstub_server hwstub_test hwstub_dump |
13 | SRC=$(wildcard *.c) | 13 | SRC=$(wildcard *.c) |
14 | SRCXX=$(wildcard *.cpp) | 14 | SRCXX=$(wildcard *.cpp) |
15 | OBJ=$(SRC:.c=.o) $(SRCXX:.cpp=.o) | 15 | OBJ=$(SRC:.c=.o) $(SRCXX:.cpp=.o) |
@@ -38,6 +38,9 @@ hwstub_shell: hwstub_shell.o prompt.o $(LIBS) | |||
38 | hwstub_load: hwstub_load.o $(LIBS) | 38 | hwstub_load: hwstub_load.o $(LIBS) |
39 | $(LD) -o $@ $^ $(LDFLAGS) | 39 | $(LD) -o $@ $^ $(LDFLAGS) |
40 | 40 | ||
41 | hwstub_dump: hwstub_dump.o $(LIBS) | ||
42 | $(LD) -o $@ $^ $(LDFLAGS) | ||
43 | |||
41 | hwstub_server: hwstub_server.o $(LIBS) | 44 | hwstub_server: hwstub_server.o $(LIBS) |
42 | $(LD) -o $@ $^ $(LDFLAGS) | 45 | $(LD) -o $@ $^ $(LDFLAGS) |
43 | 46 | ||