summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTom Cherry2018-06-20 14:29:59 -0500
committerTom Cherry2018-06-20 14:29:59 -0500
commitf567367584aaa8eb5f3b701e0548876de1cad2d0 (patch)
treec7efafa6420fcacdd50ca0bbe9cab277a7750454 /init
parent28a3160c077446719fe9c95e0a0730689e8e44ad (diff)
downloadplatform-system-core-f567367584aaa8eb5f3b701e0548876de1cad2d0.tar.gz
platform-system-core-f567367584aaa8eb5f3b701e0548876de1cad2d0.tar.xz
platform-system-core-f567367584aaa8eb5f3b701e0548876de1cad2d0.zip
init: dummy host_init_verifier for mac
Let's start by fixing the build, then see how possible this will be to do fully. Bug: 110477913 Test: n/a Change-Id: If52e15bd070781a405c5494631ede033c1067903
Diffstat (limited to 'init')
-rw-r--r--init/Android.bp52
-rw-r--r--init/mac_init_verifier.cpp19
2 files changed, 46 insertions, 25 deletions
diff --git a/init/Android.bp b/init/Android.bp
index 7d863c884..41def212b 100644
--- a/init/Android.bp
+++ b/init/Android.bp
@@ -227,39 +227,41 @@ cc_binary {
227 "liblog", 227 "liblog",
228 "libcutils", 228 "libcutils",
229 ], 229 ],
230 srcs: [
231 "action.cpp",
232 "action_manager.cpp",
233 "action_parser.cpp",
234 "capabilities.cpp",
235 "descriptors.cpp",
236 "epoll.cpp",
237 "keychords.cpp",
238 "import_parser.cpp",
239 "host_import_parser.cpp",
240 "host_init_verifier.cpp",
241 "host_init_stubs.cpp",
242 "parser.cpp",
243 "rlimit_parser.cpp",
244 "tokenizer.cpp",
245 "service.cpp",
246 "subcontext.cpp",
247 "subcontext.proto",
248 "util.cpp",
249 ],
250 proto: { 230 proto: {
251 type: "lite", 231 type: "lite",
252 }, 232 },
253 generated_headers: [
254 "generated_stub_builtin_function_map",
255 "generated_android_ids"
256 ],
257 target: { 233 target: {
234 linux: {
235 srcs: [
236 "action.cpp",
237 "action_manager.cpp",
238 "action_parser.cpp",
239 "capabilities.cpp",
240 "descriptors.cpp",
241 "epoll.cpp",
242 "keychords.cpp",
243 "import_parser.cpp",
244 "host_import_parser.cpp",
245 "host_init_verifier.cpp",
246 "host_init_stubs.cpp",
247 "parser.cpp",
248 "rlimit_parser.cpp",
249 "tokenizer.cpp",
250 "service.cpp",
251 "subcontext.cpp",
252 "subcontext.proto",
253 "util.cpp",
254 ],
255 generated_headers: [
256 "generated_stub_builtin_function_map",
257 "generated_android_ids",
258 ],
259 },
258 android: { 260 android: {
259 enabled: false, 261 enabled: false,
260 }, 262 },
261 darwin: { 263 darwin: {
262 enabled: false, 264 srcs: ["mac_init_verifier.cpp"],
263 }, 265 },
264 }, 266 },
265} 267}
diff --git a/init/mac_init_verifier.cpp b/init/mac_init_verifier.cpp
new file mode 100644
index 000000000..646509e1e
--- /dev/null
+++ b/init/mac_init_verifier.cpp
@@ -0,0 +1,19 @@
1//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17int main() {
18 return 0;
19}