m20lte: rootdir: Move to blueprint
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: I24cc754bc0d2780c9ca8e7ae8a8ff3d93f8ac546
diff --git a/rootdir/Android.bp b/rootdir/Android.bp
new file mode 100644
index 0000000..2753f4f
--- /dev/null
+++ b/rootdir/Android.bp
@@ -0,0 +1,20 @@
+prebuilt_etc {
+ name: "fstab.exynos7904",
+ required: ["fstab.ramdisk"],
+ src: "etc/fstab.exynos7904",
+ vendor: true,
+}
+
+prebuilt_etc {
+ name: "init.target.rc",
+ src: "etc/init.target.rc",
+ relative_install_path: "init",
+ vendor: true,
+}
+
+prebuilt_etc {
+ name: "init.baseband.rc",
+ src: "etc/init.baseband.rc",
+ relative_install_path: "init",
+ vendor: true,
+}
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index beb8bbd..292a93a 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -1,15 +1,6 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_MODULE := fstab.exynos7904
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
-LOCAL_REQUIRED_MODULES := fstab.ramdisk
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
LOCAL_MODULE := fstab.ramdisk
LOCAL_MODULE_STEM := fstab.exynos7904
LOCAL_MODULE_TAGS := optional
@@ -17,20 +8,3 @@
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE_STEM)
LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT)
include $(BUILD_PREBUILT)
-
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.target.rc
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.baseband.rc
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
-LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
-include $(BUILD_PREBUILT)