Commit Graph

6 Commits

Author SHA1 Message Date
SGCMarkus
f3a1d17d3a topaz: gpt-utils: Check for full partiton name instead of partial prefix
Check for full partition name instead of partial prefix to
avoid matching with wrong partitions

Based on: fa259f46c2

Change-Id: I49d8837dc3f407b2c2a944735a25779bb6afb1c6
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-11-13 02:19:42 +07:00
Luofan Chen
82e835adc1 topaz: gpt-utils: Check ufs device first before checking partition names
Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-11-13 02:19:42 +07:00
LuK1337
b1aa81eb85 topaz: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-11-13 02:19:41 +07:00
LuK1337
9522f2ab60 topaz: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   asm/byteorder.h will cause a warning due to
   unused static functions.

Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-11-13 02:19:41 +07:00
Tao Bao
6f77fa6570 topaz: 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
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-11-13 02:19:41 +07:00
chandu078
c6c30e277f topaz: Import bootctrl and gpt-utils from LA.VENDOR.1.0.r1-21900-WAIPIO.0
* Build update engine
* Adapt to libgptutils.bengal

Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
Change-Id: I2500045efcbfa6fb8496279bcc5c5abe365eb064
2023-11-13 02:19:41 +07:00