Make X11 optional

This commit is contained in:
Ciro Santilli
2017-11-01 14:18:31 +00:00
parent bb10d0e914
commit fa5c64a0b0
5 changed files with 35 additions and 21 deletions

7
run
View File

@@ -2,6 +2,7 @@
set -e
arch='x86_64'
extra_targets=''
x11=false
while getopts a:t: OPT > /dev/null 2>&1; do
case "$OPT" in
'a')
@@ -10,6 +11,9 @@ while getopts a:t: OPT > /dev/null 2>&1; do
't')
extra_targets="$extra_args $OPTARG"
;;
'x')
x11=true
;;
esac
done
case "$arch" in
@@ -40,6 +44,9 @@ make O="$outdir" BR2_EXTERNAL="$(pwd)/../kernel_module" "$defconfig"
# TODO Can't get rid of this for now.
# http://stackoverflow.com/questions/44078245/is-it-possible-to-use-config-fragments-with-buildroots-config
cat ../buildroot_config_fragment >> "${outdir}/.config"
if $x11; then
cat ../buildroot_config_fragment_x11 >> "${outdir}/.config"
fi
make O="$outdir" olddefconfig
# HOST_QEMU_OPTS is a hack that happens to work because the QEMU package luckly uses += at all times.
# It shouldn't be necessary in the first place: https://bugs.busybox.net/show_bug.cgi?id=9936