mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
6dd89010ff
Add override for lib.mk clean to fix the following warnings from clean target run. Makefile:11: warning: overriding recipe for target 'clean' ../lib.mk:55: warning: ignoring old recipe for target 'clean' Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
25 lines
596 B
Makefile
25 lines
596 B
Makefile
|
|
TEST_PROGS := gpio-mockup.sh
|
|
TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES)
|
|
BINARIES := gpio-mockup-chardev
|
|
|
|
include ../lib.mk
|
|
|
|
all: $(BINARIES)
|
|
|
|
override define CLEAN
|
|
$(RM) $(BINARIES)
|
|
endef
|
|
|
|
CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/
|
|
LDLIBS += -lmount -I/usr/include/libmount
|
|
|
|
$(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h
|
|
|
|
../../../gpio/gpio-utils.o:
|
|
make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio
|
|
|
|
../../../../usr/include/linux/gpio.h:
|
|
make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/
|
|
|