mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
6d591c46bc
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>
13 lines
165 B
Makefile
13 lines
165 B
Makefile
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
|