Skip to contentSkip to conversation

Question on UCLIBC_CONFIG_FILE usage.

Buildroot Steven J. Hill 2 participants 2 messages May 5, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Steven J. Hill

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.

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.