-
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
Makefile.inc: Add support for building AMD Onyx coreboot. #8
Conversation
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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.
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) |
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>
There was a problem hiding this 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.
Looks good now. LGTM |
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