BACKPORT: add execmem build option

The execmem option can be set to false to disable the dynamic
dispatch patching that requires mmap(PROT_WRITE | PROT_EXEC),
which is undesirable on some platforms.

Signed-off-by: John Bates <jbates@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10987>
(cherry picked from commit df1a4e749f5205c0a73671f5e3b59062b85fa565)

BUG=b:227762794
TEST=emerge-reven mesa-reven, deploy to DUT
TEST=Test that "cros-health-tool telem --category=graphics" outputs graphics info on the DUT
TEST=Test that chrome://system works

Change-Id: Idf4eac2880d24f350fce81b37b5f2f4331221acd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/3573589
Tested-by: Nicholas Bishop <nicholasbishop@google.com>
Reviewed-by: Jeffery Miller <jefferymiller@google.com>
Commit-Queue: Nicholas Bishop <nicholasbishop@google.com>
3 files changed