Move dauntless settings to gs-common

Bug: 242479757
Test: build pass on all Gchip devices
Change-Id: I888eaee83c6045b4535bca23082ab1ce75e0dfc8
This commit is contained in:
Adam Shih 2022-08-30 11:45:33 +08:00
parent 867a00f2fb
commit 02836452b1
3 changed files with 6 additions and 8 deletions

View file

@ -588,7 +588,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
# Titan-M # Titan-M
ifeq (,$(filter true, $(BOARD_WITHOUT_DTLS))) ifeq (,$(filter true, $(BOARD_WITHOUT_DTLS)))
include hardware/google/pixel/dauntless/dauntless.mk include device/google/gs-common/dauntless/gsc.mk
endif endif
# Copy Camera HFD Setfiles # Copy Camera HFD Setfiles

View file

@ -266,7 +266,7 @@ DumpstateDevice::DumpstateDevice()
{ "aoc", [this](int fd) { dumpAoCSection(fd); } }, { "aoc", [this](int fd) { dumpAoCSection(fd); } },
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } }, { "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
{ "misc", [this](int fd) { dumpMiscSection(fd); } }, { "misc", [this](int fd) { dumpMiscSection(fd); } },
{ "gsc", [this](int fd) { dumpGscSection(fd); } }, { "dump", [this](int fd) { dumpSection(fd); } },
{ "camera", [this](int fd) { dumpCameraSection(fd); } }, { "camera", [this](int fd) { dumpCameraSection(fd); } },
{ "trusty", [this](int fd) { dumpTrustySection(fd); } }, { "trusty", [this](int fd) { dumpTrustySection(fd); } },
{ "modem", [this](int fd) { dumpModemSection(fd); } }, { "modem", [this](int fd) { dumpModemSection(fd); } },
@ -1056,11 +1056,9 @@ void DumpstateDevice::dumpMiscSection(int fd) {
DumpFileToFd(fd, "VENDOR PROC DUMP", "/proc/vendor_sched/dump_task"); DumpFileToFd(fd, "VENDOR PROC DUMP", "/proc/vendor_sched/dump_task");
} }
// Dump items related to GSC // Dump scripts under vendor/bin/dump
void DumpstateDevice::dumpGscSection(int fd) { void DumpstateDevice::dumpSection(int fd) {
RunCommandToFd(fd, "Citadel VERSION", {"vendor/bin/hw/citadel_updater", "-lv"}); RunCommandToFd(fd, "dump", {"/vendor/bin/dump/dump_gsc.sh"});
RunCommandToFd(fd, "Citadel STATS", {"vendor/bin/hw/citadel_updater", "--stats"});
RunCommandToFd(fd, "GSC DEBUG DUMP", {"vendor/bin/hw/citadel_updater", "-D"});
} }
// Dump essential camera debugging logs // Dump essential camera debugging logs

View file

@ -76,7 +76,7 @@ struct DumpstateDevice : public IDumpstateDevice {
void dumpAoCSection(int fd); void dumpAoCSection(int fd);
void dumpRamdumpSection(int fd); void dumpRamdumpSection(int fd);
void dumpMiscSection(int fd); void dumpMiscSection(int fd);
void dumpGscSection(int fd); void dumpSection(int fd);
void dumpCameraSection(int fd); void dumpCameraSection(int fd);
void dumpTrustySection(int fd); void dumpTrustySection(int fd);
void dumpModemSection(int fd); void dumpModemSection(int fd);