Fix EFI loader object tree creation on 9.x build hosts
authoremaste <emaste@FreeBSD.org>
Thu, 10 Apr 2014 16:53:21 +0000 (16:53 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 10 Apr 2014 16:53:21 +0000 (16:53 +0000)
commit5374d691aa5a1201f5cd5886b9bd49d5fc9809a5
tree14da7f293b04ede9bcf05d99d5d581508b82dc0e
parentbc9e83bd99832f56ccff013498c1ef4f5ddaec20
Fix EFI loader object tree creation on 9.x build hosts

Previously ${COMPILER_TYPE} was checked in sys/boot/amd64, and the efi
subdirectory was skipped altogether for gcc (since GCC does not support
a required attribute).  However, during the early buildworld stages
${COMPILER_TYPE} is the existing system compiler (i.e., gcc on 9.x build
hosts), not the compiler that will eventually be used.  This caused
"make obj" to skip the efi subdirectory.  In later build stages
${COMPILER_TYPE} is "clang", and then the efi loader would attempt to
build in the source directory.

Sponsored by: The FreeBSD Foundation
sys/boot/amd64/Makefile
sys/boot/amd64/efi/Makefile