Files
shredos.x86_64/linux/linux-ext-fbtft.mk
Yann E. MORIN 700be8e2a4 linux: migrate extensions to use the new infrastructure
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-09 23:00:01 +02:00

23 lines
752 B
Makefile

################################################################################
# Linux fbtft extensions
#
# Patch the linux kernel with fbtft extension
################################################################################
LINUX_EXTENSIONS += fbtft
# 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 \
dest=$(LINUX_DIR)/drivers/video/fbdev ; \
else \
dest=$(LINUX_DIR)/drivers/video/ ; \
fi ; \
mkdir -p $${dest}/fbtft; \
cp -dpfr $(FBTFT_DIR)/* $${dest}/fbtft/ ; \
echo 'source "drivers/video/fbdev/fbtft/Kconfig"' \
>> $${dest}/Kconfig ; \
echo 'obj-y += fbtft/' >> $${dest}/Makefile
endef