Commit Graph

9 Commits

Author SHA1 Message Date
Pranav Vashi
c9fd367cb8 gpt-utils: Update AB_PTN_LIST
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-10-19 11:59:16 +05:30
LuK1337
630fd3d763 bootctrl: Add android.hardware.boot@1.1-impl-qti back
This will be used for devices that don't support BSG.

Change-Id: I382a4e1116420442091591d4055840fd71cb891c
2022-06-28 17:27:20 +02:00
Siddeswar Aluganti
4a9dff139c gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
2022-06-28 15:54:24 +02:00
LuK1337
128227ffce gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2022-06-28 15:54:23 +02:00
LuK1337
0a767f1022 gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
2022-06-28 15:54:23 +02:00
LuK1337
f15ccf5b2d 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
2022-06-28 15:54:22 +02:00
Tao Bao
48bc51ae3f 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
2022-06-28 15:54:22 +02:00
LuK1337
e215489e8d gpt-utils: Use generated_kernel_headers
Change-Id: Id56f1c0603ff13b5d64eb4db33807ac13dcdd619
2022-06-28 15:54:21 +02:00
Alexander Koskovich
10a69ad8f9 Import gpt-utils from LA.UM.9.14.r1-19800.01-LAHAINA.QSSI12.0
Change-Id: I92baccc0524f88dcb439095288ac75fbc1401ae7
2022-06-28 15:54:21 +02:00