Date: Mon, 18 Oct 1999 22:15:40 +0200 (CEST) From: Wilko Bulte <wilko@yedi.iaf.nl> To: freebsd-alpha@freebsd.org (FreeBSD-alpha mailing list) Subject: Makefiles in alpha boot source Message-ID: <199910182016.WAA02837@yedi.iaf.nl>
index | next in thread | raw e-mail
It seems I'm doing something very wrong, but I fail to see what.
In my attempts to hack netbooting I need to build netboot from the
sources (surprise). Netboot is not built by default:
# $FreeBSD: src/sys/boot/alpha/Makefile,v 1.5 1999/09/09 01:28:26 mjacob Exp
$
SUBDIR= libalpha
SUBDIR+= boot1 loader cdboot
.include <bsd.subdir.mk>
The problem is that a make in the netboot subdirectory produces .o files
in that directory, whereas (e.g.) cdboot puts it's .o files in /usr/obj
The subsequent 'ld' has problems linking things in because it looks in
the wrong place (see below).
From looking at the respective makefiles I fail to understand why this
happens. It's probably a .include or so hiding deep below. But where??
Appreciate any help here,
Wilko
============
In netboot:
alpine#make
ld -o netboot.sym -M -e start -N -Ttext 0x20000000 start.o setdef0.o main.o
conf.o dev_net.o bcache.o boot.o commands.o console.o devopen.o interp.o
interp_backslash.o interp_parse.o load_aout.o load_elf.o ls.o misc.o
module.o panic.o setdef1.o vers.o -lstand
/usr/src/sys/boot/alpha/netboot/../libalpha/libalpha.a -lstand
>/usr/src/sys/boot/alpha/netboot/netboot.list
/usr/libexec/elf/ld: cannot open
/usr/src/sys/boot/alpha/netboot/../libalpha/libalpha.a: No such file or
directory
*** Error code 1
Stop in /usr/src/sys/boot/alpha/netboot.
alpine#cat Makefile
# $NetBSD: Makefile,v 1.12 1998/02/19 14:18:36 drochner Exp $
BASE= netboot
PROG= ${BASE}
NOMAN=
NEWVERSWHAT= "SRM net boot" alpha
LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
CFLAGS+= -DLOADER_NET_SUPPORT
.include <${.CURDIR}/../common/Makefile.common>
alpine#
-------------------
In cdboot:
ld -o cdboot.sym -M -e start -N -Ttext 0x20000000 start.o setdef0.o main.o
conf.o bcache.o boot.o commands.o console.o devopen.o interp.o
interp_backslash.o interp_parse.o load_aout.o load_elf.o ls.o misc.o
module.o panic.o setdef1.o vers.o -lstand
/usr/obj/usr/src/sys/boot/alpha/cdboot/../libalpha/libalpha.a -lstand
>/usr/obj/usr/src/sys/boot/alpha/cdboot/cdboot.list
objcopy -O binary cdboot.sym cdboot
alpine#
# $FreeBSD: src/sys/boot/alpha/cdboot/Makefile,v 1.3 1999/09/03
19:42:14 m
smith Exp $
BASE= cdboot
PROG= ${BASE}
NOMAN=
NEWVERSWHAT= "SRM CD9660 boot" alpha
LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
CFLAGS+= -DLOADER_CDROM_SUPPORT
.include <${.CURDIR}/../common/Makefile.common>
--
| / o / / _ Arnhem, The Netherlands - Powered by FreeBSD -
|/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910182016.WAA02837>
