2015-01-03 13:01:47 -07:00
|
|
|
################################################################################
|
|
|
|
# Linux fbtft extensions
|
|
|
|
#
|
|
|
|
# Patch the linux kernel with fbtft extension
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-14 08:25:21 -06:00
|
|
|
LINUX_EXTENSIONS += fbtft
|
2015-01-03 13:01:47 -07: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 06:18:55 -07:00
|
|
|
dest=drivers/video/fbdev ; \
|
2015-01-03 13:01:47 -07:00
|
|
|
else \
|
2015-01-11 06:18:55 -07:00
|
|
|
dest=drivers/video ; \
|
2015-01-03 13:01:47 -07:00
|
|
|
fi ; \
|
2015-01-11 06:18:55 -07: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 13:01:47 -07:00
|
|
|
endef
|