From 79050fb8200ddee709d9b1353f8ca5494fc28f24 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 4 Sep 2023 23:17:31 +0200 Subject: [PATCH] Separate build step when loading container images (#2731) Separate fetching the current release and loading the container image into separate build steps. This allows to manually later the version json file for testing. --- buildroot-external/package/hassio/hassio.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildroot-external/package/hassio/hassio.mk b/buildroot-external/package/hassio/hassio.mk index cf36ac9f6..4e5a0ac9a 100644 --- a/buildroot-external/package/hassio/hassio.mk +++ b/buildroot-external/package/hassio/hassio.mk @@ -16,14 +16,15 @@ HASSIO_CONTAINER_IMAGES_ARCH = supervisor dns audio cli multicast observer core define HASSIO_CONFIGURE_CMDS # Deploy only landing page for "core" by setting version to "landingpage" curl -s $(HASSIO_VERSION_URL) | jq '.core = "landingpage"' > $(@D)/stable.json +endef +define HASSIO_BUILD_CMDS $(Q)mkdir -p $(@D)/images $(Q)mkdir -p $(HASSIO_DL_DIR) $(foreach image,$(HASSIO_CONTAINER_IMAGES_ARCH),\ $(BR2_EXTERNAL_HASSOS_PATH)/package/hassio/fetch-container-image.sh \ $(BR2_PACKAGE_HASSIO_ARCH) $(BR2_PACKAGE_HASSIO_MACHINE) $(@D)/stable.json $(image) "$(HASSIO_DL_DIR)" "$(@D)/images" ) - endef HASSIO_INSTALL_IMAGES = YES