linux: fix fbtft kernel extension
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>
This commit is contained in:
parent
700be8e2a4
commit
03ee513bda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user