Skip to contentSkip to conversation

custom internal toolchain/glibc

DISCUSSION Robert Berger 3 participants 3 messages Jul 20, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I was wondering what's the process if someone wanted to use, say Jethro or Krogoth, but with different/custom versions of gcc, binutils, glibc e.g. to cook some syscalls and to compile ancient Linux kernels.

I came across tcmode-default.inc[1] where such things are defined:

GCCVERSION ?= "6.1%"
SDKGCCVERSION ?= "${GCCVERSION}"
BINUVERSION ?= "2.26%"
GDBVERSION ?= "7.11%"
GLIBCVERSION ?= "2.24"
UCLIBCVERSION ?= "1.0%"
LINUXLIBCVERSION ?= "4.4"

Would hacking/duplicating and hacking this be a good starting point?

With TCMODE I could get poky to pick up some external toolchain, but I would like it to build a custom one instead.

Please advise.

Thanks,

Robert

[1]
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/conf/distro/include/tcmode-default.inc..."My
employer doesn't even agree with me about C indentation style." - Used as a disclaimer

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1

#1 lore raw
Quoted 14 lines · Robert Berger

I was wondering what's the process if someone wanted to use, say Jethro or Krogoth, but with different/custom versions of gcc, binutils, glibc e.g. to cook some syscalls and to compile ancient Linux kernels.

I came across tcmode-default.inc[1] where such things are defined:

GCCVERSION ?= "6.1%"
SDKGCCVERSION ?= "${GCCVERSION}"
BINUVERSION ?= "2.26%"
GDBVERSION ?= "7.11%"
GLIBCVERSION ?= "2.24"
UCLIBCVERSION ?= "1.0%"
LINUXLIBCVERSION ?= "4.4"

Quoted 2 lines

Would hacking/duplicating and hacking this be a good starting point?

Absolutely - if you provide your own gcc/binutils/etc recipes then these are the variables to change to use them. It's not unusual for oe-core to ship with more than one GCC version for example.

Ross

#2 lore raw
Quoted 19 lines · Ross

On 20 July 2016 at 18:30, Robert Berger <[email protected] <mailto:[email protected]>> wrote:
I was wondering what's the process if someone wanted to use, say Jethro
or Krogoth, but with different/custom versions of gcc, binutils, glibc
e.g. to cook some syscalls and to compile ancient Linux kernels.

I came across tcmode-default.inc[1] where such things are defined:

GCCVERSION ?= "6.1%"
SDKGCCVERSION ?= "${GCCVERSION}"
BINUVERSION ?= "2.26%"
GDBVERSION ?= "7.11%"
GLIBCVERSION ?= "2.24"
UCLIBCVERSION ?= "1.0%"
LINUXLIBCVERSION ?= "4.4"

Quoted 4 lines

Would hacking/duplicating and hacking this be a good starting point?

Absolutely - if you provide your own gcc/binutils/etc recipes then these are the variables to change to use them. It's not unusual for oe-core to ship with more than one GCC version for example.

Looks at meta-linaro how they do it

Quoted 6 lines

Ross
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto