So you find the make flags to do this and you add them to your During the build process the ports system goes out to build the dependencies of your graphics library. I would love to use it for a desktop some day, should my Apple OS X machine fail me.
But I really don’t see myself using Gentoo in a server setup again.
Also, please note step 10, which wasn't there for previous versions.
In the following, I assume you know how to maintain your system, change keywords on a package basis, etc.
However, if you recompile the kernel, you will need to reinstall the dkms module.
Whenever a new version of the driver is released or there is some change in something, and I have time, I will update the guide.
Also, if your card is a Southern Islands or a Sea Islands card, then you must also have CONFIG_DRM_AMDGPU_SI=y or CONFIG_DRM_AMDGPU_CIK=y, respectively. Then, downoad this ebuild and put it inside this directory.
This is the guide for driver version 61, and the statements are correct as of 2 November 2017.At the moment, I tested it with the latest available kernel of the series, which is the 4.9.60, and which I use in the instructions below.In the kernel configuration, verify that the following options are as shown (please note that some must be modules): CONFIG_MTRR = y # CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MTRR_SANITIZER = y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT = 1 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT = 2 CONFIG_BINFMT_ELF=y CONFIG_COMPAT_BINFMT_ELF=y CONFIG_BINFMT_SCRIPT=y CONFIG_BINFMT_MISC=y CONFIG_FW_LOADER = y CONFIG_FIRMWARE_IN_KERNEL = y CONFIG_EXTRA_FIRMWARE = "amdgpu/polaris10_amdgpu/polaris10_amdgpu/polaris10_amdgpu/polaris10_mec2amdgpu/polaris10_amdgpu/polaris10_amdgpu/polaris10_amdgpu/polaris10_sdma1amdgpu/polaris10_amdgpu/polaris10_amdgpu/polaris10_smc_amdgpu/polaris10_amdgpu/polaris10_vce.bin" CONFIG_EXTRA_FIRMWARE_DIR = "/lib/firmware" CONFIG_AGP = y CONFIG_VGA_SWITCHEROO = y CONFIG_DRM = y CONFIG_DRM_FBDEV_EMULATION = y CONFIG_DRM_AMDGPU = m CONFIG_DRM_AMDGPU_USERPTR = y CONFIG_FB = y CONFIG_FB_MODE_HELPERS = y CONFIG_FB_VESA = y # CONFIG_DRM_RADEON is not set # CONFIG_FB_RADEON is not set DEBUG_KERNEL = n A very important note: the lines above are correct for RX480 cards.tar x Jf amdgpu-pro-17.40-492261xz rm amdgpu-pro-17.40-492261xz cd amdgpu-pro-17.40-492261/ ar x amdgpu-pro-dkms_17.40-492261_tar x Jf xz rm * cd usr/src/).Do not perform this step if you will use the card for regular gaming/rendering/computing jobs. In general, update and maintain your system (and overlays) as usual.
However, note that the cards mentioned at this link are all desktop cards. If you don't know how to do this, see here or here.