ironic-python-agent/imagebuild/coreos/Makefile
Ramakrishnan G 8c2936027b Add support to build iso image
This script adds support to build iso image from the given
kernel and ramdisk

Change-Id: I15dd8b8663af15b4194299986792ad8e6487508b
Implements: blueprint ilo-virtualmedia-ipa
2014-09-17 21:34:48 +05:30

26 lines
510 B
Makefile

BUILD_DIR=UPLOAD
KERNEL=$(BUILD_DIR)/coreos_production_pxe.vmlinuz
INITRD=$(BUILD_DIR)/coreos_production_pxe_image-oem.cpio.gz
default: docker coreos
docker:
./docker_build.bash
coreos:
mkdir -p $(BUILD_DIR)
./coreos-oem-inject.py oem $(BUILD_DIR)
clean:
rm -rf ironic-python-agent
rm -f oem/container.tar.gz
rm -f $(INITRD)
rm -f $(KERNEL)
rm -rf ../.image_cache
docker_clean:
./docker_clean.bash
iso: docker coreos
./iso-image-create -o $(BUILD_DIR)/ipa-coreos.iso -i $(INITRD) -k $(KERNEL)