delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <406998CE.6020600@yahoo.fr> |
Date: | Tue, 30 Mar 2004 17:57:02 +0200 |
From: | bertrand marquis <bertrand_marquis AT yahoo DOT fr> |
Reply-To: | bertrand_marquis AT yahoo DOT fr |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.2.1) Gecko/20030225 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: need loadkeys --mktable under cygwin |
References: | <40694555 DOT 7010601 AT yahoo DOT fr> <Pine DOT GSO DOT 4 DOT 56 DOT 0403301031240 DOT 1185 AT slinky DOT cs DOT nyu DOT edu> |
In-Reply-To: | <Pine.GSO.4.56.0403301031240.1185@slinky.cs.nyu.edu> |
X-Spam-Checker-Version: | SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on donald.sysgo.com |
X-Spam-Level: | |
X-Spam-Status: | No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.61 |
X-AntiVirus: | checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.24.0.7; VDF: 6.24.0.76; host: balu) |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i2UFuKCZ007307 |
I found a solution i downloaded kbd-0.99 it doesn't compile under cygwin but if you take the files: loadkeys.y ksyms.c findfile.c getfd.c than you take kd.h wait.h and keyboard.h from a linux kernel and you can compile a simple loadkeys for cygwin to use to compile a kernel. i made this with those commands (i.m using a cross compiler): bison -y loadkeys.y mv -f y.tab.c loadkeys.c flex -8 -t analyze.l > analyze.c i686-pc-cygwin-gcc -c -O2 -DDATADIR=\"/usr/share/kbd\" loadkeys.c i686-pc-cygwin-gcc -c -Wall -O2 -DDATADIR=\"/usr/share/kbd\" ksyms.c i686-pc-cygwin-gcc -c -Wall -O2 -DDATADIR=\"/usr/share/kbd\" findfile.c i686-pc-cygwin-gcc -c -Wall -O2 -DDATADIR=\"/usr/share/kbd\" getfd.c i686-pc-cygwin-gcc -s loadkeys.o ksyms.o findfile.o getfd.o -o loadkeys Igor Pechtchanski a écrit: >On Tue, 30 Mar 2004, bertrand marquis wrote: > > > >>Hello >> >> i.m trying to build the kernel under cygwin with a cross compiler >>(host=cygwin target=i386-linux) and it seems that the kernel need the >>loadkeys program to be build. I have tried to find it but it seems that >>it don't exist. >> Does anyone know a solution for that problem ? >> >>thanks >> >> > >Yep. It's called "porting". :-) >Seriously, though, looking at the man page for "loadkeys", it doesn't seem >too relevant for Cygwin. In particular, the entry for "--mktable" says: > > CREATE KERNEL SOURCE TABLE > If the -m (or --mktable ) option is given loadkeys prints > to the standard output a file that may be used as > /usr/src/linux/drivers/char/defkeymap.c, specifying the > default key bindings for a kernel (and does not modify the > current keymap). > >Sounds like the kernel is not very cross-compilation friendly (i.e., it's >expected to be compiled *on a Linux machine*). One solution is to create >a "loadkeys" script that accepts only one option ("--mktable") and prints >out pre-defined text... Alternatively, contact the authors of the code >and notify them that their code doesn't build on Cygwin (and probably >won't on OpenBSD, either). > Igor > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |