Skip to content

Commit f7a1838

Browse files
imguoguoRadxaYuntian
authored andcommitted
feat: add kernel version check for dtso
1 parent 9ab948c commit f7a1838

File tree

1 file changed

+4
-0
lines changed
  • arch/arm64/boot/dts/qcom/overlays

1 file changed

+4
-0
lines changed

arch/arm64/boot/dts/qcom/overlays/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
# dtso can only build on kernel >= 6.2
3+
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=363547d2191cbc32ca954ba75d72908712398ff2
4+
ifeq ($(shell [ $(VERSION) -gt 6 ] || ( [ $(VERSION) -eq 6 ] && [ $(PATCHLEVEL) -ge 2 ] ) && echo 0), 0)
25
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-radxa-dragon-q6a-cam1-imx577.dtbo \
36
qcs6490-radxa-dragon-q6a-cam2-radxa-camera-8m-219.dtbo \
47
qcs6490-radxa-dragon-q6a-cam3-radxa-camera-8m-219.dtbo \
@@ -14,3 +17,4 @@ clean-files := *.dtbo
1417
# HACK: fix build dtbo from dkms using kernel header
1518
DTC ?= /usr/bin/dtc
1619
override DTC_INCLUDE := $(srctree)/include
20+
endif

0 commit comments

Comments
 (0)