Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotools kx #28

Open
wants to merge 8 commits into
base: autotools
Choose a base branch
from
Open

Conversation

kosteltsev
Copy link
Contributor

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

Short build instruction:

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

configure with cross:
CC="toolchain path/bin/arm-a1x-linux-gnueabihf-gcc --sysroot=path to sysroot where libusb is installed"
OBJCOPY=toolchain path/bin/arm-a1x-linux-gnueabihf-objcopy
NM=toolchain path/bin/arm-a1x-linux-gnueabihf-nm
CFLAGS=-Isysroot path/usr/include
LDFLAGS="-Lsysroot path/lib -Lsysroot path/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=sysroot path

Create source distribution from checked out branch:
$ ./autogen.h
$ ./configure
$ make dist

Enjoy.

@kosteltsev kosteltsev mentioned this pull request Jul 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants