removing DISTRO_* vars from task-boot
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
Currently we have:
DISTRO_DEV_MANAGER ?= "${@base_contains("MACHINE_FEATURES", "kernel26",
"udev","",d)} "DISTRO_INIT_MANAGER ?= "sysvinit sysvinit-pidof" DISTRO_INITSCRIPTS ?= "initscripts"DISTRO_LOGIN_MANAGER ?= "tinylogin"
in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER ?= "${@base_contains("MACHINE_FEATURES",
"kernel26", "udev","",d)} "
IMAGE_INIT_MANAGER ?= "sysvinit sysvinit-pidof" IMAGE_INITSCRIPTS ?= "initscripts" IMAGE_LOGIN_MANAGER ?= "tinylogin"
Pros:
* Takes immediate effect
* Can have distro defaults, overridable per image
Cons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode
knowledge about the above vars into the debootstrap script
2) Make task-boot nostamp
Pros:
* takes effect on image build time
* Can have distro defaults, overridable per image
Cons:
* QA hell, there's no way to tell what's inside task-boot_1.0-r87.ipk
from the outside
3) Have task-boot.bb create task-boot-mdev and task-boot-udev
Pros:
* clean
* solves my immediate need
Cons:
* doesn't scale for other vars
4) Move the vars to RRECOMMENDS and filter them out with BAD_RECOMMENDATIONS
Pros:
* takes effect on image time
* performs as expected
Cons:
* image build succeeds when no /dev manager is present
What are your opinions on all this?
regards,
Koen
Quoted 29 lines · Koen Kooi
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
Currently we have:
DISTRO_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26", "udev","",d)} "DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26",
"udev","",d)} "
IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"
IMAGE_LOGIN_MANAGER?= "tinylogin"
Quoted 8 lines
Pros:
* Takes immediate effect
* Can have distro defaults, overridable per imageCons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode
knowledge about the above vars into the debootstrap script
I really like this one as for our uses there's times where I'd rather let busybox handle INIT_MANAGER and LOGIN_MANAGER too.
Signature · 1 line
Tom Rini
Quoted 35 lines · Tom Rini
Quoted 33 lines · Koen Kooi
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
Currently we have:
DISTRO_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26", "udev","",d)}"DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER ?= "${@base_contains("MACHINE_FEATURES", "kernel26","udev","",d)}"
IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"IMAGE_LOGIN_MANAGER?= "tinylogin"Pros:
* Takes immediate effect
* Can have distro defaults, overridable per image
Quoted 7 lines
Quoted 4 lines
Cons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode
knowledge about the above vars into the debootstrap scriptI really like this one as for our uses there's times where I'd rather let busybox handle
INIT_MANAGERandLOGIN_MANAGERtoo.
Philip C. agrees with you. Should be move everything over or start with IMAGE_DEV_MANAGER?
regards,
Koen
Quoted 41 lines · Koen Kooi
Quoted 40 lines · Tom Rini
Quoted 37 lines · Koen Kooi
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
Currently we have:
DISTRO_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26", "udev","",d)}"DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER ?= "${@base_contains("MACHINE_FEATURES", "kernel26","udev","",d)}"
IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"IMAGE_LOGIN_MANAGER?= "tinylogin"Pros:
* Takes immediate effect
* Can have distro defaults, overridable per imageCons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode
knowledge about the above vars into the debootstrap script
Quoted 5 lines
Quoted 2 lines
I really like this one as for our uses there's times where I'd rather let busybox handle
INIT_MANAGERandLOGIN_MANAGERtoo.Philip C. agrees with you. Should be move everything over or start with
IMAGE_DEV_MANAGER?
I say do it all now. Flexibility is good, lets get it done.
Signature · 1 line
Tom Rini
Quoted 41 lines · Tom Rini
Quoted 40 lines · Koen Kooi
Quoted 39 lines · Tom Rini
Quoted 37 lines · Koen Kooi
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
Currently we have:
DISTRO_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26", "udev","",d)}"DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26",
"udev","",d)}"
IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"
IMAGE_LOGIN_MANAGER?= "tinylogin"Pros:
* Takes immediate effect
* Can have distro defaults, overridable per imageCons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode
knowledge about the above vars into the debootstrap script
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
I really like this one as for our uses there's times where I'd rather let busybox handle
INIT_MANAGERandLOGIN_MANAGERtoo.Philip C. agrees with you. Should be move everything over or start with
IMAGE_DEV_MANAGER?I say do it all now. Flexibility is good, lets get it done.
The patch should appear on this ml right about now.
regards,
Koen
Quoted 43 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Lately I have been wondering how to change the /dev
manager on a per
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
image base, since I want udev for most images and
busybox-mdev for
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
special-purpose stuff. The catch is that I want to keep
using task-boot
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
for both.
Currently we have:
DISTRO_DEV_MANAGER?="${@base_contains("MACHINE_FEATURES", "kernel26",
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
"udev","",d)}"
DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER?="${@base_contains("MACHINE_FEATURES", "kernel26",
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
"udev","",d)}"
IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"IMAGE_LOGIN_MANAGER?= "tinylogin"Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Pros:
* Takes immediate effect
* Can have distro defaults, overridable per imageCons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, youneed to encode
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
knowledge about the above vars into the debootstrap script
I really like this one as for our uses there's times
where I'd rather
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
let busybox handle
INIT_MANAGERandLOGIN_MANAGERtoo.Philip C. agrees with you. Should be move everything over
or start with
Quoted 3 lines
Quoted 1 line
IMAGE_DEV_MANAGER?I say do it all now. Flexibility is good, lets get it done.
The patch should appear on this ml right about now.
This is a good (or bad?) example for the wish a uttered some days before. In the official OE manual there is nothing to read about DISTRO_* and/or IMAGE_* vars.
It would be really helpful for other developers which are not that familiar with all the variable stuff and do not memorize the complete mailing list if you could start to document such things in the wiki.
Thx,
Steffen
Quoted 1 line · Steffen
This is a good (or bad?) example for the wish a uttered some days before. In the official OE manual there is nothing to read about DISTRO_* and/or IMAGE_* vars.
The manual is in git, anyone can edit it. If you think someone is missing, add it.
regards,
Koen
Quoted 6 lines
Quoted 3 lines
This is a good (or bad?) example for the wish a uttered some days before. In the official OE manual there is nothing to read about DISTRO_* and/or IMAGE_* vars.
The manual is in git, anyone can edit it. If you think someone is missing, add it.
Sorry, but this is not very constructive.
I do not have the knowledge about these things, but you(*) have (i believe). So i can't document this, but you can.
I know that documentation is a very boring and time consuming task (i'm a software developer myself), but it is an essential part of development. And if you want to avoid later problems (beginning from annoying, repetitive questions in the mailing list up to dirty patches based on misunderstanding), you should not ignore this task.
(*) Here 'you' is not just Koen but everyone who is responsible for a bigger a smaller part of OE.
Regards,
Steffen
Quoted 44 lines · Koen Kooi
Quoted 43 lines · Tom Rini
Quoted 42 lines · Koen Kooi
Quoted 41 lines · Tom Rini
Quoted 39 lines · Koen Kooi
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot
for both.Currently we have:
DISTRO_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26",
"udev","",d)}"DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26", "udev","",d)}"IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"IMAGE_LOGIN_MANAGER?= "tinylogin"Pros:
* Takes immediate effect
* Can have distro defaults, overridable per imageCons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode knowledge about the above vars into the debootstrap script
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
I really like this one as for our uses there's times where I'd rather let busybox handle
INIT_MANAGERandLOGIN_MANAGERtoo.Philip C. agrees with you. Should be move everything over or start with
IMAGE_DEV_MANAGER?I say do it all now. Flexibility is good, lets get it done.
The patch should appear on this ml right about now.
Mailman seems to hate me:
Marcin Juszkiewicz
Acked-byQuoted 6 lines · On Thursday 19 of February 2009 12:14:18 Koen Kooi wrote:
Quoted 1 line
The patch should appear on this ml right about now.
Mailman seems to hate me:
http://amethyst.openembedded.net/~koen/0001-task-boot-rename-DISTRO_-
vars-to-IMAGE_-vars-and-mo.patch
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Quoted 42 lines · Koen Kooi
Quoted 41 lines · Tom Rini
Quoted 38 lines · Koen Kooi
Hi,
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
Currently we have:
DISTRO_DEV_MANAGER?= "${@base_contains("MACHINE_FEATURES", "kernel26", "udev","",d)}"DISTRO_INIT_MANAGER?= "sysvinit sysvinit-pidof"DISTRO_INITSCRIPTS?= "initscripts"DISTRO_LOGIN_MANAGER?= "tinylogin"in task-boot.bb
There are various ways we could attack this:
1) The image.bbclass way:
Put the following in image.bbclass:
IMAGE_DEV_MANAGER ?= "${@base_contains("MACHINE_FEATURES","kernel26",
"udev","",d)}"
IMAGE_INIT_MANAGER?= "sysvinit sysvinit-pidof"IMAGE_INITSCRIPTS?= "initscripts"IMAGE_LOGIN_MANAGER?= "tinylogin"Pros:
* Takes immediate effect
* Can have distro defaults, overridable per imageCons:
* marks them as 'user installed'
* you can't 'debootstrap' from tasks anymore, you need to encode
knowledge about the above vars into the debootstrap script
Quoted 4 lines
Quoted 2 lines
I really like this one as for our uses there's times where I'd rather let busybox handle
INIT_MANAGERandLOGIN_MANAGERtoo.Philip C. agrees with you. Should be move everything over or start with
IMAGE_DEV_MANAGER?
I should mention my specific issues with solutions and my disclaimer:
2) I do not like QA hell.
3) not scaling is bad.
4) building images that do not boot is bad.
I do not know much about all this, so do not listen to me.
And I am interested in trying mdev.
Philip
Quoted 8 lines · On Tuesday 17 of February 2009 13:26:34 Koen Kooi wrote:
Lately I have been wondering how to change the /dev manager on a per image base, since I want udev for most images and busybox-mdev for special-purpose stuff. The catch is that I want to keep using task-boot for both.
There are various ways we could attack this:
1) The image.bbclass way:
+1 for it
Quoted 1 line
2) Make task-boot nostamp
No!
Quoted 1 line
3) Have task-boot.bb create task-boot-mdev and task-boot-udev
sounds better then 2) but has same problems as 1) so I will not go that way.
Quoted 2 lines
4) Move the vars to RRECOMMENDS and filter them out with
BAD_RECOMMENDATIONS
No!
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz