Create X symlink for TinyX
authorPaulius Zaleckas <paulius.zaleckas@gmail.com>
Thu, 4 Nov 2010 08:58:33 +0000 (10:58 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 5 Nov 2010 09:26:29 +0000 (10:26 +0100)
When installing TinyX to target create /usr/bin/X symlink
to Xfbdev as it is the only TinyX driver we build.
This makes utils like startx happy :)

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk

diff --git a/CHANGES b/CHANGES
index 8406725112f02f556ac4b0f5a9beba4ea08d1c89..76c4ea45153d4c66289006fad1285be252954da7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -61,7 +61,8 @@
        xdriver-xf86-video-{sis,sisusb,suncg3,suncg6,suncg14,sunffb},
        xdriver-xf86-video-{sunleo,suntcx,tdfx,tga,trident,v4l,vesa},
        xdriver-xf86-video-{vmware,voodeo,wsfb,xgi,xgixp},
-       xkeyboard-config, xlib_libX11, xstroke, xterm, xvkbd, zlib
+       xkeyboard-config, xlib_libX11, xserver_xorg-server, xstroke,
+       xterm, xvkbd, zlib
 
        Deprecated packages: hotplug, lzma, ng-spice-rework
 
index fed8c10f81285f149c96a13d8ec533d046713890..b0babddee172d43e19513323267842cc11973b3e 100644 (file)
@@ -73,6 +73,10 @@ endif
 ifeq ($(BR2_PACKAGE_XSERVER_tinyx),y)
 XSERVER_XORG_SERVER_CONF_OPT += --enable-kdrive --enable-xfbdev \
                --disable-glx --disable-dri --disable-xsdl
+define XSERVER_CREATE_X_SYMLINK
+ ln -f -s Xfbdev $(TARGET_DIR)/usr/bin/X
+endef
+XSERVER_XORG_SERVER_POST_INSTALL_TARGET_HOOKS += XSERVER_CREATE_X_SYMLINK
 else
 XSERVER_XORG_SERVER_CONF_OPT += --disable-kdrive --disable-xfbdev
 endif