kata-deploy: Add tarball suffix to makefile targets
Now that local-build kata-deploy makefile is inlucded in toplevel
makefile, lets use the suffix `-tarball` to avoid name collitions
and identify the tarball releted targets.
@@ -21,33 +21,42 @@ endef
kata-tarball: | all-parallel merge-builds
all-parallel:
- make -f $(MK_PATH) all -j$$(( $$(nproc) - 1 )) NO_TTY="true"
+ ${MAKE} -f $(MK_PATH) all -j$$(( $$(nproc) - 1 )) NO_TTY="true"
-all: cloud-hypervisor firecracker kernel qemu rootfs-image rootfs-initrd shim-v2
+all: cloud-hypervisor-tarball \
+ firecracker-tarball \
+ kernel-tarball \
+ qemu-tarball \
+ rootfs-image-tarball \
+ rootfs-initrd-tarball \
+ shim-v2-tarball
-cloud-hypervisor:
- $(call BUILD,$@)
+%-tarball-build:
+ $(call BUILD,$*)
-firecracker:
- $(call BUILD,$@)
+cloud-hypervisor-tarball:
+ ${MAKE} $@-build
-kernel:
- $(call BUILD,$@)
+firecracker-tarball:
+ ${MAKE} $@-build
-qemu:
- $(call BUILD,$@)
+kernel-tarball:
+ ${MAKE} $@-build
-rootfs-image:
- $(call BUILD,$@)
+qemu-tarball:
+ ${MAKE} $@-build
-rootfs-initrd:
- $(call BUILD,$@)
+rootfs-image-tarball:
+ ${MAKE} $@-build
-shim-v2:
- $(call BUILD,$@)
+rootfs-initrd-tarball:
+ ${MAKE} $@-build
+
+shim-v2-tarball:
+ ${MAKE} $@-build
merge-builds:
$(MK_DIR)/kata-deploy-merge-builds.sh build
-install:
+install-tarball:
tar -xvf ./kata-static.tar.xz -C /
