All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple init script in bitbake file
@ 2013-08-06  4:51 Benix Vincent
  2013-08-06  4:58 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Benix Vincent @ 2013-08-06  4:51 UTC (permalink / raw)
  To: bitbake-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 609 bytes --]




Hi

I need to launch multiple initscripts (2) for a single package, I tried the following;


INITSCRIPT_NAME = "diag.sh"
INITSCRIPT_PARAMS = "defaults 16"


INITSCRIPT_NAME = "drivers-init.sh "
INITSCRIPT_PARAMS = "defaults 14"


But the second one overwrites the first and I see just one init script in my sandbox.

then I even tried this



INITSCRIPT_NAME_diag1 = "diag.sh"
INITSCRIPT_PARAMS_diag1 = "defaults 16"


INITSCRIPT_NAME_diag2 = "drivers-init.sh "
INITSCRIPT_PARAMS_diag2 = "defaults 14"



even this didn't work.

Any help is greatly appreciated.

Benix.

[-- Attachment #2: Type: text/html, Size: 6668 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple init script in bitbake file
  2013-08-06  4:51 Multiple init script in bitbake file Benix Vincent
@ 2013-08-06  4:58 ` Khem Raj
  2013-08-06  5:20   ` Benix Vincent
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2013-08-06  4:58 UTC (permalink / raw)
  To: Benix Vincent; +Cc: bitbake-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]


On Aug 5, 2013, at 9:51 PM, Benix Vincent <benixvincent@yahoo.com> wrote:

> 
> 
> Hi
> 
> I need to launch multiple initscripts (2) for a single package, I tried the following;
> 
> 
> INITSCRIPT_NAME = "diag.sh"
> INITSCRIPT_PARAMS = "defaults 16"
> 
> INITSCRIPT_NAME = "drivers-init.sh "
> INITSCRIPT_PARAMS = "defaults 14"
> 
> But the second one overwrites the first and I see just one init script in my sandbox.
> 
> then I even tried this
> 
> 
> INITSCRIPT_NAME_diag1 = "diag.sh"
> INITSCRIPT_PARAMS_diag1 = "defaults 16"
> 
> INITSCRIPT_NAME_diag2 = "drivers-init.sh "
> INITSCRIPT_PARAMS_diag2 = "defaults 14"
> 
> 
> even this didn't work.


do you have diag1 and diag2 in PACKAGES  variable ? if not then it won't work. I would suggest to add additional
package to list of PACKAGES the recipe is generating and then use the above syntax.


> 
> Any help is greatly appreciated.
> 
> Benix.
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel


[-- Attachment #2: Type: text/html, Size: 7333 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple init script in bitbake file
  2013-08-06  4:58 ` Khem Raj
@ 2013-08-06  5:20   ` Benix Vincent
  2013-08-06  8:15     ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Benix Vincent @ 2013-08-06  5:20 UTC (permalink / raw)
  To: Khem Raj; +Cc: bitbake-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1760 bytes --]



NO diag1 & diag2 aren't part of package variables. Hence it didn't work.

But this is a single package, and has two init scripts. One option is to combine these two init scripts. But I am looking if any posssibility 

to launch two init scripts in one single package.

Benix.


________________________________
 From: Khem Raj <raj.khem@gmail.com>
To: Benix Vincent <benixvincent@yahoo.com> 
Cc: "bitbake-devel@lists.openembedded.org" <bitbake-devel@lists.openembedded.org> 
Sent: Tuesday, August 6, 2013 10:28 AM
Subject: Re: [bitbake-devel] Multiple init script in bitbake file
 




On Aug 5, 2013, at 9:51 PM, Benix Vincent <benixvincent@yahoo.com> wrote:


>
>
>
>Hi
>
>
>I need to launch multiple initscripts (2) for a single package, I tried the following;
>
>
>
>
>INITSCRIPT_NAME = "diag.sh"
>INITSCRIPT_PARAMS = "defaults 16"
>
>
>
>INITSCRIPT_NAME = "drivers-init.sh "
>INITSCRIPT_PARAMS = "defaults 14"
>
>
>
>But the second one overwrites the first and I see just one init script in my sandbox.
>
>
>then I even tried this
>
>
>
>
>
>INITSCRIPT_NAME_diag1 = "diag.sh"
>INITSCRIPT_PARAMS_diag1 = "defaults 16"
>
>
>
>INITSCRIPT_NAME_diag2 = "drivers-init.sh "
>INITSCRIPT_PARAMS_diag2 = "defaults 14"
>
>
>
>
>
>even this didn't work.


do you have diag1 and diag2 in PACKAGES  variable ? if not then it won't work. I would suggest to add additional
package to list of PACKAGES the recipe is generating and then use the above syntax.



>
>Any help is greatly appreciated.
>
>
>Benix._______________________________________________
>bitbake-devel mailing list
>bitbake-devel@lists.openembedded.org
>http://lists.openembedded.org/mailman/listinfo/bitbake-devel
>

[-- Attachment #2: Type: text/html, Size: 9917 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple init script in bitbake file
  2013-08-06  5:20   ` Benix Vincent
@ 2013-08-06  8:15     ` Paul Eggleton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2013-08-06  8:15 UTC (permalink / raw)
  To: Benix Vincent; +Cc: bitbake-devel

On Monday 05 August 2013 22:20:35 Benix Vincent wrote:
> NO diag1 & diag2 aren't part of package variables. Hence it didn't work.
> 
> But this is a single package, and has two init scripts. One option is to
> combine these two init scripts. But I am looking if any posssibility 

Unfortunately OE-Core's update-rc.d.bbclass doesn't support multiple 
initscripts in a single package. Other than combining the two scripts, another 
simple way to fix it would be to split out your separate daemons into different 
packages.

BTW, this kind of question belongs on the OE-Core mailing list:

http://lists.openembedded.org/mailman/listinfo/openembedded-core

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-06  8:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-06  4:51 Multiple init script in bitbake file Benix Vincent
2013-08-06  4:58 ` Khem Raj
2013-08-06  5:20   ` Benix Vincent
2013-08-06  8:15     ` 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.