Skip to content

Instantly share code, notes, and snippets.

@pamaury
Last active August 15, 2016 21:59
Show Gist options
  • Save pamaury/a517610e0c53a64dd3a8de06220c9c0c to your computer and use it in GitHub Desktop.
Save pamaury/a517610e0c53a64dd3a8de06220c9c0c to your computer and use it in GitHub Desktop.
Notes on sony-arm-linux:
- to ease debugging, the config file tells ct-ng to save state so that build can be
restarted on failure
- because of some weirdness in the tools that come with the kernel, you need
to have the 32-bit (i386) version of your SYSTEM headers (ie the host your
are compiling with), on Debian that's:
* linux-libc-dev:i386
* libgcc-dev:i386 OR libgcc-5-dev:i386 OR libgcc-6-dev:i386 (choose the one that matches your system gcc version)
* gcc-multilib
- you might need to play with LIBRARY_PATH to tell it to consider the 32-bit libraries
INSTALL:
- copy sony-arm-linux.config to .config
- run ct-ng menuconfig and:
- at least change CT_PREFIX_DIR (in Path and misc options > Prefix directory)
to the prefix of where you want to install the toolchain
- run ct-ng build
REQUIREMENTS:
- you need to download the sony kernel and put the tarball in the same directory
as the ct-ng config, in file named linux-kernel-2.6.23.local.tgz
PATCHES:
- for linux-kernel-2.6.23.local.tgz:
* scripts/unifdef.c:
replace "getline" by "my_getline" everywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment