• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma once
2 
3 #include <cstdint>
4 #include <optional>
5 
6 #include "common/libs/utils/environment.h"
7 #include "host/libs/config/cuttlefish_config.h"
8 #include "host/libs/config/fetcher_config.h"
9 
10 namespace cuttlefish {
11 
12 struct KernelConfig {
13   Arch target_arch;
14   bool bootconfig_supported;
15 };
16 
17 bool ParseCommandLineFlags(int* argc, char*** argv,
18                            KernelConfig* kernel_config);
19 // Must be called after ParseCommandLineFlags.
20 CuttlefishConfig InitializeCuttlefishConfiguration(
21     const std::string& instance_dir, int modem_simulator_count,
22     KernelConfig kernel_config);
23 
24 std::string GetConfigFilePath(const CuttlefishConfig& config);
25 std::string GetCuttlefishEnvPath();
26 
27 } // namespace cuttlefish
28