From patchwork Mon Feb 1 23:38:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 576752 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 53E86140BFB for ; Tue, 2 Feb 2016 10:38:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b=NY+sEs6G; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3036933357; Mon, 1 Feb 2016 23:38:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7FjkoeN4kMsY; Mon, 1 Feb 2016 23:38:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 22B7F33376; Mon, 1 Feb 2016 23:38:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E3D7E1C1510 for ; Mon, 1 Feb 2016 23:38:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E8BD28C12A for ; Mon, 1 Feb 2016 23:38:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GPYidvVi6qeZ for ; Mon, 1 Feb 2016 23:38:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id F21328C09C for ; Mon, 1 Feb 2016 23:38:25 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id p63so94595865wmp.1 for ; Mon, 01 Feb 2016 15:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=NUbOEUN9YPN2aTBACvfLv6lrcJB4WgUdaGaAkgRSafw=; b=NY+sEs6GSfsp/4Ejjq5JrS7VR60hhaXYandCXTGPJM/Ey5jTcwvybq+jY/REPzgW9M zoP7AVuaEx/zmfoQg/I94c+ju4RF8IANn7HkGEVfvLLkTMY/BC3gJqySYx4PXNQnRZVk w5SHDLgYHTD0OG+JTG/Nlqzkv+cmN6NopM+fzUI7D4eTFl/TTSzRjAvDYwQB5TZ/p4EQ vLOj56LzLFuclFNyJ7OIPPuirb4uPhcY0LfrqNlS64C6QAbO5v0NXjna9zom5yAC8G8Q EDalLh/F5OoJ2MG0QfiCE88UIk8BZjHVjEuhrlz2cZ+z4gNHUxzH9VifYRbEhrPJs0bt n1SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NUbOEUN9YPN2aTBACvfLv6lrcJB4WgUdaGaAkgRSafw=; b=LMkuYZggZTpq2DNTJhh7n+8r4egyBk1kCY9RAc5Q3+zJjzDRtw81mHLIubquiLu7JA bXVGEzssSW71VUX6QCmh8slWuMC10zNe9GA6mQXgfUrPcOVAbR+PCkGyR9o8nqEcn39F R72bhz36CZTdJfYPhiWbw0JDFfZ8kgYmmeHns25shxEuDf8LwthIfc56oaNXwGfEhOJI lHEnYlVvfGcKfZfxOyLHB/TIuYCH0UAQpJUY1cDqgrgQcan82Jo/aL0pnLtJafdTWfC3 /oZkCSmsH4zLu/4YBBlJmfiNvZ9zCw9hNXdbBy8iCoYb3Tpf87/j2JEXi6Xv5F/F2/de +zUQ== X-Gm-Message-State: AG10YORTMCfMegZeZkBUIEep3C6ja158XWc+g47cxfJmYu6mAfBeRmlcbfQcPwmCUnVF9w== X-Received: by 10.194.134.105 with SMTP id pj9mr28299485wjb.10.1454369897620; Mon, 01 Feb 2016 15:38:17 -0800 (PST) Received: from t450s.lan (89-92-99-128.hfc.dyn.abo.bbox.fr. [89.92.99.128]) by smtp.googlemail.com with ESMTPSA id q73sm13746439wmb.1.2016.02.01.15.38.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Feb 2016 15:38:17 -0800 (PST) From: Gary Bisson To: buildroot@busybox.net Date: Tue, 2 Feb 2016 00:38:11 +0100 Message-Id: <1454369891-27330-1-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.6.4 Cc: thomas.petazzoni@free-electrons.com, yann.morin.1998@free.fr Subject: [Buildroot] [PATCH v2] kernel-module-imx-gpu-viv: add new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is the Vivante kernel driver split from the kernel source code in order to make it possible to be used in any kernel source since 3.10.53. The driver source code provided by Freescale needs fixes so the community forked the code to allow faster development and easier integration of fixes from the community. This patch is based on the Yocto equivalent: https://github.com/Freescale/meta-fsl-arm/commit/32cf391 https://github.com/Freescale/meta-fsl-arm/commit/4249193 This package has been tested with the following commands: # modprobe galcore # cd /usr/share/examples/viv_samples/vdk/ # ./tutorial7 Signed-off-by: Gary Bisson --- Hi All, This is a follow-up of previous series to update Freescale graphics: http://lists.busybox.net/pipermail/buildroot/2016-February/151133.html Changelog v1->v2: - add hash file - add project URL to Config.in - switch to KCONFIG_FIXUP_CMDS Regards, Gary --- linux/linux.mk | 2 ++ package/freescale-imx/Config.in | 1 + .../kernel-module-imx-gpu-viv/Config.in | 14 ++++++++++++++ .../kernel-module-imx-gpu-viv.hash | 2 ++ .../kernel-module-imx-gpu-viv.mk | 20 ++++++++++++++++++++ 5 files changed, 39 insertions(+) create mode 100644 package/freescale-imx/kernel-module-imx-gpu-viv/Config.in create mode 100644 package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash create mode 100644 package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk diff --git a/linux/linux.mk b/linux/linux.mk index 3c53a0b..c9986cd 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -251,6 +251,8 @@ define LINUX_KCONFIG_FIXUP_CMDS $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config)) $(if $(BR2_LINUX_KERNEL_APPENDED_DTB), $(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config)) + $(if $(BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV), + $(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config)) endef ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y) diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index a958dbd..dfb6cc4 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -52,6 +52,7 @@ source "package/freescale-imx/libz160/Config.in" endif if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q source "package/freescale-imx/imx-gpu-viv/Config.in" +source "package/freescale-imx/kernel-module-imx-gpu-viv/Config.in" endif endif diff --git a/package/freescale-imx/kernel-module-imx-gpu-viv/Config.in b/package/freescale-imx/kernel-module-imx-gpu-viv/Config.in new file mode 100644 index 0000000..bcc5517 --- /dev/null +++ b/package/freescale-imx/kernel-module-imx-gpu-viv/Config.in @@ -0,0 +1,14 @@ +comment "kernel-module-imx-gpu-viv needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +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 + + https://github.com/Freescale/kernel-module-imx-gpu-viv diff --git a/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash b/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash new file mode 100644 index 0000000..7d01afb --- /dev/null +++ b/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.hash @@ -0,0 +1,2 @@ +# locally computed +sha256 955037fd86d31cdddaed15c254f377f4b30a8abcf5a5e4f9185bd660ff14b7c3 kernel-module-imx-gpu-viv-eeeb23c0fb1cee01318088d417025263479c44ac.tar.gz 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..95b0a6b --- /dev/null +++ b/package/freescale-imx/kernel-module-imx-gpu-viv/kernel-module-imx-gpu-viv.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# 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 + +$(eval $(kernel-module)) +$(eval $(generic-package))