Kernel: fix out-of-tree build for merged kernel modules

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
This commit is contained in:
Icenowy Zheng
2023-10-27 17:11:04 +08:00
committed by Han Gao
parent 3e042d29a3
commit 35a32afaf8
5 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
img_basedir := drivers/gpu/drm/img-rogue
img_basedir := $(srctree)/$(src)
include $(img_basedir)/config_kernel.mk
obj-$(CONFIG_DRM_POWERVR_ROGUE) += pvrsrvkm.o

View File

@@ -4,4 +4,4 @@ endif
obj-$(CONFIG_VHA) += vha/ img_mem/
obj-$(CONFIG_LOKI) += fenrir_loki/
subdir-ccflags-y += -I$(src)/include
subdir-ccflags-y += -I$(srctree)/$(src)/include

View File

@@ -14,7 +14,7 @@ CFLAGS_img_mem_ion.o += -Idrivers/staging/android/ion
endif
# IMGMMU: These should be obsoleted
ccflags-y += -I$(src)/imgmmu/mmulib
ccflags-y += -I$(srctree)/$(src)/imgmmu/mmulib
# IMGMMU: code
img_mem-y += imgmmu/imgmmu.o
img_mem-y += imgmmu/kernel_heap.o

View File

@@ -11,10 +11,10 @@ vha-y := vha_api.o vha_common.o
vha-y += vha_dbg.o vha_pdump.o
ifeq ($(CONFIG_HW_AX3_MC), y)
subdir-ccflags-y += -I$(src)/multi
subdir-ccflags-y += -I$(srctree)/$(src)/multi
vha-y += multi/vha_dev.o multi/vha_wm.o multi/vha_mmu.o multi/vha_mt19937.o
else
subdir-ccflags-y += -I$(src)/single
subdir-ccflags-y += -I$(srctree)/$(src)/single
vha-y += single/vha_dev.o single/vha_cnn.o single/vha_mmu.o
vha-$(CONFIG_HW_AX2) += single/vha_dev_ax2.o
vha-$(CONFIG_HW_AX3) += single/vha_dev_ax3.o
@@ -48,8 +48,8 @@ ccflags-$(CONFIG_VHA_SYS_AURA) += -DCFG_SYS_AURA
ccflags-$(CONFIG_VHA_SYS_VAGUS) += -DCFG_SYS_VAGUS
ccflags-$(CONFIG_VHA_SYS_MAGNA) += -DCFG_SYS_MAGNA
ccflags-y += -I$(src)/$(PLAT)/
subdir-ccflags-y += -I$(src)
ccflags-y += -I$(srctree)/$(src)/$(PLAT)/
subdir-ccflags-y += -I$(srctree)/$(src)
ifdef CONFIG_NEXEF_NNPU_INCLUDE
subdir-ccflags-y += -I${CONFIG_NEXEF_NNPU_INCLUDE}

View File

@@ -66,7 +66,7 @@ EXTRA_CFLAGS += $(DEBFLAGS)
ifneq ($(KERNELRELEASE),)
# recursive call from kernel build system
ccflags-y := -I$(src)/../dwl
ccflags-y := -I$(srctree)/$(src)/../dwl
hantrodec-objs := hantro_dec.o hantro_mmu.o hantro_axife.o hantro_vcmd.o bidirect_list.o vcmdswhwregisters.o subsys.o kernel_allocator.o
obj-m += hantrodec.o