From owner-p4-projects@FreeBSD.ORG Fri Jul 7 16:19:21 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6278E16A4E1; Fri, 7 Jul 2006 16:19:21 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2506316A4DF for ; Fri, 7 Jul 2006 16:19:21 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEB3C43D55 for ; Fri, 7 Jul 2006 16:19:20 +0000 (GMT) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k67GJKUx035603 for ; Fri, 7 Jul 2006 16:19:20 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k67GJKw8035600 for perforce@freebsd.org; Fri, 7 Jul 2006 16:19:20 GMT (envelope-from gonzo@FreeBSD.org) Date: Fri, 7 Jul 2006 16:19:20 GMT Message-Id: <200607071619.k67GJKw8035600@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 100896 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 16:19:21 -0000 http://perforce.freebsd.org/chv.cgi?CH=100896 Change 100896 by gonzo@gonzo_hq on 2006/07/07 16:18:43 o platform-dependent flags moved from kern.mk to Makefile.mips. o MIPS_LITTLE_ENDIAN make option presented to build little endian kernel. o propagate endianess/arch flags to hack.So as well. o Make KSEG0_START+0x100000 be the start of the .text segment. Affected files ... .. //depot/projects/mips2/src/sys/conf/Makefile.mips#4 edit .. //depot/projects/mips2/src/sys/conf/kern.mk#5 edit Differences ... ==== //depot/projects/mips2/src/sys/conf/Makefile.mips#4 (text+ko) ==== @@ -36,7 +36,16 @@ # # XXXMIPS: Without it, you'll be bombed by warnings. # -CFLAGS+=-fno-pic +ARCH_FLAGS=-march=mips3 +CFLAGS+=-fno-pic $(ARCH_FLAGS) +SYSTEM_LD+= -Ttext 0x80100000 +HACK_EXTRA_FLAGS+=-fno-pic $(ARCH_FLAGS) + +.if defined(MIPS_LITTLE_ENDIAN) +CFLAGS+=-EL +SYSTEM_LD+=-EL +HACK_EXTRA_FLAGS+=-EL -Wl,-EL +.endif %BEFORE_DEPEND ==== //depot/projects/mips2/src/sys/conf/kern.mk#5 (text+ko) ==== @@ -86,7 +86,7 @@ # We also force a non-PIC kernel to be built (-mno-abicalls). # .if ${MACHINE_ARCH} == "mips" -CFLAGS+= -msoft-float -mno-abicalls -mips32 +CFLAGS+= -msoft-float -mno-abicalls # XXX for debugging the build #CFLAGS+= -save-temps INLINE_LIMIT?= 15000