Currently, the Kbuild core manipulates header search paths in a crazy
way [1].
To fix this mess, I want all Makefiles to add explicit $(srctree)/ to
the search paths in the srctree. Some Makefiles are already written in
that way, but not all. The goal of this work is to make the notation
consistent, and finally get rid of the gross hacks.
Having whitespaces after -I does not matter since commit 48f6e3cf5b
("kbuild: do not drop -I without parameter").
[1]: https://patchwork.kernel.org/patch/9632347/
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1553859161-2628-1-git-send-email-yamada.masahiro@socionext.com
		
	
			
		
			
				
	
	
		
			10 lines
		
	
	
		
			438 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			438 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# SPDX-License-Identifier: GPL-2.0
 | 
						|
GVT_DIR := gvt
 | 
						|
GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \
 | 
						|
	interrupt.o gtt.o cfg_space.o opregion.o mmio.o display.o edid.o \
 | 
						|
	execlist.o scheduler.o sched_policy.o mmio_context.o cmd_parser.o debugfs.o \
 | 
						|
	fb_decoder.o dmabuf.o page_track.o
 | 
						|
 | 
						|
ccflags-y				+= -I $(srctree)/$(src) -I $(srctree)/$(src)/$(GVT_DIR)/
 | 
						|
i915-y					+= $(addprefix $(GVT_DIR)/, $(GVT_SOURCE))
 |