From 48820425ebdd37c34cd3e130b01bcee8560bd736 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 28 Nov 2017 09:03:01 -0600 Subject: [PATCH] Makefile: Add image target Use as default base OS centos Signed-off-by: Jose Carlos Venegas Munoz --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..7637ea7799 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +# +# 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 + +image: + @echo Creating rootfs based on "$(DISTRO)" + "$(MK_DIR)/rootfs-builder/rootfs.sh" -r "$(DISTRO_ROOTFS)" "$(DISTRO)" + @echo Creating image based on "$(DISTRO_ROOTFS)" + AGENT_BIN="$(AGENT_BIN)" "$(MK_DIR)/image-builder/image_builder.sh" -s "$(IMG_SIZE)" "$(DISTRO_ROOTFS)"