summaryrefslogtreecommitdiffstats
path: root/.defconfig
diff options
context:
space:
mode:
authorThomas De Schampheleire <thomas.de.schampheleire@gmail.com>2015-02-03 15:21:48 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-14 17:31:03 +0100
commit00daf37c4f43630d92dd54c5e36005e00a9b25c4 (patch)
tree8598d98e9465dac6083bc27dee5e7533a4b7e3d7 /.defconfig
parent357a2c2715d66ed1f6cfb9e869802c9fe3d0c711 (diff)
downloadbuildroot-00daf37c4f43630d92dd54c5e36005e00a9b25c4.tar.gz
buildroot-00daf37c4f43630d92dd54c5e36005e00a9b25c4.zip
linux: avoid unnecessary changes in defconfig for INITRAMFS_SOURCE
When Buildroot is configured to append the root filesystem to the Linux kernel as initramfs, Buildroot sets the path to the initramfs source dynamically in the Linux configuration file. As this path is specified as an absolute path, typically being different for different users of the same project (e.g. containing a username), saving the configuration to a version control system (for example using 'make linux-update-defconfig') would result in a difference for this path at every invocation by a different user. Although this is technically not an issue, it is confusing that this generates a difference. Address this issue by using a not-yet-expanded make variable to specify the path to the initramfs source. That variable will be expanded by the Linux build system, which uses it both as a Makefile variable and a shell variable; thus, it needs to be specified in LINUX_MAKE_ENV (so it is exported and available in sub-processes of make). Any saved configuration file would simply contain the reference to the not-yet-expanded variable. As in the Linux build system, the config variables are both read from make as from a shell script, we cannot use $() syntax as this would be interpreted as a command invocation by the shell. Instead, use ${} syntax which is interpreted as variable reference both by the shell as by make. [Thomas: - Really make the patch work by using $(LINUX_MAKE_ENV) instead of $(TARGET_MAKE_ENV). Otherwise, the new BR2_BINARIES_DIR variable is not passed at all stages of the build process, which makes the build fail when an initramfs is used.] Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: "Yann E. Morin" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to '.defconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud