Blame view

buildroot/buildroot-2016.08.1/linux/linux-ext-fbtft.mk 768 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  ################################################################################
  # 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