Skip to content

Commit

Permalink
Fix save config script
Browse files Browse the repository at this point in the history
Correctly handle the case where multiple linux directories exist
  • Loading branch information
dwalkes committed Aug 14, 2022
1 parent d1e581d commit b13992d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion save-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source shared.sh
mkdir -p base_external/configs/
make -C buildroot savedefconfig BR2_DEFCONFIG=${AESD_MODIFIED_DEFCONFIG_REL_BUILDROOT}

if [ -e buildroot/.config ] && [ -e buildroot/output/build/linux-*/.config ]; then
if [ -e buildroot/.config ] && [ ls buildroot/output/build/linux-*/.config 1> /dev/null 2>&1 ]; then
grep "BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE" buildroot/.config > /dev/null
if [ $? -eq 0 ]; then
echo "Saving linux defconfig"
Expand Down

0 comments on commit b13992d

Please sign in to comment.