1 ################################################################################
2 # Linux fbtft extensions
4 # Patch the linux kernel with fbtft extension
5 ################################################################################
7 ifeq ($(BR2_LINUX_KERNEL_EXT_FBTFT
),y
)
8 # Add dependency to fbtft package (download helper for the fbtft source)
9 LINUX_DEPENDENCIES
+= fbtft
11 # for linux >= 3.15 install to drivers/video/fbdev/fbtft
12 # for linux < 3.15 install to drivers/video/fbtft
13 define FBTFT_PREPARE_KERNEL
14 if
[ -e
$(LINUX_DIR
)/drivers
/video
/fbdev
]; then \
15 dest
=$(LINUX_DIR
)/drivers
/video
/fbdev
; \
17 dest
=$(LINUX_DIR
)/drivers
/video
/ ; \
19 mkdir
-p
$${dest}/fbtft
; \
20 cp
-dpfr
$(FBTFT_DIR
)/* $${dest}/fbtft
/ ; \
21 echo
'source "drivers/video/fbdev/fbtft/Kconfig"' \
22 >> $${dest}/Kconfig
; \
23 echo
'obj-y += fbtft/' >> $${dest}/Makefile
26 LINUX_PRE_PATCH_HOOKS
+= FBTFT_PREPARE_KERNEL
28 endif #BR2_LINUX_KERNEL_EXT_FBTFT