Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
cvd-host.tar.gztools for various revisions of the Android Open Source Platform (AOSP)android-12.1.0_r*only provides an x86-64 version ofmkenvimagefor the Cuttlefish emulator even for aarch64 builds when cross-compiling on an x86-64 host.$ file ./device/google/cuttlefish_prebuilts/uboot_tools/mkenvimage ./device/google/cuttlefish_prebuilts/uboot_tools/mkenvimage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, not strippedThis can be remediated by statically compiling
mkenvimagefor aarch64 and providing it to thecvd-host.tar.gzpackage.The binary was statically compiled for source commit version
commit 7b79f5b573949b55c0c794ee971a57849ad6ec1c (HEAD, m/u-boot-mainline, aosp/u-boot-mainline)using theaarch64-linux-gnu-gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0compiler.After following the normal build instructions to create the object files, run the following command to link the objects together for
mkenvimageto build a static binary: