You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
722 B
28 lines
722 B
4 months ago
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
#include <optional>
|
||
|
|
||
|
#include "common/libs/utils/environment.h"
|
||
|
#include "host/libs/config/cuttlefish_config.h"
|
||
|
#include "host/libs/config/fetcher_config.h"
|
||
|
|
||
|
namespace cuttlefish {
|
||
|
|
||
|
struct KernelConfig {
|
||
|
Arch target_arch;
|
||
|
bool bootconfig_supported;
|
||
|
};
|
||
|
|
||
|
bool ParseCommandLineFlags(int* argc, char*** argv,
|
||
|
KernelConfig* kernel_config);
|
||
|
// Must be called after ParseCommandLineFlags.
|
||
|
CuttlefishConfig InitializeCuttlefishConfiguration(
|
||
|
const std::string& instance_dir, int modem_simulator_count,
|
||
|
KernelConfig kernel_config);
|
||
|
|
||
|
std::string GetConfigFilePath(const CuttlefishConfig& config);
|
||
|
std::string GetCuttlefishEnvPath();
|
||
|
|
||
|
} // namespace cuttlefish
|