aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Coelho2012-03-22 09:39:17 -0500
committerLuciano Coelho2012-03-22 10:15:54 -0500
commit4a91401bae462a8562b8468bbed516e3f1b7a40d (patch)
tree6982b3356ff180910129de54cd76d4c726b8d90d
parent0c2bd2d36fdcd565ab807fa96066883a3abfaa90 (diff)
downloadcompat-wireless-4a91401bae462a8562b8468bbed516e3f1b7a40d.tar.gz
compat-wireless-4a91401bae462a8562b8468bbed516e3f1b7a40d.tar.xz
compat-wireless-4a91401bae462a8562b8468bbed516e3f1b7a40d.zip
compat-wireless: use version from original git tree for the wl12xx driver
Change the admin-update.sh script to fetch the version from the original git tree where the wl12xx driver was taken from and generate the version.h file accordingly. Signed-off-by: Luciano Coelho <coelho@ti.com>
-rwxr-xr-xscripts/admin-update.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index 1aad4fa..db4335a 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -594,6 +594,18 @@ GIT_REMOTE_URL=$(git config remote.${GIT_REMOTE}.url)
594GIT_REMOTE_URL=${GIT_REMOTE_URL:-unknown} 594GIT_REMOTE_URL=${GIT_REMOTE_URL:-unknown}
595echo -e "${GREEN}Updated${NORMAL} from local tree: ${BLUE}${GIT_TREE}${NORMAL}" 595echo -e "${GREEN}Updated${NORMAL} from local tree: ${BLUE}${GIT_TREE}${NORMAL}"
596echo -e "Origin remote URL: ${CYAN}${GIT_REMOTE_URL}${NORMAL}" 596echo -e "Origin remote URL: ${CYAN}${GIT_REMOTE_URL}${NORMAL}"
597
598echo -e "Getting TI drivers version..."
599TI_VERSION=`git describe --dirty`
600TI_DRIVERS="wl12xx"
601TI_PATH=drivers/net/wireless
602echo -e "TI drivers version: ${TI_VERSION}"
603for driver in ${TI_DRIVERS}; do
604 echo "static const char *${driver}_timestamp = __TIMESTAMP__;" > \
605 ${DIR}/${TI_PATH}/${driver}/version.h
606 echo "static const char *${driver}_git_head = \"${TI_VERSION}\";" >> \
607 ${DIR}/${TI_PATH}/${driver}/version.h
608done
597cd $DIR 609cd $DIR
598if [ -d ./.git ]; then 610if [ -d ./.git ]; then
599 if [[ ${POSTFIX_RELEASE_TAG} != "" ]]; then 611 if [[ ${POSTFIX_RELEASE_TAG} != "" ]]; then