crosstool-ng

How to use candian in Crosstools-NG in a cross-native fashion to get gcc on an arm board?

狂风中的少年 提交于 2019-12-06 07:22:36
As I understand, to have gcc on an armv5 board compiling executables while using my x86 machine to compile that arm native gcc, I need this setup: Machine configuring the toolchain components: the config machine : x86_64 Machine building the toolchain components: the build machine : x86_64 Machine running the toolchain: the host machine : ARM Machine the toolchain is generating code for: the target machine : ARM Based on reading the cross-ng docs here , I should use a cross-native setup, but when I attempt to enable that using ct-ng menuconfig I need to enable: experimental in Paths and misc

Cross compile native gcc for arm with crosstool-ng, have toolchain, which architecture deps, and which build, host, and target?

情到浓时终转凉″ 提交于 2019-12-06 02:12:05
I want to build a native gcc for arm, to run on Android, as I've built glibc for it and want to build GNU utils linked against glibc, so want to compile natively on the Android phone. I've built the crosscompiling toolchain with crosstools-ng. I've cross compiled glibc, fine. Have built a couple native arm (arm-exynos-linux-gnueabi) utils, like tar etc. and confirmed they work on the Android phone, when symlinking the built x-tools sysroot's lib directory to /lib on the android machine. Now I need to build the native gcc, so I can develop on the machine. I'm having some philosophical problems

Using Python subprocess.call() to launch an ncurses process

送分小仙女□ 提交于 2019-12-02 05:39:35
I'm trying to call ct-ng ( http://crosstool-ng.org/ ) from a SCons SConstruct script, so basically from Python. using the following method: ret = subprocess.call(["/mnt/build/pw_build/crosstool-ng/bin/ct-ng menuconfig"], env=env_cross,shell=True) crosstool-ng uses ncurses to present the user with a menu: Unfortunately when trying to navigate the menus I get: Using cat to display the sequences when using the arrow keys I see: :/mnt/build$ cat > /dev/null ^[OA^[OD^[OB^[OC^[OA^[OB^[OD^[OC^[OA^[OB It seems like something is possibly stripping the escape characters from the sequence. When I call

how to change the host type for a 'Canadian cross' compilation of GCC with crosstool-NG

落爺英雄遲暮 提交于 2019-11-29 08:37:51
I've installed crosstool-NG and built GCC on a host+build x86 machine that targets arm-unknown-linux-gnueabi. I've then used arm-unknown-linux-gnueabi-gcc to compile a program that ran well on my ARM board. I'm wanting to now build GCC, targeting ARM to be hosted on ARM. I believe the lingo is build=i486-pc-linux-gnu target=arm-unknown-linux-gnueabi-gcc host=arm-unknown-linux-gnueabi-gcc How do I do this? do I run ./configure for crosstool-NG passing --host=arm-unknown-linux-gnueabi-gcc? or do I change the environment variables for CC/etc? You do this with a .config file. I think samples with

how to change the host type for a 'Canadian cross' compilation of GCC with crosstool-NG

 ̄綄美尐妖づ 提交于 2019-11-28 02:05:31
问题 I've installed crosstool-NG and built GCC on a host+build x86 machine that targets arm-unknown-linux-gnueabi. I've then used arm-unknown-linux-gnueabi-gcc to compile a program that ran well on my ARM board. I'm wanting to now build GCC, targeting ARM to be hosted on ARM. I believe the lingo is build=i486-pc-linux-gnu target=arm-unknown-linux-gnueabi-gcc host=arm-unknown-linux-gnueabi-gcc How do I do this? do I run ./configure for crosstool-NG passing --host=arm-unknown-linux-gnueabi-gcc? or