forked from unikraft/app-elfloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.uk
25 lines (18 loc) · 1.2 KB
/
Makefile.uk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$(eval $(call addlib,appelfloader))
APPELFLOADER_CFLAGS-$(CONFIG_APPELFLOADER_DEBUG) += -DUK_DEBUG
APPELFLOADER_SRCS-y += $(APPELFLOADER_BASE)/main.c
APPELFLOADER_SRCS-y += $(APPELFLOADER_BASE)/elf_load.c
APPELFLOADER_SRCS-y += $(APPELFLOADER_BASE)/elf_exec.c
APPELFLOADER_SRCS-$(CONFIG_APPELFLOADER_BRK) += $(APPELFLOADER_BASE)/brk.c
UK_PROVIDED_SYSCALLS-$(CONFIG_APPELFLOADER_BRK) += brk-1
APPELFLOADER_SRCS-$(CONFIG_APPELFLOADER_ARCH_PRCTL) += $(APPELFLOADER_BASE)/arch_prctl.c
UK_PROVIDED_SYSCALLS-$(CONFIG_APPELFLOADER_ARCH_PRCTL) += arch_prctl-3
APPELFLOADER_SRCS-$(CONFIG_APPELFLOADER_EXIT) += $(APPELFLOADER_BASE)/exit.c
UK_PROVIDED_SYSCALLS-$(CONFIG_APPELFLOADER_EXIT) += exit-1 exit_group-1
COMPFLAGS-$(CONFIG_APPELFLOADER_EXIT) += -fno-builtin-exit -fno-builtin-exit-group
# non-standard extra syscall (needs a patched syscall.h.in in Unikraft base)
APPELFLOADER_SRCS-$(CONFIG_APPELFLOADER_GETTSC) += $(APPELFLOADER_BASE)/gettsc.c
UK_PROVIDED_SYSCALLS-$(CONFIG_APPELFLOADER_GETTSC) += gettsc-0
# non-standard extra syscall (needs a patched syscall.h.in in Unikraft base)
APPELFLOADER_SRCS-$(CONFIG_APPELFLOADER_NOOP) += $(APPELFLOADER_BASE)/noop.c
UK_PROVIDED_SYSCALLS-$(CONFIG_APPELFLOADER_NOOP) += noop-0