mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
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 <[email protected]> Cc: Michael Welling <[email protected]> Cc: Markus Pargmann <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
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
|