03ee513bda
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>
23 lines
768 B
Makefile
23 lines
768 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=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
|