login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
7
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
Date: Wednesday, April 7, 2010 - 9:20 am
On Tue, 6 Apr 2010 23:04:34 +0200 Bruno Prémont wrote:
quoted text
> On Tue, 06 April 2010 Randy Dunlap <randy.dunlap@oracle.com> wrote: > > > It triggers the issue by having PicoLCD built-in while one of the > > > optional dependencies as a module. > > > > Yes, basically what the patch description said. > > Oops, sorry I didn't completely read the patch description. > > > > Any idea of how this can be solved with kbuild in order to keep the > > > dependencies optional? > > > > > > Something that would satisfy the following pseudocode: > > > if CONFIG_HID_PICOLCD == y > > > assert(CONFIG_LCD_CLASS_DEVICE != m) > > > > > > > If you don't want the kconfig machinery to do that (it appears that you don't), > > then I guess that you'll need to expand the source code to handle > > CONFIG_LCD_CLASS_DEVICE=y and CONFIG_LCD_CLASS_DEVICE=m differently. > > Or only handle them differently if HID_PICOLCD=y. :( > > Below a patch (against 2.6.34-rc3 + Jiri's picolcd branch) which > should fix above issue keeping the deps optional. > > With it it's not yet possible to select the deps from HID menu. > > I did a few oldconfig and compile-tests with PICOLCD=y/m and same for > the deps (not switched FB for those tests). > > Bruno > > > > > > HID_PICOLCD should depend on LCD_CLASS_DEVICE, otherwise the > build fails when HID_PICOLCD=y and LCD_CLASS_DEVICE=m: > > hid-picolcd.c:(.text+0x84523f): undefined reference to `lcd_device_unregister' > hid-picolcd.c:(.text+0x8478ab): undefined reference to `lcd_device_register' > hid-picolcd.c:(.text+0x84c15f): undefined reference to `lcd_device_unregister' > > Reported-by: Randy Dunlap <randy.dunlap@oracle.com> > Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org> > > diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig > index a2ecd83..39df4f5 100644 > --- a/drivers/hid/Kconfig > +++ b/drivers/hid/Kconfig > @@ -285,6 +285,35 @@ config HID_PICOLCD > Features that are not (yet) supported: > - IR >
All of these user-visible kconfig options need help text also...
quoted text
> +config HID_PICOLCD_FB > + bool "Framebuffer support" > + default !EMBEDDED > + depends on HID_PICOLCD > + depends on HID_PICOLCD=FB || FB=y > + select FB_DEFERRED_IO > + select FB_SYS_FILLRECT > + select FB_SYS_COPYAREA > + select FB_SYS_IMAGEBLIT > + select FB_SYS_FOPS > + > +config HID_PICOLCD_BACKLIGHT > + bool "Backlight control" > + default !EMBEDDED > + depends on HID_PICOLCD > + depends on HID_PICOLCD=BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=y > + > +config HID_PICOLCD_LCD > + bool "Contrast control" > + default !EMBEDDED > + depends on HID_PICOLCD > + depends on HID_PICOLCD=LCD_CLASS_DEVICE || LCD_CLASS_DEVICE=y > + > +config HID_PICOLCD_LEDS > + bool "GPO via leds class" > + default !EMBEDDED > + depends on HID_PICOLCD > + depends on HID_PICOLCD=LEDS_CLASS || LEDS_CLASS=y > + > config HID_QUANTA > tristate "Quanta Optical Touch" > depends on USB_HID
--- ~Randy --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
mmotm 2010-04-05-16-09 uploaded
, akpm
, (Mon Apr 5, 4:09 pm)
[PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Randy Dunlap
, (Mon Apr 5, 10:04 pm)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Jiri Kosina
, (Tue Apr 6, 1:40 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Bruno =?UTF-8?B?UHLD ...
, (Tue Apr 6, 1:56 am)
[No subject]
, Randy Dunlap
, (Tue Apr 6, 8:26 am)
[No subject]
, Bruno
, (Tue Apr 6, 9:35 am)
[No subject]
, Randy Dunlap
, (Tue Apr 6, 9:56 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Bruno =?UTF-8?B?UHLD ...
, (Tue Apr 6, 2:04 pm)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Randy Dunlap
, (Wed Apr 7, 9:20 am)
Re: mmotm 2010-04-05-16-09 uploaded
, Valdis.Kletnieks
, (Wed Apr 7, 11:01 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Bruno =?UTF-8?B?UHLD ...
, (Wed Apr 7, 11:31 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Bruno =?UTF-8?B?UHLD ...
, (Wed Apr 7, 11:44 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Randy Dunlap
, (Wed Apr 7, 1:12 pm)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Bruno =?UTF-8?B?UHLD ...
, (Wed Apr 7, 1:29 pm)
Re: mmotm 2010-04-05-16-09 uploaded
, Patrick McHardy
, (Thu Apr 8, 4:41 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Jiri Kosina
, (Thu Apr 8, 5:42 am)
Re: mmotm 2010-04-05-16-09 uploaded
, Valdis.Kletnieks
, (Thu Apr 8, 8:23 am)
Re: mmotm 2010-04-05-16-09 uploaded
, Patrick McHardy
, (Thu Apr 8, 8:36 am)
mmotm 2010-04-05 - another RCU whinge (not network this time)
, Valdis.Kletnieks
, (Thu Apr 8, 4:57 pm)
Re: mmotm 2010-04-05-16-09 uploaded
, Valdis.Kletnieks
, (Thu Apr 8, 5:50 pm)
Re: mmotm 2010-04-05-16-09 uploaded
, Patrick McHardy
, (Fri Apr 9, 7:49 am)
Re: mmotm 2010-04-05 - another RCU whinge (not network thi ...
, Paul E. McKenney
, (Fri Apr 9, 4:16 pm)
Re: mmotm 2010-04-05 - another RCU whinge (not network thi ...
, Valdis.Kletnieks
, (Fri Apr 9, 8:22 pm)
Re: mmotm 2010-04-05 - another RCU whinge (not network thi ...
, Paul E. McKenney
, (Fri Apr 9, 10:15 pm)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Bruno Prémont
, (Sun Apr 11, 3:17 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE
, Jiri Kosina
, (Sun Apr 11, 11:28 am)
Re: mmotm 2010-04-05 - another RCU whinge (not network thi ...
, Oleg Nesterov
, (Mon Apr 12, 11:32 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate