Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From 2e8fca00f5bdb02f2f59aaa428d1e9d808ab0e86 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Sat, 16 Jun 2018 19:20:16 +0200
|
||||
Subject: [PATCH] include/misc.h: fix uClibc build
|
||||
|
||||
A similar fix was used for Dovecot:
|
||||
https://www.dovecot.org/list/dovecot/2017-November/110019.html
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
include/misc.h | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/include/misc.h b/include/misc.h
|
||||
index 14920c3c3..390e52b60 100644
|
||||
--- a/include/misc.h
|
||||
+++ b/include/misc.h
|
||||
@@ -185,6 +185,10 @@ typedef struct _xReq *xReqPtr;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#undef bswap_16
|
||||
+#undef bswap_32
|
||||
+#undef bswap_64
|
||||
+
|
||||
/**
|
||||
* Calculate the number of bytes needed to hold bits.
|
||||
* @param bits The minimum number of bits needed.
|
||||
--
|
||||
2.17.1
|
||||
|
||||
89
package/x11r7/xserver_xorg-server/Config.in
Normal file
89
package/x11r7/xserver_xorg-server/Config.in
Normal file
@@ -0,0 +1,89 @@
|
||||
config BR2_PACKAGE_XSERVER_XORG_SERVER
|
||||
bool "xorg-server"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
# We need a SHA1 implementation. If either openssl or
|
||||
# libgcrypt are already part of the build, we'll use one of
|
||||
# them, otherwise, use the small libsha1 library.
|
||||
select BR2_PACKAGE_LIBSHA1 if (!BR2_PACKAGE_OPENSSL && !BR2_PACKAGE_LIBGCRYPT)
|
||||
select BR2_PACKAGE_MCOOKIE
|
||||
select BR2_PACKAGE_PIXMAN
|
||||
select BR2_PACKAGE_XFONT_FONT_ALIAS
|
||||
select BR2_PACKAGE_XFONT_FONT_MISC_MISC
|
||||
select BR2_PACKAGE_XFONT_FONT_CURSOR_MISC
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXAU
|
||||
select BR2_PACKAGE_XLIB_LIBXCURSOR
|
||||
select BR2_PACKAGE_XLIB_LIBXCVT
|
||||
select BR2_PACKAGE_XLIB_LIBXDAMAGE
|
||||
select BR2_PACKAGE_XLIB_LIBXDMCP
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XLIB_LIBXFIXES
|
||||
select BR2_PACKAGE_XLIB_LIBXFONT2
|
||||
select BR2_PACKAGE_XLIB_LIBXFT
|
||||
select BR2_PACKAGE_XLIB_LIBXI
|
||||
select BR2_PACKAGE_XLIB_LIBXINERAMA
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR
|
||||
select BR2_PACKAGE_XLIB_LIBXRENDER
|
||||
select BR2_PACKAGE_XLIB_LIBXRES
|
||||
select BR2_PACKAGE_XLIB_LIBXXF86VM
|
||||
select BR2_PACKAGE_XLIB_LIBXKBFILE
|
||||
select BR2_PACKAGE_XLIB_XTRANS
|
||||
select BR2_PACKAGE_XDATA_XBITMAPS
|
||||
select BR2_PACKAGE_XORGPROTO
|
||||
select BR2_PACKAGE_XUTIL_UTIL_MACROS
|
||||
select BR2_PACKAGE_XKEYBOARD_CONFIG
|
||||
help
|
||||
X.Org X server
|
||||
|
||||
http://xorg.freedesktop.org
|
||||
|
||||
if BR2_PACKAGE_XSERVER_XORG_SERVER
|
||||
|
||||
choice
|
||||
prompt "X Window System server type"
|
||||
help
|
||||
Select the X Window System server to use
|
||||
|
||||
config BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
|
||||
bool "Modular X.org"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_LIBDRM
|
||||
select BR2_PACKAGE_LIBPCIACCESS
|
||||
select BR2_PACKAGE_XLIB_LIBXSHMFENCE if BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
help
|
||||
This variant of the X.org server is the full-blown variant,
|
||||
as used by desktop GNU/Linux distributions. The drivers (for
|
||||
input and graphics) are built separately from the X.org
|
||||
server (see the xdriver* packages).
|
||||
|
||||
comment "Modular X.org needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
|
||||
config BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
|
||||
bool "KDrive / TinyX"
|
||||
help
|
||||
This variant of the X.org server is a lightweight version
|
||||
intended for embedded systems. The drivers (for input and
|
||||
graphics) are built into the server. It is generally used
|
||||
directly on top of the Linux framebuffer without DRM or
|
||||
video card specific drivers.
|
||||
|
||||
endchoice
|
||||
|
||||
comment "Optional Servers"
|
||||
|
||||
config BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB
|
||||
bool "Xvfb server"
|
||||
help
|
||||
Virtual frame buffer X server.
|
||||
|
||||
config BR2_PACKAGE_XSERVER_XORG_SERVER_XEPHYR
|
||||
bool "Xephyr server"
|
||||
select BR2_PACKAGE_XCB_UTIL_IMAGE if BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
|
||||
select BR2_PACKAGE_XCB_UTIL_KEYSYMS if BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
|
||||
select BR2_PACKAGE_XCB_UTIL_RENDERUTIL if BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
|
||||
select BR2_PACKAGE_XCB_UTIL_WM if BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
|
||||
help
|
||||
Xephyr nested X server; successor to Xnest.
|
||||
|
||||
endif
|
||||
46
package/x11r7/xserver_xorg-server/S40xorg
Normal file
46
package/x11r7/xserver_xorg-server/S40xorg
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Starts Xorg
|
||||
#
|
||||
|
||||
BIN=/usr/bin/Xorg
|
||||
PIDFILE=/var/run/xorg.pid
|
||||
|
||||
# ":0.0 vt01" makes sure Xorg finds the correct terminal.
|
||||
# -allowMouseOpenFail allows the server to start up even if the mouse device
|
||||
# can't be opened or initialised.
|
||||
# -noreset prevents a server reset when the last client connection is closed.
|
||||
XORG_ARGS=":0.0 vt01 -s 0 -noreset -allowMouseOpenFail"
|
||||
|
||||
start() {
|
||||
printf "Starting Xorg: "
|
||||
start-stop-daemon -S -q -b -m -p $PIDFILE --exec $BIN -- $XORG_ARGS
|
||||
[ $? = 0 ] && sleep 3 && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping Xorg: "
|
||||
start-stop-daemon -K -q -p $PIDFILE
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 2
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
11
package/x11r7/xserver_xorg-server/xorg.service
Normal file
11
package/x11r7/xserver_xorg-server/xorg.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Xorg server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/Xorg :0.0 vt01 -s 0 -noreset -allowMouseOpenFail
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
@@ -0,0 +1,5 @@
|
||||
# From https://lists.x.org/archives/xorg-announce/2026-July/003718.html
|
||||
sha256 1a4eb36ca65cc3b1b936566d677a9786e13c11cd5806e951ac55f3f5ce3984af xorg-server-21.1.24.tar.xz
|
||||
sha512 f51372b04fe21632fc778ff240705161ed2dccc0114dbe3ee25156d8ac85ec945e2ac05d8638bc7d8d54bad4dfc89cb26b6bd2058b7804d54ab7179e1ac2eb13 xorg-server-21.1.24.tar.xz
|
||||
# Locally calculated
|
||||
sha256 c9f90a6669109aad6c9a7c3b46cc2c574221a73b792afa419336816b49da5c11 COPYING
|
||||
199
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
Normal file
199
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
Normal file
@@ -0,0 +1,199 @@
|
||||
################################################################################
|
||||
#
|
||||
# xserver_xorg-server
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XSERVER_XORG_SERVER_VERSION = 21.1.24
|
||||
XSERVER_XORG_SERVER_SOURCE = xorg-server-$(XSERVER_XORG_SERVER_VERSION).tar.xz
|
||||
XSERVER_XORG_SERVER_SITE = https://xorg.freedesktop.org/archive/individual/xserver
|
||||
XSERVER_XORG_SERVER_LICENSE = MIT
|
||||
XSERVER_XORG_SERVER_LICENSE_FILES = COPYING
|
||||
XSERVER_XORG_SERVER_CPE_ID_VENDOR = x.org
|
||||
XSERVER_XORG_SERVER_CPE_ID_PRODUCT = x_server
|
||||
XSERVER_XORG_SERVER_SELINUX_MODULES = xdg xserver
|
||||
XSERVER_XORG_SERVER_INSTALL_STAGING = YES
|
||||
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES = \
|
||||
xutil_util-macros \
|
||||
xlib_libX11 \
|
||||
xlib_libXau \
|
||||
xlib_libXdmcp \
|
||||
xlib_libXext \
|
||||
xlib_libXfixes \
|
||||
xlib_libXfont2 \
|
||||
xlib_libXi \
|
||||
xlib_libXrender \
|
||||
xlib_libXres \
|
||||
xlib_libXft \
|
||||
xlib_libXcursor \
|
||||
xlib_libXinerama \
|
||||
xlib_libXrandr \
|
||||
xlib_libXdamage \
|
||||
xlib_libXxf86vm \
|
||||
xlib_libxkbfile \
|
||||
xlib_libxcvt \
|
||||
xlib_xtrans \
|
||||
xdata_xbitmaps \
|
||||
xorgproto \
|
||||
xkeyboard-config \
|
||||
pixman \
|
||||
mcookie \
|
||||
host-pkgconf
|
||||
|
||||
# We force -O2 regardless of the optimization level chosen by the
|
||||
# user, as the X.org server is known to trigger some compiler bugs at
|
||||
# -Os on several architectures.
|
||||
XSERVER_XORG_SERVER_CONF_OPTS = \
|
||||
--disable-config-hal \
|
||||
--enable-record \
|
||||
--disable-xnest \
|
||||
--disable-unit-tests \
|
||||
--with-builder-addr=buildroot@buildroot.org \
|
||||
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1 -O2" \
|
||||
--with-fontrootdir=/usr/share/fonts/X11/ \
|
||||
--$(if $(BR2_PACKAGE_XSERVER_XORG_SERVER_XEPHYR),en,dis)able-xephyr \
|
||||
--$(if $(BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB),en,dis)able-xvfb
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += \
|
||||
--with-systemd-daemon \
|
||||
--enable-systemd-logind
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += \
|
||||
systemd
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += \
|
||||
--without-systemd-daemon \
|
||||
--disable-systemd-logind
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-xorg
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libpciaccess
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libdrm
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-libdrm
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-libdrm
|
||||
endif
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-xorg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += \
|
||||
--enable-kdrive \
|
||||
--disable-glx \
|
||||
--disable-dri
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_XEPHYR),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += \
|
||||
xcb-util-image \
|
||||
xcb-util-keysyms \
|
||||
xcb-util-renderutil \
|
||||
xcb-util-wm
|
||||
endif
|
||||
else # modular
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-kdrive
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri --enable-glx
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libgl
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri --disable-glx
|
||||
endif
|
||||
|
||||
# Optional packages
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += udev
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-udev
|
||||
# udev kms support depends on libdrm and dri2
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-udev-kms
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-config-udev-kms
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += dbus
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-config-dbus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += freetype
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libunwind
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-libunwind
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-libunwind
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_XLIB_LIBXVMC),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-xvmc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXcomposite
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-composite
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri2
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXSHMFENCE),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libxshmfence
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-dri3
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGL)$(BR2_PACKAGE_LIBEPOXY),yyy)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libepoxy
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-glamor
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-glamor
|
||||
endif
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri3 --disable-glamor
|
||||
endif
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-dri2 --disable-dri3 --disable-glamor
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXSCRNSAVER),y)
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += xlib_libXScrnSaver
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --enable-screensaver
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --disable-screensaver
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libcrypto
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += openssl
|
||||
else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libgcrypt
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libgcrypt
|
||||
else
|
||||
XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libsha1
|
||||
XSERVER_XORG_SERVER_DEPENDENCIES += libsha1
|
||||
endif
|
||||
|
||||
# Install the systemd unit only when nodm nor xdm aren't enabled, as
|
||||
# they would be responsible for starting the server.
|
||||
ifeq ($(BR2_PACKAGE_NODM)$(BR2_PACKAGE_XAPP_XDM),)
|
||||
define XSERVER_XORG_SERVER_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 package/x11r7/xserver_xorg-server/xorg.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/xorg.service
|
||||
endef
|
||||
endif
|
||||
|
||||
# Install the init script only when neither nodm nor xdm are enabled, as
|
||||
# they would be responsible for starting the server.
|
||||
ifeq ($(BR2_PACKAGE_NODM)$(BR2_PACKAGE_XAPP_XDM),)
|
||||
define XSERVER_XORG_SERVER_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/x11r7/xserver_xorg-server/S40xorg \
|
||||
$(TARGET_DIR)/etc/init.d/S40xorg
|
||||
endef
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user