mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 07:25:10 -04:00
HELP_FILES is a loader only thing, so move it to loader.mk. Only
generate the help file if HELP_FILES is defined. Adjust Makefiles to
new convention. Fix a few cases where ${.CURDIR}/ was missing
resulting in missing bits from the help files.
Sponsored by: Netflix
47 lines
1 KiB
Makefile
47 lines
1 KiB
Makefile
# $FreeBSD$
|
|
|
|
LOADER_CD9660_SUPPORT?= yes
|
|
LOADER_MSDOS_SUPPORT?= no
|
|
LOADER_EXT2FS_SUPPORT?= yes
|
|
LOADER_UFS_SUPPORT?= yes
|
|
LOADER_NET_SUPPORT?= yes
|
|
LOADER_NFS_SUPPORT?= yes
|
|
LOADER_TFTP_SUPPORT?= no
|
|
LOADER_GZIP_SUPPORT?= yes
|
|
LOADER_BZIP2_SUPPORT?= no
|
|
|
|
.include <bsd.init.mk>
|
|
MK_SSP= no
|
|
MAN=
|
|
|
|
PROG= loader.kboot
|
|
NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH}
|
|
INSTALLFLAGS= -b
|
|
|
|
# Architecture-specific loader code
|
|
SRCS= conf.c metadata.c vers.c main.c ppc64_elf_freebsd.c
|
|
SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
|
|
SRCS+= ucmpdi2.c
|
|
|
|
.include "${BOOTSRC}/fdt.mk"
|
|
|
|
CFLAGS+= -mcpu=powerpc64
|
|
|
|
# Always add MI sources
|
|
.include "${BOOTSRC}/loader.mk"
|
|
.PATH: ${SYSDIR}/libkern
|
|
|
|
CFLAGS+= -Wall -DAIM
|
|
# load address. set in linker script
|
|
RELOC?= 0x0
|
|
CFLAGS+= -DRELOC=${RELOC}
|
|
|
|
LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
|
|
|
|
# 64-bit bridge extensions
|
|
CFLAGS+= -Wa,-mppc64bridge
|
|
|
|
DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
|
LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
|
|
|
.include <bsd.prog.mk>
|