Skip to content

Commit

Permalink
Makefile: generate ktf.iso instead of boot.iso
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Nov 13, 2023
1 parent 32dc41b commit c085181
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ QEMU_PARAMS += $(QEMU_PARAMS_NOGFX)

QEMU_PARAMS_DEBUG := -s -S &

ISO_FILE := boot.iso
ISO_FILE := ktf.iso

ifneq ($(SYSTEM), LINUX)
$(ISO_FILE): dockerboot.iso
$(ISO_FILE): docker${ISO_FILE}
else
$(ISO_FILE): $(TARGET)
@echo "GEN ISO" $(ISO_FILE)
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Some more features are in the making. Check out the issues.
The quick start is to run the following commands. The content of the file tests/test.c
will be executed. Note, the last command will block.

Build a boot.iso from scratch, in the docker container.
Build a ktf.iso from scratch, in the docker container.

```
make clean
make docker:boot.iso
make docker:ktf.iso
```

Boot the resulting image:
Expand Down Expand Up @@ -66,17 +66,17 @@ make docker:all

* Native
```
make boot.iso
make ktf.iso
```

* Docker

```
make docker:boot.iso
make docker:ktf.iso
```

The `make` command generates the `kernel64.bin` multiboot-compatible ELF file, that you can directly boot with QEMU.
The `make boot.iso` command takes the `kernel64.bin`, places it in `grub/boot/` directory hierarchy and generates a `boot.iso`
The `make ktf.iso` command takes the `kernel64.bin`, places it in `grub/boot/` directory hierarchy and generates a `ktf.iso`
out of the `grub/` (using `grub/boot/grub/grub.cfg` as a default GRUB config).

#### Fedora
Expand Down Expand Up @@ -127,7 +127,7 @@ memory=1024

serial= [ 'file:/tmp/kernel.log', 'pty' ]

disk = [ '/home/user/boot.iso,,hdc,cdrom' ]
disk = [ '/home/user/ktf.iso,,hdc,cdrom' ]

on_reboot = "destroy"

Expand Down Expand Up @@ -223,4 +223,3 @@ and we're actively sharing ideas, bugs and anything related to KTF there. Feel f
![GitHub](https://img.shields.io/github/license/awslabs/ktf)

This project is licensed under the BSD 2-Clause License.

4 changes: 2 additions & 2 deletions tools/ci/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This script builds the project's boot.iso file in the docker environment
# This script builds the project's ktf.iso file in the docker environment
set -e

COMPILER=$1
Expand All @@ -16,4 +16,4 @@ cd "$SCRIPTDIR"/../..

# Build project in docker
make clean V=1
make docker:boot.iso V=1 CC=$COMPILER
make docker:ktf.iso V=1 CC=$COMPILER
4 changes: 2 additions & 2 deletions tools/ci/launch-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This script builds the project's boot.iso file in the docker environment and
# This script builds the project's ktf.iso file in the docker environment and
# next launches a test and checks for a successful timeout.
set -e

Expand All @@ -18,7 +18,7 @@ cd "$SCRIPTDIR"/../..
# Build project in docker
echo "Building project from scratch"
make clean V=1
make UNITTEST=1 docker:boot.iso V=1 CC=$COMPILER
make UNITTEST=1 docker:ktf.iso V=1 CC=$COMPILER

# Use QEMU to launch the guest
echo "Launching KTF"
Expand Down
2 changes: 1 addition & 1 deletion tools/xen_config/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ memory=1024

serial= [ 'file:/tmp/kernel.log', 'pty' ]

disk = [ '/home/user/boot.iso,,hdc,cdrom' ]
disk = [ '/home/user/ktf.iso,,hdc,cdrom' ]

on_reboot = "destroy"

Expand Down

0 comments on commit c085181

Please sign in to comment.