* [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile
@ 2010-11-07 14:46 Tracey Dent
2010-11-07 14:46 ` [PATCH 2/2] Drivers: hid: usbhid: " Tracey Dent
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Tracey Dent @ 2010-11-07 14:46 UTC (permalink / raw)
To: dmitry.torokhov
Cc: jkosina, chatty, spbnick, linux-input, linux-kernel, Tracey Dent
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).
Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
drivers/hid/Makefile | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
index c335605..dad858b 100644
--- a/drivers/hid/Makefile
+++ b/drivers/hid/Makefile
@@ -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
--
1.7.3.1.104.gc752e
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] Drivers: hid: usbhid: Makefile: Cleaned up Makefile
2010-11-07 14:46 [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile Tracey Dent
@ 2010-11-07 14:46 ` Tracey Dent
2010-11-17 6:07 ` Américo Wang
2010-11-15 14:58 ` [PATCH 1/2] Drivers: hid: " Jiri Kosina
2010-11-17 6:05 ` Américo Wang
2 siblings, 1 reply; 9+ messages in thread
From: Tracey Dent @ 2010-11-07 14:46 UTC (permalink / raw)
To: dmitry.torokhov
Cc: jkosina, chatty, spbnick, linux-input, linux-kernel, Tracey Dent
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).
Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
drivers/hid/usbhid/Makefile | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/hid/usbhid/Makefile b/drivers/hid/usbhid/Makefile
index 1329ecb..db3cf31 100644
--- a/drivers/hid/usbhid/Makefile
+++ b/drivers/hid/usbhid/Makefile
@@ -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
--
1.7.3.1.104.gc752e
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile
2010-11-07 14:46 [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile Tracey Dent
2010-11-07 14:46 ` [PATCH 2/2] Drivers: hid: usbhid: " Tracey Dent
@ 2010-11-15 14:58 ` Jiri Kosina
2010-11-17 3:28 ` Tracey Dent
2010-11-17 6:05 ` Américo Wang
2 siblings, 1 reply; 9+ messages in thread
From: Jiri Kosina @ 2010-11-15 14:58 UTC (permalink / raw)
To: Tracey Dent; +Cc: dmitry.torokhov, chatty, spbnick, linux-input, linux-kernel
On Sun, 7 Nov 2010, Tracey Dent wrote:
> 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).
Actually, where exactly does this file document it?
Thanks,
--
Jiri Kosina
SUSE Labs, Novell Inc.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile
2010-11-15 14:58 ` [PATCH 1/2] Drivers: hid: " Jiri Kosina
@ 2010-11-17 3:28 ` Tracey Dent
2010-11-17 7:21 ` Dmitry Torokhov
0 siblings, 1 reply; 9+ messages in thread
From: Tracey Dent @ 2010-11-17 3:28 UTC (permalink / raw)
To: Jiri Kosina; +Cc: dmitry.torokhov, chatty, spbnick, linux-input, linux-kernel
On 11/15/10, Jiri Kosina <jkosina@suse.cz> wrote:
> On Sun, 7 Nov 2010, Tracey Dent wrote:
>
>> 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).
>
> 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).
> Thanks,
>
> --
> Jiri Kosina
> SUSE Labs, Novell Inc.
>
regards
Tracey Dent
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile
2010-11-07 14:46 [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile Tracey Dent
2010-11-07 14:46 ` [PATCH 2/2] Drivers: hid: usbhid: " Tracey Dent
2010-11-15 14:58 ` [PATCH 1/2] Drivers: hid: " Jiri Kosina
@ 2010-11-17 6:05 ` Américo Wang
2 siblings, 0 replies; 9+ messages in thread
From: Américo Wang @ 2010-11-17 6:05 UTC (permalink / raw)
To: Tracey Dent
Cc: dmitry.torokhov, jkosina, chatty, spbnick, linux-input, linux-kernel
On Sun, Nov 07, 2010 at 09:46:27AM -0500, Tracey Dent wrote:
>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).
>
>Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] Drivers: hid: usbhid: Makefile: Cleaned up Makefile
2010-11-07 14:46 ` [PATCH 2/2] Drivers: hid: usbhid: " Tracey Dent
@ 2010-11-17 6:07 ` Américo Wang
0 siblings, 0 replies; 9+ messages in thread
From: Américo Wang @ 2010-11-17 6:07 UTC (permalink / raw)
To: Tracey Dent
Cc: dmitry.torokhov, jkosina, chatty, spbnick, linux-input, linux-kernel
On Sun, Nov 07, 2010 at 09:46:28AM -0500, Tracey Dent wrote:
>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).
>
>Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile
2010-11-17 3:28 ` Tracey Dent
@ 2010-11-17 7:21 ` Dmitry Torokhov
2010-11-17 18:18 ` Tracey Dent
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Torokhov @ 2010-11-17 7:21 UTC (permalink / raw)
To: Tracey Dent; +Cc: Jiri Kosina, chatty, spbnick, linux-input, linux-kernel
On Tue, Nov 16, 2010 at 10:28:19PM -0500, Tracey Dent wrote:
> On 11/15/10, Jiri Kosina <jkosina@suse.cz> wrote:
> > On Sun, 7 Nov 2010, Tracey Dent wrote:
> >
> >> 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).
> >
> > 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.
--
Dmitry
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile
2010-11-17 7:21 ` Dmitry Torokhov
@ 2010-11-17 18:18 ` Tracey Dent
0 siblings, 0 replies; 9+ messages in thread
From: Tracey Dent @ 2010-11-17 18:18 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Jiri Kosina, chatty, spbnick, linux-input, linux-kernel
On 11/17/10, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> On Tue, Nov 16, 2010 at 10:28:19PM -0500, Tracey Dent wrote:
>> On 11/15/10, Jiri Kosina <jkosina@suse.cz> wrote:
>> > On Sun, 7 Nov 2010, Tracey Dent wrote:
>> >
>> >> 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).
>> >
>> > 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.
>
You're right, I was thinking I changed to use ccflags-y flags. Sorry :(
> Thanks.
>
> --
> Dmitry
>
Thanks
Tracey Dent
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] Drivers: hid: usbhid: Makefile: Cleaned up Makefile
2010-11-06 19:07 Tracey Dent
@ 2010-11-06 19:07 ` Tracey Dent
0 siblings, 0 replies; 9+ messages in thread
From: Tracey Dent @ 2010-11-06 19:07 UTC (permalink / raw)
To: jkosina; +Cc: linux-kernel, linux-input, spbnick, dtor, chatty, Tracey Dent
Changed Makefile to use <modules>-y instead of <modules>-objs.
Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
drivers/hid/usbhid/Makefile | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/hid/usbhid/Makefile b/drivers/hid/usbhid/Makefile
index 1329ecb..db3cf31 100644
--- a/drivers/hid/usbhid/Makefile
+++ b/drivers/hid/usbhid/Makefile
@@ -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
--
1.7.3.1.104.gc752e
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-11-17 18:18 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-07 14:46 [PATCH 1/2] Drivers: hid: Makefile: Cleaned up Makefile Tracey Dent
2010-11-07 14:46 ` [PATCH 2/2] Drivers: hid: usbhid: " Tracey Dent
2010-11-17 6:07 ` Américo Wang
2010-11-15 14:58 ` [PATCH 1/2] Drivers: hid: " Jiri Kosina
2010-11-17 3:28 ` Tracey Dent
2010-11-17 7:21 ` Dmitry Torokhov
2010-11-17 18:18 ` Tracey Dent
2010-11-17 6:05 ` Américo Wang
-- strict thread matches above, loose matches on Subject: below --
2010-11-06 19:07 Tracey Dent
2010-11-06 19:07 ` [PATCH 2/2] Drivers: hid: usbhid: " Tracey Dent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).