summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/Makefile3
-rw-r--r--firmware/stub/include/biosincludes.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index f23f1b9e..f56addbd 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# This Makefile is designed to be called from the top-level vboot_reference one
+
FWTOP := $(shell pwd)
LIBDIR = $(FWTOP)/lib
STUBDIR = $(FWTOP)/stub
@@ -12,6 +14,7 @@ LIBS = $(FWLIB) # Firmware library must be self-contained
# Disable rollback TPM when compiling locally, since otherwise
# load_kernel_test attempts to talk to the TPM.
ifeq ($(FIRMWARE_ARCH),)
+$(warning FIRMWARE_ARCH not defined, assuming local compile)
CFLAGS += -DDISABLE_ROLLBACK_TPM
endif
diff --git a/firmware/stub/include/biosincludes.h b/firmware/stub/include/biosincludes.h
index 1e610f8c..817edfd0 100644
--- a/firmware/stub/include/biosincludes.h
+++ b/firmware/stub/include/biosincludes.h
@@ -33,6 +33,10 @@ extern void debug(const char *format, ...);
#define POSSIBLY_UNUSED
#define INLINE
+#else
+
+#warning "No FIRMARE_ARCH defined and not TARGET_TEST_MODE"
+
#endif
#endif /*CHROMEOS_SRC_PLATFORM_VBOOT_REFERENCE_FIRMWARE_STUB_BIOSINCLUDES_H_*/