"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.09.56/README.Android" (15 Mar 2019, 1297 Bytes) of package /linux/privat/stress-ng-0.09.56.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 = Android porting notes =
    2 
    3 How to setup a Ubuntu 12.04 machine to cross compile for different architectures.
    4 
    5 == Setup ==
    6 
    7 Install tools:
    8 
    9 sudo apt-get install kernel-package build-essential git gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf gcc-4.6-multilib-arm-linux-gnueabihf gcc-4.6-multilib-arm-linux-gnueabi
   10 
   11 == Environment ==
   12 Ubuntu has a command called ''dpkg-architecture'' which setups up most of the cross compile environment.
   13 
   14 64-bit x86:
   15  export $(dpkg-architecture -aamd64)
   16 
   17 32-bit x86:
   18  export $(dpkg-architecture -ai386)
   19 
   20 armhf (RaspberryPi/uPC):
   21  export $(dpkg-architecture -aarmhf)
   22  export CROSS_COMPILE=arm-linux-gnueabihf-
   23  export CCPREFIX=${CROSS_COMPILE}
   24 
   25 armel:
   26  export $(dpkg-architecture -aarmel)
   27  export CROSS_COMPILE=arm-linux-gnueabi-
   28  export CCPREFIX=${CROSS_COMPILE}
   29 
   30 Shared Variables:
   31  export CONCURRENCY_LEVEL=`grep -c '^processor' /proc/cpuinfo`
   32  export ROOT_CMD=fakeroot
   33 
   34 == Build ==
   35 #Make
   36  export CC=${CROSS_COMPILE}
   37  STATIC=1 make ARCH=arm
   38 
   39 = Ubuntu 17.04 =
   40 Considerably easier with a cross-compilation enable distribution, swap architecture as needed.
   41 
   42 === Setup ===
   43   apt-get install gcc-4.9-aarch64-linux-gnu
   44 
   45 === Build ===
   46 
   47   CC=aarch64-linux-gnu-gcc-4.9 STATIC=1 make
   48 
   49 M.Srikanth Kumar, Jul 14, 2015
   50 Colin Ian King,   Dec  6, 2016 (updated, static linking)