From 0dd69763975c6b5c93848e6cb0297ae1453c8f75 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Wed, 7 Sep 2022 17:49:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20fix=5Fcoremark.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomFiles/Patches/fix_coremark.patch | 11 +++++++ .../fix_ntfs3_conflict_with_antfs.patch | 33 ------------------- Scripts/AutoBuild_DiyScript.sh | 2 +- 3 files changed, 12 insertions(+), 34 deletions(-) create mode 100644 CustomFiles/Patches/fix_coremark.patch delete mode 100644 CustomFiles/Patches/fix_ntfs3_conflict_with_antfs.patch diff --git a/CustomFiles/Patches/fix_coremark.patch b/CustomFiles/Patches/fix_coremark.patch new file mode 100644 index 0000000..f134032 --- /dev/null +++ b/CustomFiles/Patches/fix_coremark.patch @@ -0,0 +1,11 @@ +--- a/feeds/packages/utils/coremark/Makefile ++++ b/feeds/packages/utils/coremark/Makefile +@@ -55,7 +55,7 @@ define Package/coremark/config + config COREMARK_NUMBER_OF_THREADS + int "Number of threads" + depends on COREMARK_ENABLE_MULTITHREADING +- default 128 if i386||x86_64 ++ default 16 if x86_64 + default 8 + help + Number of threads to run in parallel diff --git a/CustomFiles/Patches/fix_ntfs3_conflict_with_antfs.patch b/CustomFiles/Patches/fix_ntfs3_conflict_with_antfs.patch deleted file mode 100644 index 8e60d3b..0000000 --- a/CustomFiles/Patches/fix_ntfs3_conflict_with_antfs.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- a/feeds/packages/utils/antfs-mount/Makefile -+++ b/feeds/packages/utils/antfs-mount/Makefile -@@ -1,7 +1,7 @@ - include $(TOPDIR)/rules.mk - - PKG_NAME:=antfs-mount --PKG_RELEASE:=1 -+PKG_RELEASE:=2 - - include $(INCLUDE_DIR)/package.mk - -@@ -22,7 +22,7 @@ endef - - define Package/a/feeds/packages/utils/install - $(INSTALL_DIR) $(1)/sbin -- $(INSTALL_BIN) ./files/mount.ntfs $(1)/sbin -+ $(INSTALL_BIN) ./files/mount.antfs $(1)/sbin - endef - - $(eval $(call BuildPackage,antfs-mount)) - ---- a/feeds/packages/utils/antfs-mount/files/mount.antfs -+++ b/feeds/packages/utils/antfs-mount/files/mount.antfs -@@ -0,0 +1,3 @@ -+#!/bin/sh -+mount -t antfs $@ -o rw -+ - ---- a/feeds/packages/utils/antfs-mount/files/mount.ntfs -+++ b/feeds/packages/utils/antfs-mount/files/mount.ntfs -@@ -1,2 +0,0 @@ --#!/bin/sh --mount -t antfs "$@" diff --git a/Scripts/AutoBuild_DiyScript.sh b/Scripts/AutoBuild_DiyScript.sh index ec251ce..aa6d21d 100755 --- a/Scripts/AutoBuild_DiyScript.sh +++ b/Scripts/AutoBuild_DiyScript.sh @@ -88,7 +88,7 @@ EOF patch < ${CustomFiles}/Patches/luci-app-shadowsocksr/${x} -p1 -d ${WORK} done ; unset x - patch < ${CustomFiles}/Patches/fix_ntfs3_conflict_with_antfs.patch -p1 -d ${WORK} + patch < ${CustomFiles}/Patches/fix_coremark.patch -p1 -d ${WORK} patch < ${CustomFiles}/Patches/fix_aria2_auto_create_download_path.patch -p1 -d ${WORK} case "${TARGET_BOARD}" in