Commit 6bf47a10 authored by Hejing Li's avatar Hejing Li
Browse files

images: add homa image

parent ad104983
...@@ -32,9 +32,11 @@ MTCP_IMAGE := $(d)output-mtcp/mtcp ...@@ -32,9 +32,11 @@ MTCP_IMAGE := $(d)output-mtcp/mtcp
TAS_IMAGE := $(d)output-tas/tas TAS_IMAGE := $(d)output-tas/tas
HOMA_IMAGE := $(d)output-homa/homa HOMA_IMAGE := $(d)output-homa/homa
TIMESYNC_IMAGE := $(d)output-timesync/timesync TIMESYNC_IMAGE := $(d)output-timesync/timesync
HOMA_IMAGE := $(d)output-homa/homa
COMPRESSED_IMAGES ?= false COMPRESSED_IMAGES ?= false
IMAGES := $(BASE_IMAGE) $(NOPAXOS_IMAGE) $(MEMCACHED_IMAGE) $(HOMA_IMAGE) $(TIMESYNC_IMAGE) IMAGES := $(BASE_IMAGE) $(NOPAXOS_IMAGE) $(MEMCACHED_IMAGE) $(TIMESYNC_IMAGE) \
$(HOMA_IMAGE)
RAW_IMAGES := $(addsuffix .raw,$(IMAGES)) RAW_IMAGES := $(addsuffix .raw,$(IMAGES))
IMAGES_MIN := $(BASE_IMAGE) IMAGES_MIN := $(BASE_IMAGE)
...@@ -143,6 +145,18 @@ $(TIMESYNC_IMAGE): $(packer) $(QEMU) $(BASE_IMAGE) \ ...@@ -143,6 +145,18 @@ $(TIMESYNC_IMAGE): $(packer) $(QEMU) $(BASE_IMAGE) \
$(COMPRESSED_IMAGES) $(COMPRESSED_IMAGES)
touch $@ touch $@
$(HOMA_IMAGE): $(packer) $(QEMU) $(BASE_IMAGE) \
$(addprefix $(d), extended-image.pkr.hcl scripts/install-homa.sh \
scripts/cleanup.sh)
rm -rf $(dir $@)
mkdir -p $(img_dir)/input-homa
cp -r $(homa_dir) \
$(img_dir)/input-homa
cd $(img_dir) && ./packer-wrap.sh base homa extended-image.pkr.hcl \
$(COMPRESSED_IMAGES)
rm -rf $(img_dir)/input-homa
touch $@
$(packer): $(packer):
wget -O $(img_dir)packer_$(PACKER_VERSION)_linux_amd64.zip \ wget -O $(img_dir)packer_$(PACKER_VERSION)_linux_amd64.zip \
https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_amd64.zip https://releases.hashicorp.com/packer/$(PACKER_VERSION)/packer_$(PACKER_VERSION)_linux_amd64.zip
...@@ -210,6 +224,18 @@ $(homa_mod): $(vmlinux) ...@@ -210,6 +224,18 @@ $(homa_mod): $(vmlinux)
$(MAKE) -C $(kernel_dir) M=$(abspath $(homa_dir)) modules $(MAKE) -C $(kernel_dir) M=$(abspath $(homa_dir)) modules
touch $@ touch $@
################################################
# homa kernel module
$(homa_dir):
git clone https://github.com/PlatformLab/HomaModule \
-b linux_$(KERNEL_VERSION) $@
# HOMA kernel module
$(homa_mod): $(vmlinux) $(homa_dir)
$(MAKE) -C $(kernel_dir) M=$(abspath $(homa_dir)) modules
touch $@
################################################ ################################################
# farmem kernel module # farmem kernel module
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment