mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Make X11 optional
This commit is contained in:
@@ -75,22 +75,3 @@ BR2_PACKAGE_HOST_DTC=y
|
||||
# which for our pci_min device fires interrupts.
|
||||
#
|
||||
BR2_PACKAGE_PCIUTILS=y
|
||||
|
||||
# X11
|
||||
# https://unix.stackexchange.com/questions/70931/how-to-install-x11-on-my-own-linux-buildroot-system/306116#306116
|
||||
BR2_PACKAGE_XAPP_TWM=y
|
||||
BR2_PACKAGE_XAPP_XCALC=y
|
||||
BR2_PACKAGE_XAPP_XCLOCK=y
|
||||
BR2_PACKAGE_XAPP_XEYES=y
|
||||
BR2_PACKAGE_XAPP_XINIT=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
|
||||
BR2_PACKAGE_XORG7=y
|
||||
BR2_PACKAGE_XSERVER_XORG_SERVER=y
|
||||
BR2_PACKAGE_XTERM=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
|
||||
BR2_USE_WCHAR=y
|
||||
|
||||
18
buildroot_config_fragment_x11
Normal file
18
buildroot_config_fragment_x11
Normal file
@@ -0,0 +1,18 @@
|
||||
# X11
|
||||
# https://unix.stackexchange.com/questions/70931/how-to-install-x11-on-my-own-linux-buildroot-system/306116#306116
|
||||
BR2_PACKAGE_XAPP_TWM=y
|
||||
BR2_PACKAGE_XAPP_XCALC=y
|
||||
BR2_PACKAGE_XAPP_XCLOCK=y
|
||||
BR2_PACKAGE_XAPP_XEYES=y
|
||||
BR2_PACKAGE_XAPP_XINIT=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
|
||||
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
|
||||
BR2_PACKAGE_XORG7=y
|
||||
BR2_PACKAGE_XSERVER_XORG_SERVER=y
|
||||
BR2_PACKAGE_XTERM=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
|
||||
BR2_USE_WCHAR=y
|
||||
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
|
||||
|
||||
2
runqemu
2
runqemu
@@ -12,7 +12,7 @@ nographic=false
|
||||
# printk.time=y: log in format: "[time ] msg" for all printk messages.
|
||||
extra_append='norandmaps printk.devkmsg=on printk.time=y'
|
||||
extra_flags=''
|
||||
while getopts a:de:knqt: OPT; do
|
||||
while getopts a:de:knqt:x OPT; do
|
||||
case "$OPT" in
|
||||
a)
|
||||
arch="$OPTARG"
|
||||
|
||||
Reference in New Issue
Block a user