mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
dde_linux: Move symbolic header-file links of Intel driver
Because Linux sometimes uses relative includes, the links are moved to the 'include/include/include' directory. Ref #1764
This commit is contained in:
parent
d65beb970d
commit
020758a2f1
@ -21,7 +21,7 @@ INC_DIR += $(SRC_DIR)/include \
|
||||
$(LX_CONTRIB_DIR)/drivers/gpu/include \
|
||||
$(LX_CONTRIB_DIR)/include \
|
||||
$(LX_CONTRIB_DIR)/include/uapi \
|
||||
$(LIB_CACHE_DIR)/intel_fb_include
|
||||
$(LIB_CACHE_DIR)/intel_fb_include/include/include/include
|
||||
|
||||
CC_OPT += -U__linux__ -D__KERNEL__
|
||||
CC_OPT += -DCONFIG_DRM_I915_KMS -DCONFIG_I2C -DCONFIG_I2C_BOARDINFO
|
||||
|
@ -4,14 +4,25 @@
|
||||
# provides our emulation of the Linux kernel API.
|
||||
#
|
||||
|
||||
ifeq ($(called_from_lib_mk),yes)
|
||||
|
||||
LX_CONTRIB_DIR := $(call select_from_ports,dde_linux)/src/drivers/framebuffer/intel
|
||||
LX_EMUL_H := $(REP_DIR)/src/drivers/framebuffer/intel/include/lx_emul.h
|
||||
|
||||
GEN_INCLUDES := $(shell grep -rh "^\#include .*\/" $(LX_CONTRIB_DIR) |\
|
||||
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" | sort | uniq)
|
||||
|
||||
#
|
||||
# Put Linux headers in 'GEN_INC' dir, since some include use "../../" paths use
|
||||
# three level include hierarchy
|
||||
#
|
||||
GEN_INC := $(shell pwd)/include/include/include
|
||||
GEN_INCLUDES := $(addprefix $(GEN_INC)/,$(GEN_INCLUDES))
|
||||
|
||||
all: $(GEN_INCLUDES)
|
||||
|
||||
$(GEN_INCLUDES):
|
||||
$(VERBOSE)mkdir -p $(dir $@)
|
||||
$(VERBOSE)ln -sf $(LX_EMUL_H) $@
|
||||
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user