summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14f4887)
raw | patch | inline | side by side (parent: 14f4887)
author | Jassi Brar <jaswinder.singh@linaro.org> | |
Sun, 29 Jul 2018 07:06:38 +0000 (12:36 +0530) | ||
committer | Jerome Forissier <jerome.forissier@linaro.org> | |
Tue, 4 Sep 2018 15:14:08 +0000 (17:14 +0200) |
Trying to specify Android build location outside of souce directory's
default 'out' using OUT_DIR_COMMON_BASE env variable, results in the
following error
"....
build/core/binary.mk:1480: error: external/optee_test/Android.mk:
xtest: C_INCLUDES must be under the source or output directories:
"
Fix the error by moving host_include/ from LOCAL_C_INCLUDES to LOCAL_CFLAGS
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Tested-by: Victor Chong <victor.chong@linaro.org> (hikey620)
Acked-by: Victor Chong <victor.chong@linaro.org>
[jf: wrap commit text]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
default 'out' using OUT_DIR_COMMON_BASE env variable, results in the
following error
"....
build/core/binary.mk:1480: error: external/optee_test/Android.mk:
xtest: C_INCLUDES must be under the source or output directories:
"
Fix the error by moving host_include/ from LOCAL_C_INCLUDES to LOCAL_CFLAGS
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Tested-by: Victor Chong <victor.chong@linaro.org> (hikey620)
Acked-by: Victor Chong <victor.chong@linaro.org>
[jf: wrap commit text]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Android.mk | patch | blob | history |
diff --git a/Android.mk b/Android.mk
index 086f500d9718d51aa6b3391e52d42248cd63848f..e371cf8b2ff52433419a14bd4833dbe5146f2ee1 100644 (file)
--- a/Android.mk
+++ b/Android.mk
LOCAL_C_INCLUDES += $(LOCAL_PATH)/host/xtest \
$(LOCAL_PATH)/host/xtest/adbg/include\
$(LOCAL_PATH)/host/xtest/xml/include \
- $(TA_DEV_KIT_DIR)/host_include \
$(LOCAL_PATH)/ta/concurrent/include \
$(LOCAL_PATH)/ta/concurrent_large/include \
$(LOCAL_PATH)/ta/create_fail_test/include \
$(LOCAL_PATH)/ta/sdp_basic/include
# Include configuration file generated by OP-TEE OS (CFG_* macros)
-LOCAL_CFLAGS += -include conf.h
+LOCAL_CFLAGS += -I $(TA_DEV_KIT_DIR)/host_include -include conf.h
LOCAL_CFLAGS += -pthread
LOCAL_CFLAGS += -g3
LOCAL_CFLAGS += -Wno-missing-field-initializers -Wno-format-zero-length