From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/4] kernel-module-imx-gpu-viv: add new package
Date: Mon, 1 Feb 2016 21:56:44 +0100 [thread overview]
Message-ID: <20160201215644.1e3d3713@free-electrons.com> (raw)
In-Reply-To: <1454319423-13913-4-git-send-email-gary.bisson@boundarydevices.com>
Dear Gary Bisson,
On Mon, 1 Feb 2016 10:37:02 +0100, Gary Bisson wrote:
> +config BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV
> + bool "kernel-module-imx-gpu-viv"
> + depends on BR2_LINUX_KERNEL
> + help
> + Kernel loadable module for Vivante GPU.
> +
> + This package uses an exact copy of the GPU kernel driver source code
> + of the same version as base and include fixes and improvements
> + developed by FSL Community
Upstream URL missing here. Also please include a hash file.
> diff --git a/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk b/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk
> new file mode 100644
> index 0000000..9c45f23
> --- /dev/null
> +++ b/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk
> @@ -0,0 +1,28 @@
> +################################################################################
> +#
> +# kernel-module-imx-gpu-viv
> +#
> +################################################################################
> +
> +KERNEL_MODULE_IMX_GPU_VIV_VERSION = eeeb23c0fb1cee01318088d417025263479c44ac
> +KERNEL_MODULE_IMX_GPU_VIV_SITE = \
> + $(call github,Freescale,kernel-module-imx-gpu-viv,$(KERNEL_MODULE_IMX_GPU_VIV_VERSION))
> +KERNEL_MODULE_IMX_GPU_VIV_LICENSE = GPLv2
> +KERNEL_MODULE_IMX_GPU_VIV_LICENSE_FILES = COPYING
> +
> +KERNEL_MODULE_IMX_GPU_VIV_MODULE_MAKE_OPTS = \
> + AQROOT=$(@D)/kernel-module-imx-gpu-viv-src \
> + KERNEL_DIR=$(LINUX_DIR)
> +
> +KERNEL_MODULE_IMX_GPU_VIV_MODULE_SUBDIRS = kernel-module-imx-gpu-viv-src
> +
> +# Modify Linux configuration in case it includes a built-in version of
> +# the Vivante driver.
> +define LINUX_CONFIGURATION_FIXUP
> + sed -i "/CONFIG_MXC_GPU_VIV[ =]/d" $(LINUX_DIR)/.config
> + echo "# CONFIG_MXC_GPU_VIV is not set" >> $(LINUX_DIR)/.config
> +endef
> +LINUX_POST_CONFIGURE_HOOKS += LINUX_CONFIGURATION_FIXUP
I really don't like spreading hooks for package A in the code of
package B. I think here it's better to change linux.mk with:
$(if $(BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV),
$(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config))
In LINUX_KCONFIG_FIXUP_CMDS.
Peter, Arnout, Yann, what do you think ?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-02-01 20:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-01 9:36 [Buildroot] [PATCH 0/4] Update Freescale graphics packages Gary Bisson
2016-02-01 9:37 ` [Buildroot] [PATCH 1/4] imx-gpu-viv: bump version to 5.0.11 p7.1 Gary Bisson
2016-02-01 9:37 ` [Buildroot] [PATCH 2/4] xdriver_xf86-video-imx-viv: bump to version " Gary Bisson
2016-02-01 9:37 ` [Buildroot] [PATCH 3/4] kernel-module-imx-gpu-viv: add new package Gary Bisson
2016-02-01 20:56 ` Thomas Petazzoni [this message]
2016-02-01 21:28 ` Peter Korsgaard
2016-02-01 21:36 ` Yann E. MORIN
2016-02-01 23:33 ` Gary Bisson
2016-02-01 9:37 ` [Buildroot] [PATCH 4/4] configs/nitrogen6*: bump kernel version Gary Bisson
2016-02-01 20:53 ` [Buildroot] [PATCH 0/4] Update Freescale graphics packages Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160201215644.1e3d3713@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.