Skip to content
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

Makefile.inc: Add support for building AMD Onyx coreboot. #8

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

ed-sharma
Copy link
Contributor

This change uses an AMD coreboot defined variable from their projects Makefile, to avoid using the Intel specific coreboot config changes implemented in the osf-builder Makefile.inc

Signed-off-by: Eddie Vas aeddiesharma@meta.com

Makefile.inc Outdated
sed -i "s|CONFIG_IFD_BIN_PATH=.*|CONFIG_IFD_BIN_PATH=\"$(COREBOOT_BLOBS_DIR)/flashregion_0_flashdescriptor.bin\"|" $@; \
sed -i "s|CONFIG_ME_BIN_PATH=.*|CONFIG_ME_BIN_PATH=\"$(COREBOOT_BLOBS_DIR)/flashregion_2_intel_me.bin\"|" $@; \
fi
ifndef ONYX_BUILD
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of calling the environment variable ONYX_BUILD, suggest calling it "NO_INTEL_BLOBS".
AMD Onyx CRB just happened to be the first mainboard that does not need Intel Blobs.
If NO_INTEL_BLOBS is defined, could we unset COREBOOT_BLOBS_DIR? In such case, we do not need to touch this piece of code.

Copy link
Contributor

Choose a reason for hiding this comment

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

The title may be "Makefile.inc: build coreboot for non-Intel platform"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The previous change had a mistake. I need to define control more content than the one just under the control of COREBOOT_BLOBS_DIR define, so the define approach may not be the right one. Changed the names and other suggestions.

@dhendrix
Copy link
Contributor

dhendrix commented Jan 11, 2023

The changes look good, but I think the commit message needs to be updated. It appears that we're really just telling the Makefile not to worry about Intel blobs. That doesn't necessarily have anything to do with AMD.

(fwiw, I'm also looking at builds for other chips: #5)

Makefile.inc Outdated Show resolved Hide resolved
This change uses a projects defined Makefile variable to
avoid using the Intel specific coreboot config changes
implemented in the osf-builder Makefile.inc

Signed-off-by: Eddie Vas <aeddiesharma@fb.com>
Copy link
Contributor

@jonzhang-fb jonzhang-fb left a comment

Choose a reason for hiding this comment

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

LGTM. @dhendrix @ArthurHeymans I will merge this PR if no additional comment till Friday.

@ArthurHeymans
Copy link

LGTM. @dhendrix @ArthurHeymans I will merge this PR if no additional comment till Friday.

Looks good now. LGTM

@jonzhang-fb jonzhang-fb merged commit 16978e1 into linuxboot:main Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants