00001 # 00002 # Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 00003 # All rights reserved. 00004 # 00005 # Redistribution and use in source and binary forms, with or without 00006 # modification, are permitted provided that the following conditions 00007 # are met: 00008 # 1. Redistributions of source code must retain the above copyright 00009 # notice, this list of conditions and the following disclaimer, 00010 # without modification. 00011 # 2. Redistributions in binary form must reproduce at minimum a disclaimer 00012 # similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 00013 # redistribution must be conditioned upon including a substantially 00014 # similar Disclaimer requirement for further binary redistribution. 00015 # 3. Neither the names of the above-listed copyright holders nor the names 00016 # of any contributors may be used to endorse or promote products derived 00017 # from this software without specific prior written permission. 00018 # 00019 # Alternatively, this software may be distributed under the terms of the 00020 # GNU General Public License ("GPL") version 2 as published by the Free 00021 # Software Foundation. 00022 # 00023 # NO WARRANTY 00024 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00025 # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00026 # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 00027 # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00028 # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 00029 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00030 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00031 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00032 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00033 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 00034 # THE POSSIBILITY OF SUCH DAMAGES. 00035 # 00036 # $Id: i386-elf.inc,v 1.1.1.1 2005/09/09 18:04:26 jbicket Exp $ 00037 # 00038 00039 # 00040 # Compilation configuration for building i386-elf. 00041 # This assumes the build platform is also i386-elf. 00042 # 00043 00044 # 00045 ifndef TOOLPREFIX 00046 TOOLPREFIX= 00047 endif 00048 # 00049 CC= ${TOOLPREFIX}gcc 00050 LD= ${TOOLPREFIX}ld 00051 STRIP= ${TOOLPREFIX}strip 00052 OBJCOPY=${TOOLPREFIX}objcopy 00053 NM= ${TOOLPREFIX}nm 00054 00055 COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN 00056 ifndef CONFIG_FRAME_POINTER 00057 COPTS+= -fomit-frame-pointer 00058 endif