Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
6bf47a10
Commit
6bf47a10
authored
Jan 26, 2024
by
Hejing Li
Browse files
images: add homa image
parent
ad104983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
images/rules.mk
images/rules.mk
+27
-1
No files found.
images/rules.mk
View file @
6bf47a10
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment