Messages in this thread Patch in this message | | | From | Michal Sojka <> | Subject | [PATCH v5 2/3] usb: Rename usb-common.c | Date | Fri, 29 Aug 2014 15:07:42 +0200 |
| |
In the next commit, we will want the usb-common module to be composed of two object files. Since Kbuild cannot "append" another object to an existing one, we need to rename usb-common.c to something else (common.c) and create usb-common.o by linking the wanted objects together. Currently, usb-common.o comprises only common.o.
Signed-off-by: Michal Sojka <sojka@merica.cz> --- drivers/usb/common/Makefile | 4 +++- drivers/usb/common/{usb-common.c => common.c} | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename drivers/usb/common/{usb-common.c => common.c} (100%)
diff --git a/drivers/usb/common/Makefile b/drivers/usb/common/Makefile index 7526461..052c120 100644 --- a/drivers/usb/common/Makefile +++ b/drivers/usb/common/Makefile @@ -2,5 +2,7 @@ # Makefile for the usb common parts. # -obj-$(CONFIG_USB_COMMON) += usb-common.o +obj-$(CONFIG_USB_COMMON) += usb-common.o +usb-common-y += common.o + obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o diff --git a/drivers/usb/common/usb-common.c b/drivers/usb/common/common.c similarity index 100% rename from drivers/usb/common/usb-common.c rename to drivers/usb/common/common.c -- 2.1.0
| |