mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Infix defines its own Kconfig options with unprefixed names (IMAGE_*, QEMU_*, TRUSTED_KEYS*) and an INFIX_ prefix. Unprefixed names risk clashing with Buildroot and with other br2-externals/spins that source our tree. Rename all 86 options to a common IX_ prefix, collapsing the existing INFIX_ ones, e.g. INFIX_IMAGE_ID becomes IX_IMAGE_ID. The os-release INFIX_DESC field is a runtime interface, not a Kconfig option, and is kept; the qemu Config.in generator's @ARCH@ symbol is updated to match. Closes #1305 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
17 lines
627 B
Makefile
17 lines
627 B
Makefile
include $(BR2_EXTERNAL_INFIX_PATH)/board/common/image/image.mk
|
|
include $(BR2_EXTERNAL_INFIX_PATH)/board/common/qemu/qemu.mk
|
|
|
|
ifeq ($(IX_TRUSTED_KEYS),y)
|
|
include $(BR2_EXTERNAL_INFIX_PATH)/board/common/uboot/uboot.mk
|
|
|
|
IX_TRUSTED_KEYS=$(IX_TRUSTED_KEYS_DEVELOPMENT_PATH) $(IX_TRUSTED_KEYS_EXTRA_PATH)
|
|
define RAUC_POST_BUILD_INSTALL_CERT
|
|
@$(call IXMSG,"Installing signing cert for RAUC")
|
|
mkdir -p $(TARGET_DIR)/etc/rauc/keys
|
|
$(foreach crt,$(shell ls $(IX_TRUSTED_KEYS)), \
|
|
cp $(crt) $(TARGET_DIR)/etc/rauc/keys/$(shell openssl x509 -hash -noout <$(crt)).0;)
|
|
|
|
endef
|
|
RAUC_POST_BUILD_HOOKS += RAUC_POST_BUILD_INSTALL_CERT
|
|
endif
|