aboutsummaryrefslogtreecommitdiff
path: root/messages
diff options
context:
space:
mode:
authorMattias Nissler <mnissler@google.com>2016-02-09 14:53:10 +0100
committerMattias Nissler <mnissler@google.com>2016-03-11 10:31:09 +0000
commit6627707d90429619b434df2fe7067d7ad523e537 (patch)
treec24032f83b5b2cd095fd5bdb97d857431ad8e317 /messages
parent088471151b7784cef5a8555e1f155454df106113 (diff)
downloadnvram-6627707d90429619b434df2fe7067d7ad523e537.tar.gz
Add make rules for Trusty.
This adds a rules.mk file which facilitates building the access-controlled NVRAM messages module within the trusty tree. BUG: 27194378 Change-Id: Iec6d01b5f05ba46cba6e0acfb16cf4592a5b2ca3
Diffstat (limited to 'messages')
-rw-r--r--messages/rules.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/messages/rules.mk b/messages/rules.mk
new file mode 100644
index 0000000..fb46aa3
--- /dev/null
+++ b/messages/rules.mk
@@ -0,0 +1,34 @@
+#
+# Copyright (C) 2016 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+
+MODULE := $(LOCAL_DIR)
+
+MODULE_SRCS := \
+ $(LOCAL_DIR)/blob.cpp \
+ $(LOCAL_DIR)/io.cpp \
+ $(LOCAL_DIR)/message_codec.cpp \
+ $(LOCAL_DIR)/nvram_messages.cpp
+
+MODULE_DEPS := \
+ lib/libc
+
+MODULE_CPPFLAGS := -Wall -Werror -Wextra -std=c++11
+
+GLOBAL_INCLUDES += $(LOCAL_DIR)/include/
+
+include make/module.mk