]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: gadget: Clean up Makefile ifdeffery
authorMarek Vasut <marex@denx.de>
Tue, 23 Aug 2022 17:06:51 +0000 (19:06 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 10 Oct 2022 16:08:18 +0000 (18:08 +0200)
commit7cc1af902dfad290ab39b0ee52128b18d83a151a
tree59796afd1b83f4a15a8dddc4b520e19730fdbbc7
parentfcb670b794c9839c026757bf2d5cd564323ce199
usb: gadget: Clean up Makefile ifdeffery

Take the USB_ETHER ifdef block apart and make use of obj-$(VAR) instead
to include the source files in build. The duplicate CI_UDC entry is now
removed, the USB_DEVICE ifdef is now reduced to core.o ep.o addition,
the ether.o can be conditionally compiled in using USB_ETHER.

No functional change.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/usb/gadget/Makefile