Documentation update about machine conf files
Hi all,
I'm willing to update the manual, especially the section "Adding a new Machine". I would like to update the list or required variables (if it needs to) and add a list of optional but useful variables (see my previous post as well). But i'm wondering if the the file conf/documentation.conf is a better place and/or a new conf/machine/machine.conf.sample could be written in the same way as the conf/local.conf.sample one.
Here is a list of things i would like to add for now:
* PACKAGE_EXTRA_ARCHS
By default your machine will support the following package architectures: "all", "any", "noarch", "${TARGET_ARCH}" and "${MACHINE}". If you machine support more architectures, add them to this variable in order of priority
Default: empty
Example in conf/machine/at91sam9260ek.conf:TARGET_ARCH = "arm"PACKAGE_EXTRA_ARCHS = "armv4t armv5te"
* KERNEL_CONSOLE:
Specify if and where you want a kernel serial console (passed on the kernel command line). The syntax is "<serial_device>,<speed>".
Default: "ttyS0"
Example in conf/machine/triton.conf:KERNEL_CONSOLE = "ttys0,38400"
* SERIAL_CONSOLE:
Specify if and where you want a serial console (inittab), the syntax is "<speed> <serial_device>".
TODO: it is supported by sysvinit, but is it still the case when busybox is used for init?
Default: empty
Example in conf/machine/fic-gta02.conf:SERIAL_CONSOLE = "115200 ttySAC2"
* USE_VT:
Specify if you want virtual consoles (/etc/inittab), 1 if you want, empty or anything else if you don't.
TODO: it is supported by sysvinit, but is it still the case when busybox is used for init?
Default: "1"
Example in conf/machine/htcblueangel.conf:USE_VT = "0"
* UBOOT_MACHINE, UBOOT_ENTRYPOINT:
If your machine use das u-boot, set UBOOT_MACHINE to the name of your machine as known by u-boot. UBOOT_ENTRYPOINT is used to generate your linux kernel image with uboot-mkimage.
Example in conf/machine/include/gumstix.inc:UBOOT_ENTRYPOINT = "a0008000"
Default value for UBOOT_ENTRYPOINT: 20008000 Default value for UBOOT_MACHINE: ${MACHINE}_config
* GUI_MACHINE_CLASS:
Specify if you machine has a big one or not! ;)
So use "bigscreen" if your machine has a big screen or "smallscreen" if our machine has a small screen.
TODO: Guidelines for the definition of big or small.
Default value: empty
Example in conf/machine/nokia800.conf:GUI_MACHINE_CLASS = "bigscreen"
* CMDLINE and CMDLINE_<machine>
TODO
* KERNEL_IMAGETYPE
Depending of what kind of kernel image your machine is using, the distro you are running and the color of the 25369th pixel on your screen, some voodoo incantation will happen. Possible values are: "bzImage", "uImage", "zImage", "vmlinux", "image", "linux"
Default: "zImage"
Example in conf/machine/epia.conf:KERNEL_IMAGETYPE = "bzImage"
* KERNEL_IMAGE_MAXSIZE
Use this variable if your kernel has to fit within a maximum sixe. if the generated kernel image is bigger than that you will get an error.
TODO: used only in linux.inc, does that mean that it's not checked
Default: empty
No example.
* module_autoload_<module_name>
TODO, not sure the machine.conf is a place for this kind of things.
* IMAGE_DEVICE_TABLES, IMAGE_DEVICE_TABLES:
TODO, already documented in image_class
* USE_DEVFS:
TODO
Any comments are welcome! :)
Regards,
Chris
Quoted 8 lines · Christian Gagneraud
I'm willing to update the manual, especially the section "Adding a new Machine". I would like to update the list or required variables (if it needs to) and add a list of optional but useful variables (see my previous post as well).
But i'm wondering if the the fileconf/documentation.confis a better place and/or a new conf/machine/machine.conf.sample could be written in the same way as the conf/local.conf.sample one.
...
I would be really happy about an index of *all* variables usable in the recipes together with a desciption or a reference to it. I would prefer such an index in the wiki, but manual or documentation.conf would be fine too.
Steffen
Quoted 5 lines
I would be really happy about an index of all variables usable in the recipes together with a desciption or a reference to it. I would prefer such an index in the wiki, but manual or documentation.conf would be fine too.
Something like that you mean?
http://pokylinux.org/doc/poky-handbook.html#ref-variables-glossary
Poky manual license do not allows to copy from it to OE one ;(
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz