Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - fergy

Pages: [1]
1
General discussion / new toolchain (v2.0) installer script for Linux
« on: January 07, 2013, 06:54:37 PM »
As title describe, new version of toolchain installer is on the road.
So, here is list what's new/changed/added:
  • thermometer like download progress bar indicator
Code: [Select]
progressfilt ()
{
    local flag=false c count cr=$'\r' nl=$'\n'
    while IFS='' read -d '' -rn 1 c
    do
        if $flag
        then
            printf '%c' "$c"
        else
            if [[ $c != $cr && $c != $nl ]]
            then
                count=0
            else
                ((count++))
                if ((count > 1))
                then
                    flag=true
                fi
            fi
        fi

    done
}
  • extending PKG_MIRROR with numbers for easyer handling version of tools
Code: [Select]
PKG_MIRROR1="ftp://sourceware.org/pub/binutils/snapshots/"
PKG_MIRROR2="ftp://sourceware.org/pub/gcc/snapshots/4.8-20121230/"
PKG_MIRROR3="ftp://sourceware.org/pub/newlib/"
PKG_MIRROR4="ftp://ftp.gmplib.org/pub/gmp-5.1.0/"
PKG_MIRROR5="http://ftp.gnu.org/gnu/mpfr/"
PKG_MIRROR6="http://www.multiprecision.org/mpc/download/"
  • replacing GCC4xx with only GCC for easyer handling of GCC version
  • removing (old) patches - not needed in latest version
  • added 'i' option to ln (ln -si) so it will ask if You want to replace old link (when new build with newer sources)
  • moving path* from /tmp/ipl-toolchain to ~/Development/ipl-toolchain because it can harm /tmp folder on ubuntu 12.10 systems (if You not read this and  use older version of this script, chmod /tmp to 777 as sudo and restart computer**)
    NOTE: *it make folder /Development/ipl-toolchain if it is not present ** this is fixed with this version
  • added auto-check for dash/bash
Code: [Select]
TMP=`ls -l /bin/sh | $GREP "bash"`
if ( test "$TMP" != "") then
echo "bash is configured correct"
else
echo "bash will seat as"
TMP=`whereis bash | $GREP "/bin/bash"`
echo $TMP
if (test "$TMP" != "") then
echo "bash is installed"
else
echo "installing bash"
$INSTALL_CMD bash
fi;
  • added auto-check/install for all needed packages
Code: [Select]
for TOOLPARAMETER in \
"sudo -V 1.6" \
"bash --version 3.2.39" \
"mc --version 0" \
"cvs --version 1.12.12" \
"autoconf --version 2.57" \
"automake --version 1.10" \
"libtool --version 1.4.2" \
"gettext --version 0.17" \
"make --version 3.79" \
"makeinfo --version 0 texinfo" \
"tar --version 0" \
"gunzip --version 0" \
"patch --version 0" \
"infocmp -V 0 ncurses-devel:SuSE:ncurses-bin" \
"gcc --version  3.0" \
  • added GPL license
Code: [Select]
##############################################################################
#  Copyright (C) 2008 by @planetbeing, 2013 by fergy
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
###############################################################################
  • added auto recognise Linux version and package manager
Code: [Select]
for LINUX_DISTRIBUTION in "Debian" "Mandrake" "Mandriva" "Red Hat" "SuSE" "Ubuntu" "unknown"
do
TMP=`cat /proc/version | $GREP -i "$LINUX_DISTRIBUTION"`
Code: [Select]
SUDO=`_which sudo`
YUM=$(_which yum)
APTGET=$(_which apt-get)
YAST=$(_which yast)
URPMI=$(_which urpmi)
URPME=$(_which urpme)

if ( test "$APTGET" != "" ) then
echo "apt-get founded"
if ( test ! -s /ets/apt/sources.list ) then
echo "sources.list founded"
INSTALL_CMD="$APTGET -y --force-yes install "
REMOVE_CMD="$APTGET -y remove "
UPDATE_CMD="$APTGET -y update"
UPTODATE=""
fi;
elif ( test "$YUM" != "" ) then
echo "yum founded"
if ( test ! -s etc/yum.repos.d ) then
echo "yum.repos.d founded"
INSTALL_CMD="$YUM -y install "
REMOVE_CMD="$YUM -y remove "
UPDATE_CMD=""
UPTODATE="y"
fi;
elif ( test "$YAST" != "" ) then
echo "yast founded"
INSTALL_CMD="$YAST --install "
REMOVE_CMD="$YAST --remove "
UPDATE_CMD=""
UPTODATE="y"
elif ( test "$URPMI" != "" ) then
echo "urpmi founded"
INSTALL_CMD="$URPMI "
REMOVE_CMD="$URPME "
UPDATE_CMD=""
UPTODATE="y"
else
echo -e $ANSI_RED"No package installer (apt-get, yum, yast, urpmi) founded"$ANSI_RESET
exit 72 #Code for: right Systemdata fault
fi;
    Please let Me know what else You need.... for example, maybe an auto- builder for idroid?
    Here is shoot:

    2
    General discussion / .: WIKI updated :.
    « on: October 10, 2012, 02:00:51 AM »
    From today, I was decide to update our wiki with new options/opportunities for compiling GB (Gingerbread) or whatever You want on i386 host devices.
    So, what's new:
    • Ubuntu 12.04 LTS i386 / Ubuntu 12.10 i386/i586/i686 Android building
    • Mac Homebrew updated
    Link: http://www.idroidproject.org/wiki/Compiling_Android

    3
    iDroid Development / .: iP-3G GAIA - B2G port :.
    « on: September 29, 2012, 06:45:15 PM »
    Until Admins conclude will (or not) make new child board for this, I will just wrote here  :)
    Why here? Because this project is closely connected with android.
    So, as You mostly know , GAIA is user interface for B2G (boot to gecko) or to citate wiki: "is a collection of web apps which make up the UI for the Boot to Gecko project."
    Point of this porting is to help GPL projects to live happy with more than few devices, and I was decide (sure,for Myself) to port it on iPhone 3G.
    Why 3G? Well, as I have an 3G for playing with and baseband chip is mostly dead, this device is ideal for that manner.
    Anything about it, You can find on official page: https://wiki.mozilla.org/Main_Page

    If anybody is interested to have something new (well, maybe old as it is pretty close to android) please be free to post.
    As I cannot attach here files, will provide link to it if will be interested people.
    Cheers

    Pages: [1]