Skip to contentSkip to conversation

add new recipe for xf86-video-mga and ssiapi

PATCH In review [email protected] 4 participants 11 messages May 23, 2017 – Jul 28, 2017

lore
Share & tools
lore
#0 lore raw

cover add new recipe for xf86-video-mga and ssiapi

From: Jackie Huang <[email protected]>

--
The following changes since commit fc03b3d9382dd5b6a8fff5f84e4c86a1acc9a73a:

drbd-utils: fix dependency for perl under small-fs (2017-05-09 12:29:15 -0400)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/r_upstream-xf86-video-mga-ssiapi_170523_0
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/r_upstream-xf86-video-mga-ssiapi_170523_0

Jackie Huang (2):
xf86-video-mga: add new recipe
ssiapi: add new recipe

 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68 ++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb     | 25 ++++++++
 3 files changed, 114 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb
 create mode 100644 meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 xf86-video-mga: add new recipe

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68 ++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +68 -0
new file mode 100644
index 000000000..ceae6dfba
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=57606]
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross-compiling.
+
+Fix this by enabling DRI by default, and removing the explicit file checks as
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+ 
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support [[default=auto]]]),
++                                  [Disable DRI support [[default=enabled]]]),
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support [[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+ 
+ # Checks for libraries.
+ 
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"], [have_dristruct_h="no"])
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-
+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+-- 
+1.7.10.4
+
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +21 -0
new file mode 100644
index 000000000..cd680597c
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
+
+SRC_URI[md5sum] = "3ee2549247e01de3e7bce52c27483118"
+SRC_URI[sha256sum] = "b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422"
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri', '', d)}"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa"
Signature · 1 line
2.11.0
#2 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 95 lines · On Tue, May 23, 2017 at 12:01 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68 ++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +68 -0
new file mode 100644
index 000000000..ceae6dfba
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=57606]
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross-compiling.
+
+Fix this by enabling DRI by default, and removing the explicit file checks as
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support [[default=auto]]]),
++                                  [Disable DRI support [[default=enabled]]]),
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support [[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+
+ # Checks for libraries.
+
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"], [have_dristruct_h="no"])
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-
+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4
+
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +3 -0
new file mode 100644
index 000000000..cd680597c
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb line 13

Quoted 10 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +10 -0
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'

can this also include musl ? if yes then use linux*
and I think it could be a good thing to check for x11 as required distro features may be

Quoted 16 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +8 -1
+
+SRC_URI[md5sum] = "3ee2549247e01de3e7bce52c27483118"
+SRC_URI[sha256sum] = "b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422"
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri', '', d)}"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa"
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 114 lines · Khem Raj
Quoted 7 lines · On Tue, May 23, 2017 at 12:01 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68

++++++++++++++++++++++

Quoted 3 lines
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/

checkfile.patch

Quoted 1 line
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/

xf86-video-mga_1.6.5.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/

Quoted 4 lines

new file mode 100644
index 000000000..ceae6dfba

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +0 -0

checkfile.patch

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 1

Quoted 2 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +1 -0
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/

show_bug.cgi?id=57606]

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 9

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +8 -0
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed files

isn't

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 12

Quoted 3 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +3 -0
+deterministic, and AC_CHECK_FILE returns an error when cross-compiling.
+
+Fix this by enabling DRI by default, and removing the explicit file

checks as

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +8 -0
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 30

Quoted 10 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +10 -0
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support

[[default=auto]]]),

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 31

Quoted 1 line
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +1 -0
++                                  [Disable DRI support

[[default=enabled]]]),

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 37

Quoted 6 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +6 -0
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support

[[default=enabled]]]),

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ line 48

Quoted 11 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +11 -0
+@@ -76,27 +76,6 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+
+ # Checks for libraries.
+
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"],

[have_dristruct_h="no"])

Review

Quoted 21 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/ new file +20 -0
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-
+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4
+
(quoted diff) +0 -0

6.5.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb line 7

Quoted 12 lines

new file mode 100644
index 000000000..cd680597c

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +7 -0
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3

fc"

Quoted 12 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb line 13

Quoted 6 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +6 -0
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'

can this also include musl ? if yes then use linux*
and I think it could be a good thing to check for x11 as required distro features may be

xorg-driver-common.inc (via xorg-driver-video.inc) should already take care of requiring "x11" distro feature.

#4 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 108 lines

From: Jussi Kukkonen [mailto:[email protected]]
Sent: Wednesday, May 24, 2017 03:37
To: Khem Raj
Cc: Huang, Jie (Jackie); openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

On 23 May 2017 at 17:54, Khem Raj <[email protected]> wrote:

Quoted 98 lines · On Tue, May 23, 2017 at 12:01 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68 ++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +68 -0
new file mode 100644
index 000000000..ceae6dfba
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=57606]
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross-compiling.
+
+Fix this by enabling DRI by default, and removing the explicit file checks as
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support [[default=auto]]]),
++                                  [Disable DRI support [[default=enabled]]]),
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support [[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+
+ # Checks for libraries.
+
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"], [have_dristruct_h="no"])
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-
+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4
+
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +6 -0
new file mode 100644
index 000000000..cd680597c
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
Quoted 8 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb line 13

Quoted 7 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +7 -0
+LIC_FILES_CHKSUM = "file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'

can this also include musl ? if yes then use linux*

Yes, it includes musl but I don't think linux* is necessary, the linux-musl can be matched already with the above pattern and xf86-video-mga builds fine with:

COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
HOST_SYS="i586-poky-linux-musl"

And I see that other xorg-drivers are the same:

In oe-core:

$ grep -r COMPATIBLE_HOST *
xf86-input-vmmouse_13.1.0.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-intel_git.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-vesa_2.3.4.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-vmware_13.2.1.bb:COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'

In meta-oe:

$ grep -r COMPATIBLE_HOST *
xf86-video-ati_7.8.0.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-geode_2.11.16.bb:COMPATIBLE_HOST = "i.86.*-linux"
xf86-video-nouveau_1.0.12.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
Quoted 5 lines

and I think it could be a good thing to check for x11 as required distro features may be

xorg-driver-common.inc (via xorg-driver-video.inc) should already take care of requiring "x11" distro feature.

Yes, that's correct:

$ grep REQUIRED_DISTRO_FEATURES xorg-driver-common.inc
REQUIRED_DISTRO_FEATURES = "x11"

Thanks,
Jackie

Quoted 2 lines
#5 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 134 lines · Jie (Jackie)
Quoted 17 lines

From: Jussi Kukkonen [mailto:[email protected]]
Sent: Wednesday, May 24, 2017 03:37
To: Khem Raj
Cc: Huang, Jie (Jackie); openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

On 23 May 2017 at 17:54, Khem Raj <[email protected]> wrote:

Quoted 7 lines · On Tue, May 23, 2017 at 12:01 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68

++++++++++++++++++++++

Quoted 3 lines
Quoted 3 lines
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 1 line
Quoted 1 line
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/

xf86-video-mga_1.6.5.bb

Quoted 2 lines
Quoted 2 lines

diff --git

a/meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch b/meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 000000000..ceae6dfba
--- /dev/null
+++

b/meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 2 lines

Review line 1

Quoted 2 lines
(quoted diff) +1 -0
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [

https://bugs.freedesktop.org/show_bug.cgi?id=57606]

Quoted 8 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +8 -0
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed

files isn't

Quoted 1 line

Review line 10

Quoted 1 line
(quoted diff) +1 -0
+deterministic, and AC_CHECK_FILE returns an error when

cross-compiling.

Quoted 2 lines

Review line 12

Quoted 2 lines
(quoted diff) +2 -0
+
+Fix this by enabling DRI by default, and removing the explicit file

checks as

Quoted 10 lines
Quoted 10 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +10 -0
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
Quoted 8 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +8 -0
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support

[[default=auto]]]),

Quoted 1 line

Review line 31

Quoted 1 line
(quoted diff) +1 -0
++                                  [Disable DRI support

[[default=enabled]]]),

Quoted 6 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 6 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +6 -0
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support

[[default=enabled]]]),

Quoted 11 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch

Quoted 11 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +11 -0
+@@ -76,27 +76,6 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+
+ # Checks for libraries.
+
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"],

[have_dristruct_h="no"])

Quoted 13 lines
Quoted 13 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +13 -0
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
Quoted 8 lines

Review

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga/checkfile.patch new file +7 -0
+-
+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4
+
(quoted diff) +0 -0

xf86-video-mga_1.6.5.bb b/meta-oe/recipes-graphics/xorg-driver/ xf86-video-mga_1.6.5.bb

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 000000000..cd680597c

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +0 -0
Quoted 8 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb line 7

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +7 -0
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM =

"file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"

Quoted 7 lines

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb line 13

Quoted 6 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +6 -0
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'

can this also include musl ? if yes then use linux*

Quoted 9 lines

Yes, it includes musl but I don't think linux* is necessary, the linux-musl can be matched already with the above pattern and xf86-video-mga builds fine with:

COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
HOST_SYS="i586-poky-linux-musl"

And I see that other xorg-drivers are the same:

Ok thanks

Quoted 32 lines

In oe-core:

$ grep -r COMPATIBLE_HOST *
xf86-input-vmmouse_13.1.0.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-intel_git.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-vesa_2.3.4.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-vmware_13.2.1.bb:COMPATIBLE_HOST =
'(i.86.*-linux|x86_64.*-linux)'

In meta-oe:

$ grep -r COMPATIBLE_HOST *
xf86-video-ati_7.8.0.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
xf86-video-geode_2.11.16.bb:COMPATIBLE_HOST = "i.86.*-linux"
xf86-video-nouveau_1.0.12.bb:COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
Quoted 5 lines

and I think it could be a good thing to check for x11 as required distro features may be

xorg-driver-common.inc (via xorg-driver-video.inc) should already take

care of requiring "x11" distro feature.

Yes, that's correct:

$ grep REQUIRED_DISTRO_FEATURES xorg-driver-common.inc
REQUIRED_DISTRO_FEATURES = "x11"

Thanks,
Jackie

Quoted 2 lines
#6 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

In reply to [email protected]
Quoted 5 lines · On Tue, 2017-05-23 at 15:01 +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

I missed the inclusion of this driver into meta-oe, we have been maintaining this driver in meta-intel and have been for a while (it's listed in layers.openembedded.org.

If there are multiple layers using this Xorg driver, we should consider moving into oe-core proper.

There are multiple x86* HW platforms that use the Matrox hardware still.  I would prefer not to have meta-intel depending on meta-oe for one Xorg driver.

Thoughts of moving it?

Sau!

Quoted 134 lines

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68
++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++

 2 files changed, 89 insertions(+)

 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video- mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video- mga_1.6.5.bb

(quoted diff) +0 -0

mga/checkfile.patch b/meta-oe/recipes-graphics/xorg-driver/xf86- video-mga/checkfile.patch
new file mode 100644
index 000000000..ceae6dfba

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +0 -0

mga/checkfile.patch

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +1 -0
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cg

i?id=57606]

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +3 -0
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00

2001

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +5 -0
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed

files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross- compiling.

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+Fix this by enabling DRI by default, and removing the explicit file

checks as

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +18 -0
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+ 
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support

[[default=auto]]]),
++                                  [Disable DRI support [[default=enabled]]]),
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support [[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=$PKG_CONFIG --variable=sdkdir xorg- server
+
+ # Checks for libraries.
+

+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"],
[have_dristruct_h="no"])
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-

+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +1 -0
+
(quoted diff) +0 -0

mga_1.6.5.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video- mga_1.6.5.bb
new file mode 100644
index 000000000..cd680597c

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +7 -0
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM =

"file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +9 -0
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
+
+SRC_URI[md5sum] = "3ee2549247e01de3e7bce52c27483118"
+SRC_URI[sha256sum] =

"b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +2 -0
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl',

'dri', '', d)}"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +2 -0
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa"

--
2.11.0

#7 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 4 lines · Saul Wold
Quoted 3 lines · On Tue, 2017-05-23 at 15:01 +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Quoted 8 lines
Quoted 2 lines

mga is an Xorg driver for Matrox video cards

I missed the inclusion of this driver into meta-oe, we have been maintaining this driver in meta-intel and have been for a while (it's listed in layers.openembedded.org.

If there are multiple layers using this Xorg driver, we should consider moving into oe-core proper.

I think it falls into bsp area and unless we can
Excercise it with qemu it just doesn't seem right to move to core I would even not put it in meta-oe

Quoted 150 lines

There are multiple x86* HW platforms that use the Matrox hardware still. I would prefer not to have meta-intel depending on meta-oe for one Xorg driver.

Thoughts of moving it?

Sau!

Quoted 133 lines
---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68
++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-
mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-video-

mga_1.6.5.bb

(quoted diff) +0 -0

mga/checkfile.patch b/meta-oe/recipes-graphics/xorg-driver/xf86- video-mga/checkfile.patch
new file mode 100644
index 000000000..ceae6dfba

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +0 -0

mga/checkfile.patch

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +1 -0
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cg

i?id=57606]

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +3 -0
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17 00:00:00

2001

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +5 -0
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed

files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross- compiling.

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+Fix this by enabling DRI by default, and removing the explicit file

checks as

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +18 -0
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support

[[default=auto]]]),
++ [Disable DRI support
[[default=enabled]]]),

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +6 -0
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support

[[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=$PKG_CONFIG --variable=sdkdir xorg- server

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +10 -0
+
+ # Checks for libraries.
+
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"], [have_sarea_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"],

[have_dristruct_h="no"])

+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-

+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +4 -0
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4
+
(quoted diff) +0 -0

mga_1.6.5.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video- mga_1.6.5.bb
new file mode 100644
index 000000000..cd680597c

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +7 -0
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM =

"file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +9 -0
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
+
+SRC_URI[md5sum] = "3ee2549247e01de3e7bce52c27483118"
+SRC_URI[sha256sum] =

"b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +2 -0
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl',

'dri', '', d)}"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"

meta-oe/recipes-graphics/xorg-driver/xf86-video-mga_1.6.5.bb new file +2 -1
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa"
--
Quoted 1 line

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 15 lines · Khem Raj
Quoted 12 lines · Saul Wold
Quoted 5 lines · On Tue, 2017-05-23 at 15:01 +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

I missed the inclusion of this driver into meta-oe, we have been maintaining this driver in meta-intel and have been for a while (it's
listed in layers.openembedded.org.

Quoted 8 lines
Quoted 3 lines

If there are multiple layers using this Xorg driver, we should consider
moving into oe-core proper.

I think it falls into bsp area and unless we can Excercise it with qemu it just doesn't seem right to move to core I would even not put it in meta-oe

So your suggesting just update the meta-intel BSP with the newer version and remove it from meta-oe?

Sau!

Quoted 161 lines
Quoted 161 lines

There are multiple x86* HW platforms that use the Matrox hardware still.  I would prefer not to have meta-intel depending on meta-oe for
one Xorg driver.

Thoughts of moving it?

Sau!

Quoted 8 lines

---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68
++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++

 2 files changed, 89 insertions(+)

 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-

video-

Quoted 2 lines

mga/checkfile.patch
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-

video-

meta-oe/recipes-graphics/xorg-driver/xf86-video- line 1

Quoted 12 lines

mga_1.6.5.bb

(quoted diff) +0 -0

mga/checkfile.patch b/meta-oe/recipes-graphics/xorg-driver/xf86- video-mga/checkfile.patch
new file mode 100644
index 000000000..ceae6dfba

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +0 -0

mga/checkfile.patch

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +1 -0
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bu

g.cg

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 4 lines

i?id=57606]

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +3 -0
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17

00:00:00

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 11 lines

2001

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +5 -0
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed

files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross- compiling.

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+Fix this by enabling DRI by default, and removing the explicit

file

Quoted 34 lines

checks as

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +18 -0
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+ 
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support

[[default=auto]]]),
++                                  [Disable DRI support [[default=enabled]]]),
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support [[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=$PKG_CONFIG --variable=sdkdir xorg- server
+
+ # Checks for libraries.
+

Quoted 5 lines
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"],

[have_sarea_h="no"])

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 30 lines
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"],
[have_dristruct_h="no"])
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-

+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +1 -0
+
(quoted diff) +0 -0

mga_1.6.5.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video- mga_1.6.5.bb
new file mode 100644
index 000000000..cd680597c

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +0 -0

mga_1.6.5.bb

Quoted 10 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +7 -0
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM =

"file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 9 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +9 -0
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
+
+SRC_URI[md5sum] = "3ee2549247e01de3e7bce52c27483118"
+SRC_URI[sha256sum] =

"b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422"

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 2 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES',

'opengl',

Quoted 7 lines

'dri', '', d)}"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa"

--
2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

Re: [meta-oe][PATCH 1/2] xf86-video-mga: add new recipe

Quoted 20 lines · Saul Wold
Quoted 19 lines · Khem Raj
Quoted 15 lines · Saul Wold
Quoted 5 lines · On Tue, 2017-05-23 at 15:01 +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

mga is an Xorg driver for Matrox video cards

I missed the inclusion of this driver into meta-oe, we have been maintaining this driver in meta-intel and have been for a while (it's
listed in layers.openembedded.org.

If there are multiple layers using this Xorg driver, we should consider
moving into oe-core proper.

Quoted 6 lines
Quoted 4 lines

I think it falls into bsp area and unless we can Excercise it with qemu it just doesn't seem right to move to core I would even not put it in meta-oe

So your suggesting just update the meta-intel BSP with the newer version and remove it from meta-oe?

right. May be between intel and amd, there should be a common layer too, since there are lot of x86 specific packages which are shared at architecture level. I am doing llvm right now and its only useful for x86 based systems there is no single place to put it and oe-core seems a bit of overkill.

Quoted 163 lines

Sau!

Quoted 161 lines
Quoted 161 lines

There are multiple x86* HW platforms that use the Matrox hardware still. I would prefer not to have meta-intel depending on meta-oe for
one Xorg driver.

Thoughts of moving it?

Sau!

Quoted 8 lines
---
 .../xorg-driver/xf86-video-mga/checkfile.patch     | 68
++++++++++++++++++++++
 .../xorg-driver/xf86-video-mga_1.6.5.bb            | 21 +++++++
 2 files changed, 89 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-

video-

Quoted 2 lines

mga/checkfile.patch

 create mode 100644 meta-oe/recipes-graphics/xorg-driver/xf86-

video-

meta-oe/recipes-graphics/xorg-driver/xf86-video- line 1

Quoted 12 lines

mga_1.6.5.bb

(quoted diff) +0 -0

mga/checkfile.patch b/meta-oe/recipes-graphics/xorg-driver/xf86- video-mga/checkfile.patch
new file mode 100644
index 000000000..ceae6dfba

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +0 -0

mga/checkfile.patch

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +1 -0
@@ -0,0 +1,68 @@
+Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bu

g.cg

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 4 lines

i?id=57606]

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +3 -0
+Signed-off-by: Ross Burton <[email protected]>
+
+From c9014a8f3c9b691b5aa7b1f3ec66cf7c84b8211b Mon Sep 17

00:00:00

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 11 lines

2001

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +5 -0
+From: Ross Burton <[email protected]>
+Date: Thu, 29 Nov 2012 11:00:43 +0000
+Subject: [PATCH] build: dont use AC_CHECK_FILE when enabling DRI
+
+Automatically enabling or disabling a feature based on installed

files isn't
+deterministic, and AC_CHECK_FILE returns an error when cross- compiling.

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+Fix this by enabling DRI by default, and removing the explicit

file

Quoted 31 lines

checks as

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +18 -0
+pkg-config is good enough.
+
+(#57606)
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ configure.ac |   25 ++-----------------------
+ 1 file changed, 2 insertions(+), 23 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index fca1a9c..d2aa2ed 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,9 +55,9 @@ AC_ARG_WITH(xorg-module-dir,
+             [moduledir="$libdir/xorg/modules"])
+
+ AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+-                                  [Disable DRI support

[[default=auto]]]),
++ [Disable DRI support
[[default=enabled]]]),

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +6 -0
+               [DRI="$enableval"],
+-              [DRI=auto])
++              [DRI=yes])
+ AC_ARG_ENABLE(exa,
+               AS_HELP_STRING([--disable-exa],
+                              [Disable EXA support

[[default=enabled]]]),
+@@ -76,27 +76,6 @@ sdkdir=$PKG_CONFIG --variable=sdkdir xorg- server

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 8 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +8 -0
+
+ # Checks for libraries.
+
+-if test "x$DRI" != xno; then
+-        AC_CHECK_FILE([${sdkdir}/dri.h],
+-                      [have_dri_h="yes"], [have_dri_h="no"])
+-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+-                      [have_sarea_h="yes"],

[have_sarea_h="no"])

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 30 lines
+-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+-                      [have_dristruct_h="yes"],
[have_dristruct_h="no"])
+-fi
+-
+-AC_MSG_CHECKING([whether to include DRI support])
+-if test "x$DRI" = xauto; then
+-        if test "x$have_dri_h" = xyes && \
+-           test "x$have_sarea_h" = xyes && \
+-           test "x$have_dristruct_h" = xyes; then
+-                DRI="yes"
+-        else
+-                DRI="no"
+-        fi
+-fi
+-AC_MSG_RESULT([$DRI])
+-

+ AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
+ if test "x$DRI" = xyes; then

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +4 -0
+         PKG_CHECK_MODULES(DRI, [libdrm >= 2.0 xf86driproto])
+--
+1.7.10.4
+
(quoted diff) +0 -0

mga_1.6.5.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video- mga_1.6.5.bb
new file mode 100644
index 000000000..cd680597c

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +0 -0

mga_1.6.5.bb

Quoted 10 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +7 -0
@@ -0,0 +1,21 @@
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+SUMMARY = "X.Org X server -- Matrox MGA display driver"
+
+DESCRIPTION = "mga is an Xorg driver for Matrox video cards"
+
+LIC_FILES_CHKSUM =

"file://COPYING;md5=bc1395d2cd32dfc5d6c57d2d8f83d3fc"

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 9 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +9 -0
+
+SRC_URI += "file://checkfile.patch"
+
+DEPENDS += "virtual/libx11 libpciaccess"
+
+COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
+
+SRC_URI[md5sum] = "3ee2549247e01de3e7bce52c27483118"
+SRC_URI[sha256sum] =

"b663cd8e6364f7c4e2637b9fcab9861d0e3971518c73b00d213f6545a1289422"

meta-oe/recipes-graphics/xorg-driver/xf86-video-

Quoted 2 lines
meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -0
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES',

'opengl',

Quoted 7 lines

'dri', '', d)}"
+PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,drm xf86driproto,xserver-xorg-extension-dri"

meta-oe/recipes-graphics/xorg-driver/xf86-video- new file +2 -1
+
+RDEPENDS_${PN} = "xserver-xorg-module-exa"
--

2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#10 lore raw

PATCH 2/2 ssiapi: add new recipe

In reply to [email protected]

From: Jackie Huang <[email protected]>

Intel Rapid Storage Technology enterprise with Linux OS* Standard Storage Interface API Library. The library allows user to manage storage devices including creating and managing Raid arrays on systems with Intel chipset.

---
 meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb
meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb new file +25 -0
new file mode 100644
index 000000000..5b951eb26
@@ -0,0 +1,25 @@
+SUMMARY = "Intel RSTe with Linux OS SSI API Library"
+
+DESCRIPTION = "Intel Rapid Storage Technology enterprise with Linux OS* Standard Storage Interface API Library. \
+The library allows user to manage storage devices including creating and managing Raid arrays on systems with Intel chipset."
+
+HOMEPAGE = "http://irstessi.sourceforge.net/"
+
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0413ff365e0bd733c4869a6797551c6f"
+
+DEPENDS += "sg3-utils"
+
+SRC_URI = "http://sourceforge.net/projects/irstessi/files/${BPN}.${PV}.tgz"
+SRC_URI[md5sum] = "02f16d7cbd30d28034093212906591f5"
+SRC_URI[sha256sum] = "e10d283b0f211afb8ebd0bde87c097769613d30a052cdf164753e35e803264c7"
+
+S ="${WORKDIR}/${BPN}.${PV}"
+
+inherit autotools-brokensep
+
+do_configure_prepend(){
+    ./autogen.sh
+}
+
+RDEPENDS_${PN} += "mdadm"
Signature · 1 line
2.11.0