e2k: initial implementation

Elbrus 2000 only takes us a few lines to get up and running ;-)
This commit is contained in:
Michael Shigorin 2017-08-02 17:16:14 +03:00
parent db1d0ee592
commit 78ac727d7b
4 changed files with 20 additions and 0 deletions

1
features.in/e2k/README Normal file
View File

@ -0,0 +1 @@
Эта фича содержит необходимое для поддержки систем архитектуры "Эльбрус".

View File

@ -0,0 +1,3 @@
use/e2k:
@$(call add_feature)
@$(call set,KFLAVOURS,mcst-def)

View File

@ -0,0 +1,7 @@
default=auto
label=auto
partition=0
image=/image-@KVER@
initrd=/initrd-@KVER@.img
cmdline=console=tty0 consoleblank=0 hardreset root=UUID=@ROOTUUID@

View File

@ -0,0 +1,9 @@
#!/bin/sh
CFG="/boot/boot.conf"
[ -f "$CFG" ] || exit 1
[ -n "$GLOBAL_TTY_DEV" -a -n "$GLOBAL_TTY_RATE" ] || exit 0
# tty0 first
sed -i "s/console=tty0 /console=$GLOBAL_TTY_DEV,$GLOBAL_TTY_RATE &/" "$CFG"