Changeset View
Changeset View
Standalone View
Standalone View
stand/powerpc/ofw/Makefile
| Show All 22 Lines | |||||
| CFLAGS.gfx_fb.c += -I${SRCTOP}/contrib/pnglite | CFLAGS.gfx_fb.c += -I${SRCTOP}/contrib/pnglite | ||||
| CFLAGS.gfx_fb.c += -I${SRCTOP}/sys/teken | CFLAGS.gfx_fb.c += -I${SRCTOP}/sys/teken | ||||
| .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" | .if ${MACHINE_ARCH:Mpowerpc64*} != "" | ||||
| SRCS+= cas.c | SRCS+= cas.c | ||||
| CFLAGS+= -DCAS | CFLAGS+= -DCAS | ||||
| .endif | .endif | ||||
| .if ${MACHINE_ARCH} == "powerpc64le" | |||||
| SRCS+= trampolineLE.S | |||||
| .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} -g | CFLAGS+= -DRELOC=${RELOC} -g | ||||
| LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc | LDFLAGS= -nostdlib -static | ||||
| .if ${MACHINE_ARCH} == "powerpc64le" | |||||
| LDFLAGS+= -T ${.CURDIR}/ldscript.powerpcle | |||||
| .else | |||||
| LDFLAGS+= -T ${.CURDIR}/ldscript.powerpc | |||||
| .endif | |||||
| # Open Firmware standalone support library | # Open Firmware standalone support library | ||||
| LIBOFW= ${BOOTOBJ}/libofw/libofw.a | LIBOFW= ${BOOTOBJ}/libofw/libofw.a | ||||
| CFLAGS+= -I${BOOTSRC}/libofw | CFLAGS+= -I${BOOTSRC}/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} | ||||
| MK_PIE= no | MK_PIE= no | ||||
| .include <bsd.prog.mk> | .include <bsd.prog.mk> | ||||