coremark: 合并上游改动
This commit is contained in:
parent
b40ef7e65c
commit
598f37eef3
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
coremark > /tmp/coremark.log
|
||||||
|
Scores=$(cat /tmp/coremark.log 2> /dev/null | grep "CoreMark 1.0" | awk '{print $4}')
|
||||||
|
Processer=$(awk -F ':[ ]' '/model name/{printf ($2);exit}' /proc/cpuinfo)
|
||||||
|
|
||||||
|
[[ -n ${Processer} ]] && echo -e "\nProcesser: ${Processer}"
|
||||||
|
echo -e "Score: ${Scores}\nTime costs: $(grep "Total time" /tmp/coremark.log | awk '{print $4}')"
|
||||||
|
echo "(CPU Mark: ${Scores} Scores)" > /etc/bench.log
|
||||||
|
|
||||||
|
if [ -f /etc/bench.log ]; then
|
||||||
|
sed -i '/coremark/d' /etc/crontabs/root
|
||||||
|
crontab /etc/crontabs/root
|
||||||
|
fi
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo -e "\nRunning CoreMark test,please wait ..."
|
|
||||||
|
|
||||||
Scores=$(cat /tmp/coremark.log 2> /dev/null | grep "CoreMark 1.0" | awk '{print $4}')
|
|
||||||
Processer=$(awk -F ':[ ]' '/model name/{printf ($2);exit}' /proc/cpuinfo)
|
|
||||||
Time=$(grep "Total time" /tmp/coremark.log | awk '{print $4}')
|
|
||||||
[[ -z "${Processer}" ]] && Processer=Unknown
|
|
||||||
|
|
||||||
echo -e "\nProcesser: ${Processer}\nScore: ${Scores}\nTime costs: ${Time}"
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo -e "\nRunning CoreMark test,please wait ..."
|
|
||||||
/bin/coremark > /tmp/coremark.log
|
|
||||||
|
|
||||||
Scores=$(cat /tmp/coremark.log 2> /dev/null | grep "CoreMark 1.0" | awk '{print $4}')
|
|
||||||
Processer=$(awk -F ':[ ]' '/model name/{printf ($2);exit}' /proc/cpuinfo)
|
|
||||||
Time=$(grep "Total time" /tmp/coremark.log | awk '{print $4}')
|
|
||||||
[[ -z "${Processer}" ]] && Processer=Unknown
|
|
||||||
|
|
||||||
echo -e "\nProcesser: ${Processer}\nScore: ${Scores}\nTime costs: ${Time}"
|
|
||||||
echo "(CPU Mark: ${Scores} Scores)" > /etc/bench.log
|
|
||||||
|
|
||||||
if [ -f "/etc/bench.log" ]; then
|
|
||||||
sed -i '/coremark/d' /etc/crontabs/root
|
|
||||||
crontab /etc/crontabs/root
|
|
||||||
fi
|
|
|
@ -209,7 +209,7 @@ Firmware-Diy_Base() {
|
||||||
Replace_File CustomFiles/Depends/base-files-essential package/base-files/files/lib/upgrade/keep.d
|
Replace_File CustomFiles/Depends/base-files-essential package/base-files/files/lib/upgrade/keep.d
|
||||||
case "${Openwrt_Author}" in
|
case "${Openwrt_Author}" in
|
||||||
coolsnowwolf)
|
coolsnowwolf)
|
||||||
Replace_File CustomFiles/Depends/coremark_lede.sh package/lean/coremark coremark.sh
|
Replace_File CustomFiles/Depends/coremark.sh package/feeds/packages/coremark
|
||||||
Replace_File CustomFiles/Depends/cpuinfo_x86 package/lean/autocore/files/x86/sbin cpuinfo
|
Replace_File CustomFiles/Depends/cpuinfo_x86 package/lean/autocore/files/x86/sbin cpuinfo
|
||||||
AddPackage git other helloworld fw876 master
|
AddPackage git other helloworld fw876 master
|
||||||
sed -i 's/143/143,8080/' $(PKG_Finder d package luci-app-ssr-plus)/root/etc/init.d/shadowsocksr
|
sed -i 's/143/143,8080/' $(PKG_Finder d package luci-app-ssr-plus)/root/etc/init.d/shadowsocksr
|
||||||
|
@ -218,7 +218,6 @@ Firmware-Diy_Base() {
|
||||||
# [[ ${INCLUDE_DRM_I915} == true ]] && Replace_File CustomFiles/Depends/i915-5.4 target/linux/x86 config-5.4
|
# [[ ${INCLUDE_DRM_I915} == true ]] && Replace_File CustomFiles/Depends/i915-5.4 target/linux/x86 config-5.4
|
||||||
;;
|
;;
|
||||||
immortalwrt)
|
immortalwrt)
|
||||||
Replace_File CustomFiles/Depends/coremark_ImmortalWrt.sh package/base-files/files/etc coremark.sh
|
|
||||||
Replace_File CustomFiles/Depends/ImmortalWrt package/base-files/files/etc openwrt_release
|
Replace_File CustomFiles/Depends/ImmortalWrt package/base-files/files/etc openwrt_release
|
||||||
Replace_File CustomFiles/Depends/cpuinfo_x86 package/lean/autocore/files/x86/sbin cpuinfo
|
Replace_File CustomFiles/Depends/cpuinfo_x86 package/lean/autocore/files/x86/sbin cpuinfo
|
||||||
sed -i "s?Template?Compiled by ${Author} [${Display_Date}]?g" ${Version_File}
|
sed -i "s?Template?Compiled by ${Author} [${Display_Date}]?g" ${Version_File}
|
||||||
|
|
Loading…
Reference in New Issue