pack: ensure e2k support on e2k

The culprit is that e2k has exactly one kernel flavour
available at the moment, elbrus-def (there used to be
per-CPU flavours in p8 times -- elbrus-{4c,8c,1cp} --
but these aren't needed anymore), but there are no
std-def/un-def kernels or provides available.
There's more to it, but lacking a kernel is critical.

Maybe other arches might do similar things when needed,
or maybe this gets reverted in favour of a more generic
approach; but patching all starterkits or messing with
p9.mk per-arch (while leaving out regular builds or
any other image that might just build) looks worse.
This commit is contained in:
Michael Shigorin 2020-08-21 18:23:38 +03:00
parent 2918748cce
commit 293ec5dccc

View File

@ -3,9 +3,13 @@
# distributions
DISTRO_EXTS := .iso
use/pack:
use/pack::
@$(call add_feature)
ifeq (,$(filter-out e2k%,$(ARCH)))
use/pack:: use/e2k; @:
endif
# fallback type is isodata, might get set elsewhere to produce bootable iso
use/pack/iso: use/pack
@$(call try,IMAGE_PACKTYPE,isodata)