X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=mbgBz0CudJ3i7POp04sLaPkyw5H0nkjx+8g4l/dVqnw hw5e+BHoY3prHYQZiewlVLBF9BvPveRd0BR8V6aLH4ewxw+E9BqsYYl7FPR4t4tN KD616xtIdsiBp4/krIr4EpH7XSmeJ4UmRCd3CWJdd4oBnkOXhQ+TrY0uqwlRg8IQ = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=mb67lXvCVAC5WNi2tPkmH//2pd0=; b=DEOQRPfWy3Ejbw9YA HCeuX87vSytmfylyoMYs3JIu90G8Y1E2aLlaMxFxMbpGfJKBsRSFumZSmdtwB0Lm MjBTK0RqLwr3Eq2ey/2O1GVM46WKhimq5nRvF7cN1u5/ZktcAID2Pk4rtuXZlE/l igpNrp9wmEsm38XIDqQNp2UCCY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=4h9H+Z5BGodPVgBZxluvcrFXv99k0OljPVXicwNGNKc=; b=KaUnVOfHZDGYT8Y81RsqO+uLyd64aRT8ToxZklgoLh32MM8T9FlmCIH1VA1qJ3Ye6v isNVirNNfuRg3/o557Hw6oqXO9jEN7GX/9bHb3kSHbwwgEyJHTrYKR96J3npLDDHG4FI 0swvnCVK7zL3nMt/1ZXR2FBADfLRmDvzeacxCWZn6Vgp3ICz/5/YRic69reZGBuoEryc zKE6XvoWETCQDuSLVkmRnS1B4WzNhBawKu/7uhSqEMIMWuTzYvO7qNytpwIlgNl6b2m9 h2czVp5TjQTZ4GVeWA/PKzkhsJuamYWTq/h3n6YKhDOOliJ6LwtA2cwzMJxII46I2ffi 64+g== X-Received: by 10.60.52.15 with SMTP id p15mr9342661oeo.87.1371487590479; Mon, 17 Jun 2013 09:46:30 -0700 (PDT) Message-ID: <51BF3D63.7010704@breisch.org> Date: Mon, 17 Jun 2013 12:46:27 -0400 From: "Chris J. Breisch" User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cross-compiling Linux kernel References: <003401ce6b5d$f6ec87b0$e4c59710$%fedin AT samsung DOT com> <20130617151819 DOT GB13457 AT calimero DOT vinschen DOT de> In-Reply-To: <20130617151819.GB13457@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnSwxm9JwvlzHAjomSxxz/8/3d9muxjzRjFtZg/YbwKHsvWLyAWkrJkr0WZIH6AnmLLSBL9 On 6/17/2013 11:18 AM, Corinna Vinschen wrote: > On Jun 17 17:24, Fedin Pavel wrote: >> Hello! >> >> In order to cross-compile Linux kernel i have to patch host-side tools a >> little bit. Current problems are: >> 1. Cygwin misses linux/types.h >> 2. Cygwin defines the following ELF macros according to host machine: >> ELF_ST_BIND, ELF_ST_TYPE, ELF_R_SYM, ELF_R_TYPE >> >> What about improving Linux compatibility ? We could have own version of >> linux/types.h (for __u8. __u16, etc), and omit ELF definitions. AFAIK they >> are not used anywhere, they are just inherited from BSD. >> At the other hand, i believe the same problem will happen if i try to >> cross-compile Linux kernel under BSD. And Cygwin is BSD-style system... > I have no opinion on the ELF definition issue, but just adding a > linux system header looks pretty wrong to me. > > > Corinna > There are far better ways to cross-compile the Linux kernel. I built a Cross Linux From Scratch system under Cygwin earlier this year. I just got back from vacation, though. Give me a day or so, and I'll find my notes on it. I believe most of them have already been posted here in the past, however. Chris J. Breisch -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple