Commit graph

7 commits

Author SHA1 Message Date
Luofan Chen
3e2b958b27 sm8450-common: gpt-utils: Check ufs device first before checking partition names
Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
2024-03-19 23:22:37 +01:00
Tao Bao
fefc40993e sm8450-common: gpt-utils: Address the warnings
[ 11% 2/18] target  C++: libgptutils <= device/google/crosshatch/gpt-utils/gpt-utils.cpp
In file included from device/google/crosshatch/gpt-utils/gpt-utils.cpp:54:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
 ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
    struct stat ufs_dir_stat;
                ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
        int r, fd;
            ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
        int r, fd;
               ^
4 warnings generated.

Test: lunch blueline-userdebug && m -j libgptutils
Change-Id: Idd9174276d8a5b7b77c2ec48c745a78184f65fcf
2024-03-19 23:22:37 +01:00
Cosmin Tanislav
a5180020d9 sm8450-common: gpt-utils: Add product, system_ext and vendor_dlkm to AB_PTN_LIST
Change-Id: I6ea37a2a08b8508131a00fefda73db2bead8d50d
2024-03-19 21:59:58 +01:00
Cosmin Tanislav
8696d273da sm8450-common: gpt-utils: Add vbmeta_system to PTN_SWAP_LIST
Change-Id: Ifee886ac5b62e7b1816775dc388b423000801d00
2024-03-19 21:59:58 +01:00
LuK1337
4dee922adc sm8450-common: gpt-utils: Fix build errors.
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2024-03-19 21:59:58 +01:00
LuK1337
4ca9839edd sm8450-common: gpt-utils: Drop unnecessary includes.
* When using generated_kernel_headers including
   asm/byteorder.h will cause a warning due to
   unused static functions.

 * When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
2024-03-19 21:59:58 +01:00
Arian
c4670a2a21 sm8450-common: Add bootctrl and import gpt-utils from LA.VENDOR.1.0.r2-07900-WAIPIO.QSSI13.0
Change-Id: I29aeee0348fbcf111bbdf232ac171106f4cb92bd
2024-03-19 21:59:58 +01:00