All of lore.kernel.org
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio@ossystems.com.br>
To: meta-freescale Mailing List <meta-freescale@yoctoproject.org>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Subject: [PATCH 19/32] xf86-video-imxfb-vivante: Update to version 6.2.4.p1
Date: Mon, 25 Jun 2018 16:30:19 -0300	[thread overview]
Message-ID: <20180625193032.9248-19-otavio@ossystems.com.br> (raw)
In-Reply-To: <20180625193032.9248-1-otavio@ossystems.com.br>

From: Fabio Berton <fabio.berton@ossystems.com.br>

 - Remove .inc file to use only one .bb file
 - Update O.S. Systems License
 - Remove unused patch
 - Set SDKTARGETSYSROOT to use STAGING_DIR_HOST
 - Remove unnecessary CFLAGS

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 ...top-using-Git-to-write-local-version.patch | 87 -------------------
 .../xf86-video-imxfb-vivante_6.2.2.p0.bb      |  9 --
 ...=> xf86-video-imxfb-vivante_6.2.4.p1.2.bb} | 34 +++-----
 3 files changed, 13 insertions(+), 117 deletions(-)
 delete mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Stop-using-Git-to-write-local-version.patch
 delete mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.2.p0.bb
 rename recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante.inc => xf86-video-imxfb-vivante_6.2.4.p1.2.bb} (66%)

diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Stop-using-Git-to-write-local-version.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Stop-using-Git-to-write-local-version.patch
deleted file mode 100644
index f541e5c1..00000000
--- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Stop-using-Git-to-write-local-version.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 69a92f4576a1e789ba2fcf957164d2c4013020c5 Mon Sep 17 00:00:00 2001
-From: Otavio Salvador <otavio@ossystems.com.br>
-Date: Wed, 2 Dec 2015 13:36:25 +0000
-Subject: [PATCH] Stop using Git to write local version
-Organization: O.S. Systems Software LTDA.
-
-The standard version does not use a Git repository so we should not
-use Git to identify the commit of the build as it can end getting the
-version from a wrong repository and can be misleading.
-
-Upstream-Status: Pending
-
-Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
----
- EXA/src/makefile.tc         | 6 +++---
- FslExt/src/makefile.tc      | 6 +++---
- util/autohdmi/makefile.tc   | 6 +++---
- util/pandisplay/makefile.tc | 6 +++---
- 4 files changed, 12 insertions(+), 12 deletions(-)
-
-diff --git a/EXA/src/makefile.tc b/EXA/src/makefile.tc
-index 0b9a9e6..ec6e68d 100644
---- a/EXA/src/makefile.tc
-+++ b/EXA/src/makefile.tc
-@@ -52,8 +52,8 @@ prefix ?= /usr
- sysroot ?= /
- 
- # get git commit number
--COMMITNR := `git log -n 1 --format=%H`
--DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
--LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
-+#COMMITNR := `git log -n 1 --format=%H`
-+#DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
-+#LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
- 
- 
-diff --git a/FslExt/src/makefile.tc b/FslExt/src/makefile.tc
-index 0b9a9e6..ec6e68d 100644
---- a/FslExt/src/makefile.tc
-+++ b/FslExt/src/makefile.tc
-@@ -52,8 +52,8 @@ prefix ?= /usr
- sysroot ?= /
- 
- # get git commit number
--COMMITNR := `git log -n 1 --format=%H`
--DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
--LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
-+#COMMITNR := `git log -n 1 --format=%H`
-+#DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
-+#LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
- 
- 
-diff --git a/util/autohdmi/makefile.tc b/util/autohdmi/makefile.tc
-index c9de0a6..d0a468c 100644
---- a/util/autohdmi/makefile.tc
-+++ b/util/autohdmi/makefile.tc
-@@ -64,8 +64,8 @@ prefix ?= /usr
- sysroot ?= /
- 
- # get git commit number
--COMMITNR := `git log -n 1 --format=%H`
--DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
--LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
-+#COMMITNR := `git log -n 1 --format=%H`
-+#DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
-+#LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
- 
- 
-diff --git a/util/pandisplay/makefile.tc b/util/pandisplay/makefile.tc
-index 28732b9..bf54c20 100644
---- a/util/pandisplay/makefile.tc
-+++ b/util/pandisplay/makefile.tc
-@@ -64,8 +64,8 @@ prefix ?= /usr
- sysroot ?= /
- 
- # get git commit number
--COMMITNR := `git log -n 1 --format=%H`
--DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
--LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
-+#COMMITNR := `git log -n 1 --format=%H`
-+#DIRTY := `git diff-index --quiet HEAD || echo '-dirty'`
-+#LOCAL_CFLAGS += -DCOMMIT="${COMMITNR}${DIRTY}"
- 
- 
--- 
-2.1.4
-
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.2.p0.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.2.p0.bb
deleted file mode 100644
index 5514962f..00000000
--- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.2.p0.bb
+++ /dev/null
@@ -1,9 +0,0 @@
-# Copyright (C) 2012-2016 Freescale Semiconductor
-# Copyright (C) 2012-2014 O.S. Systems Software LTDA.
-# Copyright 2017 NXP
-# Released under the MIT license (see COPYING.MIT for the terms)
-
-require xf86-video-imxfb-vivante.inc
-
-SRCBRANCH = "nxp/imx_4.9.11_1.0.0_ga"
-SRCREV = "07ef065dfe09f1c05a1a188c371577faa3677a17"
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.4.p1.2.bb
similarity index 66%
rename from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc
rename to recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.4.p1.2.bb
index c16da671..04ae36cf 100644
--- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc
+++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_6.2.4.p1.2.bb
@@ -1,5 +1,6 @@
-# Copyright (C) 2012-2015 Freescale Semiconductor
-# Copyright (C) 2012-2016 O.S. Systems Software LTDA.
+# Copyright (C) 2012-2016 Freescale Semiconductor
+# Copyright (C) 2012-2018 O.S. Systems Software LTDA.
+# Copyright 2017-2018 NXP
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 require recipes-graphics/xorg-driver/xorg-driver-video.inc
@@ -12,6 +13,8 @@ DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 imx-gpu-viv virtua
 
 LIC_FILES_CHKSUM = "file://COPYING-MIT;md5=b5e9d9f5c02ea831ab3ecf802bb7c4f3"
 
+SRCREV = "946e8603ed9a52f36d305405dbb2ab8ff90943d0"
+SRCBRANCH = "imx_exa_viv6_g2d"
 SRC_URI = "git://source.codeaurora.org/external/imx/xf86-video-imx-vivante.git;protocol=https;branch=${SRCBRANCH} \
            file://rc.autohdmi"
 
@@ -21,36 +24,25 @@ INITSCRIPT_PACKAGES = "xserver-xorg-extension-viv-autohdmi"
 INITSCRIPT_NAME = "rc.autohdmi"
 INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
 
-EXTRA_OEMAKE += "prefix=${D}/usr \
+EXTRA_OEMAKE += "prefix=${exec_prefix} \
                  sysroot=${STAGING_DIR_TARGET} \
+                 SDKTARGETSYSROOT=${STAGING_DIR_HOST} \
                  LFLAGS="${LDFLAGS}" \
                  BUSID_HAS_NUMBER=1 \
                  BUILD_IN_YOCTO=1 \
                  XSERVER_GREATER_THAN_13=1"
 
-CFLAGS += "-I${STAGING_INCDIR}/xorg \
-           -I${STAGING_INCDIR}/drm \
-           -I../../DRI_1.10.4/src"
-
 PACKAGES =+ "xserver-xorg-extension-viv-autohdmi"
 
-# FIXME: The Freescale provided Makefile has hardcodec include paths
-#        and this does not work in case prefix is different than /usr,
-#        sed it.
-do_configure_prepend () {
-    sed -i 's,$(sysroot)/usr/include,${STAGING_INCDIR},g' \
-            ${S}EXA/src/makefile.linux
-}
-
 do_install_append () {
-	install -d ${D}${includedir}
-	cp -axr ${S}/EXA/src/vivante_gal/vivante_priv.h ${D}${includedir}
-	cp -axr ${S}/EXA/src/vivante_gal/vivante_gal.h ${D}${includedir}
+    install -d ${D}${includedir}
+    cp -axr ${S}/EXA/src/vivante_gal/vivante_priv.h ${D}${includedir}
+    cp -axr ${S}/EXA/src/vivante_gal/vivante_gal.h ${D}${includedir}
 
-	install -d ${D}/${sysconfdir}/init.d
-	install -m 755 ${WORKDIR}/rc.autohdmi ${D}/${sysconfdir}/init.d/rc.autohdmi
+    install -d ${D}/${sysconfdir}/init.d
+    install -m 755 ${WORKDIR}/rc.autohdmi ${D}/${sysconfdir}/init.d/rc.autohdmi
 
-	find ${D}${includedir} -type f -exec chmod 660 {} \;
+    find ${D}${includedir} -type f -exec chmod 660 {} \;
 }
 
 RDEPENDS_${PN} += "libvivante-dri-imx \
-- 
2.18.0



  parent reply	other threads:[~2018-06-25 20:29 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-25 19:30 [PATCH 01/32] imx-vpu: Update to version 5.4.38 Otavio Salvador
2018-06-25 19:30 ` [PATCH 02/32] imx-gpu-viv: Update to 6.2.4.p1.2 Otavio Salvador
2018-06-25 19:30 ` [PATCH 03/32] imx-gpu-g2d: Update to version 6.2.4 Otavio Salvador
2018-06-25 19:30 ` [PATCH 04/32] imx-parser: Update to version 4.3.5 Otavio Salvador
2018-06-25 19:30 ` [PATCH 05/32] imx-codec: " Otavio Salvador
2018-06-25 19:30 ` [PATCH 06/32] imx-vpuwrap: " Otavio Salvador
2018-06-25 19:30 ` [PATCH 07/32] imx-kobs: Bump revision to c70685d Otavio Salvador
2018-06-25 19:30 ` [PATCH 08/32] libimxvpuapi: Bump revision to 4afb52f Otavio Salvador
2018-06-25 19:30 ` [PATCH 09/32] imx-lib: Bump to revision 3f77797 Otavio Salvador
2018-06-25 19:30 ` [PATCH 10/32] gstreamer1.0-plugins-base: Rename patch directory to match recipe name Otavio Salvador
2018-06-25 19:30 ` [PATCH 11/32] gstreamer1.0-plugins-bad: " Otavio Salvador
2018-06-25 19:30 ` [PATCH 12/32] imx-gpu-apitrace: Bump revision to 9281b2c2 Otavio Salvador
2018-06-25 19:30 ` [PATCH 13/32] imx-test: Update to version 7.0 Otavio Salvador
2018-06-25 19:30 ` [PATCH 14/32] kernel-module-imx-gpu-viv: Update to version 6.2.4.p1.2-based fork Otavio Salvador
2018-06-25 19:30 ` [PATCH 15/32] kernel-module-imx-gpu-viv: Update to 6.2.4.p1.2 Otavio Salvador
2018-06-25 19:30 ` [PATCH 16/32] dtc: Add recipe for version 1.4.5 Otavio Salvador
2018-06-28 15:33   ` Mihai Lindner
2018-06-28 16:49     ` Otavio Salvador
2018-06-29 17:53       ` Mihai Lindner
2018-07-02 16:42         ` Ian Coolidge
2018-07-02 17:09           ` Otavio Salvador
2018-07-04 14:44             ` Mihai Lindner
2018-06-25 19:30 ` [PATCH 17/32] gstreamer1.0-plugins-base: Update release to 4.9.88 Otavio Salvador
2018-06-25 19:30 ` [PATCH 18/32] gstreamer1.0-plugins-bad: " Otavio Salvador
2018-06-25 19:30 ` Otavio Salvador [this message]
2018-06-26  8:25   ` [PATCH 19/32] xf86-video-imxfb-vivante: Update to version 6.2.4.p1 Gary Bisson
2018-06-25 19:30 ` [PATCH 20/32] imx-gst1.0-plugin: Update to MM_04.03.05_1804_L4.9.88_MX7ULP_GA Otavio Salvador
2018-06-25 19:30 ` [PATCH 21/32] gstreamer1.0-plugins-imx: Bump to revision 963aea6 Otavio Salvador
2018-06-25 19:30 ` [PATCH 22/32] weston: Fix PREFERRED_VERSION_weston Otavio Salvador
2018-06-25 19:30 ` [PATCH 23/32] xf86-video-imx-vivante: Remove fb from name Otavio Salvador
2018-06-25 19:30 ` [PATCH 24/32] imx-base.inc: Improve formatting Otavio Salvador
2018-06-25 19:30 ` [PATCH 25/32] imx-dpu-g2d: Add new G2D implementation based on DPU Otavio Salvador
2018-06-25 20:24   ` Gary Bisson
2018-06-25 21:14     ` Otavio Salvador
2018-06-25 19:30 ` [PATCH 26/32] imx-gpu-viv: Rename package for libgal Otavio Salvador
2018-06-25 19:30 ` [PATCH 27/32] imx-gpu-viv: Add i.MX 8 support Otavio Salvador
2018-06-26  8:12   ` Gary Bisson
2018-06-26 16:49     ` Otavio Salvador
2018-06-26 22:00       ` Tom Hochstein
2018-06-25 19:30 ` [PATCH 28/32] xf86-video-imx-vivante: " Otavio Salvador
2018-06-25 19:30 ` [PATCH 29/32] imx-base.inc: Add i.MX 8M support Otavio Salvador
2018-06-25 20:22   ` Gary Bisson
2018-06-25 21:07     ` Otavio Salvador
2018-06-25 19:30 ` [PATCH 30/32] imx-base.inc: Add imxdpu and imxdpublit to MACHINEOVERRIDES_EXTENDER Otavio Salvador
2018-06-26  8:19   ` Gary Bisson
2018-06-27 14:00     ` Tom Hochstein
2018-06-27 14:12       ` Gary Bisson
2018-06-27 14:59         ` Tom Hochstein
2018-06-25 19:30 ` [PATCH 31/32] imx-base.inc: Add imxgpu " Otavio Salvador
2018-06-25 19:30 ` [PATCH 32/32] weston: Set package arch for all i.MX Otavio Salvador

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=20180625193032.9248-19-otavio@ossystems.com.br \
    --to=otavio@ossystems.com.br \
    --cc=meta-freescale@yoctoproject.org \
    /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.