libgles-omap3: split support for ES revisions into subpackages where possible
[glsdk/meta-ti-glsdk.git] / recipes-graphics / libgles / libgles-omap3 / cputype
1 #!/bin/sh
2 . /etc/init.d/functions
4 if [ "$(machine_id)" = "ti8168evm" ] ; then
5         echo TI816x
6 else
7         devmem2 0x4800244c | \
8         grep 'Read at address' | \
9         sed -e 's/.*): //' | \
10         sed -e 's/0x00005C00/OMAP3503/' -e 's/0x00001C00/OMAP3515/' -e 's/0x00004C00/OMAP3525/' -e 's/0x00000C00/OMAP3530/'
11 fi