diff options
Diffstat (limited to 'gspcav1/build/gspcav1.SlackBuild')
-rwxr-xr-x | gspcav1/build/gspcav1.SlackBuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gspcav1/build/gspcav1.SlackBuild b/gspcav1/build/gspcav1.SlackBuild index 8ce9c81a..63b19d7c 100755 --- a/gspcav1/build/gspcav1.SlackBuild +++ b/gspcav1/build/gspcav1.SlackBuild @@ -30,6 +30,9 @@ BUILD=${BUILD:-1} DOCS="changelog" +# Do we add debug code to the driver? If not 'NO', we'll add it. +DEBUG=${DEBUG:-NO} + # Where do we look for sources? CWD=`pwd` SRCDIR=`dirname $0` @@ -152,6 +155,10 @@ else tar -xzvf ${SOURCE} fi cd ${PRGNAM}-${VERSION} +if [ "$DEBUG" == "NO" ]; then + # Set DEBUG="YES" up above if you need to debug the driver: + patch -p0 < $SRCDIR/${PRGNAM}_nodebug.patch 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log +fi chown -R root.root * find . -perm 777 -exec chmod 755 {} \; |