From 76ec318118106cb25d762de83857f6579c13e273 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 27 Aug 2021 03:06:13 +0200 Subject: yocto rename --- yocto/meta-bsp-rvphone/recipes-bsp/esp32spid/src/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 yocto/meta-bsp-rvphone/recipes-bsp/esp32spid/src/Makefile (limited to 'yocto/meta-bsp-rvphone/recipes-bsp/esp32spid/src/Makefile') diff --git a/yocto/meta-bsp-rvphone/recipes-bsp/esp32spid/src/Makefile b/yocto/meta-bsp-rvphone/recipes-bsp/esp32spid/src/Makefile new file mode 100644 index 0000000..fcecbd5 --- /dev/null +++ b/yocto/meta-bsp-rvphone/recipes-bsp/esp32spid/src/Makefile @@ -0,0 +1,15 @@ +#CFLAGS = +LDFLAGS = -pthread -lgpiod +TARGET = esp32spid +obj = msgq.o spi.o tun.o + +all: $(TARGET) + +%.o: %.c %.h + $(CC) $(CFLAGS) -c $< + +$(TARGET): $(obj) + $(CC) $(obj) $(LDFLAGS) -o $@ + +clean: + rm -f $(TARGET) *.o -- cgit v1.2.3