diff options
author | kevans <kevans@FreeBSD.org> | 2018-02-12 01:08:44 +0000 |
---|---|---|
committer | kevans <kevans@FreeBSD.org> | 2018-02-12 01:08:44 +0000 |
commit | 7d97ee5b28b409c00bfaf12daf5ab497a6038b9d (patch) | |
tree | 245306b754606bcf49c0ff17b131b58609b6c7a6 /stand/i386/pxeldr/Makefile | |
parent | 43b278e1b66cf4de337a17034087ea785031bd6f (diff) | |
download | FreeBSD-src-7d97ee5b28b409c00bfaf12daf5ab497a6038b9d.zip FreeBSD-src-7d97ee5b28b409c00bfaf12daf5ab497a6038b9d.tar.gz |
MFC r325834,r325997,326502: Move sys/boot to stand/
This is effectively a direct commit to stable/11, due to differences between
stable/11 and head. Changes to DTS in sys/boot/fdt/dts were often
accompanied by kernel changes. Many of these were also risc-v updates that
likely had many more dependencies to MFC.
Because of this, sys/boot/fdt/dts remains as-is while everything else in
sys/boot relocates to stand/.
r325834: Move sys/boot to stand. Fix all references to new location
r325997: Remove empty directories.
r326502: Document the sys/boot -> stand move in hier.7 and the top-level README.
Diffstat (limited to 'stand/i386/pxeldr/Makefile')
-rw-r--r-- | stand/i386/pxeldr/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/stand/i386/pxeldr/Makefile b/stand/i386/pxeldr/Makefile new file mode 100644 index 0000000..819283c --- /dev/null +++ b/stand/i386/pxeldr/Makefile @@ -0,0 +1,47 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +PROG= ${LDR} +INTERNALPROG= +FILES= ${BOOT} +MAN= ${BOOT}.8 +SRCS= ${LDR}.S +CLEANFILES+= ${BOOT} + +BOOT= pxeboot +LDR= pxeldr +ORG= 0x7c00 +LOADER= loader + +.if defined(BOOT_PXELDR_PROBE_KEYBOARD) +CFLAGS+=-DPROBE_KEYBOARD +.endif + +.if defined(BOOT_PXELDR_ALWAYS_SERIAL) +CFLAGS+=-DALWAYS_SERIAL +.endif + +CFLAGS+=-I${BOOTSRC}/i386/common + +LOADERBIN= ${BOOTOBJ}/i386/loader/loader.bin + +CLEANFILES+= ${BOOT}.tmp + +${BOOT}: ${LDR} ${LOADER} + cat ${LDR} ${LOADER} > ${.TARGET}.tmp + ${DD} if=${.TARGET}.tmp of=${.TARGET} obs=2k conv=osync + rm ${.TARGET}.tmp + +LDFLAGS+=${LDFLAGS_BIN} + +CLEANFILES+= ${LOADER} + +${LOADER}: ${LOADERBIN} ${BTXLDR} ${BTXKERN} + btxld -v -f aout -e ${LOADER_ADDRESS} -o ${.TARGET} -l ${BTXLDR} \ + -b ${BTXKERN} ${LOADERBIN} + +.include <bsd.prog.mk> + +# XXX: clang integrated-as doesn't grok .codeNN directives yet +CFLAGS.pxeldr.S= ${CLANG_NO_IAS} |