arm fixes

This commit is contained in:
Alexander Frick 2024-01-24 09:38:47 -06:00
parent e81eb961be
commit 67d8256e3a
4 changed files with 13 additions and 2997 deletions

View file

@ -1,9 +1,8 @@
# Copyright 2023 The Chromium Authors and Alex313031.
# Copyright 2024 The Chromium Authors and Alex313031.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# ONLY FOR RASPBERRY PI 4!!
# This should go in //chromium/src/config/arm.gni
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/v8_target_cpu.gni")

File diff suppressed because it is too large Load diff

View file

@ -21,7 +21,7 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# The ARM floating point hardware. This will be a string like "neon" or
# "vfpv3". An empty string means to use the default for the arm_version.
arm_fpu = "vfpv3-d16"
arm_fpu = "neon"
# The ARM variant-specific tuning mode. This will be a string like "armv6"
# or "cortex-a15". An empty string means to use the default for the
@ -29,7 +29,7 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
arm_tune = "generic-armv8-a"
# Whether to use the neon FPU instruction set or not.
arm_use_neon = "false"
arm_use_neon = "true"
# Whether to enable optional NEON code paths.
arm_optionally_use_neon = false
@ -152,10 +152,10 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# The ARM64 floating point hardware. This will be a string like "neon" or
# "vfpv3-d16". An empty string means to use the default for the arm_version.
arm_fpu = "vfpv3-d16"
arm_fpu = "neon"
# Whether to use the neon FPU instruction set or not.
arm_use_neon = "false"
arm_use_neon = "true"
# Whether to enable optional NEON code paths.
arm_optionally_use_neon = false
@ -176,9 +176,9 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
arm_version = 8
arm_float_abi = "hard"
arm_arch = "armv8-a"
arm_fpu = "vfpv3-d16"
arm_fpu = "neon"
arm_tune = "generic-armv8-a"
arm_use_neon = false
arm_use_neon = true
arm_optionally_use_neon = false
arm_use_thumb = true

View file

@ -96,23 +96,26 @@ copyRaspi () {
cp -r -v arm/media/* ${CR_SRC_DIR}/media/ &&
cp -r -v arm/third_party/* ${CR_SRC_DIR}/third_party/ &&
cp -r -v arm/raspi/* ${CR_SRC_DIR}/ &&
rm -v ${CR_SRC_DIR}/out/thorium/pak &&
cp -v pak_src/binaries/pak_arm64 ${CR_SRC_DIR}/out/thorium/pak &&
./infra/fix_libaom.sh &&
cp -r -v arm/build/config/* ${CR_SRC_DIR}/build/config/ &&
printf "\n" &&
cp -r -v arm/raspi/build/config/* ${CR_SRC_DIR}/build/config/ &&
printf "\n" &&
# Display raspi ascii art
cat logos/raspi_ascii_art.txt
}
case $1 in
--raspi) copyRaspi; displayRaspi;
--raspi) copyRaspi;
esac
# Windows on ARM files
# Windows on ARM64 files
copyWOA () {
printf "\n" &&
printf "${YEL}Copying Windows on ARM build files...${c0}\n" &&
cp -r -v arm/build/config/* ${CR_SRC_DIR}/build/config/ &&
cp -r -v arm/third_party/* ${CR_SRC_DIR}/third_party/ &&
cp -r -v arm/woa_arm.gni ${CR_SRC_DIR}/build/config/arm.gni &&
printf "\n"
}
case $1 in