summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-26 15:55:56 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-26 15:55:56 -0700
commit7593d47179ba4e426f48675da00bcc1ac64ac61e (patch)
tree07b022414688dad72224c7c37bbe5b2a602e5c6d
parentc759e5127aa582ac515ee1446da15f601b15a99a (diff)
downloadbootstub-7593d47179ba4e426f48675da00bcc1ac64ac61e.tar.gz
Use -Werror in hardware/intel/bootstubandroid-o-mr1-iot-preview-6o-mr1-iot-preview-6
Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I222823b9b258b0a1edc96c86eb54d941cb80487a
-rw-r--r--bootstub.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstub.mk b/bootstub.mk
index 97df35d..fca23e6 100644
--- a/bootstub.mk
+++ b/bootstub.mk
@@ -14,6 +14,7 @@ LOCAL_SRC_FILES := $(BOOTSTUB_SRC_FILES)
LOCAL_SRC_FILES_x86 := $(BOOTSTUB_SRC_FILES_x86)
ANDROID_TOOLCHAIN_FLAGS := -m32 -ffreestanding
LOCAL_CFLAGS := $(ANDROID_TOOLCHAIN_FLAGS) -Wall -O1 -DCMDLINE_SIZE=${CMDLINE_SIZE} -DAOSP_HEADER_ADDRESS=$(BOOTSTUB_AOSP_HEADER_ADDRESS) $(BOOTSTUB_CFLAGS)
+LOCAL_CFLAGS += -Werror
LOCAL_ASFLAGS := -DSTACK_OFFSET=$(BOOTSTUB_STACK_OFFSET)
LOCAL_C_INCLUDES = system/core/mkbootimg
LOCAL_MODULE := $(BOOTSTUB_BINARY).bin