diff options
author | Franklin S. Cooper Jr <fcooper@ti.com> | 2012-08-31 18:19:57 -0500 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2012-09-26 14:18:48 -0400 |
commit | 80cc70e50107bbc52001ad51a9f2b5a15935ce17 (patch) | |
tree | a11efad3c74148b2529de0fc84b80c27eeeecff2 /recipes-graphics/libgles/libgles-omap3.inc | |
parent | 7b288d7d05b803032e125f14a3a845c514728003 (diff) | |
download | meta-ti-80cc70e50107bbc52001ad51a9f2b5a15935ce17.tar.gz |
libgles-omap3.inc: Tweak PLATFORM variable.
* Newer versions of libgles-omap3 utilize a different PLATFORM value. This
patch allows the PLATFORM variable to be easily overridden if needed.
* Replace the hardcoded usage of LinuxOMAP3 with the PLATFORM variable.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-graphics/libgles/libgles-omap3.inc')
-rw-r--r-- | recipes-graphics/libgles/libgles-omap3.inc | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc index ac9d5df9..b6aa3829 100644 --- a/recipes-graphics/libgles/libgles-omap3.inc +++ b/recipes-graphics/libgles/libgles-omap3.inc | |||
@@ -65,10 +65,11 @@ TARGET_CC_ARCH += " ${TARGET_LINK_HASH_STYLE} -Wl,-rpath-link,${BINLOCATION} -L$ | |||
65 | -L${STAGING_DIR_TARGET}${libdir} -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir}" | 65 | -L${STAGING_DIR_TARGET}${libdir} -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir}" |
66 | PARALLEL_MAKE = "" | 66 | PARALLEL_MAKE = "" |
67 | 67 | ||
68 | PLATFORM ?= "LinuxOMAP3" | ||
69 | |||
68 | do_compile() { | 70 | do_compile() { |
69 | export X11ROOT="${STAGING_DIR_HOST}/usr" | 71 | export X11ROOT="${STAGING_DIR_HOST}/usr" |
70 | export TOOLCHAIN="${TOOLCHAIN_PATH}" | 72 | export TOOLCHAIN="${TOOLCHAIN_PATH}" |
71 | export PLATFORM="LinuxOMAP3" | ||
72 | 73 | ||
73 | export PLAT_CC="${CC}" | 74 | export PLAT_CC="${CC}" |
74 | export PLAT_CPP="${CXX}" | 75 | export PLAT_CPP="${CXX}" |
@@ -81,23 +82,23 @@ do_compile() { | |||
81 | for X11BUILD in 0 1 ; do | 82 | for X11BUILD in 0 1 ; do |
82 | for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do | 83 | for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do |
83 | cd $demo/OGLES/Build/LinuxGeneric | 84 | cd $demo/OGLES/Build/LinuxGeneric |
84 | oe_runmake Common=1 PLATFORM=$PLATFORM X11BUILD=$X11BUILD | 85 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
85 | rm $demo/OGLES/Build/LinuxOMAP3/Release*/*.o | 86 | rm $demo/OGLES/Build/${PLATFORM}/Release*/*.o |
86 | install -m 0755 $demo/OGLES/Build/LinuxOMAP3/ReleaseX11/* ${S}/demos/x11 || true | 87 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true |
87 | sed -e s:NAME:$(basename $demo): \ | 88 | sed -e s:NAME:$(basename $demo): \ |
88 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/LinuxOMAP3/ReleaseX11/*): \ | 89 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/${PLATFORM}/ReleaseX11/*): \ |
89 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | 90 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop |
90 | install -m 0755 $demo/OGLES/Build/LinuxOMAP3/ReleaseRaw/* ${S}/demos/raw || true | 91 | install -m 0755 $demo/OGLES/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true |
91 | done | 92 | done |
92 | for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do | 93 | for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do |
93 | cd $demo/OGLES2/Build/LinuxGeneric | 94 | cd $demo/OGLES2/Build/LinuxGeneric |
94 | oe_runmake Common=1 PLATFORM=$PLATFORM X11BUILD=$X11BUILD | 95 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
95 | rm -f $demo/OGLES2/Build/LinuxOMAP3/Release*/*.o | 96 | rm -f $demo/OGLES2/Build/${PLATFORM}/Release*/*.o |
96 | install -m 0755 $demo/OGLES2/Build/LinuxOMAP3/ReleaseX11/* ${S}/demos/x11 || true | 97 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/demos/x11 || true |
97 | sed -e s:NAME:$(basename $demo): \ | 98 | sed -e s:NAME:$(basename $demo): \ |
98 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/LinuxOMAP3/ReleaseX11/*): \ | 99 | -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/${PLATFORM}/ReleaseX11/*): \ |
99 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop | 100 | ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop |
100 | install -m 0755 $demo/OGLES2/Build/LinuxOMAP3/ReleaseRaw/* ${S}/demos/raw || true | 101 | install -m 0755 $demo/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/demos/raw || true |
101 | done | 102 | done |
102 | done | 103 | done |
103 | 104 | ||
@@ -113,14 +114,14 @@ do_compile() { | |||
113 | cd $training/OGLES2/Build/LinuxGeneric | 114 | cd $training/OGLES2/Build/LinuxGeneric |
114 | fi | 115 | fi |
115 | 116 | ||
116 | if [ -e $training/OGLES2/Build/LinuxOMAP3/Makefile ] ; then | 117 | if [ -e $training/OGLES2/Build/${PLATFORM}/Makefile ] ; then |
117 | cd $training/OGLES2/Build/LinuxOMAP3 | 118 | cd $training/OGLES2/Build/${PLATFORM} |
118 | fi | 119 | fi |
119 | 120 | ||
120 | oe_runmake Common=1 PLATFORM=$PLATFORM X11BUILD=$X11BUILD | 121 | oe_runmake Common=1 PLATFORM=${PLATFORM} X11BUILD=$X11BUILD |
121 | rm -f $training/OGLES2/Build/LinuxOMAP3/Release*/*.o | 122 | rm -f $training/OGLES2/Build/${PLATFORM}/Release*/*.o |
122 | install -m 0755 $training/OGLES2/Build/LinuxOMAP3/ReleaseX11/* ${S}/trainingcourses/x11 || true | 123 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseX11/* ${S}/trainingcourses/x11 || true |
123 | install -m 0755 $training/OGLES2/Build/LinuxOMAP3/ReleaseRaw/* ${S}/trainingcourses/raw || true | 124 | install -m 0755 $training/OGLES2/Build/${PLATFORM}/ReleaseRaw/* ${S}/trainingcourses/raw || true |
124 | done | 125 | done |
125 | done | 126 | done |
126 | 127 | ||
@@ -141,7 +142,7 @@ do_install () { | |||
141 | install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ | 142 | install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/ |
142 | 143 | ||
143 | install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true | 144 | install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true |
144 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/lib/*X11WS* ${D}${libdir} || true | 145 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/lib/*X11WS* ${D}${libdir} || true |
145 | 146 | ||
146 | install -d ${D}${includedir} | 147 | install -d ${D}${includedir} |
147 | cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/ | 148 | cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/ |
@@ -149,8 +150,8 @@ do_install () { | |||
149 | 150 | ||
150 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/ | 151 | cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/ |
151 | cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/ | 152 | cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/ |
152 | cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES/ || true | 153 | cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES/ || true |
153 | cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES2/ || true | 154 | cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/${PLATFORM}/Include/GLES/* ${D}${includedir}/GLES2/ || true |
154 | cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/v* ${D}${includedir}/ || true | 155 | cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/v* ${D}${includedir}/ || true |
155 | cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ || true | 156 | cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ || true |
156 | cp -pPr ${S}/include/*.h ${D}${includedir} || true | 157 | cp -pPr ${S}/include/*.h ${D}${includedir} || true |