Changeset View
Changeset View
Standalone View
Standalone View
stand/powerpc/ofw/Makefile
Show All 19 Lines | |||||
SRCS= conf.c vers.c main.c elf_freebsd.c ppc64_elf_freebsd.c start.c | SRCS= conf.c vers.c main.c elf_freebsd.c ppc64_elf_freebsd.c start.c | ||||
SRCS+= ucmpdi2.c | SRCS+= ucmpdi2.c | ||||
.include "${BOOTSRC}/fdt.mk" | .include "${BOOTSRC}/fdt.mk" | ||||
.if ${MK_FDT} == "yes" | .if ${MK_FDT} == "yes" | ||||
SRCS+= ofwfdt.c | SRCS+= ofwfdt.c | ||||
.endif | .endif | ||||
.if ${MACHINE_ARCH} == "powerpc64" | |||||
SRCS+= cas.c | |||||
CFLAGS+= -DCAS | |||||
.endif | |||||
HELP_FILES= ${FDTSRC}/help.fdt | HELP_FILES= ${FDTSRC}/help.fdt | ||||
# Always add MI sources | # Always add MI sources | ||||
.include "${BOOTSRC}/loader.mk" | .include "${BOOTSRC}/loader.mk" | ||||
.PATH: ${SYSDIR}/libkern | .PATH: ${SYSDIR}/libkern | ||||
# load address. set in linker script | # load address. set in linker script | ||||
RELOC?= 0x1C00000 | RELOC?= 0x1C00000 | ||||
CFLAGS+= -DRELOC=${RELOC} | CFLAGS+= -DRELOC=${RELOC} -g | ||||
jhibbits: do we need debugging enabled unconditionally? | |||||
Done Inline ActionsYes, we do. Other parts of stand already do this. The loader is stripped before being installed, so that all debug info is removed. But without this, loader.full was inconsistent during debugging: some parts of it had debugging symbols, while others had not. luporl: Yes, we do. Other parts of stand already do this.
The loader is stripped before being… | |||||
LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc | LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc | ||||
# Open Firmware standalone support library | # Open Firmware standalone support library | ||||
LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a | LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a | ||||
CFLAGS+= -I${BOOTSRC}/ofw/libofw | CFLAGS+= -I${BOOTSRC}/ofw/libofw | ||||
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} | DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} | ||||
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} | LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |
do we need debugging enabled unconditionally?