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>
29 lines
835 B
Makefile
29 lines
835 B
Makefile
define inner-ix-image
|
|
|
|
$(2)_DIR := $$(pkgdir)
|
|
|
|
$(1): $$($(2)_DEPENDENCIES)
|
|
@$$(call IXMSG,"$$(if $$($(2)_MESSAGE),$$($(2)_MESSAGE),Creating $(1))")
|
|
@mkdir -p $$(BUILD_DIR)/$(1)
|
|
@ \
|
|
PATH=$$(BR_PATH) \
|
|
PKGDIR=$$($(2)_DIR) \
|
|
WORKDIR=$$(BUILD_DIR)/$(1) \
|
|
BINARIES_DIR=$$(BINARIES_DIR) \
|
|
BR2_EXTERNAL_INFIX_PATH=$$(BR2_EXTERNAL_INFIX_PATH) \
|
|
ARTIFACT=$$(INFIX_ARTIFACT) \
|
|
COMPATIBLE=$$(IX_COMPATIBLE) \
|
|
VERSION=$$(INFIX_VERSION) \
|
|
$$(foreach var,$$($(2)_CONFIG_VARS),$$(var)=$$($(3)_$$(var)) ) \
|
|
$$($(2)_DIR)/generate.sh $$($(2)_OPTS)
|
|
|
|
ifeq ($$($(3)),y)
|
|
TARGETS_ROOTFS += $(1)
|
|
endif
|
|
|
|
endef
|
|
|
|
# $(2) is the package-local make-var prefix (UPPERCASE pkgname); $(3) is
|
|
# the IX_ prefixed Kconfig symbol name, see issue #1305.
|
|
ix-image = $(call inner-ix-image,$(pkgname),$(call UPPERCASE,$(pkgname)),IX_$(call UPPERCASE,$(pkgname)))
|