1 # SPDX-License-Identifier: GPL-2.0 << 2 1 3 TEST_PROGS := gpio-mockup.sh gpio-sim.sh !! 2 TEST_PROGS := gpio-mockup.sh 4 TEST_FILES := gpio-mockup-sysfs.sh !! 3 TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES) 5 TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gp !! 4 BINARIES := gpio-mockup-chardev 6 CFLAGS += -O2 -g -Wall $(KHDR_INCLUDES) !! 5 EXTRA_PROGS := ../gpiogpio-event-mon ../gpiogpio-hammer ../gpiolsgpio >> 6 EXTRA_DIRS := ../gpioinclude/ >> 7 EXTRA_OBJS := ../gpiogpio-event-mon-in.o ../gpiogpio-event-mon.o >> 8 EXTRA_OBJS += ../gpiogpio-hammer-in.o ../gpiogpio-utils.o ../gpiolsgpio-in.o >> 9 EXTRA_OBJS += ../gpiolsgpio.o 7 10 8 include ../lib.mk 11 include ../lib.mk >> 12 >> 13 all: $(BINARIES) >> 14 >> 15 override define CLEAN >> 16 $(RM) $(BINARIES) $(EXTRA_PROGS) $(EXTRA_OBJS) >> 17 $(RM) -r $(EXTRA_DIRS) >> 18 endef >> 19 >> 20 CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ >> 21 LDLIBS += -lmount -I/usr/include/libmount >> 22 >> 23 $(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h >> 24 >> 25 ../../../gpio/gpio-utils.o: >> 26 make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio >> 27 >> 28 ../../../../usr/include/linux/gpio.h: >> 29 make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/ >> 30
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.