From 80686e6bc4cb17e9d856647084725203fa63ebe6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 19 Aug 2024 16:47:42 +0800
Subject: [PATCH] Add LCD API examples
---
hal/lcd/drm/libs/build.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/hal/lcd/drm/libs/build.sh b/hal/lcd/drm/libs/build.sh
new file mode 100755
index 0000000..bdc2729
--- /dev/null
+++ b/hal/lcd/drm/libs/build.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+function do_compile
+{
+ for dir in `ls`
+ do
+ if [ -f $dir/build*.sh ] ; then
+ cd $dir
+ ./build*.sh
+ cd -
+ fi
+ done
+}
+
+function do_distclean
+{
+ for dir in `ls`
+ do
+ if [ -f $dir/build*.sh ] ; then
+ rm -rf ${dir}/${dir}*
+ fi
+ done
+}
+
+if [ $# == 1 ] ; then
+ if [ $1 == "clean" ] ; then
+ rm -rf install
+ exit;
+ elif [ $1 == "distclean" ] ; then
+ rm -rf install
+ do_distclean
+ exit;
+ fi
+
+ # export cross compiler
+ if echo $1 | grep "\-linux\-" > /dev/null 2>&1 ; then
+ export CROSS_COMPILE=$1
+ echo -e "\033[40;33m --W-- export cross compiler $CROSS_COMPILE \033[0m\n"
+ fi
+fi
+
+
+do_compile
+
--
Gitblit v1.9.1