summaryrefslogtreecommitdiff
path: root/utils/imxtools/hwemul/tools/Makefile
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-11-14 12:51:51 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-11-14 12:51:51 +0100
commitf44d95630c1629627b99a2ccf06b434d23027bb3 (patch)
treeb93bef2c03028e0af42e840a6e5944eead2c082b /utils/imxtools/hwemul/tools/Makefile
parentec2153f2dd265129c69c690f9c6c19b61ba9bf18 (diff)
downloadrockbox-f44d95630c1629627b99a2ccf06b434d23027bb3.tar.gz
rockbox-f44d95630c1629627b99a2ccf06b434d23027bb3.zip
imxtools: introduce hwemul
The hwemul tool is a small binary blob running on the device that can received commands over USB. It is mainly intended to be loaded using the recory mode and allows to read/write registers, memory, use the OTP device, ... The tool is split into three parts: dev/ contains the actual blob (which handles both imx233 and stmp3700), lib/ contains the communication library and can also use the register description produced by the regtools/ to ease register by name, tools/ contains an interactive tool to send commands to the device when running the blob. Change-Id: Ie8cb32e987f825d8ed750d48071e43415b4dacb3
Diffstat (limited to 'utils/imxtools/hwemul/tools/Makefile')
-rw-r--r--utils/imxtools/hwemul/tools/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/imxtools/hwemul/tools/Makefile b/utils/imxtools/hwemul/tools/Makefile
new file mode 100644
index 0000000000..80a2f405bb
--- /dev/null
+++ b/utils/imxtools/hwemul/tools/Makefile
@@ -0,0 +1,22 @@
1CC=gcc
2AR=ar
3HWEMUL_LIB_DIR=../lib
4CFLAGS=-W -Wall -O2 `pkg-config --cflags libusb-1.0` -std=c99 -g -I$(HWEMUL_LIB_DIR)
5LDFLAGS=`pkg-config --libs libusb-1.0`
6EXEC=hwemul_tool
7HWEMUL_LIB=$(HWEMUL_LIB_DIR)/libhwemul.a
8SRC=$(wildcard *.c)
9OBJ=$(SRC:.c=.o)
10
11all: $(EXEC)
12
13%.o: %.c
14 $(CC) $(CFLAGS) -c -o $@ $<
15
16hwemul_tool: hwemul_tool.o $(HWEMUL_LIB)
17 $(CC) $(LDFLAGS) -o $@ $^
18
19clean:
20 rm -rf $(OBJ) $(LIB)
21
22