* How to disable OVERRIDES temperally
@ 2015-08-27 11:40 Qiang Yu
2015-08-27 13:36 ` Khem Raj
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Qiang Yu @ 2015-08-27 11:40 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 366 bytes --]
Hi all,
I want to load kernel module ci_hdrc_imx at boot time and add a conf file
in /etc/modprobe.d. I find it can be done by add
module_conf_ci_hdrc_imx = "my configure"
But the suffix "imx" is in OVERRIDES, so I get
module_conf_ci_hdrc = "my configure"
How to disable the OVERRIDES temperally here? Or may be there is another
way?
Thanks,
Qiang
[-- Attachment #2: Type: text/html, Size: 545 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to disable OVERRIDES temperally
2015-08-27 11:40 How to disable OVERRIDES temperally Qiang Yu
@ 2015-08-27 13:36 ` Khem Raj
2015-08-28 2:00 ` Qiang Yu
2015-08-27 13:53 ` Mike Looijmans
2015-08-28 9:56 ` Paul Eggleton
2 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2015-08-27 13:36 UTC (permalink / raw)
To: Qiang Yu; +Cc: yocto@yoctoproject.org
On Thu, Aug 27, 2015 at 4:40 AM, Qiang Yu <yuq825@gmail.com> wrote:
> Hi all,
>
> I want to load kernel module ci_hdrc_imx at boot time and add a conf file in
> /etc/modprobe.d. I find it can be done by add
> module_conf_ci_hdrc_imx = "my configure"
>
> But the suffix "imx" is in OVERRIDES, so I get
> module_conf_ci_hdrc = "my configure"
>
> How to disable the OVERRIDES temperally here? Or may be there is another
> way?
OVERRIDES_remove = "imx" in recipe might help
another case where we should rethink OVERRIDE syntax
>
> Thanks,
> Qiang
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to disable OVERRIDES temperally
2015-08-27 13:36 ` Khem Raj
@ 2015-08-28 2:00 ` Qiang Yu
0 siblings, 0 replies; 6+ messages in thread
From: Qiang Yu @ 2015-08-28 2:00 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
On Thu, Aug 27, 2015 at 9:36 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Thu, Aug 27, 2015 at 4:40 AM, Qiang Yu <yuq825@gmail.com> wrote:
> > Hi all,
> >
> > I want to load kernel module ci_hdrc_imx at boot time and add a conf
> file in
> > /etc/modprobe.d. I find it can be done by add
> > module_conf_ci_hdrc_imx = "my configure"
> >
> > But the suffix "imx" is in OVERRIDES, so I get
> > module_conf_ci_hdrc = "my configure"
> >
> > How to disable the OVERRIDES temperally here? Or may be there is another
> > way?
>
> OVERRIDES_remove = "imx" in recipe might help
> another case where we should rethink OVERRIDE syntax
>
This removes imx in whole recipe. I want a temporary way in case other
parts need this override.
>
> >
> > Thanks,
> > Qiang
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
[-- Attachment #2: Type: text/html, Size: 1811 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to disable OVERRIDES temperally
2015-08-27 11:40 How to disable OVERRIDES temperally Qiang Yu
2015-08-27 13:36 ` Khem Raj
@ 2015-08-27 13:53 ` Mike Looijmans
2015-08-28 2:02 ` Qiang Yu
2015-08-28 9:56 ` Paul Eggleton
2 siblings, 1 reply; 6+ messages in thread
From: Mike Looijmans @ 2015-08-27 13:53 UTC (permalink / raw)
To: yocto
On 27-08-15 13:40, Qiang Yu wrote:
> Hi all,
>
> I want to load kernel module ci_hdrc_imx at boot time and add a conf file in
> /etc/modprobe.d. I find it can be done by add
> module_conf_ci_hdrc_imx = "my configure"
>
> But the suffix "imx" is in OVERRIDES, so I get
> module_conf_ci_hdrc = "my configure"
>
> How to disable the OVERRIDES temperally here? Or may be there is another
> way?
This might work (untested):
MY_HDRC_MODULE_NAME = "conf_ci_hdrc"
module_${MY_HDRC_MODULE_NAME} = "my configure"
Kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to disable OVERRIDES temperally
2015-08-27 13:53 ` Mike Looijmans
@ 2015-08-28 2:02 ` Qiang Yu
0 siblings, 0 replies; 6+ messages in thread
From: Qiang Yu @ 2015-08-28 2:02 UTC (permalink / raw)
To: Mike Looijmans; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
On Thu, Aug 27, 2015 at 9:53 PM, Mike Looijmans <mike.looijmans@topic.nl>
wrote:
> On 27-08-15 13:40, Qiang Yu wrote:
>
>> Hi all,
>>
>> I want to load kernel module ci_hdrc_imx at boot time and add a conf file
>> in
>> /etc/modprobe.d. I find it can be done by add
>> module_conf_ci_hdrc_imx = "my configure"
>>
>> But the suffix "imx" is in OVERRIDES, so I get
>> module_conf_ci_hdrc = "my configure"
>>
>> How to disable the OVERRIDES temperally here? Or may be there is another
>> way?
>>
>
> This might work (untested):
>
> MY_HDRC_MODULE_NAME = "conf_ci_hdrc"
> module_${MY_HDRC_MODULE_NAME} = "my configure"
>
>
>
Test this, same wrong result.
>
>
> Kind regards,
>
> Mike Looijmans
> System Expert
>
> TOPIC Embedded Products
> Eindhovenseweg 32-C, NL-5683 KH Best
> Postbus 440, NL-5680 AK Best
> Telefoon: +31 (0) 499 33 69 79
> Telefax: +31 (0) 499 33 69 70
> E-mail: mike.looijmans@topicproducts.com
> Website: www.topicproducts.com
>
> Please consider the environment before printing this e-mail
>
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 2478 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to disable OVERRIDES temperally
2015-08-27 11:40 How to disable OVERRIDES temperally Qiang Yu
2015-08-27 13:36 ` Khem Raj
2015-08-27 13:53 ` Mike Looijmans
@ 2015-08-28 9:56 ` Paul Eggleton
2 siblings, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2015-08-28 9:56 UTC (permalink / raw)
To: Qiang Yu; +Cc: yocto
Hi Qiang,
On Thursday 27 August 2015 19:40:29 Qiang Yu wrote:
> I want to load kernel module ci_hdrc_imx at boot time and add a conf file
> in /etc/modprobe.d. I find it can be done by add
> module_conf_ci_hdrc_imx = "my configure"
>
> But the suffix "imx" is in OVERRIDES, so I get
> module_conf_ci_hdrc = "my configure"
>
> How to disable the OVERRIDES temperally here? Or may be there is another
> way?
This is an annoying situation, no question about that - it's an unfortunate
consequence of our long-ago decision to use _ as the override separator.
Whether or not we can change that in future is up for debate.
In any case though the workaround is probably fairly simple in this case - all
that the code in kernel_module_split.bbclass that reads this does is to write
a file to ${D}/etc/modprobe.d/<modulename>.conf - you could just create that
yourself instead during do_install, then you don't need to set
module_conf_ci_hdrc_imx.
FWIW. I just tested and in master this should work just fine without any
workaround (I think the datastore finalisation rework that was done recently
probably fixed it.) I wouldn't really recommend running master in production,
but at least this should work better in the next release.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-28 9:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 11:40 How to disable OVERRIDES temperally Qiang Yu
2015-08-27 13:36 ` Khem Raj
2015-08-28 2:00 ` Qiang Yu
2015-08-27 13:53 ` Mike Looijmans
2015-08-28 2:02 ` Qiang Yu
2015-08-28 9:56 ` Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.