Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
This commit is contained in:
31
repos/base-fiasco/lib/mk/base-common.mk
Normal file
31
repos/base-fiasco/lib/mk/base-common.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# \brief Portions of base library shared by core and non-core processes
|
||||
# \author Norman Feske
|
||||
# \date 2013-02-14
|
||||
#
|
||||
|
||||
LIBS += cxx startup
|
||||
|
||||
SRC_CC += cap_copy.cc
|
||||
SRC_CC += ipc/ipc.cc ipc/pager.cc ipc/ipc_marshal_cap.cc
|
||||
SRC_CC += pager/pager.cc pager/common.cc
|
||||
SRC_CC += avl_tree/avl_tree.cc
|
||||
SRC_CC += allocator/slab.cc
|
||||
SRC_CC += allocator/allocator_avl.cc
|
||||
SRC_CC += heap/heap.cc heap/sliced_heap.cc
|
||||
SRC_CC += console/console.cc
|
||||
SRC_CC += child/child.cc
|
||||
SRC_CC += process/process.cc
|
||||
SRC_CC += elf/elf_binary.cc
|
||||
SRC_CC += lock/lock.cc
|
||||
SRC_CC += signal/signal.cc signal/common.cc
|
||||
SRC_CC += server/server.cc server/common.cc
|
||||
SRC_CC += thread/thread.cc thread/thread_bootstrap.cc thread/trace.cc
|
||||
SRC_CC += thread/context_allocator.cc
|
||||
|
||||
INC_DIR += $(REP_DIR)/src/base/lock
|
||||
INC_DIR += $(BASE_DIR)/src/base/thread
|
||||
|
||||
vpath cap_copy.cc $(BASE_DIR)/src/platform
|
||||
vpath %.cc $(REP_DIR)/src/base
|
||||
vpath %.cc $(BASE_DIR)/src/base
|
||||
16
repos/base-fiasco/lib/mk/base.mk
Normal file
16
repos/base-fiasco/lib/mk/base.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# \brief Portions of base library that are exclusive to non-core processes
|
||||
# \author Norman Feske
|
||||
# \date 2013-02-14
|
||||
#
|
||||
|
||||
LIBS += base-common
|
||||
|
||||
SRC_CC += console/log_console.cc
|
||||
SRC_CC += env/env.cc env/context_area.cc env/reinitialize.cc
|
||||
SRC_CC += thread/thread_start.cc
|
||||
|
||||
INC_DIR += $(BASE_DIR)/src/base/env
|
||||
|
||||
vpath %.cc $(REP_DIR)/src/base
|
||||
vpath %.cc $(BASE_DIR)/src/base
|
||||
19
repos/base-fiasco/lib/mk/l4v2_support.mk
Normal file
19
repos/base-fiasco/lib/mk/l4v2_support.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# Build L4env base libraries, needed by sigma0 and bootstrap
|
||||
|
||||
|
||||
# ignore stage one, visit the L4 build system at second build stage
|
||||
ifeq ($(called_from_lib_mk),yes)
|
||||
|
||||
# packages in 'l4/pkg/'
|
||||
PKGS = l4sys/lib \
|
||||
uclibc/lib/uclibc \
|
||||
uclibc/lib/include \
|
||||
crtx \
|
||||
l4util/lib \
|
||||
cxx
|
||||
|
||||
include $(REP_DIR)/mk/l4_pkg.mk
|
||||
all: $(PKG_TAGS)
|
||||
|
||||
endif
|
||||
56
repos/base-fiasco/lib/mk/platform.inc
Normal file
56
repos/base-fiasco/lib/mk/platform.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# Create prerequisites for building Genode for Fiasco
|
||||
#
|
||||
# Prior building Genode programs for Fiasco, the kernel bindings must be
|
||||
# generated. This is done by building a minimalistic subset of the original
|
||||
# userland that comes with Fiasco.
|
||||
#
|
||||
|
||||
#
|
||||
# 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)
|
||||
|
||||
#
|
||||
# Sanity checks
|
||||
#
|
||||
ifeq ($(L4_BUILD_DIR),$(BUILD_BASE_DIR)/l4)
|
||||
all: $(L4_SRC_DIR)
|
||||
|
||||
$(L4_SRC_DIR):
|
||||
$(VERBOSE)$(ECHO) "--> Please, execute 'make prepare' in $(REP_DIR)"
|
||||
$(VERBOSE)$(ECHO) "--> before compiling Genode apps for Fiasco."
|
||||
$(VERBOSE)exit 1
|
||||
endif
|
||||
|
||||
#
|
||||
# Create L4 build directory
|
||||
#
|
||||
$(BUILD_BASE_DIR)/l4/.Makeconf.bid.old:
|
||||
$(VERBOSE)mkdir -p $(dir $@)
|
||||
$(VERBOSE)cp $(L4_CONFIG) $(@:.old=)
|
||||
$(VERBOSE_MK) MAKEFLAGS= make $(VERBOSE_DIR) -C $(L4_SRC_DIR)/l4 \
|
||||
O=$(BUILD_BASE_DIR)/l4 SYSTEM_TARGET="$(CROSS_DEV_PREFIX)" oldconfig
|
||||
|
||||
$(BUILD_BASE_DIR)/l4/pkg/uclibc/lib/uclibc:
|
||||
$(VERBOSE)mkdir -p $(BUILD_BASE_DIR)/l4/pkg/uclibc/lib/uclibc
|
||||
$(VERBOSE)tar cf - --exclude .svn -C $(L4_SRC_DIR)/../uclibc ARCH-all ARCH-x86 \
|
||||
| tar xf - -C $(BUILD_BASE_DIR)/l4/pkg/uclibc/lib/uclibc
|
||||
|
||||
PKGS = input/include \
|
||||
drivers/uart/include \
|
||||
l4sys/include \
|
||||
l4util/include \
|
||||
libc_support/include \
|
||||
libsigma0/include
|
||||
|
||||
include $(REP_DIR)/mk/l4_pkg.mk
|
||||
|
||||
all: $(PKG_TAGS)
|
||||
|
||||
$(PKG_TAGS): $(BUILD_BASE_DIR)/l4/.Makeconf.bid.old
|
||||
$(PKG_TAGS): $(BUILD_BASE_DIR)/l4/pkg/uclibc/lib/uclibc
|
||||
|
||||
endif
|
||||
|
||||
6
repos/base-fiasco/lib/mk/x86/platform.mk
Normal file
6
repos/base-fiasco/lib/mk/x86/platform.mk
Normal file
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# Configuration for L4 build system (for kernel-bindings, sigma0, bootstrap).
|
||||
#
|
||||
L4_CONFIG = $(REP_DIR)/config/l4env-config.x86
|
||||
|
||||
include $(REP_DIR)/lib/mk/platform.inc
|
||||
Reference in New Issue
Block a user