mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
move pinebook tweaks (#3033)
* move pinebook tweaks * fix dest * Add also special keys definitions * Clear out tech dept * Delete prepare.sh Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
mkdir -p "${destination}"/etc/
|
||||
cp -R "${SRC}"/packages/blobs/asound.state/ "${destination}"/etc/
|
||||
|
||||
mkdir -p "${destination}"/etc/X11/
|
||||
cp -R "${SRC}"/packages/bsp/rk3399/xorg.conf "${destination}"/etc/X11/
|
||||
@@ -1,16 +0,0 @@
|
||||
# install custom xorg for pinebook-pro
|
||||
mkdir -p "${destination}"/etc/X11/
|
||||
cp -R "${SRC}"/packages/bsp/pinebook-pro/xorg.conf "${destination}"/etc/X11/
|
||||
|
||||
# install custom asound state for pinebook-pro
|
||||
mkdir -p "${destination}"/etc/
|
||||
cp -R "${SRC}"/packages/blobs/asound.state/asound.state.pinebook-pro "${destination}"/etc/
|
||||
|
||||
## touchpad and keyboard tweaks
|
||||
mkdir -p "${destination}"/etc/X11/xorg.conf.d/
|
||||
# from https://github.com/ayufan-rock64/linux-package/tree/master/root-pinebookpro
|
||||
cp "${SRC}"/packages/bsp/pinebook-pro/40-pinebookpro-touchpad.conf "${destination}"/etc/X11/xorg.conf.d/
|
||||
|
||||
#keyboard hwdb
|
||||
mkdir -p "${destination}"/etc/udev/hwdb.d/
|
||||
cp "${SRC}"/packages/bsp/pinebook-pro/10-usb-kbd.hwdb "${destination}"/etc/udev/hwdb.d/
|
||||
@@ -1,3 +0,0 @@
|
||||
# special keys
|
||||
mkdir -p "$(destination)"/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/
|
||||
cp $SRC/packages/bsp/pinebook-pro/pointers.xml "$(destination)"/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/
|
||||
@@ -359,17 +359,6 @@ family_tweaks()
|
||||
|
||||
fi
|
||||
|
||||
if [[ $BOARD == pinebook-pro ]]; then
|
||||
|
||||
chroot $SDCARD /bin/bash -c "echo SuspendState=freeze >> /etc/systemd/sleep.conf"
|
||||
chroot $SDCARD /bin/bash -c "echo HandlePowerKey=ignore >> /etc/systemd/login.d"
|
||||
fi
|
||||
|
||||
if [[ $BOARD == station* ]]; then
|
||||
|
||||
cp -R $SRC/packages/blobs/rtl8723bt_fw/* $SDCARD/lib/firmware/rtl_bt/
|
||||
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
@@ -447,6 +436,31 @@ family_tweaks_bsp()
|
||||
|
||||
fi
|
||||
|
||||
if [[ $BOARD == pinebook-pro ]]; then
|
||||
|
||||
chroot $SDCARD /bin/bash -c "echo SuspendState=freeze >> /etc/systemd/sleep.conf"
|
||||
chroot $SDCARD /bin/bash -c "echo HandlePowerKey=ignore >> /etc/systemd/login.d"
|
||||
|
||||
# special keys
|
||||
mkdir -p "${destination}"/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/
|
||||
cp $SRC/packages/bsp/pinebook-pro/pointers.xml "${destination}"/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/
|
||||
|
||||
# touchpad and keyboard tweaks
|
||||
mkdir -p "${destination}"/etc/X11/xorg.conf.d/
|
||||
# from https://github.com/ayufan-rock64/linux-package/tree/master/root-pinebookpro
|
||||
cp "${SRC}"/packages/bsp/pinebook-pro/40-pinebookpro-touchpad.conf "${destination}"/etc/X11/xorg.conf.d/
|
||||
|
||||
# keyboard hwdb
|
||||
mkdir -p "${destination}"/etc/udev/hwdb.d/
|
||||
cp "${SRC}"/packages/bsp/pinebook-pro/10-usb-kbd.hwdb "${destination}"/etc/udev/hwdb.d/
|
||||
fi
|
||||
|
||||
if [[ $BOARD == station* ]]; then
|
||||
|
||||
cp -R "${SRC}/packages/blobs/rtl8723bt_fw/*" "${destination}/lib/firmware/rtl_bt/"
|
||||
|
||||
fi
|
||||
|
||||
# Graphics and media
|
||||
mkdir -p $destination/etc/udev/rules.d
|
||||
cp $SRC/packages/bsp/rk3399/50-mali.rules $destination/etc/udev/rules.d/
|
||||
|
||||
@@ -179,17 +179,6 @@ create_board_package()
|
||||
fi
|
||||
|
||||
EOF
|
||||
|
||||
if [[ $RELEASE == bionic ]] || [[ $RELEASE == focal && $BOARDFAMILY == sun50iw6 ]]; then
|
||||
cat <<-EOF >> "${destination}"/DEBIAN/postinst
|
||||
# temporally disable acceleration on some arch in Bionic due to broken mesa packages
|
||||
echo 'Section "Device"
|
||||
\tIdentifier \t"Default Device"
|
||||
\tOption \t"AccelMethod" "none"
|
||||
EndSection' >> /etc/X11/xorg.conf.d/01-armbian-defaults.conf
|
||||
EOF
|
||||
fi
|
||||
|
||||
# install bootscripts if they are not present. Fix upgrades from old images
|
||||
if [[ $FORCE_BOOTSCRIPT_UPDATE == yes ]]; then
|
||||
cat <<-EOF >> "${destination}"/DEBIAN/postinst
|
||||
|
||||
Reference in New Issue
Block a user