| # Copyright 2021 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Initial value just for style purposes. |
| USE="" |
| LINUX_FIRMWARE="" |
| |
| # Initial value just for style purposes. |
| LINUX_FIRMWARE="" |
| |
| BOARD_COMPILER_FLAGS="-march=bdver4 -mno-fma4 -mno-tbm -mno-xop -mno-lwp" |
| BOARD_RUSTFLAGS="-Ctarget-cpu=bdver4 -Ctarget-feature=-fma4,-tbm,-xop,-lwp" |
| |
| CHROMEOS_KERNEL_SPLITCONFIG="chromeos-amd-stoneyridge" |
| CHROMEOS_KERNEL_ARCH="x86_64" |
| |
| USE="${USE} kernel-5_15" |
| |
| # Disable ACPI AC device and use USB PD power supply driver |
| USE="${USE} -acpi_ac" |
| |
| # Don't build in the Intel MRC |
| USE="${USE} amd_cpu" |
| |
| # GPU sandboxing needs to be started early as GPU process spawns |
| # multiple threads. |
| USE="${USE} gpu_sandbox_start_early" |
| |
| # Use LLVM amdgpu target when building LLVM. |
| LLVM_TARGETS="AMDGPU" |
| |
| # LLVM is required to build the radeon and amdgpu drivers. |
| USE="${USE} llvm" |
| |
| # Enable GpuMemoryBuffers backed by dma-bufs. |
| USE="${USE} native_gpu_memory_buffers" |
| |
| # Enable drm atomic in chromium. |
| USE="${USE} drm_atomic" |
| |
| # Enable SMT by default. |
| USE="${USE} scheduler_configuration_performance" |
| |
| # TODO: Remove radeon when amdgpu works by itself |
| VIDEO_CARDS="-* radeon amdgpu" |
| |
| # Enable AMDGPU linux firmware for RN and green sardine |
| LINUX_FIRMWARE="${LINUX_FIRMWARE} amdgpu_renoir amdgpu_green_sardine" |
| |
| # With amdgpu support as part of kernel |
| USE="${USE} builtin_fw_amdgpu_renoir builtin_fw_amdgpu_green_sardine" |
| |
| # Enable Android Extension Pack for amd-mesa |
| USE="${USE} android_aep" |
| |
| # Enable fscrypt v2 usage on 5.4+ |
| USE="${USE} direncription_allow_v2" |
| |
| USE="${USE} skyrim" |
| |
| # Enable unibuild |
| USE="${USE} unibuild has_chromeos_config_bsp" |
| |
| # Enable VMs |
| USE="${USE} kvm_host crosvm-gpu virtio_gpu" |
| |
| # Add ec firmware. |
| #USE="${USE} cros_ec" |
| |
| # Enable Zephyr-based EC. |
| USE="${USE} zephyr_ec zephyr_v2_7" |
| |
| # MT7921E WiFi firmware |
| LINUX_FIRMWARE="${LINUX_FIRMWARE} mt7921e" |
| |
| # MT7921E USB BT firmware |
| LINUX_FIRMWARE="${LINUX_FIRMWARE} mt7921e-bt" |
| |
| # Enable RealTek RTW8852A WiFi firmware. |
| LINUX_FIRMWARE="${LINUX_FIRMWARE} rtw8852a" |
| |
| # Enable Realtek RTL8852A USB BT firmware |
| LINUX_FIRMWARE="${LINUX_FIRMWARE} rtl_bt-8852ae-usb" |
| |
| # Add EC logging |
| USE="${USE} eclog" |
| # TODO: Default enable for debug purpose, need to disable later |
| # Uncomment these lines to activate the serial port. |
| TTY_CONSOLE="ttyS0" |
| USE="${USE} pcserial" |
| USE="${USE} tty_console_ttyS0" |