mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-26 23:13:27 +08:00
50e64863e1
Make it follow the package coding style by removing redundant info. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Christian Stewart <christian@paral.in> Cc: David Lechner <david@lechnology.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
23 lines
745 B
Makefile
23 lines
745 B
Makefile
################################################################################
|
|
#
|
|
# 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=drivers/video/fbdev ; \
|
|
else \
|
|
dest=drivers/video ; \
|
|
fi ; \
|
|
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
|
|
endef
|