Refactor the parsing of OSDK crate types

This commit is contained in:
Zhang Junyang
2025-02-09 17:53:02 +08:00
committed by Tate, Hongliang Tian
parent fecf766771
commit 32a6025819
11 changed files with 131 additions and 101 deletions

View File

@ -17,7 +17,7 @@ use crate::{
bin::{AsterBin, AsterBinType, AsterBzImageMeta, AsterElfMeta},
file::BundleFile,
},
util::{get_current_crate_info, hard_link_or_copy},
util::{get_current_crates, hard_link_or_copy},
};
pub fn make_install_bzimage(
@ -27,7 +27,7 @@ pub fn make_install_bzimage(
linux_x86_legacy_boot: bool,
encoding: PayloadEncoding,
) -> AsterBin {
let target_name = get_current_crate_info().name;
let target_name = get_current_crates().remove(0).name;
let image_type = if linux_x86_legacy_boot {
BzImageType::Legacy32
} else {