diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-10-05 15:05:09 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:40:02 +0200 |
commit | 48798bf2eb93ec3b99720ac2e16093441156653d (patch) | |
tree | 35e03d95df5f2677f05e32d70abb6d0583aa47ba /elksemu | |
parent | 9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 (diff) | |
download | dev86-48798bf2eb93ec3b99720ac2e16093441156653d.tar.gz |
Import Dev86src-0.13.0.tar.gzv0.13.0
Diffstat (limited to 'elksemu')
-rw-r--r-- | elksemu/Makefile | 19 | ||||
-rw-r--r-- | elksemu/README | 24 | ||||
-rw-r--r-- | elksemu/Version | 1 |
3 files changed, 39 insertions, 5 deletions
diff --git a/elksemu/Makefile b/elksemu/Makefile index df7b08a..4b3e056 100644 --- a/elksemu/Makefile +++ b/elksemu/Makefile @@ -2,14 +2,24 @@ # Makefile for elksemu. # -ifeq ($(CC),bcc) # Use BCC to make a tiny static a.out version. -CFLAGS=-O -3 -N -ansi -s -else -# For gcc with the default compiler +ifeq ($(CC),bcc) +CFLAGS=-Ml -ansi -s $(DEFS) +endif +ifeq ($(CC),ncc) +CFLAGS=-Ml -ansi -s $(DEFS) +endif + +# For gcc +ifeq ($(CC),gcc) CFLAGS=-O2 -fno-strength-reduce -Wall -idirafter . $(DEFS) endif +# Default +ifeq ($(CFLAGS),) +CFLAGS=-O +endif + # Turn on elkemu's strace like facility. # DEFS=-DDEBUG @@ -41,6 +51,7 @@ clean realclean: module: binfmt_elks.o # HOW to compile the module... +# BUT remember you don't need it for a recent 2.1.X; use binfmt_misc. # This matches my compile (2.0.x); yours may be different. MODCFLAGS=-D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ diff --git a/elksemu/README b/elksemu/README new file mode 100644 index 0000000..23d3111 --- /dev/null +++ b/elksemu/README @@ -0,0 +1,24 @@ + +Elksemu is an emulator for the environment that elks will provide on a +real ELKS machine. The emulator only runs on linux-i386 or similar. + +If your kernel version is 1.2.13 then apply the patch in the Kernel_patch +file. + +If you're using one of the 2.0.X series then the binfmt_elks.c module +should be able to compile and install. BUT do note you need the modules +and probably modversions options and you _may_ have to alter the compile +command to match those seen when you compile modules that come with the +kernel. + +If you're using a 2.1.43 or later then the binfmt_misc driver is in +the stock kernel add the following line to a /etc/rc*/* file and +you don't need to install a patch or module! + +echo ':i86-elks:M::\x01\x03\x00\x20:\xff\xff\x83\xff:/lib/elksemu:' \ + > /proc/sys/fs/binfmt_misc/register + +Rob. + +(NB I'm not running 2.1.X so I haven't tested the binfmt_misc method + as of 26/7/97) diff --git a/elksemu/Version b/elksemu/Version deleted file mode 100644 index 68d2772..0000000 --- a/elksemu/Version +++ /dev/null @@ -1 +0,0 @@ -Version elksemu-0.0.8 |