genode/repos/base-pistachio/lib/mk/platform.mk

27 lines
820 B
Makefile
Raw Normal View History

2011-12-22 15:19:25 +00:00
#
# Create prerequisites for building Genode for Pistachio
#
#
# Execute the rules in this file only at the second build stage when we know
# about the complete build settings, e.g., the 'CROSS_DEV_PREFIX'.
#
ifeq ($(called_from_lib_mk),yes)
all: $(filter-out $(wildcard $(PISTACHIO_USER_BUILD_DIR)), $(PISTACHIO_USER_BUILD_DIR))
LD_PREFIX = "-Wl,"
PISTACHIO_CONTRIB_DIR := $(call select_from_ports,pistachio)/src/kernel/pistachio
2011-12-22 15:19:25 +00:00
$(PISTACHIO_USER_BUILD_DIR):
$(VERBOSE)mkdir $@
$(VERBOSE)cd $@; \
LIBGCCFLAGS="$(CC_MARCH)" \
LDFLAGS="$(addprefix $(LD_PREFIX),$(LD_MARCH)) -nostdlib" \
CFLAGS="$(CC_MARCH)" \
$(PISTACHIO_CONTRIB_DIR)/user/configure --build=ia32 --host i686 \
CC=$(CROSS_DEV_PREFIX)gcc
2011-12-22 15:19:25 +00:00
$(VERBOSE_MK) MAKEFLAGS= $(MAKE) $(VERBOSE_DIR) -C $@
endif