Skip to contentSkip to conversation

Graphics SDK cleanup

PATCH In review Prabindh Sundareson 3 participants 18 messages Jun 12, 2013 – Jul 24, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): Prabindh Sundareson <[email protected]

#1 lore raw

cover Graphics SDK cleanup

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
#2 lore raw

Prabu,

There were few issues I found when testing your patches, but I've been working on the fixes past few days and should have it ready to be pushed shortly.

Not to force you to re-send the patches again, but ligles-omap3-x11 was actually missing. But even when added manually, it was causing conflicts with no-X11 version, breaking the parsing for distros w/o X11. Moreover, as was discussed long time ago, having both X11 and Raw variants of libraries and apps built and installed together is very useful for all-inclusive distros, so making those recipes conflict and replace each other is not a right way...

Having said all the above, I've done the necessary mods and am testing building different configurations at the moment. I'll let you know if I see any other issues. Thanks.

Signature · 1 line
Denys
Quoted 39 lines · Prabindh Sundareson

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at
https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

Hi all,

2013/6/20 Denys Dmytriyenko <[email protected]>:

Quoted 56 lines

Prabu,

There were few issues I found when testing your patches, but I've been working on the fixes past few days and should have it ready to be pushed shortly.

Not to force you to re-send the patches again, but ligles-omap3-x11 was actually missing. But even when added manually, it was causing conflicts with no-X11 version, breaking the parsing for distros w/o X11. Moreover, as was discussed long time ago, having both X11 and Raw variants of libraries and apps built and installed together is very useful for all-inclusive distros, so making those recipes conflict and replace each other is not a right way...

Having said all the above, I've done the necessary mods and am testing building different configurations at the moment. I'll let you know if I see any other issues. Thanks.

--
Denys

Quoted 35 lines · Prabindh Sundareson

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at
https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Shouldn't the libgles-omap3_4.09.00.01.bb depends on libdrm ? I get following error trying to create a image that installs libgles-omap3 but not libdrm.

| Computing transaction...error: Can't install libgles-omap3-es5-4.09.00.01-r35@armv7a_vfp_neon: no package provides libdrm.so.2

Adding libdrm to the image solves the problem.

Cheers,
Enric

#4 lore raw

Hi,

2013/7/3 Enric Balletbo Serra <[email protected]>:

Quoted 73 lines

Hi all,

2013/6/20 Denys Dmytriyenko <[email protected]>:

Quoted 56 lines

Prabu,

There were few issues I found when testing your patches, but I've been working on the fixes past few days and should have it ready to be pushed shortly.

Not to force you to re-send the patches again, but ligles-omap3-x11 was actually missing. But even when added manually, it was causing conflicts with no-X11 version, breaking the parsing for distros w/o X11. Moreover, as was discussed long time ago, having both X11 and Raw variants of libraries and apps built and installed together is very useful for all-inclusive distros, so making those recipes conflict and replace each other is not a right way...

Having said all the above, I've done the necessary mods and am testing building different configurations at the moment. I'll let you know if I see any other issues. Thanks.

--
Denys

Quoted 35 lines · Prabindh Sundareson

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at
https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Shouldn't the libgles-omap3_4.09.00.01.bb depends on libdrm ? I get following error trying to create a image that installs libgles-omap3 but not libdrm.

Quoted 8 lines

| Computing transaction...error: Can't install libgles-omap3-es5-4.09.00.01-r35@armv7a_vfp_neon: no package provides libdrm.so.2

Adding libdrm to the image solves the problem.

Cheers,
Enric

Mmm, sorry I'm missing something...

As I understand the libgles-omap3 package is without X11 and the libgles-omap3-x11 packages is with X11, then, why when I'm installing libgles-omap3 (without X11) requires some X stuff like libdrm, libX11 and libXfixes.

Any idea ?

Thanks in advance,
Enric

#5 lore raw
Quoted 86 lines · Enric Balletbo Serra

Hi,

2013/7/3 Enric Balletbo Serra <[email protected]>:

Quoted 73 lines

Hi all,

2013/6/20 Denys Dmytriyenko <[email protected]>:

Quoted 56 lines

Prabu,

There were few issues I found when testing your patches, but I've been working on the fixes past few days and should have it ready to be pushed shortly.

Not to force you to re-send the patches again, but ligles-omap3-x11 was actually missing. But even when added manually, it was causing conflicts with no-X11 version, breaking the parsing for distros w/o X11. Moreover, as was discussed long time ago, having both X11 and Raw variants of libraries and apps built and installed together is very useful for all-inclusive distros, so making those recipes conflict and replace each other is not a right way...

Having said all the above, I've done the necessary mods and am testing building different configurations at the moment. I'll let you know if I see any other issues. Thanks.

--
Denys

Quoted 35 lines · Prabindh Sundareson

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at
https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Shouldn't the libgles-omap3_4.09.00.01.bb depends on libdrm ? I get following error trying to create a image that installs libgles-omap3 but not libdrm.

Quoted 8 lines

| Computing transaction...error: Can't install libgles-omap3-es5-4.09.00.01-r35@armv7a_vfp_neon: no package provides libdrm.so.2

Adding libdrm to the image solves the problem.

Cheers,
Enric

Quoted 8 lines

Mmm, sorry I'm missing something...

As I understand the libgles-omap3 package is without X11 and the libgles-omap3-x11 packages is with X11, then, why when I'm installing libgles-omap3 (without X11) requires some X stuff like libdrm, libX11 and libXfixes.

Any idea ?

Which branch are you using?
What is your setup/configuration/machine/target?

Signature · 1 line
Denys
#6 lore raw

Hi Denys,

2013/7/3 Denys Dmytriyenko <[email protected]>:

Quoted 89 lines · Enric Balletbo Serra
Quoted 88 lines

Hi,

2013/7/3 Enric Balletbo Serra <[email protected]>:

Quoted 73 lines

Hi all,

2013/6/20 Denys Dmytriyenko <[email protected]>:

Quoted 56 lines

Prabu,

There were few issues I found when testing your patches, but I've been working on the fixes past few days and should have it ready to be pushed shortly.

Not to force you to re-send the patches again, but ligles-omap3-x11 was actually missing. But even when added manually, it was causing conflicts with no-X11 version, breaking the parsing for distros w/o X11. Moreover, as was discussed long time ago, having both X11 and Raw variants of libraries and apps built and installed together is very useful for all-inclusive distros, so making those recipes conflict and replace each other is not a right way...

Having said all the above, I've done the necessary mods and am testing building different configurations at the moment. I'll let you know if I see any other issues. Thanks.

--
Denys

Quoted 35 lines · Prabindh Sundareson

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at
https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Shouldn't the libgles-omap3_4.09.00.01.bb depends on libdrm ? I get following error trying to create a image that installs libgles-omap3 but not libdrm.

Quoted 8 lines

| Computing transaction...error: Can't install libgles-omap3-es5-4.09.00.01-r35@armv7a_vfp_neon: no package provides libdrm.so.2

Adding libdrm to the image solves the problem.

Cheers,
Enric

Mmm, sorry I'm missing something...

Quoted 8 lines
Quoted 6 lines

As I understand the libgles-omap3 package is without X11 and the libgles-omap3-x11 packages is with X11, then, why when I'm installing libgles-omap3 (without X11) requires some X stuff like libdrm, libX11 and libXfixes.

Any idea ?

Which branch are you using?

I'm using master branch, with libgles-omap3_4.09.00.01 and omap3-sgx-modules_4.09.00.01.bb set as DEFAULT_PREFERENCE

Quoted 1 line

What is your setup/configuration/machine/target?

My machine is a custom machine based on AM335x processor, and the image, is also custom, but basically I install some console stuff and libgles-omap3. If you want I can try to reproduce creating a minimal image for beaglebone.

Quoted 3 lines

--
Denys

#7 lore raw

Hi,

2013/7/3 Enric Balletbo Serra <[email protected]>:

Quoted 104 lines

Hi Denys,

2013/7/3 Denys Dmytriyenko <[email protected]>:

Quoted 89 lines · Enric Balletbo Serra
Quoted 88 lines

Hi,

2013/7/3 Enric Balletbo Serra <[email protected]>:

Quoted 73 lines

Hi all,

2013/6/20 Denys Dmytriyenko <[email protected]>:

Quoted 56 lines

Prabu,

There were few issues I found when testing your patches, but I've been working on the fixes past few days and should have it ready to be pushed shortly.

Not to force you to re-send the patches again, but ligles-omap3-x11 was actually missing. But even when added manually, it was causing conflicts with no-X11 version, breaking the parsing for distros w/o X11. Moreover, as was discussed long time ago, having both X11 and Raw variants of libraries and apps built and installed together is very useful for all-inclusive distros, so making those recipes conflict and replace each other is not a right way...

Having said all the above, I've done the necessary mods and am testing building different configurations at the moment. I'll let you know if I see any other issues. Thanks.

--
Denys

Quoted 35 lines · Prabindh Sundareson

Patch-set removes unsupported features, and separates X11 and non-X11 builds, and enables support for Qt5 builds. This patch-set also squashes 2 commits together per discussion at
https://lists.yoctoproject.org/pipermail/meta-ti/2013-May/002774.html

Prabindh Sundareson (9):
libgles-omap3: Remove X11 related build and packaging
omap3-sgx-modules: Remove X11 related build and packaging
libgles-omap3: Remove unsupported core build option ES2.0
libgles-omap3: Remove OpenVG references
libgles-omap3: Remove copying of unused header files
libgles-omap3: Add missing RPROVIDES
libgles-omap3: Package files with right permission
libgles-omap3-x11: Separate X11 SGX driver package into new recipe
omap3-sgx-modules-x11: Separate X11 SGX driver package into new
recipe

 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 +-
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  318 ++++++++++++++++++
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 +++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 ++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 9 files changed, 1365 insertions(+), 50 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Shouldn't the libgles-omap3_4.09.00.01.bb depends on libdrm ? I get following error trying to create a image that installs libgles-omap3 but not libdrm.

Quoted 8 lines

| Computing transaction...error: Can't install libgles-omap3-es5-4.09.00.01-r35@armv7a_vfp_neon: no package provides libdrm.so.2

Adding libdrm to the image solves the problem.

Cheers,
Enric

Mmm, sorry I'm missing something...

Quoted 8 lines
Quoted 6 lines

As I understand the libgles-omap3 package is without X11 and the libgles-omap3-x11 packages is with X11, then, why when I'm installing libgles-omap3 (without X11) requires some X stuff like libdrm, libX11 and libXfixes.

Any idea ?

Which branch are you using?

I'm using master branch, with libgles-omap3_4.09.00.01 and omap3-sgx-modules_4.09.00.01.bb set as DEFAULT_PREFERENCE

Quoted 7 lines
Quoted 1 line

What is your setup/configuration/machine/target?

My machine is a custom machine based on AM335x processor, and the image, is also custom, but basically I install some console stuff and libgles-omap3. If you want I can try to reproduce creating a minimal image for beaglebone.

I modified the package to do not install the libraries that depends on libdrm (pvr_drv.so libpvrPVR2D_DRIWSEGL.so libsrv_um_dri.so). Now I've following error loading running the pvr-init script:

ioctl FBIOPUT_VSCREENINFO: Invalid argument
Starting PVR

[   11.968592] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
[   11.977139] pgd = de560000
[   11.979994] [00000000] *pgd=9e5f9831, *pte=00000000, *ppte=00000000
[   11.986641] Internal error: Oops: 17 [#1] SMP ARM
[   11.991568] Modules linked in: omaplfb(O+) pvrsrvkm(O)
[   11.996971] CPU: 0    Tainted: G           O  (3.8.13+ #1)
[   12.002840] PC is at AllocateDeviceID+0x0/0x48 [pvrsrvkm]
[   12.008525] LR is at PVRSRVRegisterDCDeviceKM+0xf0/0x178 [pvrsrvkm]
[   12.015091] pc : [<bf0063f0>]    lr : [<bf0026b4>]    psr: 40000013
[   12.015091] sp : de565e18  ip : de0d0398  fp : 0000001c
[   12.027115] r10: 00000001  r9 : 00000000  r8 : 000a8c00
[   12.032586] r7 : df6ae898  r6 : 00000000  r5 : df6ae804  r4 : 00000000
[   12.039422] r3 : de0d02c0  r2 : 00000001  r1 : de0d02c8  r0 : 00000000
[   12.046260] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   12.053734] Control: 10c5387d  Table: 9e560019  DAC: 00000015
[   12.059752] Process modprobe (pid: 600, stack limit = 0xde564240)
[   12.066133] Stack: (0xde565e18 to 0xde566000)
[   12.074104] 5e00:
    de2389c0 de0d02c0
[   12.083159] 5e20: 00000032 df6ae800 00000000 00000000 000b4000
bf03ac64 c0969874 ffffffff
[   12.092276] 5e40: bf03bd54 00000001 00000001 bf03bd54 de565f58
00000000 00000001 bf03bd9c
[   12.101149] 5e60: bf03e000 bf03e008 de564000 c0008890 bf03e000
00000000 00000001 bf03bd54
[   12.110275] 5e80: bf03bd54 de565f58 00000000 00000001 bf03bd9c
00000001 de35ef80 c008a57c
[   12.119290] 5ea0: bf03bd60 00007fff c008648c 00000010 c0087a74
00000028 00000000 bf03bd60
[   12.128214] 5ec0: bf03bea8 000000c7 c0624424 e09e91f4 de565eec
4bc984d8 20000013 c087b058
[   12.137101] 5ee0: de565f1c c0619ad8 e09eb000 b6e75000 00000acd
00000000 00000000 00000000
[   12.147911] 5f00: 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[   12.156627] 5f20: 00000000 00000000 00000000 00000000 000000d2
b6e6d000 00008b4d 4bc984d8
[   12.168231] 5f40: 00000080 c000dac4 de564000 00000000 00000000
c008a8f8 e09e3000 00008b4d
[   12.177017] 5f60: e09e8bdc e09e8a2c e09eb37c 00001ec4 00002684
00000000 00000000 00000000
[   12.185757] 5f80: 00000027 00000028 00000015 00000019 00000012
00000000 4bc9925c 00000000
[   12.194483] 5fa0: 00022db0 c000d940 4bc9925c 00000000 b6e6d000
00008b4d 4bc984d8 00022db0
[   12.203203] 5fc0: 4bc9925c 00000000 00022db0 00000080 00022ec0
00008b4d 4bc984d8 00000000
[   12.211919] 5fe0: 4bca1b78 bea0a9a8 4bc90790 4bba7770 60000010
b6e6d000 00105b04 20230200
[   12.220696] [<bf0063f0>] (AllocateDeviceID+0x0/0x48 [pvrsrvkm])
from [<bf0026b4>] (PVRSRVRegisterDCDeviceKM+0xf0/0x178 [pvrsrvkm])
[   12.233166] [<bf0026b4>] (PVRSRVRegisterDCDeviceKM+0xf0/0x178
[pvrsrvkm]) from [<bf03ac64>] (OMAPLFBInit+0x3e0/0x548 [omaplfb])
[   12.245248] [<bf03ac64>] (OMAPLFBInit+0x3e0/0x548 [omaplfb]) from
[<bf03e008>] (OMAPLFB_Init+0x8/0x2c [omaplfb])
[   12.255952] [<bf03e008>] (OMAPLFB_Init+0x8/0x2c [omaplfb]) from
[<c0008890>] (do_one_initcall+0x90/0x160)
[   12.266010] [<c0008890>] (do_one_initcall+0x90/0x160) from
[<c008a57c>] (load_module+0x1944/0x1bf4)
[   12.275537] [<c008a57c>] (load_module+0x1944/0x1bf4) from
[<c008a8f8>] (sys_init_module+0xcc/0xec)
[   12.284957] [<c008a8f8>] (sys_init_module+0xcc/0xec) from
[<c000d940>] (ret_fast_syscall+0x0/0x30)
[   12.294728] Code: e3e00000 ebffed9d e1a00004 e8bd8038 (e5902000)
[   12.301154] ---[ end trace 8828fbcbbe3723c2 ]---

Segmentation fault

Any idea which could be the problem ?

Thanks in advance,
Enric

Quoted 4 lines
Quoted 4 lines

--
Denys

#8 lore raw
Quoted 74 lines · Enric Balletbo Serra

Hi,

I modified the package to do not install the libraries that depends on libdrm (pvr_drv.so libpvrPVR2D_DRIWSEGL.so libsrv_um_dri.so). Now I've following error loading running the pvr-init script:

ioctl FBIOPUT_VSCREENINFO: Invalid argument
Starting PVR

[   11.968592] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
[   11.977139] pgd = de560000
[   11.979994] [00000000] *pgd=9e5f9831, *pte=00000000, *ppte=00000000
[   11.986641] Internal error: Oops: 17 [#1] SMP ARM
[   11.991568] Modules linked in: omaplfb(O+) pvrsrvkm(O)
[   11.996971] CPU: 0    Tainted: G           O  (3.8.13+ #1)
[   12.002840] PC is at AllocateDeviceID+0x0/0x48 [pvrsrvkm]
[   12.008525] LR is at PVRSRVRegisterDCDeviceKM+0xf0/0x178 [pvrsrvkm]
[   12.015091] pc : [<bf0063f0>]    lr : [<bf0026b4>]    psr: 40000013
[   12.015091] sp : de565e18  ip : de0d0398  fp : 0000001c
[   12.027115] r10: 00000001  r9 : 00000000  r8 : 000a8c00
[   12.032586] r7 : df6ae898  r6 : 00000000  r5 : df6ae804  r4 : 00000000
[   12.039422] r3 : de0d02c0  r2 : 00000001  r1 : de0d02c8  r0 : 00000000
[   12.046260] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   12.053734] Control: 10c5387d  Table: 9e560019  DAC: 00000015
[   12.059752] Process modprobe (pid: 600, stack limit = 0xde564240)
[   12.066133] Stack: (0xde565e18 to 0xde566000)
[   12.074104] 5e00:
    de2389c0 de0d02c0
[   12.083159] 5e20: 00000032 df6ae800 00000000 00000000 000b4000
bf03ac64 c0969874 ffffffff
[   12.092276] 5e40: bf03bd54 00000001 00000001 bf03bd54 de565f58
00000000 00000001 bf03bd9c
[   12.101149] 5e60: bf03e000 bf03e008 de564000 c0008890 bf03e000
00000000 00000001 bf03bd54
[   12.110275] 5e80: bf03bd54 de565f58 00000000 00000001 bf03bd9c
00000001 de35ef80 c008a57c
[   12.119290] 5ea0: bf03bd60 00007fff c008648c 00000010 c0087a74
00000028 00000000 bf03bd60
[   12.128214] 5ec0: bf03bea8 000000c7 c0624424 e09e91f4 de565eec
4bc984d8 20000013 c087b058
[   12.137101] 5ee0: de565f1c c0619ad8 e09eb000 b6e75000 00000acd
00000000 00000000 00000000
[   12.147911] 5f00: 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[   12.156627] 5f20: 00000000 00000000 00000000 00000000 000000d2
b6e6d000 00008b4d 4bc984d8
[   12.168231] 5f40: 00000080 c000dac4 de564000 00000000 00000000
c008a8f8 e09e3000 00008b4d
[   12.177017] 5f60: e09e8bdc e09e8a2c e09eb37c 00001ec4 00002684
00000000 00000000 00000000
[   12.185757] 5f80: 00000027 00000028 00000015 00000019 00000012
00000000 4bc9925c 00000000
[   12.194483] 5fa0: 00022db0 c000d940 4bc9925c 00000000 b6e6d000
00008b4d 4bc984d8 00022db0
[   12.203203] 5fc0: 4bc9925c 00000000 00022db0 00000080 00022ec0
00008b4d 4bc984d8 00000000
[   12.211919] 5fe0: 4bca1b78 bea0a9a8 4bc90790 4bba7770 60000010
b6e6d000 00105b04 20230200
[   12.220696] [<bf0063f0>] (AllocateDeviceID+0x0/0x48 [pvrsrvkm])
from [<bf0026b4>] (PVRSRVRegisterDCDeviceKM+0xf0/0x178 [pvrsrvkm])
[   12.233166] [<bf0026b4>] (PVRSRVRegisterDCDeviceKM+0xf0/0x178
[pvrsrvkm]) from [<bf03ac64>] (OMAPLFBInit+0x3e0/0x548 [omaplfb])
[   12.245248] [<bf03ac64>] (OMAPLFBInit+0x3e0/0x548 [omaplfb]) from
[<bf03e008>] (OMAPLFB_Init+0x8/0x2c [omaplfb])
[   12.255952] [<bf03e008>] (OMAPLFB_Init+0x8/0x2c [omaplfb]) from
[<c0008890>] (do_one_initcall+0x90/0x160)
[   12.266010] [<c0008890>] (do_one_initcall+0x90/0x160) from
[<c008a57c>] (load_module+0x1944/0x1bf4)
[   12.275537] [<c008a57c>] (load_module+0x1944/0x1bf4) from
[<c008a8f8>] (sys_init_module+0xcc/0xec)
[   12.284957] [<c008a8f8>] (sys_init_module+0xcc/0xec) from
[<c000d940>] (ret_fast_syscall+0x0/0x30)
[   12.294728] Code: e3e00000 ebffed9d e1a00004 e8bd8038 (e5902000)
[   12.301154] ---[ end trace 8828fbcbbe3723c2 ]---
Quoted 4 lines

Segmentation fault

Any idea which could be the problem ?

Prabu,

Do you have any insight in the problem above? Any pointers? Thanks.

Signature · 1 line
Denys
#9 lore raw

I would start with a log of the script from sgxdbg,

http://processors.wiki.ti.com/index.php/SGXDbg#Baselining_the_current_SGX_driver_environment

regards,
Prabu

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, July 23, 2013 10:47 PM
To: Enric Balletbo Serra
Cc: Sundareson, Prabindh; [email protected]
Subject: Re: [meta-ti] [PATCH 0/9] Graphics SDK cleanup

Quoted 73 lines · Enric Balletbo Serra

Hi,

I modified the package to do not install the libraries that depends on libdrm (pvr_drv.so libpvrPVR2D_DRIWSEGL.so libsrv_um_dri.so). Now I've following error loading running the pvr-init script:

ioctl FBIOPUT_VSCREENINFO: Invalid argument Starting PVR

[   11.968592] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
[   11.977139] pgd = de560000
[   11.979994] [00000000] *pgd=9e5f9831, *pte=00000000, *ppte=00000000
[   11.986641] Internal error: Oops: 17 [#1] SMP ARM
[   11.991568] Modules linked in: omaplfb(O+) pvrsrvkm(O)
[   11.996971] CPU: 0    Tainted: G           O  (3.8.13+ #1)
[   12.002840] PC is at AllocateDeviceID+0x0/0x48 [pvrsrvkm]
[   12.008525] LR is at PVRSRVRegisterDCDeviceKM+0xf0/0x178 [pvrsrvkm]
[   12.015091] pc : [<bf0063f0>]    lr : [<bf0026b4>]    psr: 40000013
[   12.015091] sp : de565e18  ip : de0d0398  fp : 0000001c
[   12.027115] r10: 00000001  r9 : 00000000  r8 : 000a8c00
[   12.032586] r7 : df6ae898  r6 : 00000000  r5 : df6ae804  r4 : 00000000
[   12.039422] r3 : de0d02c0  r2 : 00000001  r1 : de0d02c8  r0 : 00000000
[   12.046260] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   12.053734] Control: 10c5387d  Table: 9e560019  DAC: 00000015
[   12.059752] Process modprobe (pid: 600, stack limit = 0xde564240)
[   12.066133] Stack: (0xde565e18 to 0xde566000)
[   12.074104] 5e00:
    de2389c0 de0d02c0
[   12.083159] 5e20: 00000032 df6ae800 00000000 00000000 000b4000
bf03ac64 c0969874 ffffffff
[   12.092276] 5e40: bf03bd54 00000001 00000001 bf03bd54 de565f58
00000000 00000001 bf03bd9c
[   12.101149] 5e60: bf03e000 bf03e008 de564000 c0008890 bf03e000
00000000 00000001 bf03bd54
[   12.110275] 5e80: bf03bd54 de565f58 00000000 00000001 bf03bd9c
00000001 de35ef80 c008a57c
[   12.119290] 5ea0: bf03bd60 00007fff c008648c 00000010 c0087a74
00000028 00000000 bf03bd60
[   12.128214] 5ec0: bf03bea8 000000c7 c0624424 e09e91f4 de565eec
4bc984d8 20000013 c087b058
[   12.137101] 5ee0: de565f1c c0619ad8 e09eb000 b6e75000 00000acd
00000000 00000000 00000000
[   12.147911] 5f00: 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[   12.156627] 5f20: 00000000 00000000 00000000 00000000 000000d2
b6e6d000 00008b4d 4bc984d8
[   12.168231] 5f40: 00000080 c000dac4 de564000 00000000 00000000
c008a8f8 e09e3000 00008b4d
[   12.177017] 5f60: e09e8bdc e09e8a2c e09eb37c 00001ec4 00002684
00000000 00000000 00000000
[   12.185757] 5f80: 00000027 00000028 00000015 00000019 00000012
00000000 4bc9925c 00000000
[   12.194483] 5fa0: 00022db0 c000d940 4bc9925c 00000000 b6e6d000
00008b4d 4bc984d8 00022db0
[   12.203203] 5fc0: 4bc9925c 00000000 00022db0 00000080 00022ec0
00008b4d 4bc984d8 00000000
[   12.211919] 5fe0: 4bca1b78 bea0a9a8 4bc90790 4bba7770 60000010
b6e6d000 00105b04 20230200
[   12.220696] [<bf0063f0>] (AllocateDeviceID+0x0/0x48 [pvrsrvkm])
from [<bf0026b4>] (PVRSRVRegisterDCDeviceKM+0xf0/0x178 [pvrsrvkm])
[   12.233166] [<bf0026b4>] (PVRSRVRegisterDCDeviceKM+0xf0/0x178
[pvrsrvkm]) from [<bf03ac64>] (OMAPLFBInit+0x3e0/0x548 [omaplfb])
[   12.245248] [<bf03ac64>] (OMAPLFBInit+0x3e0/0x548 [omaplfb]) from
[<bf03e008>] (OMAPLFB_Init+0x8/0x2c [omaplfb])
[   12.255952] [<bf03e008>] (OMAPLFB_Init+0x8/0x2c [omaplfb]) from
[<c0008890>] (do_one_initcall+0x90/0x160)
[   12.266010] [<c0008890>] (do_one_initcall+0x90/0x160) from
[<c008a57c>] (load_module+0x1944/0x1bf4)
[   12.275537] [<c008a57c>] (load_module+0x1944/0x1bf4) from
[<c008a8f8>] (sys_init_module+0xcc/0xec)
[   12.284957] [<c008a8f8>] (sys_init_module+0xcc/0xec) from
[<c000d940>] (ret_fast_syscall+0x0/0x30)
[   12.294728] Code: e3e00000 ebffed9d e1a00004 e8bd8038 (e5902000)
[   12.301154] ---[ end trace 8828fbcbbe3723c2 ]---
Quoted 4 lines

Segmentation fault

Any idea which could be the problem ?

Prabu,

Do you have any insight in the problem above? Any pointers? Thanks.

--
Denys

#10 lore raw

PATCH 1/9 libgles-omap3: Remove X11 related build and packaging

In reply to a message not in the archive

SGX530 driver for X11 is only buildable and testable standalone with the pre-built X11 package provided with the Graphics SDK. This patch removes X11 build from the default recipe, to enable moving X11 build to a separate recipe.

This is part of a clean up of the Graphics recipe starting from 4.09.00.01 version of the Graphics SDK.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 recipes-graphics/libgles/libgles-omap3-no-x.inc    |  330 ++++++++++++++++++++
 .../libgles/libgles-omap3_4.09.00.01.bb            |   45 +---
 2 files changed, 332 insertions(+), 43 deletions(-)
 create mode 100644 recipes-graphics/libgles/libgles-omap3-no-x.inc
recipes-graphics/libgles/libgles-omap3-no-x.inc new file +330 -0
new file mode 100644
index 0000000..31c5b8e
@@ -0,0 +1,330 @@
+DESCRIPTION = "libGLES for the omap3"
+LICENSE = "proprietary-binary"
+# 'TSPA.txt' might not be the best file to md5sum
+LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1"
+
+PR = "r35"
+
+COMPATIBLE_MACHINE = "(omap3|ti814x|ti816x|ti33x)"
+
+PVR_INIT ?= "pvrsrvinit"
+
+PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
+
+RREPLACES_${PN} = "libegl libgles1 libgles2"
+RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev"
+RREPLACES_${PN}-dbg = "libegl-dbg"
+
+SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
+		   file://cputype \
+		   file://rc.pvr \
+		   file://99-bufferclass.rules  \
+"
+
+S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
+
+# Logic to unpack installjammer file
+TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
+require ../../recipes-ti/includes/ti-eula-unpack.inc
+
+export BINLOCATION ?= "${S}/gfx_rel"
+export ES2LOCATION ?= "${S}/gfx_rel_es2.x"
+export ES3LOCATION ?= "${S}/gfx_rel_es3.x"
+export ES5LOCATION ?= "${S}/gfx_rel_es5.x"
+export ES6LOCATION ?= "${S}/gfx_rel_es6.x"
+export ES8LOCATION ?= "${S}/gfx_rel_es8.x"
+
+LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
+
+do_configure() {
+	# Attempt to fix up the worst offenders for file permissions
+	for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do
+		chmod 0644 $i
+	done
+
+	# Attempt to create proper library softlinks
+	for sofile in $(find ${S} -name "lib*Open*.so") $(find ${S} -name "lib*srv*.so") $(find ${S} -name "lib*gl*.so") $(find ${S} -name "libpvr*.so") $(find ${S} -name "lib*GL*.so"); do
+		if [ "$(readlink -n ${sofile})" = "" ] ; then
+			mv $sofile ${sofile}.${IMGPV}
+			ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}
+			ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}$(echo ${IMGPV} | awk -F. '{print "." $1}')
+			ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}$(echo ${IMGPV} | awk -F. '{print "." $1 "." $2}')
+		fi
+	done
+
+	# Due to recursive make PLAT_* isn't always passed down correctly, so use sed to fix those
+	for mak in $(find ${S} -name "*.mak") ; do
+		sed -i -e s:arm-none-linux-gnueabi-:${TARGET_PREFIX}:g $mak
+	done
+
+	# clear out old stuff
+	find Binaries/ | xargs rm -f || true
+}
+
+# Force in GNU_HASH and paths to libs
+TARGET_CC_ARCH += " ${TARGET_LINK_HASH_STYLE} -Wl,-rpath-link,${BINLOCATION} -L${BINLOCATION} \
+-L${STAGING_DIR_TARGET}${libdir} -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir}"
+PARALLEL_MAKE = ""
+
+PLATFORM ?= "LinuxOMAP3"
+
+do_compile() {
+	export TOOLCHAIN="${TOOLCHAIN_PATH}"
+	export PLAT_CC="${CC}"
+	export PLAT_CPP="${CXX}"
+	export PLAR_AR="${AR}"
+
+	mkdir -p ${S}/demos/raw
+	mkdir -p ${S}/trainingcourses/raw
+
+	# Rebuild demos
+	for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
+		cd $demo/OGLES/Build/LinuxGeneric
+		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
+		rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o
+
+		install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
+	done
+
+	for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
+		cd $demo/OGLES2/Build/LinuxGeneric
+		oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
+		rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o
+
+		install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true
+	done
+
+	find ${S} -name "*_org" -delete
+
+	# Build OGLES2 Trainingcourses
+		for training in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
+			if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
+				cd $training/OGLES2/Build/LinuxGeneric
+			fi
+
+			if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then
+				cd $training/OGLES2/Build/${PLATFORM}
+			fi
+
+			oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=0
+			rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o
+
+			install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true
+		done
+
+}
+
+do_install () {
+	install -d ${D}${libdir}
+	cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
+	rm ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so*
+	rm ${D}${libdir}/libsrv_um_dri.so*
+	rm ${D}${libdir}/pvr_drv.so* 
+
+	install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
+
+	install -d ${D}${bindir}/
+	install -m 0755 ${WORKDIR}/cputype ${D}${bindir}/
+
+	install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/
+	install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
+	install -m 0755 ${BINLOCATION}/${PVR_INIT} ${D}${bindir}/
+
+	install -d ${D}${includedir}
+	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
+	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/
+
+	cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/
+	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
+	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES/ 2>/dev/null || true
+	cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES2/ 2>/dev/null || true
+	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/v* ${D}${includedir}/ 2>/dev/null || true
+	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ 2>/dev/null || true
+	cp -pPr ${S}/include/*.h ${D}${includedir} || true
+	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
+	
+	install -d ${D}${sysconfdir}/init.d/
+	cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
+
+	install -d ${D}${sysconfdir}
+	echo "[default]" > ${D}${sysconfdir}/powervr.ini
+	echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini
+
+	# The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace
+
+	install -d ${D}${libdir}/ES8.0
+	install -d ${D}${libdir}/ES6.0
+	install -d ${D}${libdir}/ES5.0
+	install -d ${D}${libdir}/ES3.0
+	install -d ${D}${libdir}/ES2.0
+
+	install -d ${D}${bindir}/ES8.0
+	install -d ${D}${bindir}/ES6.0
+	install -d ${D}${bindir}/ES5.0
+	install -d ${D}${bindir}/ES3.0
+	install -d ${D}${bindir}/ES2.0
+
+	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test"
+	raw_prog="gles1test1 gles2test1 ovg_unit_test"
+
+	for esrev in 2 3 5 6 8 ; do
+		ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\}))
+		if [ -e ${ESLOCATION} ] ; then
+			cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
+			for esprog in $shared_prog $raw_prog ; do
+				install -m 0755 ${ESLOCATION}/$esprog ${D}${bindir}/ES${esrev}.0/ 2>/dev/null || true
+			done
+		fi
+	done
+
+	rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm ${D}${bindir}/pdsasm -f || true
+
+	install -d ${D}${bindir}/SGX/demos/Raw/
+	install -m 0755 ${S}/demos/raw/* ${D}${bindir}/SGX/demos/Raw/
+	install -d ${D}${bindir}/SGX/trainingcourses/Raw 2>/dev/null || true
+	install -m 0755 ${S}/trainingcourses/raw/* ${D}${bindir}/SGX/trainingcourses/Raw/ 2>/dev/null || true
+
+
+	# Delete objects and linker scripts hidden between the headers
+	find ${D} -name "*.o" -delete
+	find ${D} -name "*.o.cmd" -delete
+
+	install -d ${D}${sysconfdir}/udev/rules.d
+	install -m 0644 ${WORKDIR}/99-bufferclass.rules ${D}${sysconfdir}/udev/rules.d/
+
+}
+
+PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-tests"
+# Package the base libraries per silicon revision
+PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
+RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
+FILES_${PN}-es2 = "${libdir}/ES2*/* ${bindir}/ES2*/*"
+FILES_${PN}-es3 = "${libdir}/ES3*/* ${bindir}/ES3*/*"
+FILES_${PN}-es5 = "${libdir}/ES5*/* ${bindir}/ES5*/*"
+FILES_${PN}-es6 = "${libdir}/ES6*/* ${bindir}/ES6*/*"
+FILES_${PN}-es8 = "${libdir}/ES8*/* ${bindir}/ES8*/*"
+
+# Stop shlib code from picking a subpackage
+PRIVATE_LIBS_${PN}-es2 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es3 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
+
+
+PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
+FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
+FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
+FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
+FILES_${PN}-linuxfbwsegl = "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
+
+PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
+
+FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
+FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
+FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
+FILES_${PN}-blitwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_BLITWSEGL.so.*"
+FILES_${PN}-blitwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_BLITWSEGL.so.*"
+RRECOMMENDS_${PN}-blitwsegl = " ${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8"
+
+FILES_${PN}-flipwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_FLIPWSEGL.so.*"
+FILES_${PN}-flipwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_FLIPWSEGL.so.*"
+FILES_${PN}-flipwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_FLIPWSEGL.so.*"
+FILES_${PN}-flipwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_FLIPWSEGL.so.*"
+FILES_${PN}-flipwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_FLIPWSEGL.so.*"
+RRECOMMENDS_${PN}-flipwsegl = " ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8"
+
+FILES_${PN}-frontwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_FRONTWSEGL.so.*"
+FILES_${PN}-frontwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_FRONTWSEGL.so.*"
+FILES_${PN}-frontwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_FRONTWSEGL.so.*"
+FILES_${PN}-frontwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_FRONTWSEGL.so.*"
+FILES_${PN}-frontwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_FRONTWSEGL.so.*"
+RRECOMMENDS_${PN}-frontwsegl = " ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8"
+
+FILES_${PN}-linuxfbwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_LINUXFBWSEGL.so.*"
+FILES_${PN}-linuxfbwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_LINUXFBWSEGL.so.*"
+FILES_${PN}-linuxfbwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_LINUXFBWSEGL.so.*"
+FILES_${PN}-linuxfbwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
+FILES_${PN}-linuxfbwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
+RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
+
+CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
+
+FILES_${PN} = "${sysconfdir} ${libdir}/*.so* ${bindir}/${PVR_INIT} ${bindir}/cputype ${bindir}/*"
+
+FILES_${PN}-tests = "${bindir}/*test*"
+FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
+                   ${libdir}/ES*/.debug ${bindir}/*/.debug\
+                   ${bindir}/SGX/demos/*/.debug/* \
+                   ${bindir}/SGX/trainingcourses/*/.debug/* \
+	"
+
+FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
+
+FILES_${PN}-rawtrainingcourses = "${bindir}/SGX/trainingcourses/Raw/*"
+
+# The libs need the kernel-modules
+RRECOMMENDS_${PN} += "omap3-sgx-modules"
+
+# The initscript calls fbset, cputype calls devmem2
+RDEPENDS_${PN} += "fbset devmem2"
+
+#HACK! These are binaries, so we can't guarantee that LDFLAGS match :(
+INSANE_SKIP_${PN} = "ldflags dev-so"
+INSANE_SKIP_${PN}-es3 = "ldflags dev-so staticdev"
+INSANE_SKIP_${PN}-es5 = "ldflags dev-so staticdev"
+INSANE_SKIP_${PN}-es6 = "ldflags dev-so staticdev"
+INSANE_SKIP_${PN}-es8 = "ldflags dev-so staticdev"
+INSANE_SKIP_${PN}-rawdemos = "ldflags dev-so useless-rpaths"
+INSANE_SKIP_${PN}-blitwsegl = "ldflags"
+INSANE_SKIP_${PN}-blitwsegl-es3 = "ldflags"
+INSANE_SKIP_${PN}-blitwsegl-es5 = "ldflags"
+INSANE_SKIP_${PN}-blitwsegl-es6 = "ldflags"
+INSANE_SKIP_${PN}-blitwsegl-es8 = "ldflags"
+INSANE_SKIP_${PN}-flipwsegl = "ldflags"
+INSANE_SKIP_${PN}-flipwsegl-es3 = "ldflags"
+INSANE_SKIP_${PN}-flipwsegl-es5 = "ldflags"
+INSANE_SKIP_${PN}-flipwsegl-es6 = "ldflags"
+INSANE_SKIP_${PN}-flipwsegl-es8 = "ldflags"
+INSANE_SKIP_${PN}-frontwsegl = "ldflags"
+INSANE_SKIP_${PN}-frontwsegl-es3 = "ldflags"
+INSANE_SKIP_${PN}-frontwsegl-es5 = "ldflags"
+INSANE_SKIP_${PN}-frontwsegl-es6 = "ldflags"
+INSANE_SKIP_${PN}-frontwsegl-es8 = "ldflags"
+INSANE_SKIP_${PN}-linuxfbwsegl = "ldflags"
+INSANE_SKIP_${PN}-linuxfbwsegl-es3 = "ldflags"
+INSANE_SKIP_${PN}-linuxfbwsegl-es5 = "ldflags"
+INSANE_SKIP_${PN}-linuxfbwsegl-es6 = "ldflags"
+INSANE_SKIP_${PN}-linuxfbwsegl-es8 = "ldflags"
+INSANE_SKIP_${PN}-tests = "ldflags"
+
+# Quality control is really poor on these SDKs, so hack around the latest madness:
+FILES_${PN} += "${libdir}/*.so "
+FILES_${PN}-dev = "${includedir}"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "pvr-init"
+INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ."
+
+# Append to update-rc.d postinst
+pkg_postinst_${PN}_append() {
+rm -f $D${sysconfdir}/powervr-esrev
+
+}
+
+pkg_postinst_${PN}-blitwsegl() {
+rm -f $D${sysconfdir}/powervr-esrev
+}
+
+pkg_postinst_${PN}-flipwsegl() {
+rm -f $D${sysconfdir}/powervr-esrev
+}
+
+pkg_postinst_${PN}-frontwsegl() {
+rm -f $D${sysconfdir}/powervr-esrev
+}
+pkg_postinst_${PN}-linuxfbwsegl() {
+rm -f $D${sysconfdir}/powervr-esrev
+}
+
recipes-graphics/libgles/libgles-omap3_4.09.00.01.bb +2 -43

58 lines not on this page · raw message

Signature · 1 line
1.7.1
#11 lore raw

PATCH 2/9 omap3-sgx-modules: Remove X11 related build and packaging

In reply to a message not in the archive

SGX530 driver for X11 is only buildable and testable standalone with the pre-built X11 package provided with the Graphics SDK. This patch removes X11 build from the default kernel module recipe, to enable moving X11 build to a separate recipe.

This is part of a clean up of the Graphics recipe starting from 4.09.00.01 version of the Graphics SDK.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 .../omap3-sgx-modules_4.09.00.01.bb                |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
recipes-bsp/powervr-drivers/omap3-sgx-modules_4.09.00.01.bb +2 -7
index 55e427f..923e6a5 100644
@@ -39,9 +39,7 @@ MODULESLOCATION_ti814x = "dc_ti81xx_linux"
 MODULESLOCATION_ti816x = "dc_ti81xx_linux"
 MODULESLOCATION_ti33x = "dc_ti335x_linux"
 
-export SUPPORT_XORG ?= "${@base_contains('DISTRO_FEATURES', 'x11', '1', '0', d)}"
-
-MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=${SUPPORT_XORG}"
+MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM} SUPPORT_XORG=0"
 
 do_install() {
     mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
@@ -49,8 +47,5 @@ do_install() {
         ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko  \
         ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
         ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
-
-    if [ "${SUPPORT_XORG}" = "1" ]; then
-        cp ${S}/services4/3rdparty/linux_drm/drm.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
-    fi
 }
+
Signature · 1 line
1.7.1
#12 lore raw

PATCH 3/9 libgles-omap3: Remove unsupported core build option ES2.0

In reply to a message not in the archive

ES2.0 build option for SGX user binaries is deprecated as the corresponding SOC is no longer in production

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 recipes-graphics/libgles/libgles-omap3-no-x.inc |   27 +++++++---------------
 1 files changed, 9 insertions(+), 18 deletions(-)
recipes-graphics/libgles/libgles-omap3-no-x.inc +9 -18
index 31c5b8e..95cf166 100644
@@ -28,7 +28,6 @@ TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
 require ../../recipes-ti/includes/ti-eula-unpack.inc
 
 export BINLOCATION ?= "${S}/gfx_rel"
-export ES2LOCATION ?= "${S}/gfx_rel_es2.x"
 export ES3LOCATION ?= "${S}/gfx_rel_es3.x"
 export ES5LOCATION ?= "${S}/gfx_rel_es5.x"
 export ES6LOCATION ?= "${S}/gfx_rel_es6.x"
@@ -150,24 +149,22 @@ do_install () {
 	echo "[default]" > ${D}${sysconfdir}/powervr.ini
 	echo "WindowSystem=${LIBGLESWINDOWSYSTEM}" >> ${D}${sysconfdir}/powervr.ini
 
-	# The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace
+	#Create different folders for ease of installing into different platforms with different display drivers/ SGX core
 
 	install -d ${D}${libdir}/ES8.0
 	install -d ${D}${libdir}/ES6.0
 	install -d ${D}${libdir}/ES5.0
 	install -d ${D}${libdir}/ES3.0
-	install -d ${D}${libdir}/ES2.0
 
 	install -d ${D}${bindir}/ES8.0
 	install -d ${D}${bindir}/ES6.0
 	install -d ${D}${bindir}/ES5.0
 	install -d ${D}${bindir}/ES3.0
-	install -d ${D}${bindir}/ES2.0
 
 	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test"
 	raw_prog="gles1test1 gles2test1 ovg_unit_test"
 
-	for esrev in 2 3 5 6 8 ; do
+	for esrev in 3 5 6 8 ; do
 		ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\}))
 		if [ -e ${ESLOCATION} ] ; then
 			cp -pPR ${ESLOCATION}/lib*${IMGPV} ${ESLOCATION}/pvr_drv.so ${ESLOCATION}/*.a ${D}${libdir}/ES${esrev}.0/
@@ -196,16 +193,14 @@ do_install () {
 
 PACKAGES =+ "${PN}-rawdemos ${PN}-rawtrainingcourses ${PN}-tests"
 # Package the base libraries per silicon revision
-PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
-RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
-FILES_${PN}-es2 = "${libdir}/ES2*/* ${bindir}/ES2*/*"
+PACKAGES =+ "${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
+RRECOMMENDS_${PN} += "${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
 FILES_${PN}-es3 = "${libdir}/ES3*/* ${bindir}/ES3*/*"
 FILES_${PN}-es5 = "${libdir}/ES5*/* ${bindir}/ES5*/*"
 FILES_${PN}-es6 = "${libdir}/ES6*/* ${bindir}/ES6*/*"
 FILES_${PN}-es8 = "${libdir}/ES8*/* ${bindir}/ES8*/*"
 
 # Stop shlib code from picking a subpackage
-PRIVATE_LIBS_${PN}-es2 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
 PRIVATE_LIBS_${PN}-es3 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
 PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
 PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
@@ -218,35 +213,31 @@ FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
 FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
 FILES_${PN}-linuxfbwsegl = "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
 
-PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
+PACKAGES =+ "${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
 
-FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
 FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
 FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
 FILES_${PN}-blitwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_BLITWSEGL.so.*"
 FILES_${PN}-blitwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_BLITWSEGL.so.*"
-RRECOMMENDS_${PN}-blitwsegl = " ${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8"
+RRECOMMENDS_${PN}-blitwsegl = " ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8"
 
-FILES_${PN}-flipwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_FLIPWSEGL.so.*"
 FILES_${PN}-flipwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_FLIPWSEGL.so.*"
 FILES_${PN}-flipwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_FLIPWSEGL.so.*"
 FILES_${PN}-flipwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_FLIPWSEGL.so.*"
 FILES_${PN}-flipwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_FLIPWSEGL.so.*"
-RRECOMMENDS_${PN}-flipwsegl = " ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8"
+RRECOMMENDS_${PN}-flipwsegl = " ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8"
 
-FILES_${PN}-frontwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_FRONTWSEGL.so.*"
 FILES_${PN}-frontwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_FRONTWSEGL.so.*"
 FILES_${PN}-frontwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_FRONTWSEGL.so.*"
 FILES_${PN}-frontwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_FRONTWSEGL.so.*"
 FILES_${PN}-frontwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_FRONTWSEGL.so.*"
-RRECOMMENDS_${PN}-frontwsegl = " ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8"
+RRECOMMENDS_${PN}-frontwsegl = " ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8"
 
-FILES_${PN}-linuxfbwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_LINUXFBWSEGL.so.*"
 FILES_${PN}-linuxfbwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_LINUXFBWSEGL.so.*"
 FILES_${PN}-linuxfbwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_LINUXFBWSEGL.so.*"
 FILES_${PN}-linuxfbwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
 FILES_${PN}-linuxfbwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
-RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
+RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
 
 CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
 
Signature · 1 line
1.7.1
#13 lore raw

PATCH 4/9 libgles-omap3: Remove OpenVG references

In reply to a message not in the archive

OpenVG API is no longer supported in the SGX Graphics SDK. Customers are encouraged to move to OpenGL ES2.x.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 recipes-graphics/libgles/libgles-omap3-no-x.inc |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)
recipes-graphics/libgles/libgles-omap3-no-x.inc +5 -8
index 95cf166..0c41d76 100644
@@ -137,8 +137,6 @@ do_install () {
 	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
 	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES/ 2>/dev/null || true
 	cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES2/ 2>/dev/null || true
-	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/v* ${D}${includedir}/ 2>/dev/null || true
-	cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ 2>/dev/null || true
 	cp -pPr ${S}/include/*.h ${D}${includedir} || true
 	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
 	
@@ -162,7 +160,7 @@ do_install () {
 	install -d ${D}${bindir}/ES3.0
 
 	shared_prog="eglinfo pvr2d_test ${PVR_INIT} services_test sgx_blit_test sgx_clipblit_test sgx_flip_test sgx_init_test sgx_render_flip_test"
-	raw_prog="gles1test1 gles2test1 ovg_unit_test"
+	raw_prog="gles1test1 gles2test1"
 
 	for esrev in 3 5 6 8 ; do
 		ESLOCATION=$(eval echo $(echo \$\{ES${esrev}LOCATION\}))
@@ -201,11 +199,10 @@ FILES_${PN}-es6 = "${libdir}/ES6*/* ${bindir}/ES6*/*"
 FILES_${PN}-es8 = "${libdir}/ES8*/* ${bindir}/ES8*/*"
 
 # Stop shlib code from picking a subpackage
-PRIVATE_LIBS_${PN}-es3 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
-PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
-PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
-PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libOpenVG.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libOpenVGU.so libglslcompiler.so libGLES_CM.so"
-
+PRIVATE_LIBS_${PN}-es3 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
+PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so" 
 
 PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
 FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
Signature · 1 line
1.7.1
#14 lore raw

PATCH 5/9 libgles-omap3: Remove copying of unused header files

In reply to a message not in the archive

Current recipe copies lot of headers that are unused, including unsupported files for OpenVG. This patch removes copying of such files.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 recipes-graphics/libgles/libgles-omap3-no-x.inc |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
recipes-graphics/libgles/libgles-omap3-no-x.inc +3 -6
index 0c41d76..1704e1a 100644
@@ -133,12 +133,9 @@ do_install () {
 	cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
 	cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/
 
-	cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/
-	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
-	cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES/ 2>/dev/null || true
-	cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES2/ 2>/dev/null || true
-	cp -pPr ${S}/include/*.h ${D}${includedir} || true
-	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
+	cp -pPr ${S}/include/pvr2d/*.h ${D}${includedir}
+	cp -pPr ${S}/include/OGLES2/* ${D}${includedir}/
+	cp -pPr ${S}/include/wsegl/*.h ${D}${includedir}/ 
 	
 	install -d ${D}${sysconfdir}/init.d/
 	cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
Signature · 1 line
1.7.1
#15 lore raw

PATCH 6/9 libgles-omap3: Add missing RPROVIDES

In reply to a message not in the archive

RPROVIDES specifies the libraries that are dynamically loaded at runtime. This patch fixes "no package provides libGLESv2.so" and similar errors that occur when including packages like qtbase.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 recipes-graphics/libgles/libgles-omap3-no-x.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes-graphics/libgles/libgles-omap3-no-x.inc +2 -0
index 1704e1a..8e5dad6 100644
@@ -201,6 +201,8 @@ PRIVATE_LIBS_${PN}-es5 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so lib
 PRIVATE_LIBS_${PN}-es6 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so"
 PRIVATE_LIBS_${PN}-es8 = "libGLESv2.so libIMGegl.so libsrv_um.so libpvr2d.so libsrv_init.so libEGL.so libsrv_um_dri.so libglslcompiler.so libGLES_CM.so" 
 
+RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLES_CM.so libpvr2d.so libIMGegl.so libsrv_init.so libsrv_um.so libsrv_um_dri.so libglslcompiler.so" 
+
 PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl"
 FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
 FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
Signature · 1 line
1.7.1
#16 lore raw

PATCH 7/9 libgles-omap3: Package files with right permission

In reply to a message not in the archive

This patch adds correct permissions for startup script pvr-init.

This is part of a clean up of the Graphics recipe starting from 4.09.00.01 version of the Graphics SDK.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 recipes-graphics/libgles/libgles-omap3-no-x.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
recipes-graphics/libgles/libgles-omap3-no-x.inc +1 -0
index 8e5dad6..0ddf6eb 100644
@@ -139,6 +139,7 @@ do_install () {
 	
 	install -d ${D}${sysconfdir}/init.d/
 	cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
+	chmod +x ${D}${sysconfdir}/init.d/pvr-init
 
 	install -d ${D}${sysconfdir}
 	echo "[default]" > ${D}${sysconfdir}/powervr.ini
Signature · 1 line
1.7.1
#17 lore raw

PATCH 8/9 libgles-omap3-x11: Separate X11 SGX driver package into new recipe

In reply to a message not in the archive

libgles-omap3 now contains only non-X11 drivers. The X11 driver is available in the libgles-omap3-x11 package. This package has dependency on specific kernel versions for DRM builds.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 .../libgles/libgles-omap3-x11-4.09.00.01/rc.pvr    |  125 ++++++++
 .../libgles-omap3-x11-4.09.00.01/rc_dri.pvr        |  137 +++++++++
 recipes-graphics/libgles/libgles-omap3-x11.inc     |  323 ++++++++++++++++++++
 3 files changed, 585 insertions(+), 0 deletions(-)
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr
 create mode 100644 recipes-graphics/libgles/libgles-omap3-x11.inc
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc.pvr new file +125 -0
new file mode 100644
index 0000000..590d06c
@@ -0,0 +1,125 @@
+#!/bin/sh
+PATH=$PATH:/usr/sbin
+
+# Check if an fb device is available.  If not then just go ahead and
+# exit because we have no display.
+fbset > /dev/null 2>&1
+if [ "$?" == "1" ]
+then
+    # looks like there is no display, so let's exit
+    exit 0
+fi
+
+BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
+YRES="$(fbset | grep geom | awk '{print $3}')"
+
+CPUTYPE="$(cputype)"
+
+if [ "$1" = "" ]; then
+	echo PVR-INIT: Please use start, stop, or restart.
+	exit 1
+fi
+
+if [ "$1" = "stop" -o  "$1" = "restart" ]; then
+	echo Stopping PVR
+	rmmod bufferclass_ti
+	rmmod omaplfb 2>/dev/null
+	rmmod pvrsrvkm 2>/dev/null
+fi
+
+if [ "$1" = "stop" ]; then
+	exit 0
+fi
+
+# Set RGBA ordering to something the drivers like
+if [ "$BITSPERPIXEL" = "32" ] ; then
+	fbset -rgba 8/16,8/8,8/0,8/24
+fi
+
+# Try to enable triple buffering when there's enough VRAM
+fbset -vyres $(expr $YRES \* 3)
+
+sgxprepare () {
+	echo Starting PVR
+	insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
+
+    if [ "$?" != "0" ]
+    then
+        echo "Could not find pvrsrvkm driver"
+        exit 1
+    fi
+
+	modprobe omaplfb
+	modprobe bufferclass_ti
+
+	pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
+        bc_maj=`grep "bc" /proc/devices | cut -b1,2,3`
+
+	if [ -e /dev/pvrsrvkm ] ; then
+		rm -f /dev/pvrsrvkm
+	fi
+
+	mknod /dev/pvrsrvkm c $pvr_maj 0
+	chmod 666 /dev/pvrsrvkm
+
+	touch /etc/powervr-esrev
+
+	SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
+}
+
+sgxfinish () {
+	# Fix up a bug in opkg
+	if [ $(readlink /usr/lib/libsrv_um.so) != $(readlink /usr/lib/libsrv_um.so.1) ] ; then
+		cd /usr/lib
+		ln -sf $(readlink /usr/lib/libsrv_um.so.1) libsrv_um.so
+	fi
+
+	if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
+		echo -n "Starting SGX fixup for"
+		echo " ES${ES_REVISION}.x"
+		cp -a /usr/lib/ES${ES_REVISION}.0/* /usr/lib
+		cp -a /usr/bin/ES${ES_REVISION}.0/* /usr/bin
+		echo "${ES_REVISION}" > /etc/powervr-esrev
+	fi
+
+	if ! /usr/bin/pvrsrvctl --start --no-module; then return; fi 
+}
+
+case $CPUTYPE in
+"OMAP3530")
+	sgxprepare
+
+	devmem2 0x48004B48 w 0x2 > /dev/null
+	devmem2 0x48004B10 w 0x1 > /dev/null
+	devmem2 0x48004B00 w 0x2 > /dev/null
+
+	ES_REVISION="$(devmem2 0x50000014 | sed -e s:0x00010205:5: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
+
+	sgxfinish
+	;;
+"TI33XX")
+	sgxprepare
+
+	devmem2 0x44e01104 w 0x0 > /dev/null
+	devmem2 0x44e00904 w 0x2 > /dev/null
+
+	ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:8: | tail -n1 | awk -F': ' '{print $2}')"
+
+	sgxfinish
+	;;
+"TI816x")
+	sgxprepare
+
+	devmem2 0x48180F04 w 0x0 > /dev/null
+	devmem2 0x48180900 w 0x2 > /dev/null
+	devmem2 0x48180920 w 0x2 > /dev/null
+
+	ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
+
+	sgxfinish
+	;;
+*)
+	echo No SGX hardware, not starting PVR
+	;;
+esac
+
recipes-graphics/libgles/libgles-omap3-x11-4.09.00.01/rc_dri.pvr new file +137 -0

137 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3-x11.inc new file +323 -0

323 lines not on this page · raw message

Signature · 1 line
1.7.1
#18 lore raw

PATCH 9/9 omap3-sgx-modules-x11: Separate X11 SGX driver package into new recipe

In reply to a message not in the archive

omap3-sgx-modules now contains only non-X11 drivers. The X11 driver is available in the omap3-sgx-modules-x11 package.

Signed-off-by Prabindh Sundareson <prabu at ti.com>
---
 .../Compile-fixes-for-38-kernel.patch              |  346 ++++++++++++++++++++
 .../omap3-sgx-modules-x11/kernel-30.patch          |   38 +++
 .../omap3-sgx-modules-x11_4.09.00.01.bb            |   74 +++++
 3 files changed, 458 insertions(+), 0 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb
recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/Compile-fixes-for-38-kernel.patch new file +346 -0
new file mode 100644
index 0000000..fc315bc
@@ -0,0 +1,346 @@
+--- GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c-orig	2011-03-08 04:27:35.000000000 -0800
++++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c	2011-03-17 13:11:31.000000000 -0700
+@@ -235,9 +235,20 @@ static OMAP_ERROR UnblankDisplay(OMAPLFB
+ {
+ 	int res;
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
++	console_lock();
++#else
+ 	acquire_console_sem();
++#endif
++
+ 	res = fb_blank(psDevInfo->psLINFBInfo, 0);
++
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
++	console_unlock();
++#else
+ 	release_console_sem();
++#endif
++
+ #if !defined (CONFIG_OMAP2_DSS)
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+@@ -1118,7 +1129,11 @@ static OMAP_ERROR InitDev(OMAPLFB_DEVINF
+ 	OMAP_ERROR eError = OMAP_ERROR_GENERIC;
+ 	unsigned long FBSize;
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
++	console_lock();
++#else
+ 	acquire_console_sem();
++#endif
+ 
+ 	if (fb_idx < 0 || fb_idx >= num_registered_fb)
+ 	{
+@@ -1254,7 +1269,11 @@ static OMAP_ERROR InitDev(OMAPLFB_DEVINF
+ errModPut:
+ 	module_put(psLINFBOwner);
+ errRelSem:
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
++	console_unlock();
++#else
+ 	release_console_sem();
++#endif
+ 	return eError;
+ }
+ 
+@@ -1263,7 +1282,11 @@ static void DeInitDev(OMAPLFB_DEVINFO *p
+ 	struct fb_info *psLINFBInfo = psDevInfo->psLINFBInfo;
+ 	struct module *psLINFBOwner;
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
++	console_lock();
++#else
+ 	acquire_console_sem();
++#endif
+ 
+ 	psLINFBOwner = psLINFBInfo->fbops->owner;
+ 
+@@ -1274,7 +1297,11 @@ static void DeInitDev(OMAPLFB_DEVINFO *p
+ 
+ 	module_put(psLINFBOwner);
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
++	console_unlock();
++#else
+ 	release_console_sem();
++#endif
+ }
+ 
+ OMAP_ERROR OMAPLFBInit(void)
+--- GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c-orig	2011-03-08 04:27:35.000000000 -0800
++++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c	2011-03-17 13:40:15.000000000 -0700
+@@ -24,11 +24,14 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+ #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <linux/module.h>
+ 
+ #include <linux/pci.h>
+--- GFX_Linux_KM/services4/srvkm/common/resman.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/common/resman.c	2011-03-17 14:20:07.000000000 -0700
+@@ -24,15 +24,17 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
+ #include "services_headers.h"
+ #include "resman.h"
+ 
+ #ifdef __linux__
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <linux/sched.h>
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,9)
+ #include <linux/hardirq.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/pvr_debug.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/pvr_debug.c	2011-03-17 14:33:09.000000000 -0700
+@@ -24,9 +24,13 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+ #include <asm/io.h>
+ #include <asm/uaccess.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/pvr_uaccess.h-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/pvr_uaccess.h	2011-03-17 14:39:14.000000000 -0700
+@@ -27,11 +27,14 @@
+ #ifndef __PVR_UACCESS_H__
+ #define __PVR_UACCESS_H__
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <asm/uaccess.h>
+ 
+ static inline unsigned long pvr_copy_to_user(void __user *pvTo, const void *pvFrom, unsigned long ulBytes)
+--- GFX_Linux_KM/services4/srvkm/env/linux/mm.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/mm.c	2011-03-17 14:46:23.000000000 -0700
+@@ -24,11 +24,14 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <linux/mm.h>
+ #include <linux/vmalloc.h>
+ #include <asm/io.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/mutils.h-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h	2011-03-17 14:54:37.000000000 -0700
+@@ -27,11 +27,13 @@
+ #ifndef __IMG_LINUX_MUTILS_H__
+ #define __IMG_LINUX_MUTILS_H__
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+ #include <linux/config.h>
+ #endif
+-
+-#include <linux/version.h>
++#endif
+ 
+ #if !(defined(__i386__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)))
+ #if defined(SUPPORT_LINUX_X86_PAT)
+--- GFX_Linux_KM/services4/srvkm/env/linux/mm.h-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/mm.h	2011-03-17 15:33:56.000000000 -0700
+@@ -27,11 +27,14 @@
+ #ifndef __IMG_LINUX_MM_H__
+ #define __IMG_LINUX_MM_H__
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <linux/slab.h>
+ #include <linux/mm.h>
+ #include <linux/list.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/mmap.c-orig	2011-03-17 20:39:31.000000000 -0700
++++ GFX_Linux_KM/services4/srvkm/env/linux/mmap.c	2011-03-17 20:40:00.000000000 -0700
+@@ -24,11 +24,14 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <linux/mm.h>
+ #include <linux/module.h>
+ #include <linux/vmalloc.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/proc.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/proc.c	2011-03-17 21:01:35.000000000 -0700
+@@ -24,13 +24,16 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+ #include <linux/init.h>
+ #include <linux/module.h>
+-#include <linux/version.h>
+ #include <linux/fs.h>
+ #include <linux/proc_fs.h>
+ #include <linux/seq_file.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/module.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/module.c	2011-03-17 21:32:19.000000000 -0700
+@@ -24,9 +24,13 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+ #if !defined(SUPPORT_DRI_DRM)
+ 	
+@@ -44,7 +48,6 @@
+ #include <linux/init.h>
+ #include <linux/kernel.h>
+ #include <linux/module.h>
+-#include <linux/version.h>
+ #include <linux/fs.h>
+ #include <linux/proc_fs.h>
+ 
+--- GFX_Linux_KM/services4/srvkm/env/linux/event.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/event.c	2011-03-18 08:51:42.000000000 -0700
+@@ -24,11 +24,14 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <asm/io.h>
+ #include <asm/page.h>
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22))
+--- GFX_Linux_KM/services4/srvkm/env/linux/osfunc.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/osfunc.c	2011-03-18 08:58:16.000000000 -0700
+@@ -24,11 +24,14 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+-#include <linux/version.h>
+ #include <asm/io.h>
+ #include <asm/page.h>
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22))
+--- GFX_Linux_KM/services4/srvkm/env/linux/pvr_drm.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/pvr_drm.c	2011-03-18 09:01:06.000000000 -0700
+@@ -26,14 +26,17 @@
+ 
+ #if defined(SUPPORT_DRI_DRM)
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+  #include <linux/config.h>
+ #endif
++#endif
+ 
+ #include <linux/init.h>
+ #include <linux/kernel.h>
+ #include <linux/module.h>
+-#include <linux/version.h>
+ #include <linux/fs.h>
+ #include <linux/proc_fs.h>
+ #include <asm/ioctl.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/mutils.c-orig	2011-03-08 04:27:36.000000000 -0800
++++ GFX_Linux_KM/services4/srvkm/env/linux/mutils.c	2011-03-18 09:08:12.000000000 -0700
+@@ -24,10 +24,13 @@
+  *
+  ******************************************************************************/
+ 
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38)
+ #ifndef AUTOCONF_INCLUDED
+ #include <linux/config.h>
+ #endif
+-#include <linux/version.h>
++#endif
+ 
+ #include <linux/spinlock.h>
+ #include <linux/mm.h>
+--- GFX_Linux_KM/services4/srvkm/env/linux/pvr_debug.c-orig	2011-03-31 13:46:48.000000000 -0700
++++ GFX_Linux_KM/services4/srvkm/env/linux/pvr_debug.c	2011-03-31 15:14:10.000000000 -0700
+@@ -76,7 +76,8 @@ static IMG_CHAR gszBufferIRQ[PVR_MAX_MSG
+ static PVRSRV_LINUX_MUTEX gsDebugMutexNonIRQ;
+ 
+  
+-static spinlock_t gsDebugLockIRQ = SPIN_LOCK_UNLOCKED;
++static DEFINE_SPINLOCK(gsDebugLockIRQ);
++
+ 
+ #if !defined (USE_SPIN_LOCK)  
+ #define	USE_SPIN_LOCK (in_interrupt() || !preemptible())
recipes-bsp/powervr-drivers/omap3-sgx-modules-x11/kernel-30.patch new file +38 -0
new file mode 100644
index 0000000..269d459
@@ -0,0 +1,38 @@
+From: Steve Sakoman
+Subject: omap3-sgx-modules: Fix build for Linux 3.0
+
+This patch implements the header change from plat/display.h to video/omapdss.h
+
+Signed-off-by: Steve Sakoman <steve at sakoman.com>
+
+--- GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c-orig	2011-08-01 07:21:45.000000000 -0700
++++ GFX_Linux_KM/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c	2011-08-01 07:29:32.000000000 -0700
+@@ -47,12 +47,12 @@
+ #if defined (SUPPORT_TI_DSS_FW)
+ #include <asm/io.h>
+ 
+-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26))
+-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31))
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39)))
++#include <video/omapdss.h>
++#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31))
+ #include <plat/display.h>
+-#else 
++#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26))
+ #include <mach/display.h>
+-#endif 
+ #else 
+ #include <asm/arch-omap/display.h>
+ #endif 
+@@ -64,7 +64,11 @@ extern int omap_dispc_request_irq(unsign
+ extern void omap_dispc_free_irq(unsigned long, void (*)(void *), void *);
+ extern void omap_dispc_set_plane_base(int plane, IMG_UINT32 phys_addr);
+ #else
++#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39))
++#include <video/omapdss.h>
++#else
+ #include <plat/display.h>
++#endif
+ #include <linux/console.h>
+ #include <linux/fb.h>
+ static omap_dispc_isr_t *pOMAPLFBVSyncISRHandle = NULL;
recipes-bsp/powervr-drivers/omap3-sgx-modules-x11_4.09.00.01.bb new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
1.7.1