Yes, but there is a lot of extra logic which would not be needed.

-----Original Message-----
From: Cooper Jr., Franklin 
Sent: Friday, March 13, 2015 10:43 AM
To: Stiffler, Jacob
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-arago] [tisdk-setup-scripts][PATCH] create-sdcard: Change 
SDK install prefix from ti-sdk to processor-sdk.

Well I guess Denys is right and we should play nice with others.

Sdk_install.sh part would be easy.

Replace  "*ti-sdk.*.[0-9]/" with the name of the directory since you already 
know it.

Then it works for anyone 




> On Mar 13, 2015, at 9:02 AM, Stiffler, Jacob <[email protected]> wrote:
> 
> I'm not sure if we can do that now that the versioning has been reset to 
> 1.0.0.0.
> 
> However, I do plan on submitting an updated patch after this first release. 
> This method of autodetecting the SDK installation directory is somewhat 
> broken with installbuilder since the user may choose any directory which may 
> or may not have the correct format.
> 
> It seems that the sdk_install.sh script should do some modifications to get 
> the explicit directory within the script, but it appears this would take more 
> changes which I haven't yet had a chance to look into.
> 
> -  Jake
> 
> -----Original Message-----
> From: Dmytriyenko, Denys
> Sent: Friday, March 13, 2015 9:58 AM
> To: Stiffler, Jacob
> Cc: [email protected]
> Subject: Re: [meta-arago] [tisdk-setup-scripts][PATCH] create-sdcard: Change 
> SDK install prefix from ti-sdk to processor-sdk.
> 
> This is going to affect all the SDKs - ti-sdk was chosen on purpose to be 
> generic enough to cover all our SDKs, not some specific one...
> 
> 
>> On Fri, Mar 13, 2015 at 09:49:04AM -0400, Jacob Stiffler wrote:
>> Signed-off-by: Jacob Stiffler <[email protected]>
>> ---
>> create-sdcard.sh |   14 +++++++-------
>> 1 file changed, 7 insertions(+), 7 deletions(-)
>> 
>> diff --git a/create-sdcard.sh b/create-sdcard.sh index 
>> ca02ad2..17ae564 100644
>> --- a/create-sdcard.sh
>> +++ b/create-sdcard.sh
>> @@ -74,7 +74,7 @@ if [ "$AMIROOT" != "root" ] ; then fi
>> 
>> THEPWD=$EXEPATH
>> -PARSEPATH=`echo $THEPWD | grep -o '.*ti-sdk.*.[0-9]/'`
>> +PARSEPATH=`echo $THEPWD | grep -o '.*processor-sdk.*.[0-9]/'`
>> 
>> if [ "$PARSEPATH" != "" ] ; then
>> PATHVALID=1
>> @@ -703,7 +703,7 @@ if [ $FILEPATHOPTION -eq 1 ] ; then
>> 
>>    #check that in the right directory
>> 
>> -    THEEVMSDK=`echo $PARSEPATH | grep -o 'ti-sdk-.*[0-9]'`
>> +    THEEVMSDK=`echo $PARSEPATH | grep -o 'processor-sdk-.*[0-9]'`
>> 
>>    if [ $PATHVALID -eq 1 ]; then
>>    echo "now installing:  $THEEVMSDK"
>> @@ -720,7 +720,7 @@ if [ $FILEPATHOPTION -eq 1 ] ; then
>>            then
>>                echo "Directory exists"
>>                echo ""
>> -                PARSEPATH=`echo $SDKFILEPATH | grep -o '.*ti-sdk.*.[0-9]/'`
>> +                PARSEPATH=`echo $SDKFILEPATH | grep -o 
>> + '.*processor-sdk.*.[0-9]/'`
>>                #echo $PARSEPATH
>> 
>>                if [ "$PARSEPATH" != "" ] ; then @@ -731,7 +731,7 @@ 
>> if [ $FILEPATHOPTION -eq 1 ] ; then
>>                #echo $PATHVALID
>>                if [ $PATHVALID -eq 1 ] ; then
>> 
>> -                THEEVMSDK=`echo $SDKFILEPATH | grep -o 'ti-sdk-.*[0-9]'`
>> +                THEEVMSDK=`echo $SDKFILEPATH | grep -o 
>> + 'processor-sdk-.*[0-9]'`
>>                echo "Is this the correct SDK: $THEEVMSDK"
>>                echo ""
>>                read -p 'Is this correct? [y/n] : ' ISRIGHTPATH @@ 
>> -741,7 +741,7 @@ if [ $FILEPATHOPTION -eq 1 ] ; then
>>                    *)  echo "Please enter y or n";ENTERCORRECTLY=0;;
>>                    esac
>>                else
>> -                echo "Invalid SDK path make sure to include ti-sdk-xxxx"
>> +                echo "Invalid SDK path make sure to include 
>> processor-sdk-xxxx"
>>                ENTERCORRECTLY=0
>>                fi
>> 
>> @@ -804,7 +804,7 @@ cat << EOM
>>       e.x. $:  /home/user/MyCustomTars/boot.tar.gz
>> 
>>   If files are located in a directory write the directory path
>> -      e.x. $: /ti-sdk/board-support/prebuilt-images/
>> +      e.x. $: /processor-sdk/board-support/prebuilt-images/
>> 
>>   NOTE: Not all platforms will have an MLO file and this file can
>>         be ignored for platforms that do not support an MLO.
>> @@ -937,7 +937,7 @@ cat << EOM
>>       e.x. $:  /home/user/MyCustomTars/rootfs.tar.gz
>> 
>>   If files are located in a directory write the directory path
>> -      e.x. $: /ti-sdk/targetNFS/
>> +      e.x. $: /processor-sdk/targetNFS/
>> 
>> #####################################################################
>> ###########
>> 
>> --
>> 1.7.9.5
>> 
>> _______________________________________________
>> meta-arago mailing list
>> [email protected]
>> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> _______________________________________________
> meta-arago mailing list
> [email protected]
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to