2015-01-03 21:01:47 +01:00
|
|
|
################################################################################
|
|
|
|
# Linux fbtft extensions
|
|
|
|
#
|
|
|
|
# Patch the linux kernel with fbtft extension
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-14 15:25:21 +01:00
|
|
|
LINUX_EXTENSIONS += fbtft
|
2015-01-03 21:01:47 +01:00
|
|
|
|
|
|
|
# for linux >= 3.15 install to drivers/video/fbdev/fbtft
|
|
|
|
# for linux < 3.15 install to drivers/video/fbtft
|
|
|
|
define FBTFT_PREPARE_KERNEL
|
|
|
|
if [ -e $(LINUX_DIR)/drivers/video/fbdev ]; then \
|
2015-01-11 14:18:55 +01:00
|
|
|
dest=drivers/video/fbdev ; \
|
2015-01-03 21:01:47 +01:00
|
|
|
else \
|
2015-01-11 14:18:55 +01:00
|
|
|
dest=drivers/video ; \
|
2015-01-03 21:01:47 +01:00
|
|
|
fi ; \
|
2015-01-11 14:18:55 +01:00
|
|
|
mkdir -p $(LINUX_DIR)/$${dest}/fbtft; \
|
|
|
|
cp -dpfr $(FBTFT_DIR)/* $(LINUX_DIR)/$${dest}/fbtft/ ; \
|
|
|
|
echo "source \"$${dest}/fbtft/Kconfig\"" \
|
|
|
|
>> $(LINUX_DIR)/$${dest}/Kconfig ; \
|
|
|
|
echo 'obj-y += fbtft/' >> $(LINUX_DIR)/$${dest}/Makefile
|
2015-01-03 21:01:47 +01:00
|
|
|
endef
|