bzt 4a55c11b11 Minor UI tweaks | 2 nedēļas atpakaļ | |
---|---|---|
.. | ||
Makefile | 1 mēnesi atpakaļ | |
README.md | 1 mēnesi atpakaļ | |
ca.h | 1 gadu atpakaļ | |
de.h | 1 gadu atpakaļ | |
es.h | 1 gadu atpakaļ | |
fr.h | 1 gadu atpakaļ | |
gb.h | 1 gadu atpakaļ | |
hu.h | 1 gadu atpakaļ | |
it.h | 1 gadu atpakaļ | |
main.c | 2 nedēļas atpakaļ | |
pl.h | 1 gadu atpakaļ | |
ru.h | 1 mēnesi atpakaļ | |
sv.h | 2 nedēļas atpakaļ | |
us.h | 1 gadu atpakaļ |
This directory contains the main executable for a backend that does not need any library, as it uses the Linux kernel interfaces directly. This allows this port to be used as a MEG-4 Operating System.
Command | Description |
---|---|
make |
Compile the meg4 executable for this platform |
make install |
Install the compiled executable |
make package |
Create a package from the compiled executable |
make clean |
Clean the platform, but do not touch libmeg4 |
make distclean |
Clean everything |
USE_INIT=1 make |
Compile code to make it suitable for /sbin/init |
FLOPPYDEV=xx make |
Select the floppy device (default /dev/sda1 , init only) |
LANG=xx make |
Select interface's language (default en , init only) |
KBDMAP=xx make |
Select keyboard layout map (default us ) |
DEBUG=1 make |
Compile with debug information |
You must run this meg4
with the -d
flag and specify a directory where the floppies are stored.
With USE_INIT=1
, there's no command line, so the floppy directory has to be hardcoded, use the FLOPPYDEV
environment
variable to change the default. This is not an actual floppy device file (like /dev/fd0), rather it should point to a
partition device with a FAT file system and with a directory named MEG-4
where the floppy images are kept. Because for
init there are no environment variables either, the interface's language (specified in the LANG
environment variable) is
also taken and hardcoded into the binary at compilation time.
The Linux kernel's event interface does not and cannot support switchable X11 keyboard layouts, so you must compile in
a keyboard mapping manually. You can choose any of the existing header files, for example KBDMAP=gb make
. To create a
new layout mapping, just copy us.h and edit it. You only have to fill in keys for which you want an UTF-8 character
to be produced, special keys like Esc, Enter, F1 etc. are handled regardless. If not
specified, defaults to US / International keyboard mapping.
No matter what layout you choose, you can always switch to US / International layout by pressing Shift+Alt in run-time (that layout has Latin letters and all the symbols necessary for programming in the C and BASIC languages).
To sum it up: USE_INIT=1 KBDMAP=hu LANG=hu FLOPPYDEV=/dev/sda1 make
Then copy the meg4
binary to the root fs as init
and get it loaded by a Linux kernel as the first and only user
space process.