1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 TEST_PROGS := gpio-mockup.sh gpio-sim.sh !! 3 VAR_CFLAGS := $(shell pkg-config --cflags mount 2>/dev/null) >> 4 VAR_LDLIBS := $(shell pkg-config --libs mount 2>/dev/null) >> 5 ifeq ($(VAR_LDLIBS),) >> 6 VAR_LDLIBS := -lmount -I/usr/include/libmount >> 7 endif >> 8 >> 9 CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ $(VAR_CFLAGS) >> 10 LDLIBS += $(VAR_LDLIBS) >> 11 >> 12 TEST_PROGS := gpio-mockup.sh 4 TEST_FILES := gpio-mockup-sysfs.sh 13 TEST_FILES := gpio-mockup-sysfs.sh 5 TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gp !! 14 TEST_GEN_PROGS_EXTENDED := gpio-mockup-chardev 6 CFLAGS += -O2 -g -Wall $(KHDR_INCLUDES) << 7 15 >> 16 KSFT_KHDR_INSTALL := 1 8 include ../lib.mk 17 include ../lib.mk >> 18 >> 19 GPIODIR := $(realpath ../../../gpio) >> 20 GPIOOUT := $(OUTPUT)/tools-gpio/ >> 21 GPIOOBJ := $(GPIOOUT)/gpio-utils.o >> 22 >> 23 CLEAN += ; $(RM) -rf $(GPIOOUT) >> 24 >> 25 $(TEST_GEN_PROGS_EXTENDED): $(GPIOOBJ) >> 26 >> 27 $(GPIOOUT): >> 28 mkdir -p $@ >> 29 >> 30 $(GPIOOBJ): $(GPIOOUT) >> 31 $(MAKE) OUTPUT=$(GPIOOUT) -C $(GPIODIR)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.