From 27976149d6c445ba12bd100de6f95788a2eebb16 Mon Sep 17 00:00:00 2001 From: Gabriel Ionescu Date: Tue, 13 Nov 2018 13:07:18 +0100 Subject: Force build the otaimg before the hddimg Change-Id: I244a945b95d498b0d46364ab39705102c5fad659 Signed-off-by: Gabriel Ionescu --- images/enea-nfv-access-host-common.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/enea-nfv-access-host-common.inc b/images/enea-nfv-access-host-common.inc index 866fa99..83d7bd0 100644 --- a/images/enea-nfv-access-host-common.inc +++ b/images/enea-nfv-access-host-common.inc @@ -19,3 +19,10 @@ SYSLINUX_DEFAULT_CONSOLE_x86-64 = "console=tty0" GRUB_TIMEOUT_x86-64 = "10" # 10 - 1sec SYSLINUX_TIMEOUT_x86-64 = "50" + +# If building with sota enabled, build the otaimg before the hddimg, because +# the hddimg needs it as a base image +python __anonymous() { + if bb.utils.contains('DISTRO_FEATURES', 'sota', True, False, d): + d.appendVarFlag("do_bootimg", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True)) +} -- cgit v1.2.3-54-g00ecf