mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
raspi Final
This commit is contained in:
parent
32ce9ac6b5
commit
f127ee1f74
4 changed files with 8 additions and 48 deletions
|
@ -1429,18 +1429,6 @@ config("compiler_cpu_abi") {
|
||||||
asmflags = cflags
|
asmflags = cflags
|
||||||
}
|
}
|
||||||
|
|
||||||
config("march-dotprod") {
|
|
||||||
if (!is_win || is_clang) {
|
|
||||||
cflags = [ "-march=armv8.2-a+dotprod" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
config("march-i8mm") {
|
|
||||||
if (!is_win || is_clang) {
|
|
||||||
cflags = [ "-march=armv8.2-a+dotprod+i8mm" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# This provides options to tweak code generation that are necessary
|
# This provides options to tweak code generation that are necessary
|
||||||
# for particular Chromium code or for working around particular
|
# for particular Chromium code or for working around particular
|
||||||
# compiler bugs (or the combination of the two).
|
# compiler bugs (or the combination of the two).
|
||||||
|
|
|
@ -1147,8 +1147,8 @@ config("compiler_cpu_abi") {
|
||||||
} else if (current_cpu == "arm64") {
|
} else if (current_cpu == "arm64") {
|
||||||
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
|
if (is_clang && !is_android && !is_nacl && !is_fuchsia &&
|
||||||
!(is_chromeos_lacros && is_chromeos_device)) {
|
!(is_chromeos_lacros && is_chromeos_device)) {
|
||||||
cflags += [ "--target=aarch64-linux-gnu", "-march=armv8-a+crc", "-mcpu=cortex-a72", "-mtune=cortex-a72", ]
|
cflags += [ "--target=aarch64-linux-gnu", "-march=armv8-a+simd", "-mtune=cortex-a72", ]
|
||||||
ldflags += [ "--target=aarch64-linux-gnu", "-march=armv8-a+crc", ]
|
ldflags += [ "--target=aarch64-linux-gnu", "-march=armv8-a+simd", ]
|
||||||
}
|
}
|
||||||
} else if (current_cpu == "mipsel" && !is_nacl) {
|
} else if (current_cpu == "mipsel" && !is_nacl) {
|
||||||
ldflags += [ "-Wl,--hash-style=sysv" ]
|
ldflags += [ "-Wl,--hash-style=sysv" ]
|
||||||
|
@ -1414,18 +1414,6 @@ config("compiler_cpu_abi") {
|
||||||
asmflags = cflags
|
asmflags = cflags
|
||||||
}
|
}
|
||||||
|
|
||||||
config("march-dotprod") {
|
|
||||||
if (!is_win || is_clang) {
|
|
||||||
cflags = [ "-march=armv8.2-a+dotprod" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
config("march-i8mm") {
|
|
||||||
if (!is_win || is_clang) {
|
|
||||||
cflags = [ "-march=armv8.2-a+dotprod+i8mm" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# This provides options to tweak code generation that are necessary
|
# This provides options to tweak code generation that are necessary
|
||||||
# for particular Chromium code or for working around particular
|
# for particular Chromium code or for working around particular
|
||||||
# compiler bugs (or the combination of the two).
|
# compiler bugs (or the combination of the two).
|
||||||
|
|
16
src/third_party/libaom/BUILD.gn
vendored
16
src/third_party/libaom/BUILD.gn
vendored
|
@ -211,19 +211,6 @@ if (current_cpu == "arm64" || cpu_arch_full == "arm-neon" ||
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current_cpu == "arm64") {
|
|
||||||
source_set("libaom_intrinsics_arm_crc32") {
|
|
||||||
check_includes = false
|
|
||||||
configs -= [ "//build/config/compiler:chromium_code" ]
|
|
||||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
|
||||||
configs += [ ":libaom_config" ]
|
|
||||||
if (!is_win || is_clang) {
|
|
||||||
cflags = [ "-march=armv8-a+crc" ]
|
|
||||||
}
|
|
||||||
sources = aom_av1_encoder_intrin_arm_crc32
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static_library("libaom") {
|
static_library("libaom") {
|
||||||
check_includes = false
|
check_includes = false
|
||||||
if (!is_debug && is_win) {
|
if (!is_debug && is_win) {
|
||||||
|
@ -278,9 +265,6 @@ static_library("libaom") {
|
||||||
if (current_cpu == "arm64") {
|
if (current_cpu == "arm64") {
|
||||||
# This is needed by all arm boards due to aom_arm_cpu_caps()
|
# This is needed by all arm boards due to aom_arm_cpu_caps()
|
||||||
sources += [ "source/libaom/aom_ports/aarch64_cpudetect.c" ]
|
sources += [ "source/libaom/aom_ports/aarch64_cpudetect.c" ]
|
||||||
deps += [
|
|
||||||
":libaom_intrinsics_arm_crc32",
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
if (current_cpu == "arm") {
|
if (current_cpu == "arm") {
|
||||||
# This is needed by all arm boards due to aom_arm_cpu_caps()
|
# This is needed by all arm boards due to aom_arm_cpu_caps()
|
||||||
|
|
12
src/third_party/libaom/cmake_update.sh
vendored
12
src/third_party/libaom/cmake_update.sh
vendored
|
@ -185,12 +185,12 @@ gen_config_files linux/arm-neon \
|
||||||
|
|
||||||
reset_dirs linux/arm-neon-cpu-detect
|
reset_dirs linux/arm-neon-cpu-detect
|
||||||
gen_config_files linux/arm-neon-cpu-detect \
|
gen_config_files linux/arm-neon-cpu-detect \
|
||||||
"${toolchain}/armv7-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
"${toolchain}/armv7-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 -DENABLE_ARM_CRC32=0 -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
||||||
${all_platforms}"
|
${all_platforms}"
|
||||||
|
|
||||||
reset_dirs linux/arm64-cpu-detect
|
reset_dirs linux/arm64-cpu-detect
|
||||||
gen_config_files linux/arm64-cpu-detect \
|
gen_config_files linux/arm64-cpu-detect \
|
||||||
"${toolchain}/arm64-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
"${toolchain}/arm64-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 -DENABLE_ARM_CRC32=0 -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
||||||
${all_platforms}"
|
${all_platforms}"
|
||||||
|
|
||||||
# CMAKE_INSTALL_NAME_TOOL is set to a non-empty/true value to allow this
|
# CMAKE_INSTALL_NAME_TOOL is set to a non-empty/true value to allow this
|
||||||
|
@ -198,12 +198,12 @@ gen_config_files linux/arm64-cpu-detect \
|
||||||
# commands are not invoked so the value doesn't matter.
|
# commands are not invoked so the value doesn't matter.
|
||||||
reset_dirs ios/arm-neon
|
reset_dirs ios/arm-neon
|
||||||
gen_config_files ios/arm-neon \
|
gen_config_files ios/arm-neon \
|
||||||
"${toolchain}/armv7-ios.cmake -DCMAKE_INSTALL_NAME_TOOL=no-such-command -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
"${toolchain}/armv7-ios.cmake -DCMAKE_INSTALL_NAME_TOOL=no-such-command -DENABLE_ARM_CRC32=0 -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
||||||
${all_platforms}"
|
${all_platforms}"
|
||||||
|
|
||||||
reset_dirs ios/arm64
|
reset_dirs ios/arm64
|
||||||
gen_config_files ios/arm64 \
|
gen_config_files ios/arm64 \
|
||||||
"${toolchain}/arm64-ios.cmake -DCMAKE_INSTALL_NAME_TOOL=no-such-command -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
"${toolchain}/arm64-ios.cmake -DCMAKE_INSTALL_NAME_TOOL=no-such-command -DENABLE_ARM_CRC32=0 -DENABLE_NEON_DOTPROD=0 -DENABLE_NEON_I8MM=0 \
|
||||||
${all_platforms}"
|
${all_platforms}"
|
||||||
|
|
||||||
# Copy linux configurations and modify for Windows.
|
# Copy linux configurations and modify for Windows.
|
||||||
|
@ -215,7 +215,7 @@ convert_to_windows "${CFG}/win/arm64-cpu-detect/config/aom_config.h"
|
||||||
|
|
||||||
update_readme
|
update_readme
|
||||||
|
|
||||||
git cl format > /dev/null \
|
# git cl format > /dev/null \
|
||||||
|| echo "WARNING: 'git cl format' failed. Please run 'git cl format' manually."
|
# || echo "WARNING: 'git cl format' failed. Please run 'git cl format' manually."
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
Loading…
Reference in a new issue