From 83fa2cb53742f43c3a254d0453bd96048ee29a82 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Fri, 25 May 2018 16:31:32 +0100 Subject: configfs: Provide configfs support Parse a configuration name from the commandline, and utilise it to identify the configfs configuration path. Only the short-name (i.e. "uvc.1") is necessary to provide if there is no ambiguity regarding the gadget, otherwise the gadget path should be included ("g1/functions/uvc.1"). If the parameter is not provided then the first function is utilised. Legacy g_webcam is still supported, and the parameter will define the UDC to match against if provided. Signed-off-by: Kieran Bingham Signed-off-by: Laurent Pinchart --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5a5e8f5..4c5d498 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,15 @@ KERNEL_INCLUDE := -I$(KERNEL_DIR)/include -I$(KERNEL_DIR)/arch/$(ARCH)/include CFLAGS := -W -Wall -g $(KERNEL_INCLUDE) LDFLAGS := -g +OBJS := \ + configfs.o \ + events.o \ + uvc-gadget.o \ + v4l2.o + all: uvc-gadget -uvc-gadget: events.o uvc-gadget.o v4l2.o +uvc-gadget: $(OBJS) $(CC) $(LDFLAGS) -o $@ $^ clean: -- cgit v1.2.3