defaults: ["computestats-defaults"],
srcs: ["computestatsf.c"],
}
+
+sh_binary_host {
+ name: "app-launcher",
+ src: "app-launcher",
+ required: [
+ "computestats",
+ "computestatsf",
+ ],
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+}
+++ /dev/null
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := app-launcher
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_SRC_FILES := app-launcher
-LOCAL_MODULE_HOST_OS := linux
-LOCAL_REQUIRED_MODULES := computestats computestatsf
-include $(BUILD_PREBUILT)
+++ /dev/null
-# Copyright (C) 2017 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_PATH := $(call my-dir)
-
-# Include the sub-makefiles
-include $(call all-makefiles-under,$(LOCAL_PATH))
--- /dev/null
+// Copyright (C) 2017 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.
+//
+//
+
+android_test {
+ name: "StressFS",
+ srcs: ["src/**/*.java"],
+
+ sdk_version: "current",
+
+ optimize: {
+ proguard_flags_files: ["proguard.flags"],
+ },
+}
+++ /dev/null
-# Copyright (C) 2017 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_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_PACKAGE_NAME := StressFS
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_MODULE_TAGS := tests
-LOCAL_SDK_VERSION := current
-
-LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-
-include $(BUILD_PACKAGE)
--- /dev/null
+//
+// 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.
+//
+
+cc_defaults {
+ name: "bootio_defaults",
+
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wextra",
+ ],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "liblog",
+ "libprotobuf-cpp-lite",
+ ],
+}
+
+// bootio library
+// -----------------------------------------------------------------------------
+
+cc_library_shared {
+ name: "libbootio",
+ defaults: ["bootio_defaults"],
+
+ include_dirs: ["system/extras/boottime_tools"],
+
+ export_include_dirs: ["."],
+ proto: {
+ canonical_path_from_root: false,
+ type: "lite",
+ },
+ srcs: [
+ "protos.proto",
+ "bootio_collector.cpp",
+ ],
+}
+
+// bootio binary
+// -----------------------------------------------------------------------------
+
+cc_binary {
+ name: "bootio",
+ defaults: ["bootio_defaults"],
+ shared_libs: ["libbootio"],
+
+ init_rc: ["bootio.rc"],
+ srcs: ["bootio.cpp"],
+}
+++ /dev/null
-#
-# 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_PATH := $(call my-dir)
-
-bootio_lib_src_files := \
- protos.proto \
- bootio_collector.cpp \
-
-bootio_src_files := \
- bootio.cpp \
-
-bootio_shared_libs := \
- libbase \
- libcutils \
- liblog \
- libprotobuf-cpp-lite \
-
-bootio_cflags := \
- -Wall \
- -Werror \
- -Wextra \
-
-define bootio_proto_include
-$(call local-generated-sources-dir)/proto/$(LOCAL_PATH)
-endef
-
-# bootio static library
-# -----------------------------------------------------------------------------
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libbootio
-LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(call bootio_proto_include) \
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-LOCAL_CFLAGS := $(bootio_cflags)
-LOCAL_SHARED_LIBRARIES := $(bootio_shared_libs)
-LOCAL_PROTOC_OPTIMIZE_TYPE := lite
-LOCAL_SRC_FILES := $(bootio_lib_src_files)
-
-include $(BUILD_SHARED_LIBRARY)
-
-
-# bootio binary
-# -----------------------------------------------------------------------------
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := bootio
-LOCAL_CFLAGS := $(bootio_cflags)
-LOCAL_SHARED_LIBRARIES := \
- $(bootio_shared_libs) \
- libbootio \
-
-LOCAL_INIT_RC := bootio.rc
-LOCAL_SRC_FILES := $(bootio_src_files)
-
-include $(BUILD_EXECUTABLE)
],
}
-cc_prebuilt_binary {
+sh_binary {
name: "mkf2fsuserimg.sh",
- srcs: ["mkf2fsuserimg.sh"],
+ src: "mkf2fsuserimg.sh",
required: ["make_f2fs", "sload_f2fs"],
host_supported: true,
}
--- /dev/null
+sh_binary_host {
+ name: "ioblame",
+ src: "ioblame.sh",
+ filename_from_src: true,
+}
+++ /dev/null
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_PREBUILT_EXECUTABLES := ioblame.sh
-include $(BUILD_HOST_PREBUILT)
--- /dev/null
+//
+// Copyright (C) 2015 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.
+//
+
+sh_binary {
+ name: "postinst_example",
+ src: "postinst.sh",
+}
+++ /dev/null
-#
-# Copyright (C) 2015 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_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE:= postinst_example
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_SRC_FILES := postinst.sh
-include $(BUILD_PREBUILT)
target: {
host: {
- cflags: ["-Wall", "-Werror", "-D_GNU_SOURCE", "-DSQUASHFS_NO_KLOG"]
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-D_GNU_SOURCE",
+ "-DSQUASHFS_NO_KLOG",
+ ],
},
},
+}
+sh_binary_host {
+ name: "mksquashfsimage.sh",
+ src: "mksquashfsimage.sh",
}
+++ /dev/null
-# Copyright 2015 The Android Open Source Project
-
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := mksquashfsimage.sh
-LOCAL_SRC_FILES := mksquashfsimage.sh
-LOCAL_MODULE_CLASS := EXECUTABLES
-# We don't need any additional suffix.
-LOCAL_MODULE_SUFFIX :=
-LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_HOST_OS := linux darwin
-include $(BUILD_PREBUILT)
"libverity_tree",
],
}
+
+// VeritySigner should probably just be a java_binary
+sh_binary_host {
+ name: "verity_signer",
+ src: "verity_signer",
+ required: ["VeritySigner"],
+}
+
+// BootSignature should probably just be a java_binary
+sh_binary_host {
+ name: "boot_signer",
+ src: "boot_signer",
+ required: ["BootSignature"],
+}
+
+// This should probably be a python_binary_host
+sh_binary_host {
+ name: "build_verity_metadata.py",
+ src: "build_verity_metadata.py",
+}
+++ /dev/null
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_SRC_FILES := verity_signer
-LOCAL_MODULE := verity_signer
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_TAGS := optional
-LOCAL_REQUIRED_MODULES := VeritySigner
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_SRC_FILES := boot_signer
-LOCAL_MODULE := boot_signer
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_TAGS := optional
-LOCAL_REQUIRED_MODULES := BootSignature
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := build_verity_metadata.py
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_SRC_FILES := build_verity_metadata.py
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_TAGS := optional
-include $(BUILD_PREBUILT)