project-eve / zenbuild

Linuxkit based IoT Edge Operating System (Zenix)
https://www.zededa.com
Apache License 2.0
14 stars 7 forks source link

Enabling building aarch64 images (and running them) on x86 #45

Closed rvs closed 6 years ago

rvs commented 6 years ago

There's a few (exactly 3 TBH) places in this PR which I'm NOT at all proud of, but I don't know how to make them better AND I think we need to hook up aarch64 to CI/CD ASAP to prevent bitrot.

The biggest issue is that GRUB that is coming to us from CoreOS refuses to boot Xen on ARM. Grub that is upstream doesn't have all the useful GPT things like gptprio.next that we use. And hence I have to build both.

This is really an area for @gianlzed to figure out, but for now it works.

In fact, it works on my laptop so I can do: $ make ZARCH=aarch64 fallback_aarch64.img $ make ZARCH=aarch64 run

It also contains an ability to run the rootfs by itself which greatly speeds up my development cycle on ARM.