mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-24 18:51:36 +01:00
Make X11 optional
This commit is contained in:
7
run
7
run
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user