summaryrefslogtreecommitdiff
path: root/tools/gpio/Makefile
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-10-21 15:45:54 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-02-09 11:09:48 +0100
commit6d591c46bce037696d173bd5c8461b2b4bb680ad (patch)
tree5b7d5e0004de27d1451f38e3e1ddf99837e5d615 /tools/gpio/Makefile
parent3c702e9987e261042a07e43460a8148be254412e (diff)
tools/gpio: create GPIO tools
This creates GPIO tools under tools/gpio/* and adds a single example program to list the GPIOs on a system. When proper devices are created it provides this minimal output: Cc: Johan Hovold <johan@kernel.org> Cc: Michael Welling <mwelling@ieee.org> Cc: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/gpio/Makefile')
-rw-r--r--tools/gpio/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile
new file mode 100644
index 000000000000..4d198d5c4203
--- /dev/null
+++ b/tools/gpio/Makefile
@@ -0,0 +1,12 @@
+CC = $(CROSS_COMPILE)gcc
+CFLAGS += -Wall -g -D_GNU_SOURCE
+
+all: lsgpio
+
+lsgpio: lsgpio.o gpio-utils.o
+
+%.o: %.c gpio-utils.h
+
+.PHONY: clean
+clean:
+ rm -f *.o lsgpio