Patchwork [1/1] ia32-base.inc: new include file

login
register
mail settings
Submitter Tom Zanussi
Date Nov. 18, 2011, 4:59 p.m.
Message ID <8b14562502b9ccb4f72807a051e5b195ca31a25c.1321634793.git.tom.zanussi@intel.com>
Download mbox | patch
Permalink /patch/15145/
State New
Headers show

Comments

Tom Zanussi - Nov. 18, 2011, 4:59 p.m.
From: Tom Zanussi <tom.zanussi@intel.com>

The meta-intel BSPs currently have a number of machine settings common
to all - factor these out into a common include file.

Also add several new intel-specific XSERVER variables for building
XSERVER variables in BSPs.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 meta/conf/machine/include/ia32-base.inc |   58 +++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+), 0 deletions(-)
 create mode 100644 meta/conf/machine/include/ia32-base.inc
Khem Raj - Nov. 18, 2011, 7:17 p.m.
On Fri, Nov 18, 2011 at 8:59 AM,  <tom.zanussi@intel.com> wrote:
> From: Tom Zanussi <tom.zanussi@intel.com>
>
> The meta-intel BSPs currently have a number of machine settings common
> to all - factor these out into a common include file.
>
> Also add several new intel-specific XSERVER variables for building
> XSERVER variables in BSPs.
>

I think it belongs to bsp layer why do we need it in oe-core ?

> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
> ---
>  meta/conf/machine/include/ia32-base.inc |   58 +++++++++++++++++++++++++++++++
>  1 files changed, 58 insertions(+), 0 deletions(-)
>  create mode 100644 meta/conf/machine/include/ia32-base.inc
>
> diff --git a/meta/conf/machine/include/ia32-base.inc b/meta/conf/machine/include/ia32-base.inc
> new file mode 100644
> index 0000000..5cf2f4f
> --- /dev/null
> +++ b/meta/conf/machine/include/ia32-base.inc
> @@ -0,0 +1,58 @@
> +#
> +# base machine settings for ia32-architecture BSPs
> +#
> +
> +#
> +# common settings for Intel-based machines
> +#
> +MACHINE_FEATURES += "kernel26 screen keyboard pci usbhost ext2 ext3 x86 \
> +                     acpi serial usbgadget"
> +
> +MACHINE_EXTRA_RRECOMMENDS += "kernel-modules eee-acpi-scripts"
> +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "grub"
> +
> +IMAGE_FSTYPES += "ext3 cpio.gz live"
> +
> +KERNEL_IMAGETYPE ?= "bzImage"
> +
> +SERIAL_CONSOLE ?= "115200 ttyS0"
> +
> +#
> +# glibc-related variables
> +#
> +GLIBC_ADDONS ?= "nptl"
> +GLIBC_EXTRA_OECONF += "--with-tls"
> +
> +#
> +# kernel-related variables
> +#
> +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
> +PREFERRED_VERSION_linux-yocto ?= "3.0%"
> +PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-yocto"
> +
> +#
> +# XSERVER subcomponents, used to build the XSERVER variable
> +#
> +XSERVER_IA32_BASE = "xserver-xorg \
> +           xf86-input-mouse \
> +           xf86-input-keyboard \
> +           xf86-input-evdev \
> +           xf86-input-synaptics \
> +           mesa-dri \
> +           "
> +
> +XSERVER_IA32_EXT = "xserver-xorg-extension-dri \
> +           xserver-xorg-extension-dri2 \
> +           xserver-xorg-extension-glx \
> +           xserver-xorg-extension-extmod \
> +           xserver-xorg-extension-dbe \
> +           xserver-xorg-module-libint10 \
> +           "
> +
> +XSERVER_IA32_I915 = "xf86-video-intel \
> +           mesa-dri-driver-i965 \
> +           "
> +
> +XSERVER_IA32_EMGD = "emgd-driver-bin"
> +
> +XSERVER_IA32_VESA = "xf86-video-vesa"
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Tom Zanussi - Nov. 18, 2011, 8:19 p.m.
On Fri, 2011-11-18 at 11:17 -0800, Khem Raj wrote:
> On Fri, Nov 18, 2011 at 8:59 AM,  <tom.zanussi@intel.com> wrote:
> > From: Tom Zanussi <tom.zanussi@intel.com>
> >
> > The meta-intel BSPs currently have a number of machine settings common
> > to all - factor these out into a common include file.
> >
> > Also add several new intel-specific XSERVER variables for building
> > XSERVER variables in BSPs.
> >
> 
> I think it belongs to bsp layer why do we need it in oe-core ?
> 

Awhile back I submitted a similar patchset that kept things in
meta-intel.  Richard suggested I use conf/machine/include/:

http://www.mail-archive.com/yocto@yoctoproject.org/msg01629.html

So was I right back then, or is there another place I should be putting
this?

Tom

> > Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
> > ---
> >  meta/conf/machine/include/ia32-base.inc |   58 +++++++++++++++++++++++++++++++
> >  1 files changed, 58 insertions(+), 0 deletions(-)
> >  create mode 100644 meta/conf/machine/include/ia32-base.inc
> >
> > diff --git a/meta/conf/machine/include/ia32-base.inc b/meta/conf/machine/include/ia32-base.inc
> > new file mode 100644
> > index 0000000..5cf2f4f
> > --- /dev/null
> > +++ b/meta/conf/machine/include/ia32-base.inc
> > @@ -0,0 +1,58 @@
> > +#
> > +# base machine settings for ia32-architecture BSPs
> > +#
> > +
> > +#
> > +# common settings for Intel-based machines
> > +#
> > +MACHINE_FEATURES += "kernel26 screen keyboard pci usbhost ext2 ext3 x86 \
> > +                     acpi serial usbgadget"
> > +
> > +MACHINE_EXTRA_RRECOMMENDS += "kernel-modules eee-acpi-scripts"
> > +MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "grub"
> > +
> > +IMAGE_FSTYPES += "ext3 cpio.gz live"
> > +
> > +KERNEL_IMAGETYPE ?= "bzImage"
> > +
> > +SERIAL_CONSOLE ?= "115200 ttyS0"
> > +
> > +#
> > +# glibc-related variables
> > +#
> > +GLIBC_ADDONS ?= "nptl"
> > +GLIBC_EXTRA_OECONF += "--with-tls"
> > +
> > +#
> > +# kernel-related variables
> > +#
> > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
> > +PREFERRED_VERSION_linux-yocto ?= "3.0%"
> > +PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-yocto"
> > +
> > +#
> > +# XSERVER subcomponents, used to build the XSERVER variable
> > +#
> > +XSERVER_IA32_BASE = "xserver-xorg \
> > +           xf86-input-mouse \
> > +           xf86-input-keyboard \
> > +           xf86-input-evdev \
> > +           xf86-input-synaptics \
> > +           mesa-dri \
> > +           "
> > +
> > +XSERVER_IA32_EXT = "xserver-xorg-extension-dri \
> > +           xserver-xorg-extension-dri2 \
> > +           xserver-xorg-extension-glx \
> > +           xserver-xorg-extension-extmod \
> > +           xserver-xorg-extension-dbe \
> > +           xserver-xorg-module-libint10 \
> > +           "
> > +
> > +XSERVER_IA32_I915 = "xf86-video-intel \
> > +           mesa-dri-driver-i965 \
> > +           "
> > +
> > +XSERVER_IA32_EMGD = "emgd-driver-bin"
> > +
> > +XSERVER_IA32_VESA = "xf86-video-vesa"
> > --
> > 1.7.0.4
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> >
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Otavio Salvador - Nov. 19, 2011, 2:52 p.m.
On Fri, Nov 18, 2011 at 18:19, Tom Zanussi <tom.zanussi@intel.com> wrote:
...
> So was I right back then, or is there another place I should be putting
> this?

This might be made shared in meta-intel to avoid having this
information duplicated between all machines but it doesn't fit oe-core
IMO.

Patch

diff --git a/meta/conf/machine/include/ia32-base.inc b/meta/conf/machine/include/ia32-base.inc
new file mode 100644
index 0000000..5cf2f4f
--- /dev/null
+++ b/meta/conf/machine/include/ia32-base.inc
@@ -0,0 +1,58 @@ 
+#
+# base machine settings for ia32-architecture BSPs
+#
+
+#
+# common settings for Intel-based machines
+#
+MACHINE_FEATURES += "kernel26 screen keyboard pci usbhost ext2 ext3 x86 \
+                     acpi serial usbgadget"
+
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules eee-acpi-scripts"
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "grub"
+
+IMAGE_FSTYPES += "ext3 cpio.gz live"
+
+KERNEL_IMAGETYPE ?= "bzImage"
+
+SERIAL_CONSOLE ?= "115200 ttyS0"
+
+#
+# glibc-related variables
+#
+GLIBC_ADDONS ?= "nptl"
+GLIBC_EXTRA_OECONF += "--with-tls"
+
+#
+# kernel-related variables
+#
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
+PREFERRED_VERSION_linux-yocto ?= "3.0%"
+PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-yocto"
+
+#
+# XSERVER subcomponents, used to build the XSERVER variable
+#
+XSERVER_IA32_BASE = "xserver-xorg \
+           xf86-input-mouse \
+           xf86-input-keyboard \
+           xf86-input-evdev \
+           xf86-input-synaptics \
+           mesa-dri \
+           "
+
+XSERVER_IA32_EXT = "xserver-xorg-extension-dri \
+           xserver-xorg-extension-dri2 \
+           xserver-xorg-extension-glx \
+           xserver-xorg-extension-extmod \
+           xserver-xorg-extension-dbe \
+           xserver-xorg-module-libint10 \
+           "
+
+XSERVER_IA32_I915 = "xf86-video-intel \
+           mesa-dri-driver-i965 \
+           "
+
+XSERVER_IA32_EMGD = "emgd-driver-bin"
+
+XSERVER_IA32_VESA = "xf86-video-vesa"