[oe] What is task-base?

pHilipp Zabel philipp.zabel at gmail.com
Fri Sep 1 14:56:23 UTC 2006


On 8/28/06, Marcin Juszkiewicz <openembedded at hrw.one.pl> wrote:
> I think that we lack "serial" in MACHINE_FEATURES - this would be needed
> by "irda" feature but will be also useful for machines which have normal
> serial (RS232/RS485) here we can put lrzsz.

Are there machines that have neither serial nor irda?

> "pcmcia" feature should recommend "serial", "bluetooth", "wifi" features
> atleast. It also contain now hostap-cs without checking for "wifi".
>
> "ext2" feature could be renamed to kind of "internal-storage" - most of
> our supported devices use ext2 but not every of them has internal storage
> with ext2.

I don't think ext2 shouldn't be a machine feature, but only one of the distro.
Possible uses for ext2 are SD cards, CF cards / microdrives in the CF slot
(pcmcia) or internal storage. I'd say ext2 packages should be pulled if the
machine has any of (sd, pcmcia, internal-hdd) and the distro supports ext2.
(hdparm is not ext2 specific, but ide specific...)

> "wifi" feature need some work too. There are machines which does not have
> Prism based wifi cards (so no need for hostap-utils) or do not support
> WPA (wpa-supplicant is not needed then). h4000 has internal wifi on
> ACX100 chipset (iirc) so it need only wireless-tools to have it working
> (chipset related packages should be listed in machine config).

There should be a task-pcmcia-wifi-rdepends/rrecommends for pcmcia wifi
cards that would only be used if the machine doesn't have internal wifi.
If somebody really needs a second wifi interface, he can be bothered
to install some packages.
If the machine has internal wifi, the needed packages are machine specific -
there could be a variable task-machine-wifi-rdepends (similar to
task-distro-wifi-rdepends)
I'd also propose:

 task-distro-wifi-rdepends = "\
     wireless-tools \
-    hostap-utils \
+    ${@base_contains("MACHINE_FEATURES", "wifi", "", "hostap-utils",d)} \
     wpa-supplicant-nossl"

A machine with an internal hostap card could then add hostap-utils to
task-machine-wifi-rdepends in the machine configuration file.
(For hx4700 this variable would just contain kernel-module-acx and
kernel-module-hx4700-acx).

cheers
Philipp




More information about the Openembedded-devel mailing list