Fix build of stand/usb .MFC after: 1 weekSponsored by: Mellanox Technologies
Distinguish between "no partition" and "choose best partition" with a constant.The values of the d_slice and d_partition fields of a disk_devdesc have afew values with special meanings in the disk
Distinguish between "no partition" and "choose best partition" with a constant.The values of the d_slice and d_partition fields of a disk_devdesc have afew values with special meanings in the disk_open() routine. Through variousevolutions of the loader code over time, a d_partition value of -1 hasmeant both "use the first ufs partition found in the bsd label" and "don'topen a bsd partition at all, open the raw slice."This defines a new special value of -2 to mean open the raw slice, and itgives symbolic names to all the special values used in d_slice andd_partition, and adjusts all existing uses of those fields to use the newconstants.The phab review for this timed out without being accepted, but I'm stillciting it below because there is useful commentary there.Differential Revision: https://reviews.freebsd.org/D19262
show more ...
Move the stand/usb test loader into its own directory.Fix its Makefile to build correctly.MFC after: 1 weekSponsored by: Mellanox Technologies
Fix relative location of USB sources after recent move.MFC after: 1 weekSponsored by: Mellanox Technologies
Centralize several variables.MK_CTF, MK_SSP, MK_PROFILE, NO_PIC, and INTERNALLIB are always thesame, so set them in defs.mk. MAN= is common, so set it here too.This removes a lot of boring repeti
Centralize several variables.MK_CTF, MK_SSP, MK_PROFILE, NO_PIC, and INTERNALLIB are always thesame, so set them in defs.mk. MAN= is common, so set it here too.This removes a lot of boring repetition from the Makefiles that addedalmost no value.
Move some more common stuff up to Makefile.inc. In particular, the nosimd / no float stuff is centeralized here. Also centralise-ffreestanding since it is specified everywhere.This, along with a
Move some more common stuff up to Makefile.inc. In particular, the nosimd / no float stuff is centeralized here. Also centralise-ffreestanding since it is specified everywhere.This, along with a change to share/mk/bsd.cpu.mk to include -mno-avx2in CFLAGS_NO_SIMD should fix building for newer machines (eg withCPUTYPE=haswell) where clang was generating avx2 instructions.Sponsored by: Netflix
Move sys/boot to stand. Fix all references to new locationSponsored by: Netflix