diff options
author | Luciano Coelho | 2012-03-22 09:39:17 -0500 |
---|---|---|
committer | Luciano Coelho | 2012-03-22 10:15:54 -0500 |
commit | 4a91401bae462a8562b8468bbed516e3f1b7a40d (patch) | |
tree | 6982b3356ff180910129de54cd76d4c726b8d90d | |
parent | 0c2bd2d36fdcd565ab807fa96066883a3abfaa90 (diff) | |
download | compat-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-x | scripts/admin-update.sh | 12 |
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) | |||
594 | GIT_REMOTE_URL=${GIT_REMOTE_URL:-unknown} | 594 | GIT_REMOTE_URL=${GIT_REMOTE_URL:-unknown} |
595 | echo -e "${GREEN}Updated${NORMAL} from local tree: ${BLUE}${GIT_TREE}${NORMAL}" | 595 | echo -e "${GREEN}Updated${NORMAL} from local tree: ${BLUE}${GIT_TREE}${NORMAL}" |
596 | echo -e "Origin remote URL: ${CYAN}${GIT_REMOTE_URL}${NORMAL}" | 596 | echo -e "Origin remote URL: ${CYAN}${GIT_REMOTE_URL}${NORMAL}" |
597 | |||
598 | echo -e "Getting TI drivers version..." | ||
599 | TI_VERSION=`git describe --dirty` | ||
600 | TI_DRIVERS="wl12xx" | ||
601 | TI_PATH=drivers/net/wireless | ||
602 | echo -e "TI drivers version: ${TI_VERSION}" | ||
603 | for 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 | ||
608 | done | ||
597 | cd $DIR | 609 | cd $DIR |
598 | if [ -d ./.git ]; then | 610 | if [ -d ./.git ]; then |
599 | if [[ ${POSTFIX_RELEASE_TAG} != "" ]]; then | 611 | if [[ ${POSTFIX_RELEASE_TAG} != "" ]]; then |