From 5880a9887913a8889bef702d6043934e1b304bd7 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Tue, 10 Sep 2019 14:42:07 +0200 Subject: [PATCH] a7xelte: convert libinit to Android.bp * also rename it to avoid collisions while at it Change-Id: Ibdb0ddbd729201e1be9adc5566ca61a900be7aa4 # Conflicts: # init/init_a5xelte.cpp --- BoardConfig.mk | 2 +- init/Android.bp | 12 ++++++++++++ init/Android.mk | 14 -------------- init/{init_sec.cpp => init_a7xelte.cpp} | 4 ++-- 4 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 init/Android.bp delete mode 100644 init/Android.mk rename init/{init_sec.cpp => init_a7xelte.cpp} (97%) diff --git a/BoardConfig.mk b/BoardConfig.mk index 0ebad5d..5062bb2 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -36,7 +36,7 @@ BOARD_PROVIDES_LIBRIL := true BOARD_NEEDS_ROAMING_PROTOCOL_FIELD := true # Init -TARGET_INIT_VENDOR_LIB := libinit_sec +TARGET_INIT_VENDOR_LIB := libinit_a7xelte # Partitions BOARD_HAS_NO_MISC_PARTITION:= false diff --git a/init/Android.bp b/init/Android.bp new file mode 100644 index 0000000..6fffa1c --- /dev/null +++ b/init/Android.bp @@ -0,0 +1,12 @@ +cc_library_static { + name: "libinit_a7xelte", + recovery_available: true, + srcs: [ + "init_a7xelte.cpp", + ], + whole_static_libs: ["libbase"], + include_dirs: [ + "system/core/base/include", + "system/core/init", + ], +} \ No newline at end of file diff --git a/init/Android.mk b/init/Android.mk deleted file mode 100644 index ab4cf5d..0000000 --- a/init/Android.mk +++ /dev/null @@ -1,14 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := \ - system/core/base/include \ - system/core/init -LOCAL_CFLAGS := -Wall -DANDROID_TARGET=\"$(TARGET_BOARD_PLATFORM)\" -LOCAL_SRC_FILES := init_sec.cpp -LOCAL_MODULE := libinit_sec -LOCAL_STATIC_LIBRARIES += libbase - -include $(BUILD_STATIC_LIBRARY) diff --git a/init/init_sec.cpp b/init/init_a7xelte.cpp similarity index 97% rename from init/init_sec.cpp rename to init/init_a7xelte.cpp index a499964..800526c 100644 --- a/init/init_sec.cpp +++ b/init/init_a7xelte.cpp @@ -106,8 +106,8 @@ void vendor_load_properties() } else if (bootloader.find("A710Y") != std::string::npos) { /* SM-A710Y */ - property_override_dual("ro.build.fingerprint", "ro.vendor.build.fingerprint", "samsung/a7xeltedo/a7xelte:7.0/MMB29K/A710YZTU1BQK2:user/release-keys"); - property_override("ro.system.build.fingerprint", "samsung/a7xeltedo/a7xelte:7.0/MMB29K/A710YZTU1BQK2:user/release-keys"); + property_override_dual("ro.build.fingerprint", "ro.vendor.build.fingerprint", "samsung/a7xeltedo/a7xelte:6.0.1/MMB29K/A710YZTU1BQK2:user/release-keys"); + property_override("ro.system.build.fingerprint", "samsung/a7xeltedo/a7xelte:6.0.1/MMB29K/A710YZTU1BQK2:user/release-keys"); property_override("ro.build.description", "a7xeltedo-user 6.0.1 MMB29K A710YZTU1BQK2 release-keys"); property_override_dual("ro.product.model", "ro.vendor.product.model", "SM-A710Y"); property_override_dual("ro.product.device", "ro.vendor.product.device", "a7xeltedo"); -- 2.20.1