Question on UCLIBC_CONFIG_FILE usage.
I am obviously missing something here. If I do not specify UCLIBC_CONFIG_FILE on the command line to make, then a config file in 'toolchain/uClibc' will be used. None of the values assigned to it in the target directories will ever be picked up because the top-level Makefile does 'include target/Makefile.in' last which is too late for 'toolchain/uClibc/uclibc.mk' to pick up the value in a target-specific directory. Anyone care to comment? Thanks.
-Steve
Quoted 6 lines · Steven J. Hill
I am obviously missing something here. If I do not specify
UCLIBC_CONFIG_FILEon the command line to make, then a config file in 'toolchain/uClibc' will be used. None of the values assigned to it in the target directories will ever be picked up because the top-levelMakefiledoes 'include target/Makefile.in' last which is too late for 'toolchain/uClibc/uclibc.mk' to pick up the value in a target-specific directory. Anyone care to comment? Thanks.
Since uclibc.mk has the config-file as a prerequisite (which is fine by itself) it is evaluated right at that spot (to nil, if not specified on the command-line).
Can't look right now, but perhaps including target/Makefile.in before toolchain/Makefile.in in the toplevel Makefile would make it behave like expected?
Perhaps we should store BR2_UCLIBC_CONFIG_FILE in .config, too.