Skip to content

Commit

Permalink
Makefile: remove kernel.elf dependency for stage1.o
Browse files Browse the repository at this point in the history
... and move it to `all`. This way we can use the stage1/stage1.o target
with another kernel (e.g. test kernel).

Signed-off-by: Tom Dohrmann <[email protected]>
  • Loading branch information
Freax13 committed Oct 15, 2023
1 parent 8ed3e36 commit 2b31f74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# ld to work, so build all the objects without performing the
# final linking step.
- name: Build
run: make FEATURES="default,enable-gdb" stage1/stage1.o stage1/reset.o
run: make FEATURES="default,enable-gdb" stage1/kernel.elf stage1/stage1.o stage1/reset.o

- name: Run tests
run: make test
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FS_FILE ?= none

STAGE1_OBJS = stage1/stage1.o stage1/reset.o

all: svsm.bin
all: stage1/kernel.elf svsm.bin

test:
cargo test --target=x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -42,7 +42,7 @@ ifneq ($(FS_FILE), none)
endif
touch stage1/svsm-fs.bin

stage1/stage1.o: stage1/stage1.S stage1/stage2.bin stage1/kernel.elf stage1/svsm-fs.bin
stage1/stage1.o: stage1/stage1.S stage1/stage2.bin stage1/svsm-fs.bin
cc -c -o $@ stage1/stage1.S

stage1/reset.o: stage1/reset.S stage1/meta.bin
Expand Down

0 comments on commit 2b31f74

Please sign in to comment.