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.
commit 5b74a2dc5270094810ec0cf8039fd3b3ab0815b5 Author: Josh Triplett <josh@joshtriplett.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. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55645 Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.