mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-06 22:08:46 +00:00
af93f8d01b
- adjust syscall bindings to support -fPIC - read serial i/o ports from BIOS data area - use autoconf.h provided by sel4 -- to avoid ambiguity between sel4 kernel and user libraries -- remove manual set defines - remove debug messages - increase user virtual area to 3GB Issue #1720 Issue #2044
27 lines
868 B
Makefile
27 lines
868 B
Makefile
SEL4_DIR := $(call select_from_ports,sel4)/src/kernel/sel4
|
|
|
|
#
|
|
# Execute the kernel build only at the second build stage when we know
|
|
# about the complete build settings (e.g., the 'CROSS_DEV_PREFIX') and the
|
|
# current working directory is the library location.
|
|
#
|
|
ifeq ($(called_from_lib_mk),yes)
|
|
all: build_kernel
|
|
else
|
|
all:
|
|
endif
|
|
|
|
LINKER_OPT_PREFIX := -Wl,
|
|
|
|
build_kernel:
|
|
$(VERBOSE)$(MAKE) \
|
|
TOOLPREFIX=$(CROSS_DEV_PREFIX) \
|
|
ARCH=x86 SEL4_ARCH=ia32 PLAT=pc99 DEBUG=1 \
|
|
CONFIG_KERNEL_EXTRA_CPPFLAGS="-DCONFIG_PRINTING=y -DCONFIG_USER_STACK_TRACE_LENGTH=16" \
|
|
LDFLAGS+=-nostdlib LDFLAGS+=-Wl,-nostdlib \
|
|
$(addprefix LDFLAGS+=$(LINKER_OPT_PREFIX),$(LD_MARCH)) \
|
|
CFLAGS+="-fno-builtin-printf -O3" \
|
|
$(addprefix CFLAGS+=,$(CC_MARCH)) \
|
|
SOURCE_ROOT=$(SEL4_DIR) -f$(SEL4_DIR)/Makefile
|
|
|