pmt: fix all build issues etc (ndk)

This commit is contained in:
2024-10-03 22:00:12 +03:00
parent ee7b44b484
commit f88e9b013e
4 changed files with 28 additions and 21 deletions

View File

@@ -15,7 +15,7 @@
# limitations under the License.
########
# 2.9.0
# 2.9.1
########
LOCAL_PATH := $(call my-dir)
@@ -32,7 +32,7 @@ PMT_CXXFLAGS = \
-Wno-nullability-extension \
-Wno-reorder-init-list \
-Wno-gnu-zero-variadic-macro-arguments \
-D__NDK_BUILD \
-static \
$(PMT_EXTRA_CXXFLAGS)
E2FSPROGS_DEFAULT_CFLAGS = \
-Werror \
@@ -258,6 +258,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := libext2_quota
LOCAL_SRC_FILES := \
$(LIBEXT2_QUOTA)/devname.c \
$(LIBEXT2_QUOTA)/dict.c \
$(LIBEXT2_QUOTA)/mkquota.c \
$(LIBEXT2_QUOTA)/parse_qtype.c \
@@ -340,8 +341,5 @@ LOCAL_STATIC_LIBRARIES := \
libext2_quota \
libext2_misc \
libext2_com_err
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils
include $(BUILD_EXECUTABLE)

View File

@@ -15,7 +15,7 @@
# limitations under the License.
########
# 2.9.0
# 2.9.1
########
# architecture
@@ -23,9 +23,8 @@ APP_ABI := \
arm64-v8a \
armeabi-v7a
APP_PLATFORM := android-21
APP_PLATFORM := android-29
APP_OPTIM := release
APP_STL := c++_static
APP_ALLOW_MISSING_DEPS := true
# end

View File

@@ -265,7 +265,11 @@ int Functions::Start(ushort_t progress_code)
/* generate mke2fs argument list */
VLOGD("PartitionManager: generating mke2fs argument list...\n");
char bsize[25] = "";
#ifdef __LP64__
sprintf(bsize, "%lu", file_sys_inf.f_bsize);
#else
sprintf(bsize, "%u", file_sys_inf.f_bsize);
#endif
char* arguments[] = {
"mke2fs-static",
"-Fq",