Lines Matching refs:BUILD
5 # This Makefile normally builds in a 'build' subdir, but use
7 # make BUILD=<dir>
38 # We should only run pwd once, not every time we refer to ${BUILD}.
41 BUILD = ${SRCDIR}/build
42 export BUILD
72 TEST_INSTALL_DIR = ${BUILD}/install_for_test
192 COV_INFO = ${BUILD}/coverage.info
226 # Path to build output for running tests is same as for building
227 BUILD_RUN = ${BUILD}
231 # Path to build output for running tests is different in the chroot
232 BUILD_RUN = $(subst ${SYSROOT},,${BUILD})
245 # Now we need to describe everything we might want or need to build
263 # coreboot, etc.). It doesn't need exporting to some other place; they'll build
265 FWLIB = ${BUILD}/vboot_fw.a
270 FWLIB2X = ${BUILD}/vboot_fw2x.a
273 FWLIB20 = ${BUILD}/vboot_fw20.a
275 FWLIB21 = ${BUILD}/vboot_fw21.a
384 VBINIT_OBJS = ${VBINIT_SRCS:%.c=${BUILD}/%.o}
385 VBSF_OBJS = ${VBSF_SRCS:%.c=${BUILD}/%.o}
388 FWLIB_OBJS = ${FWLIB_SRCS:%.c=${BUILD}/%.o}
389 FWLIB2X_OBJS = ${FWLIB2X_SRCS:%.c=${BUILD}/%.o}
390 FWLIB20_OBJS = ${FWLIB20_SRCS:%.c=${BUILD}/%.o}
391 FWLIB21_OBJS = ${FWLIB21_SRCS:%.c=${BUILD}/%.o}
395 UTILLIB = ${BUILD}/libvboot_util.a
396 UTILLIB21 = ${BUILD}/libvboot_util21.a
419 UTILLIB_OBJS = ${UTILLIB_SRCS:%.c=${BUILD}/%.o}
429 UTILLIB21_OBJS = ${UTILLIB21_SRCS:%.c=${BUILD}/%.o}
434 HOSTLIB = ${BUILD}/libvboot_host.a
461 HOSTLIB_OBJS = ${HOSTLIB_SRCS:%.c=${BUILD}/%.o}
466 # few functions, so let's just build those.
467 TINYHOSTLIB = ${BUILD}/libtinyvboot_host.a
485 TINYHOSTLIB_OBJS = ${TINYHOSTLIB_SRCS:%.c=${BUILD}/%.o}
490 CGPT = ${BUILD}/cgpt/cgpt
513 CGPT_OBJS = ${CGPT_SRCS:%.c=${BUILD}/%.o}
517 CGPT_WRAPPER = ${BUILD}/cgpt/cgpt_wrapper
523 CGPT_WRAPPER_OBJS = ${CGPT_WRAPPER_SRCS:%.c=${BUILD}/%.o}
528 UTIL_DEFAULTS = ${BUILD}/default/vboot_reference
563 UTIL_BINS_STATIC := $(addprefix ${BUILD}/,${UTIL_NAMES_STATIC})
564 UTIL_BINS = $(addprefix ${BUILD}/,${UTIL_NAMES})
585 FUTIL_BIN = ${BUILD}/futility/futility
623 FUTIL_STATIC_CMD_LIST = ${BUILD}/gen/futility_static_cmds.c
624 FUTIL_CMD_LIST = ${BUILD}/gen/futility_cmds.c
629 FUTIL_STATIC_OBJS = ${FUTIL_STATIC_SRCS:%.c=${BUILD}/%.o} \
630 ${FUTIL_STATIC_WORKAROUND_SRCS:%.c=${BUILD}/%.o} \
632 FUTIL_OBJS = ${FUTIL_SRCS:%.c=${BUILD}/%.o} ${FUTIL_CMD_LIST:%.c=%.o}
642 TESTLIB = ${BUILD}/tests/test.a
649 TESTLIB_OBJS = ${TESTLIB_SRCS:%.c=${BUILD}/%.o}
740 TEST_BINS = $(addprefix ${BUILD}/,${TEST_NAMES})
743 TEST2X_BINS = $(addprefix ${BUILD}/,${TEST2X_NAMES})
744 TEST20_BINS = $(addprefix ${BUILD}/,${TEST20_NAMES})
745 TEST21_BINS = $(addprefix ${BUILD}/,${TEST21_NAMES})
759 $(shell [ -d ${BUILD}/${d} ] || mkdir -p ${BUILD}/${d}))
774 ${Q}/bin/rm -rf ${BUILD}
844 ${BUILD}/firmware/linktest/main_vbinit: ${VBINIT_OBJS}
845 ${BUILD}/firmware/linktest/main_vbinit: OBJS = ${VBINIT_OBJS}
846 TEST_OBJS += ${BUILD}/firmware/linktest/main_vbinit.o
847 ${BUILD}/firmware/linktest/main_vbsf: ${VBSF_OBJS}
848 ${BUILD}/firmware/linktest/main_vbsf: OBJS = ${VBSF_OBJS}
849 TEST_OBJS += ${BUILD}/firmware/linktest/main_vbsf.o
850 ${BUILD}/firmware/linktest/main: ${FWLIB}
851 ${BUILD}/firmware/linktest/main: LIBS = ${FWLIB}
852 TEST_OBJS += ${BUILD}/firmware/linktest/main.o
856 ${BUILD}/firmware/linktest/main_vbinit \
857 ${BUILD}/firmware/linktest/main_vbsf \
858 ${BUILD}/firmware/linktest/main
864 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
866 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
873 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
875 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
882 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
884 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
891 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
893 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
900 ${BUILD}/host/linktest/main: ${UTILLIB}
901 ${BUILD}/host/linktest/main: LIBS = ${UTILLIB}
902 TEST_OBJS += ${BUILD}/host/linktest/main.o
906 ${BUILD}/host/linktest/main
910 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
912 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
920 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
922 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
927 ${BUILD}/host/linktest/extern: ${HOSTLIB}
928 ${BUILD}/host/linktest/extern: LIBS = ${HOSTLIB}
929 ${BUILD}/host/linktest/extern: LDLIBS += -static
930 TEST_OBJS += ${BUILD}/host/linktest/extern.o
934 ${BUILD}/host/linktest/extern
938 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
940 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
950 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
952 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
962 @$(PRINTF) " LD $(subst ${BUILD}/,,$@)\n"
971 @${PRINTF} " LDcgpt $(subst ${BUILD}/,,$@)\n"
993 ${BUILD}/utility/%: INCLUDES += -Iutility/include
1004 ${Q}cp -f ${UTIL_SCRIPTS} ${BUILD}/utility
1005 ${Q}chmod a+rx $(patsubst %,${BUILD}/%,${UTIL_SCRIPTS})
1031 @${PRINTF} " LD $(subst ${BUILD}/,,$@)\n"
1036 @${PRINTF} " LD $(subst ${BUILD}/,,$@)\n"
1050 ${BUILD}/utility/tlcl_generator: CFLAGS += -fpack-struct
1052 STRUCTURES_TMP=${BUILD}/tlcl_structures.tmp
1056 update_tlcl_structures: ${BUILD}/utility/tlcl_generator
1058 ${Q}${BUILD}/utility/tlcl_generator > ${STRUCTURES_TMP}
1085 @${PRINTF} " RM $(subst ${BUILD}/,,$@)\n"
1087 @${PRINTF} " AR $(subst ${BUILD}/,,$@)\n"
1092 # Generic build rules. LIBS and OBJS can be overridden to tweak the generic
1095 ${BUILD}/%: ${BUILD}/%.o ${OBJS} ${LIBS}
1096 @${PRINTF} " LD $(subst ${BUILD}/,,$@)\n"
1099 ${BUILD}/%.o: %.c
1100 @${PRINTF} " CC $(subst ${BUILD}/,,$@)\n"
1103 ${BUILD}/%.o: ${BUILD}/%.c
1104 @${PRINTF} " CC $(subst ${BUILD}/,,$@)\n"
1109 ${BUILD}/%_for_lib.o: CFLAGS += -DFOR_LIBRARY
1110 ${BUILD}/%_for_lib.o: %.c
1111 @${PRINTF} " CC-for-lib $(subst ${BUILD}/,,$@)\n"
1114 ${BUILD}/%_for_test.o: CFLAGS += -DFOR_TEST
1115 ${BUILD}/%_for_test.o: %.c
1116 @${PRINTF} " CC-for-test $(subst ${BUILD}/,,$@)\n"
1120 ${BUILD}/%.o: %.cc
1121 @${PRINTF} " CXX $(subst ${BUILD}/,,$@)\n"
1130 @${PRINTF} " CREATE $(subst ${BUILD}/,,$@)\n"
1140 ${BUILD}/utility/dumpRSAPublicKey: LDLIBS += ${CRYPTO_LIBS}
1141 ${BUILD}/utility/pad_digest_utility: LDLIBS += ${CRYPTO_LIBS}
1142 ${BUILD}/utility/signature_digest_utility: LDLIBS += ${CRYPTO_LIBS}
1144 ${BUILD}/host/linktest/main: LDLIBS += ${CRYPTO_LIBS}
1145 ${BUILD}/tests/vboot_common2_tests: LDLIBS += ${CRYPTO_LIBS}
1146 ${BUILD}/tests/vboot_common3_tests: LDLIBS += ${CRYPTO_LIBS}
1147 ${BUILD}/tests/vb20_common2_tests: LDLIBS += ${CRYPTO_LIBS}
1148 ${BUILD}/tests/vb20_common3_tests: LDLIBS += ${CRYPTO_LIBS}
1149 ${BUILD}/tests/verify_kernel: LDLIBS += ${CRYPTO_LIBS}
1156 ${BUILD}/utility/bmpblk_utility: LD = ${CXX}
1157 ${BUILD}/utility/bmpblk_utility: LDLIBS = ${LZMA_LIBS} ${YAML_LIBS}
1160 ${BUILD}/utility/bmpblk_util.o \
1161 ${BUILD}/utility/image_types.o \
1162 ${BUILD}/utility/eficompress_for_lib.o \
1163 ${BUILD}/utility/efidecompress_for_lib.o
1165 ${BUILD}/utility/bmpblk_utility: OBJS = ${BMPBLK_UTILITY_DEPS}
1166 ${BUILD}/utility/bmpblk_utility: ${BMPBLK_UTILITY_DEPS}
1169 ${BUILD}/utility/bmpblk_font: OBJS += ${BUILD}/utility/image_types.o
1170 ${BUILD}/utility/bmpblk_font: ${BUILD}/utility/image_types.o
1171 ALL_OBJS += ${BUILD}/utility/image_types.o
1174 ${BUILD}/tests/%: CFLAGS += -Xlinker --allow-multiple-definition
1175 ${BUILD}/tests/%: LDLIBS += -lrt -luuid
1176 ${BUILD}/tests/%: LIBS += ${TESTLIB}
1178 ${BUILD}/tests/rollback_index2_tests: OBJS += \
1179 ${BUILD}/firmware/lib/rollback_index_for_test.o
1180 ${BUILD}/tests/rollback_index2_tests: \
1181 ${BUILD}/firmware/lib/rollback_index_for_test.o
1182 TEST_OBJS += ${BUILD}/firmware/lib/rollback_index_for_test.o
1184 ${BUILD}/tests/tlcl_tests: OBJS += \
1185 ${BUILD}/firmware/lib/tpm_lite/tlcl_for_test.o
1186 ${BUILD}/tests/tlcl_tests: \
1187 ${BUILD}/firmware/lib/tpm_lite/tlcl_for_test.o
1188 TEST_OBJS += ${BUILD}/firmware/lib/tpm_lite/tlcl_for_test.o
1190 ${BUILD}/tests/vboot_audio_tests: OBJS += \
1191 ${BUILD}/firmware/lib/vboot_audio_for_test.o
1192 ${BUILD}/tests/vboot_audio_tests: \
1193 ${BUILD}/firmware/lib/vboot_audio_for_test.o
1194 TEST_OBJS += ${BUILD}/firmware/lib/vboot_audio_for_test.o
1196 TLCL_TEST_BINS = $(addprefix ${BUILD}/,${TLCL_TEST_NAMES})
1197 ${TLCL_TEST_BINS}: OBJS += ${BUILD}/tests/tpm_lite/tlcl_tests.o
1198 ${TLCL_TEST_BINS}: ${BUILD}/tests/tpm_lite/tlcl_tests.o
1199 TEST_OBJS += ${BUILD}/tests/tpm_lite/tlcl_tests.o
1209 @${PRINTF} " GEN $(subst ${BUILD}/,,$@)\n"
1211 ${Q}mkdir -p ${BUILD}/gen
1258 ${Q}cp -fu /usr/bin/${QEMU_BIN} ${BUILD}/${QEMU_BIN}
1259 ${Q}chmod a+rx ${BUILD}/${QEMU_BIN}
1354 # Not run by automated build.
1383 genhtml ${COV_INFO}.local -o ${BUILD}/coverage
1394 $(error Build coverage like this: make clean && COV=1 make)
1410 ${BUILD}/cscope.files: test_setup
1417 cmd_etags = etags -o ${BUILD}/TAGS $(shell cat ${BUILD}/cscope.files)
1418 cmd_ctags = ctags -o ${BUILD}/tags $(shell cat ${BUILD}/cscope.files)
1422 tags TAGS xrefs: ${BUILD}/cscope.files
1423 ${Q}\rm -f ${BUILD}/tags ${BUILD}/TAGS
1427 PC_FILES = ${PC_IN_FILES:%.pc.in=${BUILD}/%.pc}