From owner-svn-src-all@FreeBSD.ORG Tue Jan 1 18:34:38 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82EC2A18; Tue, 1 Jan 2013 18:34:38 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by mx1.freebsd.org (Postfix) with ESMTP id 155358FC08; Tue, 1 Jan 2013 18:34:37 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id ta14so12260234obb.19 for ; Tue, 01 Jan 2013 10:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8KAVvu0mk/CrwoJl5rke+7qmD4TK8LGUghwqXYUGCc4=; b=ihGFcO/FcdGcp6i7xTmF733PDOfHdxWkrnPiwtWB0kROuiT8sYiOpWmLrL8ib8Uxb0 T+qjO0RmNbkt2N8qm5eLwG4t3YYVIQ7WXCsw75K0oVogKFOUj3+de7lAzu0mnqc5JjA8 rcOvz3O9ctNoCBYEM/qbuT724fuMvaSUeRb/YdTD68WXCIg6TVJY+WZxKu5Gin/RmIaZ Wf2zbsC+Hz/GtGrCGyquXxW8zZOxJWfE5jmTOUNwIFS+r72LpfmLHYOIWOMJ2e5V2ao/ c5gIWVSEhphEyyZHcbNeNmfpRgRgq1EfVDrRoZNWTjf+lTcjwb3qr+BqzuueyFTekelV ZanA== MIME-Version: 1.0 Received: by 10.60.172.178 with SMTP id bd18mr25446294oec.133.1357065271109; Tue, 01 Jan 2013 10:34:31 -0800 (PST) Received: by 10.76.143.33 with HTTP; Tue, 1 Jan 2013 10:34:30 -0800 (PST) In-Reply-To: <201212311106.qBVB6chM016661@svn.freebsd.org> References: <201212311106.qBVB6chM016661@svn.freebsd.org> Date: Tue, 1 Jan 2013 10:34:30 -0800 Message-ID: Subject: Re: svn commit: r244899 - head/sys/mips/beri From: Garrett Cooper To: Robert Watson Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 18:34:38 -0000 On Mon, Dec 31, 2012 at 3:06 AM, Robert Watson wrote: > Author: rwatson > Date: Mon Dec 31 11:06:37 2012 > New Revision: 244899 > URL: http://svnweb.freebsd.org/changeset/base/244899 > > Log: > If FDT is compiled into a FreeBSD/beri kernel, initialise OpenFirmware. > > Sponsored by: DARPA, AFRL This broke the mips:mips64 tinderbox: /obj/src/make.amd64/make -V CFILES_NOZFS -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/dev/ath -I/src/sys/dev/ath/ath_hal -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -I/src/sys/dev/cxgb -I/src/sys/dev/cxgbe -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=10000 --param large-function-growth=100000 --param max-inline-insns-single=10000 -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -msoft-float -ffreestanding In file included from /src/sys/dev/fdt/fdt_common.h:37, from /src/sys/mips/beri/beri_machdep.c:58: /src/sys/dev/ofw/ofw_bus.h:36:24: error: ofw_bus_if.h: No such file or directory mkdep: compile failed *** [.depend] Error code 1 The patch I committed to my git repo fixes that by adding ofw_bus_if.m to files.beri ( https://github.com/yaneurabeya/freebsd/commit/ac9221dc567c67822b6f61cadbfac3fc1e32df04 ). Thanks! -Garrett [gcooper@bayonetta /scratch/git/github/yaneurabeya-freebsd-head]$ make KERNCONF=BERI_DE4_MDROOT TARGET=mips TARGET_ARCH=mips64 buildkernel ... cc -shared -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -nostdlib hack.c -o hack.So rm -f hack.c sed s/KERNLOADADDR/0xffffffff80100000/g /scratch/git/github/yaneurabeya-freebsd-head/sys/conf/ldscript.mips > ldscript.mips MAKE=make sh /scratch/git/github/yaneurabeya-freebsd-head/sys/conf/newvers.sh BERI_DE4_MDROOT cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/scratch/git/github/yaneurabeya-freebsd-head/sys -I/scratch/git/github/yaneurabeya-freebsd-head/sys/contrib/altq -I/scratch/git/github/yaneurabeya-freebsd-head/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=10000 --param large-function-growth=100000 --param max-inline-insns-single=10000 -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -msoft-float -ffreestanding -Werror vers.c linking kernel.debug text data bss dec hex filename 4108957 8653440 283024 13045421 c70ead kernel.debug objcopy --only-keep-debug kernel.debug kernel.symbols objcopy --strip-debug --add-gnu-debuglink=kernel.symbols kernel.debug kernel objcopy --strip-symbol '$d' --strip-symbol '$a' -g --strip-symbol '$t' kernel.debug kernel.tmp sed -e s/0xffffffff80100000/0x807963c0/ -e s/" + SIZEOF_HEADERS"// ldscript.mips > ldscript.mips.tramp.noheader cc -O -nostdlib -I. -I/scratch/git/github/yaneurabeya-freebsd-head/sys -fno-pic -mno-abicalls -G0 -DKERNLOADADDR=0xffffffff80100000 -march=mips64 -mabi=64 -Xlinker -T -Xlinker ldscript.mips.tramp.noheader -DKERNNAME="\"kernel.tmp\"" -DELFSIZE=64 /scratch/git/github/yaneurabeya-freebsd-head/sys/mips/mips/elf_trampoline.c /scratch/git/github/yaneurabeya-freebsd-head/sys/mips/mips/inckern.S -o kernel.tramp.elf objcopy -S -O binary kernel.tramp.elf kernel.tramp.bin cd /scratch/git/github/yaneurabeya-freebsd-head/sys/modules; MAKEOBJDIRPREFIX=/usr/obj/mips.mips64/scratch/git/github/yaneurabeya-freebsd-head/sys/BERI_DE4_MDROOT/modules KMODDIR=/boot/kernel MACHINE_CPUARCH=mips MODULES_OVERRIDE="""" DEBUG_FLAGS="-g" MACHINE=mips MACHINE_ARCH=mips64 KERNBUILDDIR="/usr/obj/mips.mips64/scratch/git/github/yaneurabeya-freebsd-head/sys/BERI_DE4_MDROOT" SYSDIR="/scratch/git/github/yaneurabeya-freebsd-head/sys" make all -------------------------------------------------------------- >>> Kernel build for BERI_DE4_MDROOT completed on Tue Jan 1 10:31:25 PST 2013 --------------------------------------------------------------