The main flatimage program.
More...
#include <elf.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "../std/expected.hpp"
#include "../lib/linux.hpp"
#include "../lib/env.hpp"
#include "../lib/log.hpp"
#include "../parser/executor.hpp"
#include "../config.hpp"
#include "relocate.hpp"
Go to the source code of this file.
|
|
| __attribute__ ((section(".fim_reserved_offset"), used)) uint32_t FIM_RESERVED_OFFSET=0 |
| |
| Value< int > | boot (int argc, char **argv) |
| | Boots the main flatimage program and the portal process.
|
| |
| void | set_logger_level (int argc, char **argv) |
| | Set the logger level.
|
| |
| int | main (int argc, char **argv) |
| | Entry point for the FlatImage program.
|
| |
The main flatimage program.
- Author
- Ruan Formigoni
- Copyright
- Copyright (c) 2025 Ruan Formigoni
Definition in file boot.cpp.
◆ boot()
| Value< int > boot |
( |
int | argc, |
|
|
char ** | argv ) |
|
nodiscard |
Boots the main flatimage program and the portal process.
- Parameters
-
| argc | Argument count |
| argv | Argument vector |
- Returns
- The return code of the process or an internal flatimage error '125'
Definition at line 40 of file boot.cpp.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Entry point for the FlatImage program.
- Parameters
-
| argc | Argument count |
| argv | Argument vector |
- Returns
- int Exit code (0 for success, non-zero for failure)
Definition at line 87 of file boot.cpp.
◆ set_logger_level()
| void set_logger_level |
( |
int | argc, |
|
|
char ** | argv ) |
Set the logger level.
- Parameters
-
| argc | Argument count |
| argv | Argument vector |
Definition at line 58 of file boot.cpp.