Fix BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE which was never getting added

Make BR2_EXTERNAL paths relative to make things more absolute path independent.
This commit is contained in:
Ciro Santilli
2018-03-24 20:46:00 +00:00
parent 348b8c47ef
commit 9c5a4aff71

6
build
View File

@@ -102,7 +102,7 @@ if "$configure"; then
for p in $(find "${root_dir}/buildroot_patches/" -maxdepth 1 -name '*.patch' -print); do
patch -N -r - -p 1 <"$p" || :
done
make O="$out_dir" BR2_EXTERNAL="${root_dir}/kernel_module:${root_dir}/gem5:${root_dir}/parsec-benchmark" "$defconfig"
make O="$out_dir" BR2_EXTERNAL="../kernel_module:../gem5:../parsec-benchmark" "$defconfig"
# TODO Can't get rid of these for now.
# http://stackoverflow.com/questions/44078245/is-it-possible-to-use-config-fragments-with-buildroots-config
for config_fragment in $config_fragments; do
@@ -115,9 +115,9 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"$post_script_args\"
if "$gem5"; then
printf "BR2_PACKAGE_GEM5=y\n" >> "${config_file}"
if [ -z "$linux_kernel_custom_config_file" ] && [ ! "$arch" = aarch64 ]; then
f="kernel_config_${arch_dir}"
f="../kernel_config_${arch_dir}"
if [ -f "$f" ]; then
printf "BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"../$f\"\n" >> "${config_file}"
printf "BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"$f\"\n" >> "${config_file}"
fi
fi
fi