From 0e51344236aa7bb80b8f3856574c1a9797a67f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Thu, 16 Oct 2014 15:50:35 +0200 Subject: [PATCH] fbtft --- common.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/common.sh b/common.sh index bcaf67d366..16a93947de 100644 --- a/common.sh +++ b/common.sh @@ -124,13 +124,15 @@ else git checkout master fi cd $DEST/$LINUXSOURCE -if [ -z "$(patch --dry-run -t -p1 < $SRC/lib/patch/small_lcd_drivers.patch | grep previ)" ]; then -patch -p1 < $SRC/lib/patch/small_lcd_drivers.patch -fi -if [ -z "$(patch --dry-run -t -p1 < $SRC/lib/patch/bananafbtft.patch | grep previ)" ]; then +if [[ $BOARD == "bananapi" ]]; then + if [ -z "$(patch --dry-run -t -p1 < $SRC/lib/patch/bananafbtft.patch | grep previ)" ]; then patch --batch -N -p1 < $SRC/lib/patch/bananafbtft.patch + fi +else + if [ -z "$(patch --dry-run -t -p1 < $SRC/lib/patch/small_lcd_drivers.patch | grep previ)" ]; then + patch -p1 < $SRC/lib/patch/small_lcd_drivers.patch + fi fi -} compile_kernel (){