blob: 63abe50e9f5026de41928b8cced54da91c8e5bfe [file] [log] [blame] [edit]
#pragma once
#include <fruit/fruit.h>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
#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 GetKernelConfigAndSetDefaults(KernelConfig* kernel_config);
// Must be called after ParseCommandLineFlags.
CuttlefishConfig InitializeCuttlefishConfiguration(
const std::string& instance_dir, int modem_simulator_count,
KernelConfig kernel_config, fruit::Injector<>& injector);
std::string GetConfigFilePath(const CuttlefishConfig& config);
std::string GetCuttlefishEnvPath();
} // namespace cuttlefish