Skip to contentSkip to conversation

omapdrm_pvr: SGX kernel mode driver v1.14 for all TI SoCs

PATCH New Denys Dmytriyenko 1 participant 2 messages Feb 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 omapdrm_pvr: SGX kernel mode driver v1.14 for all TI SoCs

From: Anand Balagopalakrishnan <[email protected]>

---
 ..._1.9.2253347.bb => omapdrm-pvr_1.14.3699939.bb} |   30 +++++++-------------
 1 file changed, 11 insertions(+), 19 deletions(-)
 copy recipes-bsp/powervr-drivers/{omapdrm-pvr_1.9.2253347.bb => omapdrm-pvr_1.14.3699939.bb} (39%)
recipes-bsp/powervr-drivers/omapdrm-pvr_1.14.3699939.bb renamed from recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb +11 -19
similarity index 39%
copy from recipes-bsp/powervr-drivers/omapdrm-pvr_1.9.2253347.bb
copy to recipes-bsp/powervr-drivers/omapdrm-pvr_1.14.3699939.bb
index 4552fe1..e6e4e5d 100644
@@ -1,7 +1,7 @@
-DESCRIPTION =  "Kernel drivers for the PowerVR SGX chipset found in the omap5 SoCs"
-HOMEPAGE = "http://git.ti.com"
+DESCRIPTION =  "Kernel drivers for the PowerVR SGX chipset found in the TI SoCs"
+HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-linux"
 LICENSE = "MIT | GPLv2"
-LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898"
+LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=74506d9b8e5edbce66c2747c50fcef12"
 
 inherit module
 
@@ -12,31 +12,23 @@ PR = "${MACHINE_KERNEL_PR}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-BRANCH_omap-a15 = "dra7/k4.1"
-BRANCH_ti33x = "am4/k4.1"
-BRANCH_ti43x = "am4/k4.1"
+BRANCH = "ti-img-sgx/${PV}/k4.1"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
 S = "${WORKDIR}/git"
 
-SRCREV_omap-a15 = "c53a5dfb9f4d5612c372ec8e252cb13a731c9c10"
-SRCREV_ti33x = "f7ae3f68dd6a05f67b15702b823ed15d2c03105d"
-SRCREV_ti43x = "f7ae3f68dd6a05f67b15702b823ed15d2c03105d"
+SRCREV = "fed0756f1b8b9d526da2821635c7d742989d47c3"
 
-PVR_NULLDRM_ti33x = "1"
-PVR_NULLDRM_ti43x = "0"
-PVR_NULLDRM_omap-a15 = "0"
+TARGET_PRODUCT_omap-a15 = "jacinto6evm"
+TARGET_PRODUCT_ti33x = "ti335x"
+TARGET_PRODUCT_ti43x = "ti437x"
 
-EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" PVR_NULLDRM=${PVR_NULLDRM}'
-
-DEVICE_SUB_DIR_omap-a15 = "omap5430"
-DEVICE_SUB_DIR_ti33x = "omap335x"
-DEVICE_SUB_DIR_ti43x = "omap437x"
+EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" TARGET_PRODUCT=${TARGET_PRODUCT}'
 
 do_compile_prepend() {
-    cd ${S}/eurasia_km/eurasiacon/build/linux2/${DEVICE_SUB_DIR}_linux
+    cd ${S}/eurasia_km/eurasiacon/build/linux2/omap_linux
 }
 
 do_install() {
-    make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_${DEVICE_SUB_DIR}_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
+    make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
 }
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 omap5-sgx-ddk-um-linux: SGX user mode driver v1.14 for all TI SoCs

From: Anand Balagopalakrishnan <[email protected]>

---
 ...2.bb => omap5-sgx-ddk-um-linux_1.14.3699939.bb} |   53 ++++++--------------
 1 file changed, 15 insertions(+), 38 deletions(-)
 copy recipes-graphics/libgles/{omap5-sgx-ddk-um-linux_1.9.0.12.bb => omap5-sgx-ddk-um-linux_1.14.3699939.bb} (26%)
recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.14.3699939.bb renamed from recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb +15 -38
similarity index 26%
copy from recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.9.0.12.bb
copy to recipes-graphics/libgles/omap5-sgx-ddk-um-linux_1.14.3699939.bb
index dfd22d0..1d0f09f 100644
@@ -1,28 +1,23 @@
-DESCRIPTION = "Userspace libraries for SGX"
-HOMEPAGE = "http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk"
+DESCRIPTION = "Userspace libraries for PowerVR SGX chipset on TI SoCs"
+HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux"
 LICENSE = "TI-TSPA"
-LIC_FILES_CHKSUM = "file://OMAP5-Linux-Graphics-DDK-UM-Manifest.doc;md5=360d293df455e4f2d363bb4014a49603"
+LIC_FILES_CHKSUM = "file://TI-Linux-Graphics-DDK-UM-Manifest.doc;md5=550702a031857e0426ef7d6f6cf2d9f4"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-BRANCH_omap-a15 = "master"
-BRANCH_ti33x = "am3/k4.1"
-BRANCH_ti43x = "am4/k4.1"
+BRANCH = "ti-img-sgx/${PV}"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV_omap-a15 = "b6801bf89e00d69893c2957455bbeb3195c0ed52"
-SRCREV_ti33x    = "84ae5444c7cbc3f4c65a226b9fea62d4a513f3e0"
-SRCREV_ti43x    = "fdf4c0b594ca142a68aabb4c3f82b75be50b46cc"
+SRCREV = "0e98623e944864f080cd886906b46ea9a5d830e5"
 
-INITSCRIPT_NAME = "pvr-init"
-INITSCRIPT_PARAMS = "defaults 8"
+TARGET_PRODUCT_omap-a15 = "jacinto6evm"
+TARGET_PRODUCT_ti33x = "ti335x"
+TARGET_PRODUCT_ti43x = "ti437x"
 
-inherit update-rc.d
-
-PR = "r14"
+PR = "r2"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2"
 
-RDEPENDS_${PN} += "libdrm"
+RDEPENDS_${PN} += "libdrm libudev libgbm wayland libffi libdrm-omap"
 
 RREPLACES_${PN} = "libegl libgles1 libgles2"
 RREPLACES_${PN}-dev = "libegl-dev libgles1-dev libgles2-dev"
@@ -30,37 +25,19 @@ RREPLACES_${PN}-dbg = "libegl-dbg"
 
 S = "${WORKDIR}/git"
 
-SRC_URI_append = " \
-    file://rc.pvr \
-    file://powervr.ini \
-"
-
 do_install () {
-    oe_runmake install DESTDIR=${D}
-    install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
-
-    install -d ${D}${sysconfdir}
-    install -m 0644 ${WORKDIR}/powervr.ini ${D}${sysconfdir}/
+    oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
+    mkdir -p ${D}${libdir}/gbm
+    ln -sf ../libpvrGBMWSEGL.so.${PV} ${D}${libdir}/gbm/gbm_pvr.so
 }
 
 FILES_${PN} =  "${bindir}/*"
 FILES_${PN} += " ${libdir}/*"
-FILES_${PN} +=  "${includedir}/* /usr/share/sgx-lib/"
-FILES_${PN} += "${sysconfdir}/init.d/pvr-init"
-FILES_${PN} += "${sysconfdir}/powervr.ini"
-
-PACKAGES =+ "${PN}-plugins"
-FILES_${PN}-plugins = ""
-FILES_${PN}-plugins_ti43x = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrws_WAYLAND.so ${libdir}/libpvrws_KMS.so "
-FILES_${PN}-plugins_ti33x = "${libdir}/libsrv_init.so ${libdir}/libsrv_um.so ${libdir}/libglslcompiler.so ${libdir}/libpvrDRMWSEGL.so ${libdir}/libpvrDRMWSEGL_FRONT.so "
-RDEPENDS_${PN} += "${PN}-plugins"
-
-ALLOW_EMPTY_${PN}-plugins = "1"
+FILES_${PN} +=  "${includedir}/*"
+FILES_${PN} +=  "${sysconfdir}/*"
 
 INHIBIT_PACKAGE_STRIP = "1"
 
 INSANE_SKIP_${PN} += "dev-so ldflags useless-rpaths"
-INSANE_SKIP_${PN}-plugins = "dev-so"
 
 CLEANBROKEN = "1"
Signature · 1 line
1.7.9.5