With gen4asm installed, out-of-tree builds fail with errors like this:
m4: cannot open `field_backward.g4a': No such file or directory
Looks like the make rules for gen4asm files reference the source files via their basenames without using srcdir, which only works for in-tree builds.
This breaks when trying to build the current Intel driver on ChromeOS, which uses out-of-tree builds for everything.
Created attachment 68099 [details] [review]
[PATCH] Fix out-of-tree builds with intel-gen4asm installed
The attached patch fixes this bug.
Author: Josh Triplett <firstname.lastname@example.org>
Date: Thu Oct 4 17:48:24 2012 -0700
Fix out-of-tree builds with intel-gen4asm installed
The make rules to compile shaders with intel-gen4asm referenced the .g4a
source files without using $(srcdir), which broke out-of-tree builds.
Reference .g4a source files via $(srcdir), and add $(srcdir) to m4's
include path, fixing out-of-tree builds.
Signed-off-by: Josh Triplett <email@example.com>