cross-compile for ARM#365
Conversation
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
|
LGTM, this minimizes needing an ARM host for building |
That's the idea. Was able to get Linux perf built (cross-compiled) but still considering options for the other tools, e.g., use QEMU or spin up an ARM VM on AWS or GCP. |
|
I'm going through the other tools, might not be too bad... dmidecode was pretty simple to cross-compile, something like echiugoog@5414e3e |
| mkdir -p bin | ||
| cp linux_perf/tools/perf/perf bin/ | ||
| strip --strip-unneeded bin/perf | ||
| -strip --strip-unneeded bin/perf || true |
There was a problem hiding this comment.
For aarch64, you can use aarch64-linux-gnu-strip
|
For tools, what do you think of this approach? https://github.com/echiugoog/PerfSpect/tree/tools-cross-compile-arm |
I like it. Thanks. Just need to make sure the build container is configured with the required cross-compile packages. |
|
I finished cross-compile work for aarch64 here: https://github.com/echiugoog/PerfSpect/tree/tools-cross-compile-arm |
Hi @echiugoog. Thanks. I haven't been able to spend any time here for a while as other things took priority. I took a quick look at your branch. From what I can tell, it all looks reasonable. Please open a PR when you're ready. |
|
addressed by another PR |
Use the Go compiler's cross-compilation feature to build perfspect for aarch64.
Much more to-do, e.g., build binary resources for aarch64.