Android-cuttlefish cvd tool
kernel_ramdisk_repacker.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <optional>
20#include <string>
21
26
27namespace cuttlefish {
28
30 public:
33 const BootImageFlag&);
34
35 std::string Name() const override;
37 Result<std::string> Path() const override;
38
39 private:
43 std::optional<std::string> path_;
44};
45
47 const CuttlefishConfig& config,
49
50} // namespace cuttlefish
Definition: boot_image.h:30
Definition: cuttlefish_config.h:252
Definition: cuttlefish_config.h:52
Definition: image_file.h:44
Definition: kernel_ramdisk_repacker.h:29
Result< std::string > Path() const override
Definition: kernel_ramdisk_repacker.cpp:142
std::string Name() const override
Definition: kernel_ramdisk_repacker.cpp:121
std::optional< std::string > path_
Definition: kernel_ramdisk_repacker.h:43
InstanceBootImage(const CuttlefishConfig &, const CuttlefishConfig::InstanceSpecific &, const BootImageFlag &)
Definition: kernel_ramdisk_repacker.cpp:104
const BootImageFlag * boot_image_flag_
Definition: kernel_ramdisk_repacker.h:42
const CuttlefishConfig::InstanceSpecific instance_
Definition: kernel_ramdisk_repacker.h:41
const CuttlefishConfig * config_
Definition: kernel_ramdisk_repacker.h:40
Result< std::string > Generate() override
Definition: kernel_ramdisk_repacker.cpp:123
Definition: alloc_driver.h:20
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Result< void > RepackKernelRamdisk(const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance)
Definition: kernel_ramdisk_repacker.cpp:147