diff --git a/configure-buildroot.sh b/configure-buildroot.sh index 2d7961a..75ae65f 100755 --- a/configure-buildroot.sh +++ b/configure-buildroot.sh @@ -1,5 +1,12 @@ #!/bin/bash -e #./clone-buildroot.sh cp -v buildroot-config/.config buildroot/*/ -make -C buildroot/*/ -j$(nproc) BR2_EXTERNAL=../../buildroot-customizations xconfig + +config_target=nconfig +if [ -n "$DISPLAY" ] +then + config_target=xconfig +fi + +make -C buildroot/*/ -j$(nproc) BR2_EXTERNAL=../../buildroot-customizations "$config_target" cp -v buildroot/*/.config buildroot-config