manual: download: remove trailing slash from package FOO_SITE
[buildroot-gz.git] / linux / linux-ext-fbtft.mk
blob36f4fd22dd1d3facf9c59e3b812fa03956726fe7
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 ; \
16 else \
17 dest=$(LINUX_DIR)/drivers/video/ ; \
18 fi ; \
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
24 endef
26 LINUX_PRE_PATCH_HOOKS += FBTFT_PREPARE_KERNEL
28 endif #BR2_LINUX_KERNEL_EXT_FBTFT