This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef CHIMERA_GFX_PS5_ALLOWED_FIRMWARE
|
||||
#error "The exact firmware build gate is required"
|
||||
#endif
|
||||
|
||||
#ifndef CHIMERA_GFX_LIFECYCLE_BUILD_ID
|
||||
#error "A deterministic lifecycle build ID is required"
|
||||
#endif
|
||||
|
||||
typedef struct notify_request {
|
||||
char reserved[45];
|
||||
char message[3075];
|
||||
} notify_request_t;
|
||||
|
||||
int sceKernelSendNotificationRequest(int device, notify_request_t *request,
|
||||
size_t size, int flags);
|
||||
|
||||
static notify_request_t request = {
|
||||
.message = "Chimera GFX lifecycle " CHIMERA_GFX_LIFECYCLE_BUILD_ID
|
||||
" fw " CHIMERA_GFX_PS5_ALLOWED_FIRMWARE};
|
||||
|
||||
int main(void) {
|
||||
const int result =
|
||||
sceKernelSendNotificationRequest(0, &request, sizeof(request), 0);
|
||||
|
||||
_exit(result == 0 ? 0 : 1);
|
||||
}
|
||||
Reference in New Issue
Block a user