mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 04:03:01 +02:00
Add support for firmware updates via RAUC on aarch64. The created RAUC bundle (images/infix-$BR2_ARCH.pkg) is signed with the same key used to sign the raw FIT image.
10 lines
384 B
Makefile
10 lines
384 B
Makefile
include $(BR2_EXTERNAL_INFIX_PATH)/board/common/uboot/uboot.mk
|
|
|
|
define RAUC_POST_BUILD_INSTALL_CERT
|
|
@$(call IXMSG,"Installing signing cert for RAUC")
|
|
mkdir -p $(TARGET_DIR)/etc/rauc/keys
|
|
$(foreach crt,$(shell ls $(SIGN_KEY)/*.crt), \
|
|
cp $(crt) $(TARGET_DIR)/etc/rauc/keys/$(shell openssl x509 -hash -noout <$(crt)).0;)
|
|
endef
|
|
RAUC_POST_BUILD_HOOKS += RAUC_POST_BUILD_INSTALL_CERT
|