Commit 5c23eca2 authored by Alessandro Rubini's avatar Alessandro Rubini

time-bare: new directory

This commit separates to its own directory the timing code specific
to bere linux implementations.  If you build with ARCH=bare-i386
or ARCH=bare-i386-64, TIME=bare is automatically selected.

Please note how bare builds don't allow externally-set TIME=, as the
architecture Makefile forces "TIME := bare" (not "TIME ?= bare").
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b6eb1385
......@@ -18,15 +18,17 @@ LIBARCH := $A/libarch.a
OBJ-libarch := $L/bare-startup.o \
$L/main-loop.o \
$L/bare-socket.o \
$L/bare-io.o \
$L/bare-time.o \
$A/syscalls.o \
lib/libc-functions.o \
lib/dump-funcs.o \
lib/cmdline.o \
lib/div64.o
# We only support "bare" time operations
TIME := bare
include time-bare/Makefile
$(LIBARCH): $(OBJ-libarch)
$(AR) r $@ $^
......
......@@ -18,9 +18,7 @@ LIBARCH := $A/libarch.a
OBJ-libarch := $L/bare-startup.o \
$L/main-loop.o \
$L/bare-socket.o \
$L/bare-io.o \
$L/bare-time.o \
$A/syscall.o \
$A/syscalls.o \
lib/libc-functions.o \
......@@ -28,6 +26,10 @@ OBJ-libarch := $L/bare-startup.o \
lib/cmdline.o \
lib/div64.o
# We only support "bare" time operations
TIME := bare
include time-bare/Makefile
$(LIBARCH): $(OBJ-libarch)
$(AR) r $@ $^
......
# Alessandro Rubini for CERN, 2013 -- public domain
# This Makefile in included by architectures that select time-bare
# Object files are added to libarch, so they are picked on demand.
OBJ-libarch += \
time-bare/bare-time.o \
time-bare/bare-socket.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment