mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
Build a kata initrd image based on rootfs created by rootfs.sh. Fixes: #5 Signed-off-by: Peng Tao <bergwolf@gmail.com>
24 lines
649 B
Makefile
24 lines
649 B
Makefile
#
|
|
# Copyright (c) 2017 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
MK_DIR :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
DISTRO ?= centos
|
|
DISTRO_ROOTFS := "$(PWD)/$(DISTRO)_rootfs"
|
|
IMG_SIZE=500
|
|
AGENT_INIT ?= no
|
|
|
|
rootfs:
|
|
@echo Creating rootfs based on "$(DISTRO)"
|
|
"$(MK_DIR)/rootfs-builder/rootfs.sh" -r "$(DISTRO_ROOTFS)" "$(DISTRO)"
|
|
|
|
image: rootfs
|
|
@echo Creating image based on "$(DISTRO_ROOTFS)"
|
|
"$(MK_DIR)/image-builder/image_builder.sh" -s "$(IMG_SIZE)" "$(DISTRO_ROOTFS)"
|
|
|
|
initrd: rootfs
|
|
@echo Creating initrd image based on "$(DISTRO_ROOTFS)"
|
|
"$(MK_DIR)/initrd-builder/initrd_builder.sh" "$(DISTRO_ROOTFS)"
|