-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add Protectli logo within Make buildsys, don't patch post-build #771
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
base: dasharo
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -337,6 +337,29 @@ ifeq ($(FAILBUILD),1) | |||||||
$(error cannot continue build) | ||||||||
endif | ||||||||
|
||||||||
# Add bootsplash to BOOTSPLASH/logo.bmp | ||||||||
define bootsplash_region_hook | ||||||||
|
||||||||
# Only run if a file is provided | ||||||||
ifneq ($(CONFIG_BOOTSPLASH_REGION_LOGO_FILE),"") | ||||||||
|
||||||||
real-target: branding_bootsplash_region | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Otherwise
but it's better and I think |
||||||||
|
||||||||
.PHONY: branding_bootsplash_region | ||||||||
branding_bootsplash_region: $(obj)/coreboot.rom $(objutil)/cbfstool/cbfstool | ||||||||
@echo " BRANDING Adding bootsplash (BOOTSPLASH/logo.bmp) from $(CONFIG_BOOTSPLASH_REGION_LOGO_FILE)" | ||||||||
$(objutil)/cbfstool/cbfstool $(obj)/coreboot.rom add \ | ||||||||
-r BOOTSPLASH \ | ||||||||
-f $(CONFIG_BOOTSPLASH_REGION_LOGO_FILE) \ | ||||||||
-n logo.bmp \ | ||||||||
-t raw \ | ||||||||
-c lzma | ||||||||
@: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks unnecessary.
Suggested change
|
||||||||
|
||||||||
endif | ||||||||
endef | ||||||||
|
||||||||
postinclude-hooks += $(bootsplash_region_hook) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
# Run hooks registered by subdirectories that need to be evaluated after all files have been parsed | ||||||||
$(eval $(postinclude-hooks)) | ||||||||
|
||||||||
|
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.
Why make it a hook?
.config
is sourced in line 184 of this file.