aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez2011-12-13 13:33:32 -0600
committerLuis R. Rodriguez2011-12-13 13:33:32 -0600
commitd4e01e71d1c364c70619852059f0af1b7c9599a5 (patch)
treed21d5cb436ae531f03f9a785250fa4e8cf61e34c
parentdcae31fa65c025846ea96b35d27c42c450675a38 (diff)
downloadcompat-wireless-d4e01e71d1c364c70619852059f0af1b7c9599a5.tar.gz
compat-wireless-d4e01e71d1c364c70619852059f0af1b7c9599a5.tar.xz
compat-wireless-d4e01e71d1c364c70619852059f0af1b7c9599a5.zip
compat-wireless: copy driver files only if present
This modifies admin-update.sh to only copy files over from a driver target directory if files are found. This should avoid a bunch of complaints of copying files from directories that are just placeholders for other folders, as happens with drivers/net/wireless/brcm80211/ which has folders a Makefile, Kconfig but no files there itself: brcmfmac/ brcmsmac/ brcmutil/ include Kconfig Makefile Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
-rwxr-xr-xscripts/admin-update.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index 3e63e51..1aad4fa 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -350,9 +350,18 @@ done
350# Drivers in their own directory 350# Drivers in their own directory
351for i in $DRIVERS; do 351for i in $DRIVERS; do
352 mkdir -p $i 352 mkdir -p $i
353 echo "Copying $GIT_TREE/$i/*.[ch]" 353
354 cp $GIT_TREE/$i/*.[ch] $i/ 354 # -print -quit will just print once, so we don't burden
355 cp $GIT_TREE/$i/Makefile $i/ 355 # this script with searching for further files if one is
356 # found
357 FILES_FOUND=$(find $GIT_TREE/$i/ -maxdepth 1 -type f -name \*.[ch] -print -quit | wc -l)
358 if [ $FILES_FOUND -eq 1 ]; then
359 echo "Copying $GIT_TREE/$i/*.[ch]"
360 cp $GIT_TREE/$i/*.[ch] $i/
361 fi
362 if [ -f $GIT_TREE/$i/Makefile ]; then
363 cp $GIT_TREE/$i/Makefile $i/
364 fi
356 if [ -f $GIT_TREE/$i/Kconfig ]; then 365 if [ -f $GIT_TREE/$i/Kconfig ]; then
357 cp $GIT_TREE/$i/Kconfig $i/ 366 cp $GIT_TREE/$i/Kconfig $i/
358 fi 367 fi