Revert "mkbootimg: Build mkbootimg with Soong."
This reverts commit 51360fc3497004fddcc351460bb9a1b9ae6b9b6a.
Reason for revert: Triggered some crash in Soong.
Bug: 116698229
Change-Id: Iab4827fdadc65cbabb60aa07eeac7b33acea68a0
diff --git a/mkbootimg/Android.bp b/mkbootimg/Android.bp
index c3cf746..576a677 100644
--- a/mkbootimg/Android.bp
+++ b/mkbootimg/Android.bp
@@ -31,34 +31,3 @@
header_libs: ["libmkbootimg_abi_headers"],
export_header_lib_headers: ["libmkbootimg_abi_headers"],
}
-
-python_defaults {
- name: "mkbootimg_defaults",
-
- version: {
- py2: {
- enabled: true,
- embedded_launcher: true,
- },
- py3: {
- enabled: false,
- embedded_launcher: false,
- },
- },
-}
-
-python_binary_host {
- name: "mkbootimg",
- defaults: ["mkbootimg_defaults"],
- srcs: [
- "mkbootimg.py",
- ],
-}
-
-python_binary_host {
- name: "unpack_bootimg",
- defaults: ["mkbootimg_defaults"],
- srcs: [
- "unpack_bootimg.py",
- ],
-}
diff --git a/mkbootimg/Android.mk b/mkbootimg/Android.mk
new file mode 100644
index 0000000..92e1e27
--- /dev/null
+++ b/mkbootimg/Android.mk
@@ -0,0 +1,20 @@
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := mkbootimg
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_IS_HOST_MODULE := true
+
+LOCAL_MODULE := mkbootimg
+
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := unpack_bootimg
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_IS_HOST_MODULE := true
+
+LOCAL_MODULE := unpack_bootimg
+
+include $(BUILD_PREBUILT)
diff --git a/mkbootimg/mkbootimg.py b/mkbootimg/mkbootimg
old mode 100644
new mode 100755
similarity index 100%
rename from mkbootimg/mkbootimg.py
rename to mkbootimg/mkbootimg
diff --git a/mkbootimg/unpack_bootimg.py b/mkbootimg/unpack_bootimg
old mode 100644
new mode 100755
similarity index 100%
rename from mkbootimg/unpack_bootimg.py
rename to mkbootimg/unpack_bootimg