1 /* 2 * Copyright (C) 2019 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 #pragma once 17 18 #include <string> 19 #include <vector> 20 21 namespace cuttlefish { 22 bool RepackBootImage(const std::string& new_kernel_path, 23 const std::string& boot_image_path, 24 const std::string& new_boot_image_path, 25 const std::string& tmp_artifact_dir); 26 bool RepackVendorBootImage(const std::string& new_ramdisk_path, 27 const std::string& vendor_boot_image_path, 28 const std::string& new_vendor_boot_image_path, 29 const std::string& unpack_dir, 30 const std::string& repack_dir, 31 const std::vector<std::string>& bootconfig_args, 32 bool bootconfig_supported); 33 bool RepackVendorBootImageWithEmptyRamdisk( 34 const std::string& vendor_boot_image_path, 35 const std::string& new_vendor_boot_image_path, 36 const std::string& unpack_dir, const std::string& repack_dir, 37 const std::vector<std::string>& bootconfig_args, bool bootconfig_supported); 38 } 39