42-fbturbo.sh
34 lines
| 1.0 KiB
| application/x-sh
|
BashLexer
/ bootstrap.d / 42-fbturbo.sh
Filip Pytloun
|
r56 | # | ||
Jan Wagner
|
r67 | # Build and Setup fbturbo Xorg driver | ||
Filip Pytloun
|
r56 | # | ||
Jan Wagner
|
r67 | # Load utility functions | ||
Filip Pytloun
|
r56 | . ./functions.sh | ||
if [ "$ENABLE_FBTURBO" = true ] ; then | ||||
# Fetch fbturbo driver sources | ||||
drtyhlpr
|
r91 | git -C "${R}/tmp" clone "${FBTURBO_URL}" | ||
Filip Pytloun
|
r56 | |||
# Install Xorg build dependencies | ||||
drtyhlpr
|
r93 | chroot_exec apt-get -q -y --force-yes --no-install-recommends install xorg-dev xutils-dev x11proto-dri2-dev libltdl-dev libtool automake libdrm-dev | ||
Filip Pytloun
|
r56 | |||
# Build and install fbturbo driver inside chroot | ||||
Jan Wagner
|
r67 | chroot_exec /bin/bash -x <<'EOF' | ||
cd /tmp/xf86-video-fbturbo | ||||
autoreconf -vi | ||||
./configure --prefix=/usr | ||||
make | ||||
make install | ||||
EOF | ||||
Filip Pytloun
|
r56 | |||
Jan Wagner
|
r71 | # Install fbturbo driver Xorg configuration | ||
Jan Wagner
|
r82 | install_readonly files/xorg/99-fbturbo.conf "${R}/usr/share/X11/xorg.conf.d/99-fbturbo.conf" | ||
Filip Pytloun
|
r56 | |||
# Remove Xorg build dependencies | ||||
Jan Wagner
|
r72 | chroot_exec apt-get -qq -y --auto-remove purge xorg-dev xutils-dev x11proto-dri2-dev libltdl-dev libtool automake libdrm-dev | ||
Filip Pytloun
|
r56 | fi | ||
# Remove gcc/c++ build environment from the chroot | ||||
Jan Wagner
|
r72 | if [ "$ENABLE_UBOOT" = true ] || [ "$ENABLE_FBTURBO" = true ] ; then | ||
drtyhlpr
|
r93 | chroot_exec apt-get -qq -y --auto-remove purge ${COMPILER_PACKAGES} | ||
Filip Pytloun
|
r56 | fi | ||