I've been using the BR2_PACKAGE_OVERRIDE_FILE
+ <pkg>_OVERRIDE_SRCDIR
settings in Buildroot 2018.05 to successfully track packages of interest such as Binutils and glibc as submodules my projet:
BINUTILS_OVERRIDE_SRCDIR = ../../submodules/binutils-gdb
GLIBC_OVERRIDE_SRCDIR = ../../submodules/glibc
However, when I tried an analogous procedure for GCC, it didn't seem to take effect:
GCC_OVERRIDE_SRCDIR = ../../submodules/gcc
For example, under build/
in the build folder, I get the usual:
host-gcc-final-7.3.0
host-gcc-initial-7.3.0
instead of the expected -custom
versions.
Is there a way to achieve it?
Maybe http://buildroot-busybox.2317881.n4.nabble.com/Internal-toolchain-wrapper-ccache-fixes-tp113064p113187.html implies that it is just an exception for GCC due to technical reasons, but that thread is a few years old now, and I didn't fully try to understand it yet.