Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/i386/gptboot/Makefile
Show All 39 Lines | |||||
CFLAGS.gcc+= --param max-inline-insns-single=100 | CFLAGS.gcc+= --param max-inline-insns-single=100 | ||||
.if !defined(LOADER_NO_GELI_SUPPORT) | .if !defined(LOADER_NO_GELI_SUPPORT) | ||||
CFLAGS+= -DLOADER_GELI_SUPPORT | CFLAGS+= -DLOADER_GELI_SUPPORT | ||||
CFLAGS+= -I${.CURDIR}/../../geli | CFLAGS+= -I${.CURDIR}/../../geli | ||||
LIBGELIBOOT= ${.OBJDIR}/../../geli/libgeliboot.a | LIBGELIBOOT= ${.OBJDIR}/../../geli/libgeliboot.a | ||||
.PATH: ${.CURDIR}/../../../opencrypto | .PATH: ${.CURDIR}/../../../opencrypto | ||||
OPENCRYPTO_XTS= xform_aes_xts.o | OPENCRYPTO_XTS= xform_aes_xts.o | ||||
LIBCRYPTOBOOT= ${.OBJDIR}/../../libcryptoboot/libcryptoboot.a | |||||
.endif | .endif | ||||
LD_FLAGS=-static -N --gc-sections | LD_FLAGS=-static -N --gc-sections | ||||
LIBSTAND= ${.OBJDIR}/../../libstand32/libstand.a | LIBSTAND= ${.OBJDIR}/../../libstand32/libstand.a | ||||
# Pick up ../Makefile.inc early. | # Pick up ../Makefile.inc early. | ||||
.include <bsd.init.mk> | .include <bsd.init.mk> | ||||
Show All 14 Lines | |||||
CLEANFILES+= gptboot.bin gptboot.out gptboot.o sio.o crc32.o drv.o \ | CLEANFILES+= gptboot.bin gptboot.out gptboot.o sio.o crc32.o drv.o \ | ||||
cons.o util.o ${OPENCRYPTO_XTS} | cons.o util.o ${OPENCRYPTO_XTS} | ||||
gptboot.bin: gptboot.out | gptboot.bin: gptboot.out | ||||
${OBJCOPY} -S -O binary gptboot.out ${.TARGET} | ${OBJCOPY} -S -O binary gptboot.out ${.TARGET} | ||||
gptboot.out: ${BTXCRT} gptboot.o sio.o crc32.o drv.o cons.o util.o ${OPENCRYPTO_XTS} | gptboot.out: ${BTXCRT} gptboot.o sio.o crc32.o drv.o cons.o util.o ${OPENCRYPTO_XTS} | ||||
${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC} ${LIBSTAND} ${LIBGELIBOOT} | ${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC} \ | ||||
${LIBGELIBOOT} ${LIBCRYPTOBOOT} ${LIBSTAND} | |||||
gptboot.o: ${.CURDIR}/../../common/ufsread.c | gptboot.o: ${.CURDIR}/../../common/ufsread.c | ||||
.if ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "amd64" | ||||
beforedepend gptboot.o: machine | beforedepend gptboot.o: machine | ||||
CLEANFILES+= machine | CLEANFILES+= machine | ||||
machine: .NOMETA | machine: .NOMETA | ||||
ln -sf ${.CURDIR}/../../../i386/include machine | ln -sf ${.CURDIR}/../../../i386/include machine | ||||
.endif | .endif | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> | ||||
# XXX: clang integrated-as doesn't grok .codeNN directives yet | # XXX: clang integrated-as doesn't grok .codeNN directives yet | ||||
CFLAGS.gptldr.S= ${CLANG_NO_IAS} | CFLAGS.gptldr.S= ${CLANG_NO_IAS} |