linux: fix fbtft kernel extension
authorPeter Seiderer <ps.report@gmx.net>
Sun, 11 Jan 2015 13:18:55 +0000 (14:18 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 9 Apr 2015 21:26:16 +0000 (23:26 +0200)
Fixes fbtft kernel extension bug reported by Richard Fergusson ([1]):

drivers/video/Kconfig:2525: can't open file
"drivers/video/fbdev/fbtft/Kconfig"

Fix: write the right fbtft/KConfig path to video/Kconfig or
video/fbdev/Kconfig (instead of hard coded one)

[1] http://lists.busybox.net/pipermail/buildroot/2015-January/117057.html

Reported-by: Richard Fergusson <fergie4000@gmail.com>
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
linux/linux-ext-fbtft.mk

index 3e6a3cce7cb1a7af17994de3a705230e1a30d2fb..5eb3d944e88a1621b45b65b25ee89cad1e302ff9 100644 (file)
@@ -10,13 +10,13 @@ LINUX_EXTENSIONS += 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 ; \
+               dest=drivers/video/fbdev ; \
        else \
-               dest=$(LINUX_DIR)/drivers/video/ ; \
+               dest=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
+       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