Drivers: hid: Makefile: Cleaned up Makefile
PATCH 1/2 Drivers: hid: Makefile: Cleaned up Makefile
Changed Makefile to use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).
--- drivers/hid/Makefile | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/hid/Makefile +6 -6
@@ -1,7 +1,7 @@ # # Makefile for the HID driver # -hid-objs := hid-core.o hid-input.o +hid-y := hid-core.o hid-input.o ifdef CONFIG_DEBUG_FS hid-objs += hid-debug.o
@@ -11,18 +11,18 @@ obj-$(CONFIG_HID) += hid.o hid-$(CONFIG_HIDRAW) += hidraw.o -hid-logitech-objs := hid-lg.o +hid-logitech-y := hid-lg.o ifdef CONFIG_LOGITECH_FF - hid-logitech-objs += hid-lgff.o + hid-logitech-y += hid-lgff.o endif ifdef CONFIG_LOGIRUMBLEPAD2_FF - hid-logitech-objs += hid-lg2ff.o + hid-logitech-y += hid-lg2ff.o endif ifdef CONFIG_LOGIG940_FF - hid-logitech-objs += hid-lg3ff.o + hid-logitech-y += hid-lg3ff.o endif ifdef CONFIG_LOGIWII_FF - hid-logitech-objs += hid-lg4ff.o + hid-logitech-y += hid-lg4ff.o endif obj-$(CONFIG_HID_3M_PCT) += hid-3m-pct.o
Signature · 1 line
1.7.3.1.104.gc752e
PATCH 2/2 Drivers: hid: usbhid: Makefile: Cleaned up Makefile
Changed Makefile to use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).
--- drivers/hid/usbhid/Makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/hid/usbhid/Makefile +3 -3
@@ -3,15 +3,15 @@ # # Multipart objects. -usbhid-objs := hid-core.o hid-quirks.o +usbhid-y := hid-core.o hid-quirks.o # Optional parts of multipart objects. ifeq ($(CONFIG_USB_HIDDEV),y) - usbhid-objs += hiddev.o + usbhid-y += hiddev.o endif ifeq ($(CONFIG_HID_PID),y) - usbhid-objs += hid-pidff.o + usbhid-y += hid-pidff.o endif obj-$(CONFIG_USB_HID) += usbhid.o
Signature · 1 line
1.7.3.1.104.gc752e
Quoted 3 lines · Tracey Dent
Changed
Makefileto use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).
Actually, where exactly does this file document it?
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.
Quoted 8 lines · Jiri Kosina
Quoted 3 lines · Tracey Dent
Changed
Makefileto use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).Actually, where exactly does this file document it?
It documents how it should be done in the section entitled --- 3.7 Compilation flags (which starts on line 284).
Quoted 6 lines
Thanks,
--
Jiri Kosina
SUSE Labs, Novell Inc.
regards
Tracey Dent
Quoted 4 lines · Tracey Dent
Changed
Makefileto use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).Signed-off-by Tracey Dent <[email protected]>
Re: [PATCH 2/2] Drivers: hid: usbhid: Makefile: Cleaned up Makefile
In reply to Tracey DentQuoted 4 lines · Tracey Dent
Changed
Makefileto use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).Signed-off-by Tracey Dent <[email protected]>
Thanks.
Quoted 7 lines · Tracey Dent
Quoted 6 lines · Jiri Kosina
Quoted 3 lines · Tracey Dent
Changed
Makefileto use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).
Quoted 6 lines
Quoted 2 lines
Actually, where exactly does this file document it?
It documents how it should be done in the section entitled --- 3.7 Compilation flags (which starts on line 284).
Actually the only reference I could find is in 3.3:
If a kernel module is built from several source files, you specify that you want to build a module in the same way as above; however, kbuild needs to know which object files you want to build your module from, so you have to tell it by setting a $(<module_name>-y) variable.
See commit 4f8272802739f5c6ce6b0a548810a181d2f1b652 for reasoning behind the change.
Thanks.
Signature · 1 line
Dmitry
Quoted 17 lines · Dmitry Torokhov
Quoted 7 lines · Tracey Dent
Quoted 6 lines · Jiri Kosina
Quoted 3 lines · Tracey Dent
Changed
Makefileto use <modules>-y instead of <modules>-objs because -objs is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).Quoted 6 lines
Quoted 2 lines
Actually, where exactly does this file document it?
It documents how it should be done in the section entitled --- 3.7 Compilation flags (which starts on line 284).
Actually the only reference I could find is in 3.3:
Quoted 9 lines
If a kernel module is built from several source files, you specify that you want to build a module in the same way as above; however, kbuild needs to know which object files you want to build your module from, so you have to tell it by setting a $(<module_name>-y) variable.
See commit
4f8272802739f5c6ce6b0a548810a181d2f1b652for reasoning behind the change.
You're right, I was thinking I changed to use ccflags-y flags. Sorry :(
Quoted 5 lines
Thanks.
--
Dmitry
Thanks
Tracey Dent