diff mbox series

[11/15] linux-yocto: Enable drm by default

Message ID 20170522050042.42403-11-raj.khem@gmail.com
State New
Headers show
Series [01/15] musl: Update to latest master | expand

Commit Message

Khem Raj May 22, 2017, 5 a.m. UTC
Helps in running XFCE on virtualbox with HD

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-kernel/linux/linux-yocto/drm.cfg | 10 ++++++++++
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  |  2 ++
 2 files changed, 12 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/linux-yocto/drm.cfg

-- 
2.13.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Bruce Ashfield May 22, 2017, 2:46 p.m. UTC | #1
On Mon, May 22, 2017 at 1:00 AM, Khem Raj <raj.khem@gmail.com> wrote:

> Helps in running XFCE on virtualbox with HD

>

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  meta/recipes-kernel/linux/linux-yocto/drm.cfg | 10 ++++++++++

>  meta/recipes-kernel/linux/linux-yocto_4.9.bb  |  2 ++

>  2 files changed, 12 insertions(+)

>  create mode 100644 meta/recipes-kernel/linux/linux-yocto/drm.cfg

>

> diff --git a/meta/recipes-kernel/linux/linux-yocto/drm.cfg

> b/meta/recipes-kernel/linux/linux-yocto/drm.cfg

> new file mode 100644

> index 0000000000..5c694ccc57

> --- /dev/null

> +++ b/meta/recipes-kernel/linux/linux-yocto/drm.cfg

> @@ -0,0 +1,10 @@

> +CONFIG_DRM=y

> +CONFIG_DRM_TTM=y

> +CONFIG_DRM_VMWGFX=y

> +CONFIG_DRM_VMWGFX_FBCON=y

> +CONFIG_FB=y

> +CONFIG_FB_CFB_FILLRECT=y

> +CONFIG_FB_CFB_COPYAREA=y

> +CONFIG_FB_CFB_IMAGEBLIT=y

> +CONFIG_FB_DEFERRED_IO=y

> +CONFIG_FB_MODE_HELPERS=y

> diff --git a/meta/recipes-kernel/linux/linux-yocto_4.9.bb

> b/meta/recipes-kernel/linux/linux-yocto_4.9.bb

> index 309d4a7a4f..011ba3bbe6 100644

> --- a/meta/recipes-kernel/linux/linux-yocto_4.9.bb

> +++ b/meta/recipes-kernel/linux/linux-yocto_4.9.bb

> @@ -26,6 +26,8 @@ SRC_URI = "git://git.yoctoproject.org/

> linux-yocto-4.9.git;name=machine;branch=${

>

>  LINUX_VERSION ?= "4.9.27"

>

> +SRC_URI += "file://drm.cfg"

>



If anything gets added to the default configurations, they need to go into
the kernel-cache
and then be included by the relevant kernel types there.

If you want, I can take care of switching things to that format.

Bruce


> +

>  PV = "${LINUX_VERSION}+git${SRCPV}"

>

>  KMETA = "kernel-meta"

> --

> 2.13.0

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

>




-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj May 22, 2017, 5:06 p.m. UTC | #2
>> +SRC_URI += "file://drm.cfg"

>

>

>

> If anything gets added to the default configurations, they need to go into

> the kernel-cache

> and then be included by the relevant kernel types there.

>

> If you want, I can take care of switching things to that format.

>


yes please.
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Bruce Ashfield May 23, 2017, 7:36 p.m. UTC | #3
On Mon, May 22, 2017 at 1:06 PM, Khem Raj <raj.khem@gmail.com> wrote:

> >> +SRC_URI += "file://drm.cfg"

> >

> >

> >

> > If anything gets added to the default configurations, they need to go

> into

> > the kernel-cache

> > and then be included by the relevant kernel types there.

> >

> > If you want, I can take care of switching things to that format.

> >

>

> yes please.

>


Will do. I'll make it available to all active kernel versions + future ones.

Cheers,

Bruce



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Bruce Ashfield May 25, 2017, 2:40 a.m. UTC | #4
On Tue, May 23, 2017 at 3:36 PM, Bruce Ashfield <bruce.ashfield@gmail.com>
wrote:

>

>

> On Mon, May 22, 2017 at 1:06 PM, Khem Raj <raj.khem@gmail.com> wrote:

>

>> >> +SRC_URI += "file://drm.cfg"

>> >

>> >

>> >

>> > If anything gets added to the default configurations, they need to go

>> into

>> > the kernel-cache

>> > and then be included by the relevant kernel types there.

>> >

>> > If you want, I can take care of switching things to that format.

>> >

>>

>> yes please.

>>

>

> Will do. I'll make it available to all active kernel versions + future

> ones.

>


As it turns out, we already have a similar fragment for vmware guests:

cfg/vmware-guest.cfg

--------------------

CONFIG_VMWARE_BALLOON=m

CONFIG_VMWARE_PVSCSI=y

CONFIG_VMWARE_VMCI=m

CONFIG_VSOCKETS=m

CONFIG_VMWARE_VMCI_VSOCKETS=m

CONFIG_VMXNET3=y

CONFIG_DRM_VMWGFX=m

CONFIG_DRM_VMWGFX_FBCON=y

CONFIG_FUSION=y

CONFIG_FUSION_SPI=y

CONFIG_FUSION_FC=y

CONFIG_FUSION_SAS=y

CONFIG_FUSION_MAX_SGE=128

CONFIG_FUSION_CTL=y

CONFIG_FUSION_LAN=y

CONFIG_FUSION_LOGGING=y

CONFIG_SCSI_MPT2SAS=y

CONFIG_SCSI_MPT2SAS_MAX_SGE=128

CONFIG_SCSI_MPT2SAS_LOGGING=y

CONFIG_SCSI_MPT3SAS=y

CONFIG_SCSI_MPT3SAS_MAX_SGE=128

CONFIG_SCSI_MPT3SAS_LOGGING=y
-------------

To stay consistent with that naming, I'll call this virtual-box-guest.cfg,
and it can be enabled
via KERNEL_FEATURES when needed.

I'm hesitant to globally enable it, since we don't need those modules on
all linux-yocto
kernels, just ones that are going to run on virtual box.

I could enable them for qemux86*, since those already have virtio configs
enabled by
default and these have a similar goal.

Thoughts ? I'd like to make sure that sounds reasonable, before spending
the time to
make the changes and test.

Bruce


> Cheers,

>

> Bruce

>

>

>

> --

> "Thou shalt not follow the NULL pointer, for chaos and madness await thee

> at its end"

>




-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj May 25, 2017, 2:46 a.m. UTC | #5
On Wed, May 24, 2017 at 7:40 PM, Bruce Ashfield
<bruce.ashfield@gmail.com> wrote:
>

>

> On Tue, May 23, 2017 at 3:36 PM, Bruce Ashfield <bruce.ashfield@gmail.com>

> wrote:

>>

>>

>>

>> On Mon, May 22, 2017 at 1:06 PM, Khem Raj <raj.khem@gmail.com> wrote:

>>>

>>> >> +SRC_URI += "file://drm.cfg"

>>> >

>>> >

>>> >

>>> > If anything gets added to the default configurations, they need to go

>>> > into

>>> > the kernel-cache

>>> > and then be included by the relevant kernel types there.

>>> >

>>> > If you want, I can take care of switching things to that format.

>>> >

>>>

>>> yes please.

>>

>>

>> Will do. I'll make it available to all active kernel versions + future

>> ones.

>

>

> As it turns out, we already have a similar fragment for vmware guests:

>

> cfg/vmware-guest.cfg

>

> --------------------

>

> CONFIG_VMWARE_BALLOON=m

>

> CONFIG_VMWARE_PVSCSI=y

>

> CONFIG_VMWARE_VMCI=m

>

> CONFIG_VSOCKETS=m

>

> CONFIG_VMWARE_VMCI_VSOCKETS=m

>

> CONFIG_VMXNET3=y

>

> CONFIG_DRM_VMWGFX=m

>

> CONFIG_DRM_VMWGFX_FBCON=y

>

> CONFIG_FUSION=y

>

> CONFIG_FUSION_SPI=y

>

> CONFIG_FUSION_FC=y

>

> CONFIG_FUSION_SAS=y

>

> CONFIG_FUSION_MAX_SGE=128

>

> CONFIG_FUSION_CTL=y

>

> CONFIG_FUSION_LAN=y

>

> CONFIG_FUSION_LOGGING=y

>

> CONFIG_SCSI_MPT2SAS=y

>

> CONFIG_SCSI_MPT2SAS_MAX_SGE=128

>

> CONFIG_SCSI_MPT2SAS_LOGGING=y

>

> CONFIG_SCSI_MPT3SAS=y

>

> CONFIG_SCSI_MPT3SAS_MAX_SGE=128

>

> CONFIG_SCSI_MPT3SAS_LOGGING=y

>

> -------------

>

> To stay consistent with that naming, I'll call this virtual-box-guest.cfg,

> and it can be enabled

> via KERNEL_FEATURES when needed.

>

> I'm hesitant to globally enable it, since we don't need those modules on all

> linux-yocto

> kernels, just ones that are going to run on virtual box.

>

> I could enable them for qemux86*, since those already have virtio configs

> enabled by

> default and these have a similar goal.

>

> Thoughts ? I'd like to make sure that sounds reasonable, before spending the

> time to

> make the changes and test.

>


I would suggest to enable them by default since these are modules they
dont impact the size of kernel itself. Then we can use recommends to
choose them in machine configs.

> Bruce

>

>>

>> Cheers,

>>

>> Bruce

>>

>>

>>

>> --

>> "Thou shalt not follow the NULL pointer, for chaos and madness await thee

>> at its end"

>

>

>

>

> --

> "Thou shalt not follow the NULL pointer, for chaos and madness await thee at

> its end"

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Bruce Ashfield May 25, 2017, 12:01 p.m. UTC | #6
On Wed, May 24, 2017 at 10:46 PM, Khem Raj <raj.khem@gmail.com> wrote:

> On Wed, May 24, 2017 at 7:40 PM, Bruce Ashfield

> <bruce.ashfield@gmail.com> wrote:

> >

> >

> > On Tue, May 23, 2017 at 3:36 PM, Bruce Ashfield <

> bruce.ashfield@gmail.com>

> > wrote:

> >>

> >>

> >>

> >> On Mon, May 22, 2017 at 1:06 PM, Khem Raj <raj.khem@gmail.com> wrote:

> >>>

> >>> >> +SRC_URI += "file://drm.cfg"

> >>> >

> >>> >

> >>> >

> >>> > If anything gets added to the default configurations, they need to go

> >>> > into

> >>> > the kernel-cache

> >>> > and then be included by the relevant kernel types there.

> >>> >

> >>> > If you want, I can take care of switching things to that format.

> >>> >

> >>>

> >>> yes please.

> >>

> >>

> >> Will do. I'll make it available to all active kernel versions + future

> >> ones.

> >

> >

> > As it turns out, we already have a similar fragment for vmware guests:

> >

> > cfg/vmware-guest.cfg

> >

> > --------------------

> >

> > CONFIG_VMWARE_BALLOON=m

> >

> > CONFIG_VMWARE_PVSCSI=y

> >

> > CONFIG_VMWARE_VMCI=m

> >

> > CONFIG_VSOCKETS=m

> >

> > CONFIG_VMWARE_VMCI_VSOCKETS=m

> >

> > CONFIG_VMXNET3=y

> >

> > CONFIG_DRM_VMWGFX=m

> >

> > CONFIG_DRM_VMWGFX_FBCON=y

> >

> > CONFIG_FUSION=y

> >

> > CONFIG_FUSION_SPI=y

> >

> > CONFIG_FUSION_FC=y

> >

> > CONFIG_FUSION_SAS=y

> >

> > CONFIG_FUSION_MAX_SGE=128

> >

> > CONFIG_FUSION_CTL=y

> >

> > CONFIG_FUSION_LAN=y

> >

> > CONFIG_FUSION_LOGGING=y

> >

> > CONFIG_SCSI_MPT2SAS=y

> >

> > CONFIG_SCSI_MPT2SAS_MAX_SGE=128

> >

> > CONFIG_SCSI_MPT2SAS_LOGGING=y

> >

> > CONFIG_SCSI_MPT3SAS=y

> >

> > CONFIG_SCSI_MPT3SAS_MAX_SGE=128

> >

> > CONFIG_SCSI_MPT3SAS_LOGGING=y

> >

> > -------------

> >

> > To stay consistent with that naming, I'll call this

> virtual-box-guest.cfg,

> > and it can be enabled

> > via KERNEL_FEATURES when needed.

> >

> > I'm hesitant to globally enable it, since we don't need those modules on

> all

> > linux-yocto

> > kernels, just ones that are going to run on virtual box.

> >

> > I could enable them for qemux86*, since those already have virtio configs

> > enabled by

> > default and these have a similar goal.

> >

> > Thoughts ? I'd like to make sure that sounds reasonable, before spending

> the

> > time to

> > make the changes and test.

> >

>

> I would suggest to enable them by default since these are modules they

> dont impact the size of kernel itself. Then we can use recommends to

> choose them in machine configs.

>


We've never done that before, there's hundreds of modules we could turn on
just in case, but instead only enable them for machines that can actually
use
them.

Many users use the meta package for modules and expect the build to be as
minimal as possible.

So I'm balancing both those use cases.

I'll complete the fragment and we can enable it in a second commit to keep
the
options open.

Bruce


>

> > Bruce

> >

> >>

> >> Cheers,

> >>

> >> Bruce

> >>

> >>

> >>

> >> --

> >> "Thou shalt not follow the NULL pointer, for chaos and madness await

> thee

> >> at its end"

> >

> >

> >

> >

> > --

> > "Thou shalt not follow the NULL pointer, for chaos and madness await

> thee at

> > its end"

>




-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-kernel/linux/linux-yocto/drm.cfg b/meta/recipes-kernel/linux/linux-yocto/drm.cfg
new file mode 100644
index 0000000000..5c694ccc57
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-yocto/drm.cfg
@@ -0,0 +1,10 @@ 
+CONFIG_DRM=y
+CONFIG_DRM_TTM=y
+CONFIG_DRM_VMWGFX=y
+CONFIG_DRM_VMWGFX_FBCON=y
+CONFIG_FB=y
+CONFIG_FB_CFB_FILLRECT=y
+CONFIG_FB_CFB_COPYAREA=y
+CONFIG_FB_CFB_IMAGEBLIT=y
+CONFIG_FB_DEFERRED_IO=y
+CONFIG_FB_MODE_HELPERS=y
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.9.bb b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
index 309d4a7a4f..011ba3bbe6 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.9.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.9.bb
@@ -26,6 +26,8 @@  SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.9.git;name=machine;branch=${
 
 LINUX_VERSION ?= "4.9.27"
 
+SRC_URI += "file://drm.cfg"
+
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "kernel-meta"