Skip to content

Commit fee5183

Browse files
committed
build: fix build without -K undefined d
1 parent de9223c commit fee5183

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"${post_script_args}\"
139139
if "$gem5"; then
140140
printf "BR2_PACKAGE_GEM5=y\n" >> "${config_file}"
141141
fi
142+
kernel_config_fragment_dir=../kernel_config_fragment
142143
if [ -n "$linux_kernel_custom_config_file" ]; then
143144
if [ -f "$linux_kernel_custom_config_file" ]; then
144145
printf "BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y\nBR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"${linux_kernel_custom_config_file}\"\n" >> "$config_file"
@@ -151,13 +152,12 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"${post_script_args}\"
151152
fi
152153
default_config_fragments=
153154
else
154-
default_config_fragments="${d}/min ${d}/default"
155+
default_config_fragments="${kernel_config_fragment_dir}/min ${kernel_config_fragment_dir}/default"
155156
fi
156-
d=../kernel_config_fragment
157157
printf "BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES=\"${default_config_fragments} ${kernel_config_fragments} ${kernel_config_fragment_cli_file}\"\n" >> "$config_file"
158158
if "${linux_reconfigure}"; then
159159
# https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
160-
touch "${d}/min"
160+
touch "${kernel_config_fragment_dir}/min"
161161
fi
162162
if [ "$arch" = 'mips64' ]; then
163163
# Workaround for:

0 commit comments

Comments
 (0)