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 #pragma once 17 18 #include <string> 19 20 namespace cuttlefish { 21 22 bool SplitRamdiskModules(const std::string& ramdisk_path, 23 const std::string& ramdisk_stage_dir, 24 const std::string& vendor_dlkm_build_dir); 25 26 bool WriteFsConfig(const char* output_path, const std::string& fs_root, 27 const std::string& mount_point); 28 29 bool GenerateFileContexts(const char* output_path, 30 const std::string& mount_point); 31 32 bool RepackSuperWithVendorDLKM(const std::string& superimg_path, 33 const std::string& vendor_dlkm_path); 34 35 bool BuildVendorDLKM(const std::string& src_dir, const bool is_erofs, 36 const std::string& output_image); 37 38 bool RebuildVbmetaVendor(const std::string& vendor_dlkm_img, 39 const std::string& vbmeta_path); 40 41 } // namespace cuttlefish 42