[Mesa-dev] [PATCH] Android: fix r300g only build

Rob Herring robh at kernel.org
Mon Apr 24 21:49:36 UTC 2017


On Mon, Apr 24, 2017 at 11:59 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Hi Rob,
>
> On 24 April 2017 at 17:46, Rob Herring <robh at kernel.org> wrote:
>> If r300g is the only radeon driver built, the Android build fails to
>> build:
>>
>> ninja: error:
>> 'out/target/product/linaro_x86_64/obj/STATIC_LIBRARIES/libmesa_pipe_radeon_intermediates/export_includes',
>> needed by
>> 'out/target/product/linaro_x86_64/obj/SHARED_LIBRARIES/gallium_dri_intermediates/import_includes',
>> missing and no known rule to make it
>>
>> This is because the path to build libmesa_pipe_radeon was only getting
>> added for r600g and radeonsi, but the library dependency was added for
>> all radeon drivers. As libmesa_pipe_radeon is not needed for r300g, drop
>> the library dependency.
>>
> I think we want to move libmesa_amdgpu_addrlib in a similar way. The
> lib is used/required by libmesa_winsys_amdgpu which is a r600/radeonsi
> only.
> Can you please build test that and send a patch (or even squash here
> if you prefer)?

You are right. Looking at this a bit more, I think we want to push all
the "extra" libraries down into the driver makefiles. With that we can
also properly export and import include directories.

> The patch as-is
> Acked-by: Emil Velikov <emil.velikov at collabora.com>

This one fixes the build, so can you apply it and I'll send a
follow-up series with further clean-ups. They'll need Mauro's help to
test because I don't have radeonsi building.

Rob


More information about the mesa-dev mailing list