armh-skit: Initial feature

This commit is contained in:
Anton Midyukov 2020-11-06 01:08:02 +07:00
parent ebd5ccc941
commit bf9b26afc4
6 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Фича предназначена для обеспечения поддержки планшетов "Скит".
Основана на фиче armh-mcom02.

View File

@ -0,0 +1,8 @@
ifeq (,$(filter-out armh,$(ARCH)))
use/armh-skit: use/bootloader/uboot use/tty/S0 use/no-sleep
@$(call add_feature)
@$(call set,KFLAVOURS,skit)
@$(call add,THE_PACKAGES,extlinux-fdtdir-cleanup-filetrigger)
@$(call add,THE_PACKAGES,xorg-drv-fbturbo)
endif

View File

@ -0,0 +1,15 @@
#!/bin/sh
# Rewrite extlinux.conf
mkdir -p /boot/extlinux
cat > /boot/extlinux/extlinux.conf << EOF
menu title ALT Boot Options
default linux
timeout 50
label linux
kernel /boot/vmlinuz
initrd /boot/initrd.img
append root=LABEL=ROOT ro
EOF

View File

@ -0,0 +1,6 @@
#!/bin/sh -efu
[ -f /etc/firsttime.d/alsa-set-initial-options ] &&
sed -i '/snd-seq-midi/d' /etc/firsttime.d/alsa-set-initial-options
exit 0

View File

@ -0,0 +1,13 @@
#!/bin/sh -x
[ -d /etc/X11/xorg.conf.d ] || exit 0
cat > /etc/X11/xorg.conf.d/10-monitor.conf << EOF
Section "Monitor"
Identifier "Monitor0"
EndSection
Section "Device"
Identifier "Card0"
Driver "fbturbo"
EndSection
EOF

View File

@ -0,0 +1,4 @@
#!/bin/sh
# Drop fdtdir PATH
sed -i '/fdtdir/d' /boot/extlinux/extlinux.conf