1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

Updated dhrystone to use the new resource resoultion mechanics.

This commit is contained in:
Sergei Trofimov 2017-03-21 16:00:40 +00:00
parent 15886ffa29
commit 84c1fc2bcf
7 changed files with 5 additions and 24 deletions

View File

@ -18,10 +18,7 @@
import os import os
import re import re
from wa import Workload, Parameter, ConfigError from wa import Workload, Parameter, ConfigError, Executable
this_dir = os.path.dirname(__file__)
class Dhrystone(Workload): class Dhrystone(Workload):
@ -75,7 +72,8 @@ class Dhrystone(Workload):
] ]
def initialize(self, context): def initialize(self, context):
host_exe = os.path.join(this_dir, 'dhrystone') resource = Executable(self, self.target.abi, 'dhrystone')
host_exe = context.resolver.get(resource)
Dhrystone.target_exe = self.target.install(host_exe) Dhrystone.target_exe = self.target.install(host_exe)
def setup(self, context): def setup(self, context):

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -13,11 +13,5 @@
# limitations under the License. # limitations under the License.
# #
dhrystone: dhrystone.c
ndk-build $(CROSS_COMPILE)gcc -O3 -static dhrystone.c -o dhrystone
if [[ -f libs/armeabi/dhrystone ]]; then
echo "Dhrystone binary updated."
cp libs/armeabi/dhrystone ..
rm -rf libs
rm -rf obj
fi

View File

@ -1,11 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= dhrystone.c
LOCAL_MODULE := dhrystone
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_LIBRARIES := libc
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_LDLIBS := -llog
LOCAL_CFLAGS := -O2
include $(BUILD_EXECUTABLE)