Skip to content

Commit

Permalink
Use xconfig if DISPLAY available, otherwise use nconfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
icedream committed Jun 10, 2022
1 parent e105662 commit 8deb037
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion configure-buildroot.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8deb037

Please sign in to comment.