linux-sunxi/sunxi-tools — pull request #27 by kosteltsev (2014-07-29 09:49:01+00:00)
Title: Autotools kx

Reorganize according to reorganize branch. Switched to autotools with proper cross compilation for build machine and arm CPU.

Short build instruction:

$ tar xzvf sunxi-tools-1.3.tar.gz
$ mkdir build
$ cd ./build

configure with cross:
CC="/bin/arm-a1x-linux-gnueabihf-gcc --sysroot=" \
OBJCOPY=/bin/arm-a1x-linux-gnueabihf-objcopy \
NM=/bin/arm-a1x-linux-gnueabihf-nm \
CFLAGS=-I/usr/include \
LDFLAGS="-L/lib -L/usr/lib" \
../sunxi-tools-1.3/configure \
--prefix=/usr \
--build=x86_64-slackware-linux \
--host=arm-a1x-linux-gnueabihf \
--target=arm-a1x-linux-gnueabihf \
--prefix=/usr --mandir=/usr/share/man \
--program-prefix=

configure on and for developers machine:
../sunxi-tools-1.3/configure --prefix=/usr

$ make
$ make install DESTDIR=

Create source distribution:
$ make dist

Enjoy.