From owner-freebsd-mips@FreeBSD.ORG Fri Mar 5 10:15:37 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87D901065672; Fri, 5 Mar 2010 10:15:37 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pz0-f199.google.com (mail-pz0-f199.google.com [209.85.222.199]) by mx1.freebsd.org (Postfix) with ESMTP id 5D56B8FC0A; Fri, 5 Mar 2010 10:15:37 +0000 (UTC) Received: by pzk37 with SMTP id 37so2419169pzk.7 for ; Fri, 05 Mar 2010 02:15:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=1NVrYK3+UeX1nM1KepxbOdmipUw7fImSsxtzJ991Rbc=; b=hpjrWLKyNMNItSQMKDQEAOzUX4slq7EkIzUj3wEgf1uB5IEsQHTxMCtXPqHK/L0ION Lf9qQXwcIKssaidxg6MvR/1c/K86DYp+OuBiRBvp7CJoCmhRwXac2IYvKHSUXpbfdjkR rERd4NOn1ydkAXQgYQaTKv1bPry3WR1pUHhKA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=wwvgZEPeapOrn6U0rdfY/1W4pNKexIWhvzKTQ3N8ok9TpFQ+rAf+B1MK+WeL0lfVPb k555IC4IbXQH5Se1PxzSsSoRpWSpEoPGVHYidV4MkDLNLLXoo4IOCeTHIWxKA17ucKNt FcDLnzqwN+vGXrRTsvljZl5ngSVsEZbkXvykU= MIME-Version: 1.0 Received: by 10.141.23.16 with SMTP id a16mr454110rvj.290.1267784131094; Fri, 05 Mar 2010 02:15:31 -0800 (PST) Date: Fri, 5 Mar 2010 15:45:31 +0530 Message-ID: <98a59be81003050215m753799dbu35d2b2eab65e75db@mail.gmail.com> From: "C. Jayachandran" To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: n64/n32 - build support patches X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 10:15:37 -0000 I've updated the patches for building n64 and n32 kernel and userspace, please review. The patches are: Tool chain support for n64 and n32:: http://sites.google.com/site/cjayachandran/files/n64-n32-toolchain.patch This updates the gcc configuration to provide the default ABI, linker scripts and endianness flags during n64/n32 and o32 builds. With this change, we don't need the -Wl, flags for linker emulation, the mabi flags or the -EB/-EL for compiler. I had to add a make variable in TARGET_DEFINES in gnu/usr.bin/cc/Makefile.tgt and use that to pass the defaults while creating 'tm.h' - this change is not MIPS-specific. User/kernel build with n64 and n32: http://sites.google.com/site/cjayachandran/files/n64-n32-build.patch updated bsd.cpu.mk which does not set LDFLAGS, adds ldscript.mips.n32 and removes unnecessary flags from Makefile.mips. Thanks, JC.