@TheGeekyNimrod, @rogersb11,
Regarding my intitial question of what calls the toolchain variable that is sometimes defined in the boardconfig.mk, I finally found what I was looking for.
Using Carbon's github as an example;
https://github.com/CarbonDev/android_build/blob/kk/envsetup.sh#L155
envsetup.sh (of the android_build project) shows us that the build process for an arm device (our beloved S2) will use whatever toolchain files are located at
"arm/arm-linux-androideabi-$targetgccversion/bin"
https://github.com/CarbonDev/android_build/blob/kk/envsetup.sh#L146
a few lines earlier, "$targetgccversion" is instructed to use build variable
"TARGET_GCC_VERSION" from a linux-arm.mk file (also located in the build project).
https://github.com/CarbonDev/androi...454fc47a6a/core/combo/TARGET_linux-arm.mk#L37
The linux-arm.mk defines "TARGET_GCC_VERSION" as 4.7 unless "TARGET_GCC_VERSION_EXP" is defined in the device config.mk (where this all started)
^^So If I ammend the device config.mk to include
TARGET_GCC_VERSION_EXP := Q4CW
then the build sequence will look for the toolchain files at
"arm/arm-linux-androideabi-Q4CW/bin"
So when adding the toolchain project to the manifest, the path should match.
:feeling accomplished:
Regarding my intitial question of what calls the toolchain variable that is sometimes defined in the boardconfig.mk, I finally found what I was looking for.
Using Carbon's github as an example;
https://github.com/CarbonDev/android_build/blob/kk/envsetup.sh#L155
envsetup.sh (of the android_build project) shows us that the build process for an arm device (our beloved S2) will use whatever toolchain files are located at
"arm/arm-linux-androideabi-$targetgccversion/bin"
https://github.com/CarbonDev/android_build/blob/kk/envsetup.sh#L146
a few lines earlier, "$targetgccversion" is instructed to use build variable
"TARGET_GCC_VERSION" from a linux-arm.mk file (also located in the build project).
https://github.com/CarbonDev/androi...454fc47a6a/core/combo/TARGET_linux-arm.mk#L37
The linux-arm.mk defines "TARGET_GCC_VERSION" as 4.7 unless "TARGET_GCC_VERSION_EXP" is defined in the device config.mk (where this all started)
^^So If I ammend the device config.mk to include
TARGET_GCC_VERSION_EXP := Q4CW
then the build sequence will look for the toolchain files at
"arm/arm-linux-androideabi-Q4CW/bin"
So when adding the toolchain project to the manifest, the path should match.
:feeling accomplished: