-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move x11 to xorg and make x11 a meta-target.
- Loading branch information
Showing
4 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh -e | ||
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
if [ "$TARGETS" != 'help' -a "${ARCH#arm}" != "$ARCH" ]; then | ||
error 1 'xorg target does not work on ARM.' | ||
fi | ||
REQUIRES='core audio' | ||
PROVIDES='x11' | ||
DESCRIPTION='X.Org X11 backend. Enables GPU acceleration on supported platforms.' | ||
CHROOTBIN='croutoncycle croutonpowerd croutonxinitrc-wrapper setres xinit' | ||
CHROOTETC='xbindkeysrc.scm xserverrc-x11 xserverrc-local.example' | ||
. "${TARGETSDIR:="$PWD"}/common" | ||
|
||
### Append to prepare.sh: | ||
XMETHOD="${XMETHOD:-x11}" | ||
|
||
install xorg dmz-cursor-theme kbd | ||
# Fix launching X11 from inside crosh (user doesn't own a TTY) | ||
sed -i 's/allowed_users=.*/allowed_users=anybody/' '/etc/X11/Xwrapper.config' | ||
|
||
# Make chvt and fgconsole SUID root so we don't need to run keylaunch as root | ||
chmod u+s /bin/chvt | ||
|
||
TIPS="$TIPS | ||
You can flip through your running chroot desktops and Chromium OS by hitting | ||
Ctrl+Alt+Shift+Back and Ctrl+Alt+Shift+Forward. | ||
" | ||
|
||
### append x11-common |