Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Makefile: add make minimal #1673

Merged
merged 1 commit into from
Jul 22, 2023
Merged

Conversation

AkihiroSuda
Copy link
Member

No description provided.

@AkihiroSuda AkihiroSuda added this to the v0.17.0 milestone Jul 21, 2023
@AkihiroSuda AkihiroSuda force-pushed the make-minimal branch 2 times, most recently from 8a5f2d6 to 976e599 Compare July 21, 2023 08:10
Copy link
Member

@afbjorklund afbjorklund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it include the lima wrapper as well ?

@AkihiroSuda
Copy link
Member Author

Should it include the lima wrapper as well ?

No, it should be just minimal

@afbjorklund
Copy link
Member

I consider it to be (minimal), but I don't know what this will be used for

@AkihiroSuda
Copy link
Member Author

I consider it to be (minimal), but I don't know what this will be used for

For local testing I don't want to compile guestagents for non-native archs

@afbjorklund
Copy link
Member

afbjorklund commented Jul 21, 2023

I found doing something similar for qemu to be useful (for a new project).

i.e. building a custom qemu, with only the targets that are used by lima

@jandubois
Copy link
Member

I found doing something similar for qemu to be useful (for a new project).

Do you have that code in a repo somewhere? It might be useful for the lima-and-qemu repo used by Rancher Desktop (and possibly by finch; they do run a fork of it).

Bonus question, since this just came up on lima-and-qemu: is it possible to cross-compile qemu for aarch64 on amd64 (for Linux)? (because Github still don't have aarch64 runners).

@afbjorklund
Copy link
Member

Do you have that code in a repo somewhere?

It was more of a configure line for the qemu build, and I didn't do any work of packaging the result up either...

Just thinking it could be alternative to the default build in for instance brew, which weighs in at a gigabyte or so

But yeah, adding a "qemu-lima" repo could be done

@afbjorklund
Copy link
Member

afbjorklund commented Jul 21, 2023

s it possible to cross-compile qemu for aarch64 on amd64 (for Linux)?

I think it should be enough to set the compilers, i.e. CC and CXX, with the arch

aarch64-linux-gnu-gcc

aarch64-linux-gnu-g++

Can't see any special other mentions on : https://cblfs.clfs.org/index.php/QEMU

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants