genode/repos/dde_rump/lib/mk/rump_common.inc
Sebastian Sumpf 38abfc79f5 rump: reduce size of rump
* integrate rump's contrib code into Genode's build system and build what is
  required by Genode, only
* checkout needed NetBSD sources directly from CVS

fixes #2589
2017-11-30 11:23:19 +01:00

27 lines
978 B
Makefile

RUMP_PORT_DIR := $(call select_from_ports,dde_rump)/src/lib/dde_rump
RUMP_BASE := $(BUILD_BASE_DIR)/var/libcache/rump
CC_C_OPT += -D__NetBSD__ -D'CTASSERT(x)=' -DMAXPHYS=32768 -D_RUMP_NATIVE_ABI \
-DMAXUSERS=32 -DCOMPAT_50=1 -DCOMPAT_60=1 -DDIAGNOSTIC -DKTRACE \
-DRUMP_KERNEL_IS_LIBC -D_RUMPKERNEL -D_KERNEL -DMULTIPROCESSOR \
-D_MODULE -DMODULAR -DRUMP_USE_CTOR
#
# silence contrib code
#
CC_C_OPT += -fno-builtin-printf -fno-builtin-vprintf -fno-builtin-log \
-fno-builtin-putchar
CC_C_OPT += -Wno-pointer-sign -Wno-unused-but-set-variable \
-Wno-unused-variable -Wno-format-zero-length \
-Wno-nonnull-compare -Wno-misleading-indentation \
-Wno-format -Wno-incompatible-pointer-types
#
# rump.ld is an additional linker script which is required during
# initialization
#
LD_SCRIPT_SO = $(BASE_DIR)/src/ld/genode_rel.ld \
-T$(REP_DIR)/src/ld/rump.ld
# vi:set ft=make :