13 Commits

Author SHA1 Message Date
Michael Bestas
1fe55f06b8 payton: Switch to SPDX copyright & remove dates
Change-Id: I7c2e0ece0c8a4b50a008b956cac82ef9b1850617
2025-09-07 22:21:08 -03:00
Nolen Johnson
e8430e5ef8 payton: Import old hardware/qcom/bootctrl HAL
* Meh. Common one doesn't play nicely with oem-as-vendor
  even in passthrough configuration.
* Nash's forked QTI one bricks payton... Meh. IDC. This works.

Change-Id: I5dbe604e45df1de31b3f9db974d173a45cad53fe
2025-04-25 00:12:23 -04:00
Nolen Johnson
f6d22fdc33 Revert "payton: switch to common QCOM AIDL bootctrl HAL"
This reverts commit 580bb93520.

Reason for revert: Breaks oem-as-vendor setup.

Change-Id: I6210d60b702d2ac6700919f99707580fc3a7613b
2025-04-24 23:56:36 -04:00
Cosmin Tanislav
580bb93520 payton: switch to common QCOM AIDL bootctrl HAL
Change-Id: I04ab771d3b1c38b58913607fbff1bb3b55e1fe25
2025-03-28 06:41:13 +00:00
Nolen Johnson
9292901194 Revert "payton: gpt-utils: dto -> dtbo"
This reverts commit 934f5ec9b9.

Reason for revert: Legacy, dto is correct.

Change-Id: I519f81ae126dbd3b2fab5eb7dfa81b19a6512042
2023-09-06 00:56:28 +00:00
Nolen Johnson
934f5ec9b9 payton: gpt-utils: dto -> dtbo
Change-Id: I54851e6d42da1fbd13dca4e3a372a122ed43fc5d
2023-08-23 14:49:30 -04:00
Aayush Gupta
62b7141312 payton: gpt-utils: Drop include for stdio.h
Required macros are already defined in kernel now, and due to use of
generated_kernel_headers, these gives conflict when compiled, hence drop
this include and use kernel side declaration

Test: libgptutils.motorola_sdm660 compiles without any issues after this drop

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I3edb0826bbac1dc2919bbb049b1e8956d0e1a8d7
2021-01-06 21:27:53 -07:00
LuK1337
cec02e5202 payton: gpt-utils: Use generated_kernel_headers
Change-Id: Id56f1c0603ff13b5d64eb4db33807ac13dcdd619
2020-02-02 10:08:34 +03:30
Hridya Valsaraju
a6e2470250 payton: Build libgptutils with Android.bp
This is required to build bootctrl.sdm660 with Android.bp.

Bug: 78793464
Test: make

Change-Id: Iff4f50ad363cc003d60a5380addd79749b547514
2020-02-02 10:08:34 +03:30
Sivaram Vempati
18248c68ad payton: gpt-utils: Add debug messages and fix format warnings
Bug: 30125830
Change-Id: Ic0965f7b516fadf2dee9fcc494a5868a979ac61b
2020-02-02 10:08:34 +03:30
Tao Bao
155c9ff28a payton: 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
2020-02-02 10:08:34 +03:30
LuK1337
468398d4b2 payton: 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
2020-02-02 10:08:34 +03:30
mifl
9ee3c899e0 payton: move gpt-utils out of recovery dir
Change-Id: I6704d4467df99a6a23b127a721f037389f93daf1
Signed-off-by: mifl <mifl.pc@gmail.com>
2020-02-02 10:08:34 +03:30