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
917cdbf1
Commit
917cdbf1
authored
Sep 13, 2020
by
Antoine Kaufmann
Browse files
images: use our qemu for building
parent
360bfc3f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
images/Makefile
images/Makefile
+7
-5
images/packer-wrap.sh
images/packer-wrap.sh
+7
-0
No files found.
images/Makefile
View file @
917cdbf1
...
@@ -8,6 +8,8 @@ MTCP_IMAGE := output-mtcp/mtcp
...
@@ -8,6 +8,8 @@ MTCP_IMAGE := output-mtcp/mtcp
IMAGES
:=
$(BASE_IMAGE)
$(NOPAXOS_IMAGE)
$(MTCP_IMAGE)
IMAGES
:=
$(BASE_IMAGE)
$(NOPAXOS_IMAGE)
$(MTCP_IMAGE)
RAW_IMAGES
:=
$(
addsuffix
.raw,
$(IMAGES)
)
RAW_IMAGES
:=
$(
addsuffix
.raw,
$(IMAGES)
)
QEMU_IMG
:=
../qemu/qemu-img
all
:
$(IMAGES) $(RAW_IMAGES) vmlinux bzImage mqnic/mqnic.ko
all
:
$(IMAGES) $(RAW_IMAGES) vmlinux bzImage mqnic/mqnic.ko
clean
:
clean
:
...
@@ -21,29 +23,29 @@ clean:
...
@@ -21,29 +23,29 @@ clean:
# Disk image
# Disk image
%.raw
:
%
%.raw
:
%
qemu-img
convert
-f
qcow2
-O
raw
$<
$@
$(QEMU_IMG)
convert
-f
qcow2
-O
raw
$<
$@
$(UBUNTU_IMAGE)
:
ubuntu1804.json packer scripts/vagrant.sh scripts/sshd.sh
\
$(UBUNTU_IMAGE)
:
ubuntu1804.json packer scripts/vagrant.sh scripts/sshd.sh
\
scripts/update.sh scripts/packages.sh scripts/cleanup.sh scripts/preseed.cfg
scripts/update.sh scripts/packages.sh scripts/cleanup.sh scripts/preseed.cfg
rm
-rf
output-ubuntu1804
rm
-rf
output-ubuntu1804
./packer build ubuntu1804.json
./packer
-wrap.sh
build ubuntu1804.json
touch
$@
touch
$@
$(BASE_IMAGE)
:
base.json packer $(UBUNTU_IMAGE) bzImage kheaders.tar.bz2
\
$(BASE_IMAGE)
:
base.json packer $(UBUNTU_IMAGE) bzImage kheaders.tar.bz2
\
scripts/guestinit.sh
scripts/guestinit.sh
rm
-rf
output-base
rm
-rf
output-base
./packer build base.json
./packer
-wrap.sh
build base.json
touch
$@
touch
$@
$(NOPAXOS_IMAGE)
:
nopaxos.json packer $(BASE_IMAGE) scripts/install-nopaxos.sh
\
$(NOPAXOS_IMAGE)
:
nopaxos.json packer $(BASE_IMAGE) scripts/install-nopaxos.sh
\
nopaxos.config
nopaxos.config
rm
-rf
output-nopaxos
rm
-rf
output-nopaxos
./packer build nopaxos.json
./packer
-wrap.sh
build nopaxos.json
touch
$@
touch
$@
$(MTCP_IMAGE)
:
mtcp.json packer $(BASE_IMAGE) scripts/install-mtcp.sh
$(MTCP_IMAGE)
:
mtcp.json packer $(BASE_IMAGE) scripts/install-mtcp.sh
rm
-rf
output-mtcp
rm
-rf
output-mtcp
./packer build mtcp.json
./packer
-wrap.sh
build mtcp.json
touch
$@
touch
$@
packer
:
packer
:
...
...
images/packer-wrap.sh
0 → 100755
View file @
917cdbf1
#!/bin/bash
qemupath
=
`
pwd
`
/../qemu/
# add our qemu to $PATH
export
PATH
=
"
$qemupath
:
$qemupath
/x86_64-softmmu/:
$PATH
"
exec
./packer
"
$@
"
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