Skip to content

Commit

Permalink
Use defconfig when building for unikernel
Browse files Browse the repository at this point in the history
Replace error-prone copying of configuration file with the use of a
defconfig file. Add `defconfigs/qemu-x86_64` and use `make defconfig`
option in `Makefile.unikernel`.

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
  • Loading branch information
razvand committed Sep 27, 2023
1 parent 733a625 commit 92f7631
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 343 deletions.
342 changes: 0 additions & 342 deletions L2E_amd64_qemu.config

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile.unikernel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MOD_PATH = out/model.bin
TOK_PATH = tokenizer.bin

all:
cp L2E_amd64_qemu.config .config
UK_DEFCONFIG=$(shell pwd)/defconfigs/qemu-x86_64 make -f Makefile.unikernel defconfig
gcc -Ofast strliteral.c -o strlit
./strlit -i emb_Model_data $(MOD_PATH) model.h
./strlit -i emb_Tokenizer_data $(TOK_PATH) tokenizer.h
Expand Down
8 changes: 8 additions & 0 deletions defconfigs/qemu-x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_UK_DEFNAME="L2E"
CONFIG_PLAT_KVM=y
CONFIG_LIBUKBOOT_BANNER_NONE=y
CONFIG_LIBUKBUS=y
# CONFIG_LIBUKDEBUG_ENABLE_ASSERT is not set
CONFIG_LIBUKSGLIST=y
CONFIG_OPTIMIZE_DEADELIM=y
CONFIG_OPTIMIZE_LTO=y

0 comments on commit 92f7631

Please sign in to comment.