TI Processor SDK Linux am335x evm/bin/unshallow-repositories.sh hacking

Source: Internet
Author: User

#!/bin/bash## ti Processor SDK Linux am335x EVM/bin/unshallow-repositories.SHhacking# Description: # This article mainly on the Unshallow of TI's SDK-The repositories.sh script is interpreted in order to understand # its working mechanism. ##                                       .-4- -Shenzhen Nanshan Ping Shan Village Zengjianfeng # authors:# Franklin Cooper jr.# This distribution contains contributions or derivatives under Copyrig ht# as follows:## Copyright (c) -, Texas Instruments incorporated# All rights reserved.## redistribution and useinchsource and binary forms, with or without# modification, is permitted provided that the following conditions# is met :# -redistributions of source code must retain the above copyright notice,# this list of conditions and the following D isclaimer.#-Redistributionsinchbinary form must reproduce the above copyright# notice, this list of conditions and the following disclaimerinchthe# Documentation and/or other materials provided with the distribution.#-Neither the name of Texas Instruments nor the names of its# contributors may be used to endorse or promote products derived# from this software without specific prior written permission.## This software are provided by the COPYRIGHT HOL DERs and contributors#" as is"and any EXPRESS OR implied warranties, including, but not limited# to, the implied warranties of merchantability and  FITNESS for A particular# PURPOSE is disclaimed. In NO EVENT shall the COPYRIGHT HOLDER or# CONTRIBUTORS being liable for any DIRECT, INDIRECT, incidental, special,# exemplar Y, or consequential damages (including, but not LIMITED to,# procurement of substitute GOODS OR SERVICES; LOSS of Use, DATA, or# profits; or business interruption) however caused and on any theory of# liability, WHETHER in contract, STRICT liability, OR TORT ( including negligence# OR OTHERWISE) arising in any-out-of-the---the-software, even if# advised of the Possibilit Y of SUCH Damage.install_dir="/home/qt/ti-processor-sdk-linux-am335x-evm-01.00.00.00"# Find git binary within the host native bin Directorysdk_git_bin="$install _dir/linux-devkit/sysroots/i*/usr/bin/git"Sdk_git_bin=`which$sdk _git_bin 'if["$SDK _git_bin"="" ] Then    Echo    Echo "couldn ' t find the git command within Linux-devkit"    Echo "unable to automatically unshallow git repository"    Echo "If you have Git installed and a version higher than 1.8.0.3 (git--version)"    Echo "You can manually unshallow the Linux git repository by running the below"    Echo "command within the SDK ' s Linux git repository"    Echo "git fetch--unshallow"    EchoExit1fi# # [email protected]:~/ti-processor-sdk-linux-am335x-evm-01.00.00.00$FindBoard-support-maxdepth1-name"Linux *"# Board-support/linux-3.14. --G2489c02linux_dir=`Find$install _dir/board-support-maxdepth1-name"Linux *"' Linux=`basename$linux _dir ' #if[-F $linux _dir/.git/Shallow] Then    Echo    Echo "The kernel git repository have been trimmed to reduce the size of the SDK installer"    Echo "In a process called \ "shallowing\". This process causes the repository to include"    Echo "Only a small fraction of the entire git history. To retrieve the entire git history"    Echo "You must unshallow the repository. This would require Internet access and if applicable"    Echo "proper git proxy settings to access the original remote repository. This script would"    Echo "automatically unshallow the Linux repository for you and retrieve it full history."    Echo "depending on your Internet speed This process can take 5+ minutes."    Echo "would to continue (y/n)?"    EchoRead-P"[y]"ContinueunshallowEcho    if[!-N"$continueunshallow"]; ThenContinueunshallow="y"    fi    if["$continueunshallow"!="y"]; Then        Echo "You selected No. Please run script the again when your ready to unshallow the"        Echo "Repository."Exit0    fi    Echo "The unshallowing process has begun. for the first couple of minutes."    Echo "Any additional output. This is normal."CD $linux _dir # get kernel $sdk _git_bin fetch--Unshallowif["$?"="0" ]     Then        Echo        Echo "The unshallowing process has been completed. The Linux git repository has been"        Echo "fully restored."    Else        Echo        Echo "Error unshallowing git repository. Please check your Internet connection and"        Echo "your git proxy settings."    fi    EchoCD-Else    Echo    Echo "Kernel git repository is not shallow."    Echo "The repository have the full commit history and can be treated as a normal"    Echo "git repository."    Echofi

TI Processor SDK Linux am335x evm/bin/unshallow-repositories.sh hacking

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.