Vasyl Saienko 5a67501bee Build tiny disk partitioned image with grub
To be able to test partitioned images with local boot on CI we need to
have grub installed inside user image. Unfortunately cirros doesn't
include grub-install binaries.

This patch adds ability to build partitioned image based on tinycore linux.

Related-Bug: 1657077

Change-Id: I38dce876ec9b03c0ca377f1e4d28269da8dbe316
2017-10-17 06:45:44 +00:00

42 lines
818 B
Makefile

.PHONY: default all dependencies build finalise iso clean clean_build clean_iso
default: dependencies build finalise instance-images
all: dependencies build finalise iso instance-images
dependencies:
./install-deps.sh
build:
./build-tinyipa.sh
finalise:
./finalise-tinyipa.sh
iso:
./build-iso.sh
instance-images:
./build-instance-images.sh
clean: clean_build clean_iso
clean_build:
sudo -v
sudo rm -rf tinyipabuild
sudo rm -rf tinyipafinal
rm -f tinyipa*.vmlinuz
rm -f tinyipa*.gz
rm -f tinyipa*.sha256
rm -f build_files/corepure64.gz
rm -f build_files/vmlinuz64
rm -f build_files/*.tcz
rm -f build_files/*.tcz.*
clean_iso:
rm -rf newiso
rm -f build_files/syslinux-4.06.tar.gz
rm -rf build_files/syslinux-4.06
rm -f tinyipa.iso
rm -f tiny-instance-part.img
rm -f tiny-instance-uec.tar.gz