mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
Kernel: fix out-of-tree build for merged kernel modules
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user