diff options
Diffstat (limited to 'meta-amd-bsp')
-rw-r--r-- | meta-amd-bsp/conf/layer.conf | 1 | ||||
-rw-r--r-- | meta-amd-bsp/conf/local.conf.append.v1000 | 17 | ||||
-rw-r--r-- | meta-amd-bsp/conf/machine/include/tune-v1000.inc | 15 | ||||
-rw-r--r-- | meta-amd-bsp/conf/machine/v1000.conf | 47 | ||||
-rw-r--r-- | meta-amd-bsp/recipes-bsp/formfactor/formfactor/v1000/machconfig | 3 |
5 files changed, 83 insertions, 0 deletions
diff --git a/meta-amd-bsp/conf/layer.conf b/meta-amd-bsp/conf/layer.conf index 207ec207..a82f41b0 100644 --- a/meta-amd-bsp/conf/layer.conf +++ b/meta-amd-bsp/conf/layer.conf @@ -17,3 +17,4 @@ LAYERSERIES_COMPAT_amd-bsp = "warrior" LICENSE_PATH += "${LAYERDIR}/licenses" LAYERDEPENDS_r1000 = "openembedded-layer meta-python" +LAYERDEPENDS_v1000 = "openembedded-layer meta-python" diff --git a/meta-amd-bsp/conf/local.conf.append.v1000 b/meta-amd-bsp/conf/local.conf.append.v1000 new file mode 100644 index 00000000..e36e8252 --- /dev/null +++ b/meta-amd-bsp/conf/local.conf.append.v1000 @@ -0,0 +1,17 @@ +# AMD supports various components that can be enabled by setting the corresponding +# INCLUDE_<component> to "yes". +# Following is a list of <components> that can be enabled if you want them to be +# installed/available on your image. +# Please change the required INCLUDE_<component> to "yes" before building an image, or +# generating an ADE that can be used to develop apps for these components (if applicable): +# +# - VULKAN - Vulkan driver and Loader Layer. +# It is required to run Vulkan based applications. Vulkan is a new generation graphics +# and compute API that provides high-efficiency, cross-platform access to modern GPUs. +# +# - OPENCL - The Open Computing Language. +# Framework for writing programs that execute across heterogeneous platforms consisting +# of CPUs, GPUs, DSPs, FPGAs and other processors or hardware accelerators. +# +INCLUDE_VULKAN ??= "no" +INCLUDE_OPENCL ??= "no" diff --git a/meta-amd-bsp/conf/machine/include/tune-v1000.inc b/meta-amd-bsp/conf/machine/include/tune-v1000.inc new file mode 100644 index 00000000..1c481cd3 --- /dev/null +++ b/meta-amd-bsp/conf/machine/include/tune-v1000.inc @@ -0,0 +1,15 @@ +DEFAULTTUNE ?= "dbfp5" + +require conf/machine/include/x86/arch-x86.inc +require conf/machine/include/x86-base.inc +# AMD DB-FP5 64bit (v1000) +TUNEVALID[dbfp5] = "Enable AMD DB-FP5 (64 bit) specific processor optimizations" +TUNECONFLICTS[dbfp5] = "m32 mx32" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "dbfp5", " -march=znver1", "", d)}" + +# Extra tune selections +AVAILTUNES += "dbfp5" +TUNE_FEATURES_tune-dbfp5 = "m64 dbfp5" +BASE_LIB_tune-dbfp5 = "lib64" +TUNE_PKGARCH_tune-dbfp5 = "dbfp5" +PACKAGE_EXTRA_ARCHS_tune-dbfp5 = "${TUNE_PKGARCH_tune-dbfp5}" diff --git a/meta-amd-bsp/conf/machine/v1000.conf b/meta-amd-bsp/conf/machine/v1000.conf new file mode 100644 index 00000000..5e3c6516 --- /dev/null +++ b/meta-amd-bsp/conf/machine/v1000.conf @@ -0,0 +1,47 @@ +#@TYPE: Machine +#@NAME: v1000 + +#@DESCRIPTION: Machine configuration for v1000 systems + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" +PREFERRED_VERSION_linux-yocto ?= "4.14%" + +require conf/machine/include/tune-v1000.inc + +# Add machine specific AMD features and feature pkgs here +VULKAN_PKGS_v1000 = "amdvlk vulkan vulkan-tools rgp" +AMD_PLATFORM_SPECIFIC_PKGS_v1000 += " \ + ${@bb.utils.contains('INCLUDE_OPENCL', 'yes', 'opencl', '', d)} \ + " + +include conf/machine/include/amd-common-configurations.inc +include conf/machine/include/amd-customer-configurations.inc + +# GPU +XSERVER_X86_GPU = "xf86-video-amd \ + ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-radeonsi', '', d)} \ + " + +XSERVER ?= "${XSERVER_X86_BASE} \ + ${XSERVER_X86_EXT} \ + ${XSERVER_X86_FBDEV} \ + ${XSERVER_X86_MODESETTING} \ + ${XSERVER_X86_GPU} \ + " + +KERNEL_MODULE_AUTOLOAD += "snd-soc-acp-pcm snd-soc-acp-rt286-mach amdgpu" +MACHINE_EXTRA_RRECOMMENDS += "amdgpu-firmware grub-efi" +MACHINE_EXTRA_RRECOMMENDS_remove = "rtc-test smbus-test grub" + +# Setup a getty on all serial ports +SERIAL_CONSOLES ?= "115200;ttyS4 115200;ttyS5" + +# Enable the kernel console on ttyS4/USB0 as well +KERNEL_SERIAL_CONSOLE ?= "console=ttyS4,115200n8" + +TOOLCHAIN_HOST_TASK_append_mel = " ${@bb.utils.contains('INCLUDE_VULKAN', 'yes', "nativesdk-glslang", "", d)}" + +MACHINEOVERRIDES =. "amd:amdx86:amdgpu:" + +# Metadata used by CodeBench for the ADE +ADE_CB_CPU = "general.cpu.zen" diff --git a/meta-amd-bsp/recipes-bsp/formfactor/formfactor/v1000/machconfig b/meta-amd-bsp/recipes-bsp/formfactor/formfactor/v1000/machconfig new file mode 100644 index 00000000..28ca080e --- /dev/null +++ b/meta-amd-bsp/recipes-bsp/formfactor/formfactor/v1000/machconfig @@ -0,0 +1,3 @@ +# Assume a USB mouse and keyboard are connected +HAVE_TOUCHSCREEN=n +HAVE_KEYBOARD=y |