Multiple init script in bitbake file
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.
Quoted 18 lines · Benix Vincent
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
Quoted 8 lines
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.
Quoted 8 lines
Any help is greatly appreciated.
Benix.
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
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 <[email protected]>
To: Benix Vincent <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Tuesday, August 6, 2013 10:28 AM
Subject: Re: [bitbake-devel] Multiple init script in bitbake file
Quoted 35 lines · Benix Vincent
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"
Quoted 8 lines
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.
Quoted 9 lines
Any help is greatly appreciated.
Benix._______________________________________________ bitbake-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
Quoted 4 lines · 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
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre