From owner-freebsd-arch Wed Oct 31 19:36:31 2001 Delivered-To: freebsd-arch@freebsd.org Received: from p3.locore.ca (p3.locore.ca [198.96.117.171]) by hub.freebsd.org (Postfix) with ESMTP id BAEE937B401 for ; Wed, 31 Oct 2001 19:36:27 -0800 (PST) Received: (from jake@localhost) by p3.locore.ca (8.11.4/8.11.4) id fA13Xlq52110; Wed, 31 Oct 2001 22:33:47 -0500 (EST) (envelope-from jake) Date: Wed, 31 Oct 2001 22:33:47 -0500 From: Jake Burkholder To: Warner Losh Cc: arch@FreeBSD.ORG Subject: Re: Makefile unification Message-ID: <20011031223347.B45913@locore.ca> References: <200110300442.f9U4gM701469@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110300442.f9U4gM701469@harmony.village.org>; from imp@harmony.village.org on Mon, Oct 29, 2001 at 09:42:22PM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apparently, On Mon, Oct 29, 2001 at 09:42:22PM -0700, Warner Losh said words to the effect of; > > I took some time out to update my Makefiles and redo my kern.mk > patches that had gotten out of date before I could get them done. > These patches are up to date and appear to work for me on i386 (and > maybe pc98, it is building now): > > http://people.freebsd.org/~imp/Pkern > > It creates a new src/sys/conf/kern.mk that contains most of the guts > of the kernel makefiles to make it even easier to keep them all in > sync. > > Please let me know what you think and if I've broken anything, > especially for non x86 MACHINE_ARCH. > > Warner There are a couple problems in Makefile.sparc64: The first .include should be kern1.mk, not kern2.mk. The rule for exception.o needs to be after the include of kern2.mk or else "make" in the compile directory just builds exception.o instead of the whole kernel. I guess "make all" would work. -Wl,shared in HACK_EXTRA_FLAGS should be -Wl,-shared. btw, this is probably due to using a stock gcc cross compiler instead of the soon to be in tree tool chain; it doesn't DTRT for -shared apparently. I had to add FMT= (ie nothing) in Makefile.sparc64 so -elf isn't passed to the linker. This is also probably due to using a stock gcc; the linker takes -elf to be -e lf and tries to make "lf" be the entry point (which obviously doesn't exist). I've put the modified Makefile.sparc64 up here: http://people.freebsd.org/~jake/Makefile.sparc64 Other than that it seems to work fine. Thanks! Jake > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message