summaryrefslogtreecommitdiff
path: root/su
diff options
context:
space:
mode:
Diffstat (limited to 'su')
-rw-r--r--su/Android.bp21
-rw-r--r--su/Android.mk17
2 files changed, 21 insertions, 17 deletions
diff --git a/su/Android.bp b/su/Android.bp
new file mode 100644
index 00000000..2616e37c
--- /dev/null
+++ b/su/Android.bp
@@ -0,0 +1,21 @@
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["system_extras_su_license"],
+}
+
+license {
+ name: "system_extras_su_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "NOTICE",
+ ],
+}
+
+cc_binary {
+ name: "su",
+ srcs: ["su.cpp"],
+ header_libs: ["libcutils_headers"],
+}
diff --git a/su/Android.mk b/su/Android.mk
deleted file mode 100644
index 18493992..00000000
--- a/su/Android.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_CFLAGS := -Wall -Werror
-
-LOCAL_SRC_FILES:= su.cpp
-
-LOCAL_MODULE:= su
-LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0
-LOCAL_LICENSE_CONDITIONS:= notice
-LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/NOTICE
-
-LOCAL_HEADER_LIBRARIES := libcutils_headers
-
-LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
-
-include $(BUILD_EXECUTABLE)