diff options
author | Justin TerAvest <teravest@chromium.org> | 2017-10-18 11:27:33 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-20 01:51:19 -0700 |
commit | 568581483e80b3f840bd3d1f810bd01f3b62bc0b (patch) | |
tree | cdb27546df5c71c8c7d6b578099d015ad72d4bd9 | |
parent | 7a2df9085b91ddbd85d6c3d8c1760dac1b7f54b6 (diff) |
minigbm: Link amdgpuaddr for DRV_AMDGPU.
The amdgpu driver requires functions provided by amdgpuaddr:
* AddrComputeSurfaceInfo
* AddrConvertTileInfoToHW
* AddrCreate
* AddrDestroy
We need to link against amdgpuaddr when using this driver.
BUG=b:64515630
TEST=Built modified arc-cros-gralloc, got ARC++ graphics on AMD
Change-Id: I5bfa32f0c912ac5d3a19ab4f337614a1d91a6328
Reviewed-on: https://chromium-review.googlesource.com/726364
Commit-Ready: Justin TerAvest <teravest@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
-rw-r--r-- | cros_gralloc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cros_gralloc/Makefile b/cros_gralloc/Makefile index 17e884f..1583a6f 100644 --- a/cros_gralloc/Makefile +++ b/cros_gralloc/Makefile @@ -21,6 +21,10 @@ CXXFLAGS += -std=c++14 CFLAGS += -std=c99 LIBS += -shared -lcutils -lhardware -lsync $(LIBDRM_LIBS) +ifdef DRV_AMDGPU + LIBS += -lamdgpuaddr +endif + OBJS = $(foreach source, $(SOURCES), $(addsuffix .o, $(basename $(source)))) OBJECTS = $(addprefix $(TARGET_DIR), $(notdir $(OBJS))) |