From mboxrd@z Thu Jan 1 00:00:00 1970 From: ramsdell@mitre.org (John D. Ramsdell) Subject: Re: Mini-OS Makefile and Cross Compilation Date: 03 Apr 2007 07:08:55 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, gm281@cam.ac.uk List-Id: xen-devel@lists.xenproject.org The command in my previous post should have been: $ make CROSS_COMPILE=$HOME/opt/i386-elf/bin/i386-elf- TARGET_ARCH=x86_32 not this: $ make CROSS_COMPILE=$HOME/opt/i386-elf/i386-elf/bin/ TARGET_ARCH=x86_32 This should allow the makefile to find the correct version of objcopy. Keir Fraser writes: > I doubt anyone has ever cross-compiled the minios. I'd suggest > making its build system more like Xen's in terms of how it picks up > the tool chain (Xen can be cross compiled). I have no specific > pointers on how to do that. Last summer, I cross-compiled a 32-bit minios for 32-bit Xen so that I could build an application in the Lua scripting language. The interpreter required a C library, so I used newlib. On a 32-bit machine, I can still build Mini-OS with a cross compiler with: $ make CROSS_COMPILE=$HOME/opt/cross/bin/i386-elf- The problem seems to be when specifying a different target architecture. I also can no longer build a minios library to link with the application, I'm not worried about that now. By the way, the latest version of newlib, 1.15.0, no longer needs to be patched for use with Mini-OS. John