mediatek: fix build failure of mt7623/mt7629 using kernel 6.6
In kernel 6.6, dts files for mediatek arm target are moved into arch/arm/boot/dts/mediatek instead of legacy path arch/arm/boot/dts. To avoid dts compile failure, change DTS_DIR to the mediatek subfolder for kernel 6.6. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
This commit is contained in:
parent
21eeb45420
commit
7d1145ecb9
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
ifneq ($(KERNEL),6.1)
|
||||||
|
DTS_DIR := $(DTS_DIR)/mediatek
|
||||||
|
endif
|
||||||
|
|
||||||
DEVICE_VARS += UBOOT_TARGET UBOOT_OFFSET UBOOT_IMAGE
|
DEVICE_VARS += UBOOT_TARGET UBOOT_OFFSET UBOOT_IMAGE
|
||||||
|
|
||||||
# The bootrom of MT7623 expects legacy MediaTek headers present in
|
# The bootrom of MT7623 expects legacy MediaTek headers present in
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
ifneq ($(KERNEL),6.1)
|
||||||
|
DTS_DIR := $(DTS_DIR)/mediatek
|
||||||
|
endif
|
||||||
|
|
||||||
define Device/mediatek_mt7629-rfb
|
define Device/mediatek_mt7629-rfb
|
||||||
DEVICE_VENDOR := MediaTek
|
DEVICE_VENDOR := MediaTek
|
||||||
DEVICE_MODEL := MT7629 rfb AP
|
DEVICE_MODEL := MT7629 rfb AP
|
||||||
|
|
Loading…
Reference in a new issue