compile bash for Droid?

Discussion in 'Android Hacks and Help' started by Drew408, Aug 4, 2010.

  1. Drew408
    Offline

    Drew408 New Member

    Joined:
    May 11, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    I dont know if this is the proper place for this thread...and I know there is a bash compiled already floating around (which I have) but for the purposes of learning Im trying to create a custom ROM from scratch, building busybox,bash,froyo, etc..

    I am trying to comile bash 4.1 from the source code, compiling process is pretty straightforward but im having trouble making it cross compile for ARM

    Here is what spits out after I enter "file bash" after compiling.
    ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.15, not stripped

    The part I'm missing is how to make it into the proper format which is:

    ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.14, stripped
    Any suggestions?
  2. userdelroot
    Offline

    userdelroot New Member

    Joined:
    Aug 3, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    export ARCH=arm