am-benchmarks: Remove platform dependencies
PATCH v3 1/1 am-benchmarks: Remove platform dependencies
* Remove platform dependencies and use architecture dependencies instead
* Use OE BASE_PACKAGE_ARCH to determine architecture
* Update the SRCREV to revision 66
* Update the recipe revision to 1.3
* Removed INSANE_SKIP
NOTE - architecture dependency can be removed once CFLAGS can be passed into CCSv5 project makefile
---
Update in version 3:
Fix "sed" commands to apply to all dhrystone projects
---
.../{am-benchmarks_1.2.bb => am-benchmarks_1.3.bb} | 27 ++++++++++---------
1 files changed, 14 insertions(+), 13 deletions(-)
copy recipes/ti/{am-benchmarks_1.2.bb => am-benchmarks_1.3.bb} (61%)recipes/ti/am-benchmarks_1.3.bb renamed from recipes/ti/am-benchmarks_1.2.bb +14 -13
@@ -8,30 +8,31 @@ LICENSE = "BSD" SECTION = "system" PRIORITY = "optional" -SRCREV = "61" +SRCREV = "66" PR = "r2+svnr${SRCPV}" -COMPATIBLE_MACHINE = "(dm365|omapl138|omap3|ti816x|ti814x)" - -ARCHITECTURE_dm365 = "arm9" -ARCHITECTURE_omapl138 = "arm9" -ARCHITECTURE_omap3 = "cortex-a8" -ARCHITECTURE_ti816x = "cortex-a8" -ARCHITECTURE_ti814x = "cortex-a8" - -INSANE_SKIP_${PN} = "True" - SRC_URI = "svn://gforge.ti.com/svn/am_benchmarks/;module=trunk;proto=https;user=anonymous;pswd=''" -S = "${WORKDIR}/trunk/${ARCHITECTURE}" +S = "${WORKDIR}/trunk" + +do_configure() { + # Find all the objects.mk files for the Release target + files=`find ${BASE_PACKAGE_ARCH} -name "objects.mk" | grep Release` + for f in $files + do + sed -i -e 's|LIBS :=|LIBS := ${LDFLAGS} |' $f + done +} do_compile() { # don't build debug version touch debug export CROSS_COMPILE=${TARGET_PREFIX} - make release + export ARCH=${BASE_PACKAGE_ARCH} + make release } do_install() { + export ARCH=${BASE_PACKAGE_ARCH} make DESTDIR=${D} install }
Signature · 1 line
1.7.0.4
Quoted 19 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jeff Lance
Sent: Thursday, June 30, 2011 8:38 AM
To: [email protected]
Cc: Lance, Jeff
Subject: [oe] [PATCH v3 1/1] am-benchmarks: Remove platform dependencies* Remove platform dependencies and use architecture dependencies instead
* Use OEBASE_PACKAGE_ARCHto determine architecture
* Update the SRCREV to revision 66
* Update the recipe revision to 1.3
* RemovedINSANE_SKIP
NOTE - architecture dependency can be removed once CFLAGS can be passed into CCSv5 project makefile
Quoted 1 line
Signed-off-by Jeff Lance <[email protected]>
Quoted 73 lines
---
Update in version 3:
Fix "sed" commands to apply to all dhrystone projects--- .../{am-benchmarks_1.2.bb => am-benchmarks_1.3.bb} | 27 ++++++++++-- ------- 1 files changed, 14 insertions(+), 13 deletions(-) copy recipes/ti/{am-benchmarks_1.2.bb => am-benchmarks_1.3.bb} (61%)recipes/ti/am- renamed from recipes/ti/am-benchmarks_1.2.bb +0
-0benchmarks_1.3.bb
similarity index 61%
copy from recipes/ti/am-benchmarks_1.2.bb
copy to recipes/ti/am-benchmarks_1.3.bb
index 21e62a7..6070fe8 100644recipes/ti/am-benchmarks_1.3.bb renamed from recipes/ti/am-benchmarks_1.2.bb +1
-11@@ -8,30 +8,31 @@ LICENSE = "BSD" SECTION = "system" PRIORITY = "optional" -SRCREV = "61" +SRCREV = "66" PR = "r2+svnr${SRCPV}" -COMPATIBLE_MACHINE = "(dm365|omapl138|omap3|ti816x|ti814x)" - -ARCHITECTURE_dm365 = "arm9" -ARCHITECTURE_omapl138 = "arm9" -ARCHITECTURE_omap3 = "cortex-a8" -ARCHITECTURE_ti816x = "cortex-a8" -ARCHITECTURE_ti814x = "cortex-a8" - -INSANE_SKIP_${PN} = "True" - SRC_URI ="svn://gforge.ti.com/svn/am_benchmarks/;module=trunk;proto=https;user=a nonymous;pswd=''"
recipes/ti/am-benchmarks_1.3.bb renamed from recipes/ti/am-benchmarks_1.2.bb +5
-1-S = "${WORKDIR}/trunk/${ARCHITECTURE}" +S = "${WORKDIR}/trunk" + +do_configure() { + # Find all the objects.mk files for the Release target + files=`find ${BASE_PACKAGE_ARCH} -name "objects.mk" | grepRelease`
recipes/ti/am-benchmarks_1.3.bb renamed from recipes/ti/am-benchmarks_1.2.bb +8
-2+ for f in $files + do + sed -i -e 's|LIBS :=|LIBS := ${LDFLAGS} |' $f + done +} do_compile() { # don't build debug version touch debug export CROSS_COMPILE=${TARGET_PREFIX} - make release + export ARCH=${BASE_PACKAGE_ARCH} + make release } do_install() { + export ARCH=${BASE_PACKAGE_ARCH} make DESTDIR=${D} install } --1.7.0.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel