-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support building across architectures #5
base: main
Are you sure you want to change the base?
Commits on Jan 9, 2022
-
Makefile.inc: Replace hardcoded architecture in initramfs name
Add an ARCH variable and replace the hardcoded "amd64" with a string derived from `uname -m` in order to build non-x86 initramfs images. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2dcb53c - Browse repository at this point
Copy the full SHA 2dcb53cView commit details -
Makefile.inc: Build coreboot toolchain according to ARCH
Replace crossgcc-i386 with crossgcc-${ARCH} based on the architecture passed in from Makefile.inc. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 62bacea - Browse repository at this point
Copy the full SHA 62baceaView commit details -
Makefile.inc: Make VPD support optional
Make VPD support optional in order to enable builds for more mainboard targets. VPD should still be added for production usage, this is mostly intended to help get new targets up and running. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 65bd945 - Browse repository at this point
Copy the full SHA 65bd945View commit details -
qemu: Patch coreboot buildgcc to build -linux toolchains
This will be used when cross-compiling Linux kernels. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 70bf6f9 - Browse repository at this point
Copy the full SHA 70bf6f9View commit details -
Use Linux arch in kernel config name
Linux and `uname` don't always agree on what to call a given architecture. This adds a LINUX_ARCH variable that will be used for kernel config names and for cross-compilation. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f03d6f8 - Browse repository at this point
Copy the full SHA f03d6f8View commit details -
Makefile.inc: Add LINUX_IMAGE_RELATIVE_PATH variable
Accomodate different paths to the kernel image for various architectures. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9cb801c - Browse repository at this point
Copy the full SHA 9cb801cView commit details -
qemu: Add ARCH detection in Makefile
Make the build and qemu invocation more cross-platform friendly. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f06344c - Browse repository at this point
Copy the full SHA f06344cView commit details -
Makefile.inc: Make Go variables cross-compiler friendly
GOARCH needs to reflect the target architecture. GOROOT needs to point at GOROOT that is compatible with the host. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for abc61a4 - Browse repository at this point
Copy the full SHA abc61a4View commit details -
Enable building a toolchain for Linux
Leverage coreboot's buildgcc to build a suitable Linux toolchain if needed. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cba5ee4 - Browse repository at this point
Copy the full SHA cba5ee4View commit details -
qemu: Use $(PLATFORM) to determine $(OUT) name
This is needed due to mismatched machine names used by `uname` and qemu-system-*. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 23a775b - Browse repository at this point
Copy the full SHA 23a775bView commit details -
qemu: Split out common portions of
make run
ruleThis will be useful later when we add targets for other architectures. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 085a7d1 - Browse repository at this point
Copy the full SHA 085a7d1View commit details -
qemu-amd64: update coreboot hash to 4.15
GCC 8.3.0 seems to have compilation issues, and we may as well update to the latest coreboot release anyway. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f0f8dd0 - Browse repository at this point
Copy the full SHA f0f8dd0View commit details -
qemu: Split kernel-x86_64.config
This attempts to make a "splitconfig" type of kernel configuration for x86_64 so that we only include options that are intentionally enabled. Other options will be set to default values by `make olddefconfig`. Tested by building from scratch and booting to u-root shell using qemu-system-x86_64. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f9fe1af - Browse repository at this point
Copy the full SHA f9fe1afView commit details -
[notformerge] Make coreboot's buildgcc use a gzip'd gcc tarball
Decompressing GCC takes a significant amount of time. Gzip can be decompressed using multiple threads (buildgcc will use `pigz` if available), so this just trades decompression speed and download time (download should only occur once anyway). Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e4b1a7b - Browse repository at this point
Copy the full SHA e4b1a7bView commit details -
WIP: qemu: Add aarch64 targets and config files
This gives us a target to build. It does not work yet. Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a698747 - Browse repository at this point
Copy the full SHA a698747View commit details -
WIP: qemu: Add ppc64le targets and config files
This gives us a target to build. It does not work yet. Note: This should use the power9 qemu target for coreboot once it's merged: https://review.coreboot.org/c/coreboot/+/57084 Signed-off-by: David Hendricks <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2f60370 - Browse repository at this point
Copy the full SHA 2f60370View commit details