0ed948780c
This uses the common U-Boot support lib (sys/boot/uboot, already used on FreeBSD/powerpc), and assumes the underlying firmware has the modern API for stand-alone apps enabled in the config (CONFIG_API). Only netbooting is supported at the moment. Obtained from: Marvell, Semihalf
42 lines
959 B
Makefile
42 lines
959 B
Makefile
# $FreeBSD$
|
|
|
|
SRCS+= boot.c commands.c console.c devopen.c interp.c
|
|
SRCS+= interp_backslash.c interp_parse.c ls.c misc.c
|
|
SRCS+= module.c panic.c
|
|
|
|
.if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "amd64"
|
|
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
|
SRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c
|
|
.elif ${MACHINE} == "pc98"
|
|
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
|
.elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
|
|
SRCS+= load_elf32.c reloc_elf32.c
|
|
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64"
|
|
SRCS+= load_elf64.c reloc_elf64.c
|
|
.endif
|
|
|
|
.if defined(LOADER_NET_SUPPORT)
|
|
SRCS+= dev_net.c
|
|
.endif
|
|
|
|
.if defined(HAVE_BCACHE)
|
|
SRCS+= bcache.c
|
|
.endif
|
|
|
|
# Machine-independant ISA PnP
|
|
.if defined(HAVE_ISABUS)
|
|
SRCS+= isapnp.c
|
|
.endif
|
|
.if defined(HAVE_PNP)
|
|
SRCS+= pnp.c
|
|
.endif
|
|
|
|
# Forth interpreter
|
|
.if defined(BOOT_FORTH)
|
|
SRCS+= interp_forth.c
|
|
MAN+= ../forth/loader.conf.5
|
|
MAN+= ../forth/loader.4th.8
|
|
.endif
|
|
|
|
MAN+= loader.8
|