delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/15/21:01:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-VR-Score: -30.00
X-Authority-Analysis: v=1.0 c=1 a=TK8hhPemurYA:10 a=U1KvCYAr2xFsDtLJE8YA:9 a=KY6gIMcO1dHCffCS-uGH2BFfinoA:4
X-CM-Score: 0.00
Message-ID: <4A875A3A.7040803@ou.edu>
Date: Sat, 15 Aug 2009 20:00:42 -0500
From: "Stephen M. Kenton" <skenton AT ou DOT edu>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Building the Linux 2.6.30 kernel under Cygwin 1.7 almost works out of the box
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

I wanted to try the case sensitivity feature of 1.7 on ntfs so I tweaked 
the registry key and tried a kernel build.

Using the stock 1.7 tools I build a couple of cross tool chains with 
binutils-2.19.1 and gcc 4.4.1 from source tar balls.

Using the cross tool chains I successfully built defconfig 2.6.30 
kernels for i386 and arm.

The only hack was to add these includes for use by modpost to modpost.h 
between the include of elf.h and elfconfig.h

There were also a few redefinition warnings, but they seemed to be 
benign - but I have not boot tested the kernels.


scripts/mod/modpost.h

#include <elf.h>
#define R_386_32        1
#define R_386_PC32      2
#define R_ARM_ABS32             2
#define R_ARM_PC24              1
#define R_MIPS_26               4
#define R_MIPS_32               2
#define R_MIPS_HI16             5
#define R_MIPS_LO16             6

#include "elfconfig.h"

FYI - Steve



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019