]> xenbits.xensource.com Git - osstest/rumprun.git/log
osstest/rumprun.git
9 years agoxenbus: add two more mb()s
Wei Liu [Tue, 27 Oct 2015 17:54:19 +0000 (17:54 +0000)]
xenbus: add two more mb()s

Signed-off-by: Wei Liu <liuw@liuw.name>
9 years agorumprun-bake: change regex to a form which OS X grep groks
Antti Kantee [Tue, 27 Oct 2015 17:38:05 +0000 (17:38 +0000)]
rumprun-bake: change regex to a form which OS X grep groks

9 years agoMake it rumprun[-MACHINE_ARCH[-PLATFORM]]
Antti Kantee [Tue, 27 Oct 2015 15:52:05 +0000 (15:52 +0000)]
Make it rumprun[-MACHINE_ARCH[-PLATFORM]]

That way MACHINE_ARCH (if it exists in the particular name),
is always in the same spot, and the same holds for PLATFORM.

9 years agocreate the bmk.ldscript link into objdir
Antti Kantee [Tue, 27 Oct 2015 15:25:47 +0000 (15:25 +0000)]
create the bmk.ldscript link into objdir

9 years agoAssign intermediate variables in Makefile
Antti Kantee [Tue, 27 Oct 2015 15:15:57 +0000 (15:15 +0000)]
Assign intermediate variables in Makefile

no functional change

9 years agocall it pseudolinkstubs.o, install into lib/rumprun-arch
Antti Kantee [Tue, 27 Oct 2015 15:12:25 +0000 (15:12 +0000)]
call it pseudolinkstubs.o, install into lib/rumprun-arch

9 years agocall it rumprun.o, install into rumprun-platform-arch
Antti Kantee [Tue, 27 Oct 2015 15:09:38 +0000 (15:09 +0000)]
call it rumprun.o, install into rumprun-platform-arch

9 years agoFix -I for BUILDRR=false case.
Antti Kantee [Tue, 27 Oct 2015 15:07:49 +0000 (15:07 +0000)]
Fix -I for BUILDRR=false case.

9 years agoUpdate header location to re-fix kernonly test
Antti Kantee [Tue, 27 Oct 2015 14:05:51 +0000 (14:05 +0000)]
Update header location to re-fix kernonly test

9 years agoInstall headers into destdir/include/rumprun.
Antti Kantee [Tue, 27 Oct 2015 13:53:53 +0000 (13:53 +0000)]
Install headers into destdir/include/rumprun.

That way they don't conflict with anything already
in destdir/include.

9 years agoNeed separate BRLIBEXECINST and BRLIBEXECDEST
Antti Kantee [Tue, 27 Oct 2015 13:37:47 +0000 (13:37 +0000)]
Need separate BRLIBEXECINST and BRLIBEXECDEST

9 years agolibexecdir is in RRDEST, not INSTALLDIR.
Antti Kantee [Tue, 27 Oct 2015 13:17:36 +0000 (13:17 +0000)]
libexecdir is in RRDEST, not INSTALLDIR.

(latter varies depending on if it's a manual "make" or not)

9 years agofix to previous: completely remove previnst check
Antti Kantee [Mon, 26 Oct 2015 16:59:25 +0000 (16:59 +0000)]
fix to previous: completely remove previnst check

9 years agobuild-rr: remove previnst check, not needed anymore.
Antti Kantee [Mon, 26 Oct 2015 16:11:48 +0000 (16:11 +0000)]
build-rr: remove previnst check, not needed anymore.

9 years agog/c debugging aid that slipped into the public tree
Antti Kantee [Mon, 26 Oct 2015 16:09:17 +0000 (16:09 +0000)]
g/c debugging aid that slipped into the public tree

9 years agopseudolinkstubs.o needs MACHINE_ARCH in the name.
Antti Kantee [Mon, 26 Oct 2015 15:55:42 +0000 (15:55 +0000)]
pseudolinkstubs.o needs MACHINE_ARCH in the name.

9 years agokernonly test: change -L to match new reality.
Antti Kantee [Mon, 26 Oct 2015 15:53:09 +0000 (15:53 +0000)]
kernonly test: change -L to match new reality.

9 years agoInstall libs to non-conflicting subdirs.
Antti Kantee [Mon, 26 Oct 2015 02:55:16 +0000 (02:55 +0000)]
Install libs to non-conflicting subdirs.

Platform-dependent libs go into lib/rumprun-platform-machine_arch
and platform-independent libs go into lib/rumprun-machine_arch.
(all libs are arch-dependent, naturally)

Allows xen and hw and various machine_arch installations
to coexist.

9 years agoTurn duplicate address detection off.
Antti Kantee [Mon, 26 Oct 2015 15:02:48 +0000 (15:02 +0000)]
Turn duplicate address detection off.

Otherwise the network is unavailable for several seconds
after boot.  There's really no good solution here, but this
one is probably the best, i.e. hoping that things don't go wrong.

nb. turning DAD off cannot be implemented properly with our
current src-netbsd because the dad_count sysctl node is missing.
The current hack will prevent from linking a non-kernonly image
without networking, but I don't think anyone is using that
currently anyway.  To be fixed properly after I next update
src-netbsd.

Fixes issue #56.

9 years agoAdd "-extsrc" to default object directory name for -s builds.
Antti Kantee [Mon, 26 Oct 2015 14:44:48 +0000 (14:44 +0000)]
Add "-extsrc" to default object directory name for -s builds.

9 years agoxenbus: notify the other end when necessary
Wei Liu [Mon, 26 Oct 2015 09:56:07 +0000 (09:56 +0000)]
xenbus: notify the other end when necessary

The xenbus thread didn't send notification to other end when it expected
more data or consumed responses, which led to stalling the ring from
time to time.

Fix this by sending notification to the other end at the right places.

Signed-off-by: Wei Liu <liuw@liuw.name>
9 years agoDefault kernonly objdir to end with "-kernonly"
Antti Kantee [Mon, 26 Oct 2015 00:57:52 +0000 (00:57 +0000)]
Default kernonly objdir to end with "-kernonly"

9 years agobuild-rr: nuke prevbuild platform from error message
Antti Kantee [Mon, 26 Oct 2015 00:55:46 +0000 (00:55 +0000)]
build-rr: nuke prevbuild platform from error message

Mirrors how the platform became a non-issue with (partial)
objdir build support.

9 years agopull in new src-netbsd (and buildrump.sh)
Antti Kantee [Sun, 25 Oct 2015 16:53:32 +0000 (16:53 +0000)]
pull in new src-netbsd (and buildrump.sh)

9 years agoImplement daemon() using rumprun_daemon()
Antti Kantee [Sun, 25 Oct 2015 16:34:55 +0000 (16:34 +0000)]
Implement daemon() using rumprun_daemon()

IOW, daemon() now works on Rumprun

9 years agobuild-rr: always create .rumprun-installation
Antti Kantee [Sun, 25 Oct 2015 16:27:57 +0000 (16:27 +0000)]
build-rr: always create .rumprun-installation

Fixes blowing objdir away while installing to the same destdir
in the next build.

9 years agoadjust comment for rumprun_daemon()
Antti Kantee [Sun, 25 Oct 2015 15:54:57 +0000 (15:54 +0000)]
adjust comment for rumprun_daemon()

9 years agoFix flag values to be actual flags.
Antti Kantee [Sun, 25 Oct 2015 13:44:18 +0000 (13:44 +0000)]
Fix flag values to be actual flags.

I remember they looked somehow funny when I wrote the code.
Lesson: if code looks funny, always stop to investiate.

9 years agoUse more consistent !REPLACE! pattern names.
Antti Kantee [Sat, 24 Oct 2015 12:48:43 +0000 (12:48 +0000)]
Use more consistent !REPLACE! pattern names.

9 years agoPrevent installing two different builds into same destdir.
Antti Kantee [Fri, 23 Oct 2015 15:55:06 +0000 (15:55 +0000)]
Prevent installing two different builds into same destdir.

Will be fixed, eventually ...

9 years agouse rumprun-bake
Antti Kantee [Fri, 23 Oct 2015 15:23:26 +0000 (15:23 +0000)]
use rumprun-bake

9 years agoBuild generated tools in object directory.
Antti Kantee [Fri, 23 Oct 2015 15:21:36 +0000 (15:21 +0000)]
Build generated tools in object directory.

9 years agoSource the conf before we (potentially) chdir.
Antti Kantee [Fri, 23 Oct 2015 14:20:47 +0000 (14:20 +0000)]
Source the conf before we (potentially) chdir.

9 years agofixup variable name fsckup
Antti Kantee [Fri, 23 Oct 2015 14:12:29 +0000 (14:12 +0000)]
fixup variable name fsckup

9 years agoruntests: source SHCONF too (works better that way)
Antti Kantee [Fri, 23 Oct 2015 13:57:04 +0000 (13:57 +0000)]
runtests: source SHCONF too (works better that way)

9 years agoDon't clean non-autogenerated bins.
Antti Kantee [Fri, 23 Oct 2015 13:54:24 +0000 (13:54 +0000)]
Don't clean non-autogenerated bins.

9 years agorumpbake -> rumprun-bake
Antti Kantee [Fri, 23 Oct 2015 12:30:13 +0000 (12:30 +0000)]
rumpbake -> rumprun-bake

Puts the tool into the correct namespace (it's a rumprun tool,
not a generic rump kernel tool).

For compat, keep the name "rumpbake" around for now, probably
will go away when we declare things stable.

9 years agoAdjust tests to new destdir world order.
Antti Kantee [Fri, 23 Oct 2015 00:30:46 +0000 (00:30 +0000)]
Adjust tests to new destdir world order.

9 years agoRemove most of the gitignore nonsense.
Antti Kantee [Fri, 23 Oct 2015 00:15:19 +0000 (00:15 +0000)]
Remove most of the gitignore nonsense.

Rest will be removed when platform builds into objdir.

9 years agog/c prehistoric wrappers
Antti Kantee [Fri, 23 Oct 2015 00:12:09 +0000 (00:12 +0000)]
g/c prehistoric wrappers

9 years agoinstall toolchain to destdir
Antti Kantee [Fri, 23 Oct 2015 00:11:49 +0000 (00:11 +0000)]
install toolchain to destdir

9 years agoset INSTALLDIR in global.mk instead of platform/Makefile.inc
Antti Kantee [Thu, 22 Oct 2015 21:29:13 +0000 (21:29 +0000)]
set INSTALLDIR in global.mk instead of platform/Makefile.inc

9 years agoBuild libs into objdir.
Antti Kantee [Thu, 22 Oct 2015 14:48:59 +0000 (14:48 +0000)]
Build libs into objdir.

The grand implication of this commit is that now it's possible to
build both hw and xen from the same source tree (which is useful
mostly for me so that I can easily test things when developing).
nb. different target cpus are still not supported from the same
source tree.

9 years agoAlways build libcompiler_rt
Antti Kantee [Thu, 22 Oct 2015 12:56:34 +0000 (12:56 +0000)]
Always build libcompiler_rt

Makes testing kernonly mode easier, don't need a separate build
for it (or even the hackish shortcut of editing KERNONLY in config.mk)

9 years agoBuild libs into objdir.
Antti Kantee [Thu, 22 Oct 2015 12:21:27 +0000 (12:21 +0000)]
Build libs into objdir.

Well, the ones built by platform/Makefile.inc, at any rate.

9 years agoFix pasto in previous to fix kernonly build.
Antti Kantee [Thu, 22 Oct 2015 01:43:55 +0000 (01:43 +0000)]
Fix pasto in previous to fix kernonly build.

9 years agocreate main object and pseudostubs into objdir
Antti Kantee [Thu, 22 Oct 2015 01:29:56 +0000 (01:29 +0000)]
create main object and pseudostubs into objdir

9 years agoConsolidate the RUMPRUN_MKCONF include dance into global.mk
Antti Kantee [Thu, 22 Oct 2015 01:27:30 +0000 (01:27 +0000)]
Consolidate the RUMPRUN_MKCONF include dance into global.mk

Convert all safe-looking locations, i.e. NOT app-tools
or platform/xen/xen.

9 years agoTravis: need config.mk too (for kernonly tests)
Antti Kantee [Thu, 22 Oct 2015 01:23:19 +0000 (01:23 +0000)]
Travis: need config.mk too (for kernonly tests)

9 years agoxen/Config.mk: fix pasto (I thought this built locally?!?)
Antti Kantee [Thu, 22 Oct 2015 01:17:14 +0000 (01:17 +0000)]
xen/Config.mk: fix pasto (I thought this built locally?!?)

9 years agofix travis buildtests.sh invocation
Antti Kantee [Thu, 22 Oct 2015 01:16:23 +0000 (01:16 +0000)]
fix travis buildtests.sh invocation

9 years agobuildtests.sh: fix usage
Antti Kantee [Thu, 22 Oct 2015 01:13:34 +0000 (01:13 +0000)]
buildtests.sh: fix usage

9 years agoAt end of build, print RUMPRUN_SHCONF too
Antti Kantee [Thu, 22 Oct 2015 01:11:04 +0000 (01:11 +0000)]
At end of build, print RUMPRUN_SHCONF too

9 years agouse a predictable object directory, source config from there
Antti Kantee [Thu, 22 Oct 2015 00:53:31 +0000 (00:53 +0000)]
use a predictable object directory, source config from there

9 years agoRely on RUMPRUN_SHCONF being set in the env.
Antti Kantee [Thu, 22 Oct 2015 01:05:23 +0000 (01:05 +0000)]
Rely on RUMPRUN_SHCONF being set in the env.

As opposed to giving the same params manually on the command line.

9 years agoCreate RUMPRUN_SHCONF, OBJDIR -> RROBJ, DESTDIR -> RRDEST.
Antti Kantee [Thu, 22 Oct 2015 01:06:00 +0000 (01:06 +0000)]
Create RUMPRUN_SHCONF, OBJDIR -> RROBJ, DESTDIR -> RRDEST.

9 years agoPrint RUMPRUN_MKCONF value at the end of build-rr run
Antti Kantee [Thu, 22 Oct 2015 00:43:29 +0000 (00:43 +0000)]
Print RUMPRUN_MKCONF value at the end of build-rr run

9 years agocreate config.mk into objdir
Antti Kantee [Thu, 22 Oct 2015 00:29:56 +0000 (00:29 +0000)]
create config.mk into objdir

9 years agoFail gracefully if some bootstrap routine calls exit.
Antti Kantee [Wed, 21 Oct 2015 21:28:43 +0000 (21:28 +0000)]
Fail gracefully if some bootstrap routine calls exit.

9 years agoSupport pipe between multibaked executables.
Antti Kantee [Wed, 21 Oct 2015 08:20:00 +0000 (08:20 +0000)]
Support pipe between multibaked executables.

The usual multibake cautions apply due to the currently shared
libc state, and especially in this case shared stdio state.

9 years agoAllow config entries in nested objects.
Antti Kantee [Wed, 21 Oct 2015 00:26:41 +0000 (00:26 +0000)]
Allow config entries in nested objects.

9 years agoFix rc object processing.
Antti Kantee [Wed, 21 Oct 2015 00:26:21 +0000 (00:26 +0000)]
Fix rc object processing.

9 years agoDon't accept pipe runmode for now.
Antti Kantee [Tue, 20 Oct 2015 23:36:49 +0000 (23:36 +0000)]
Don't accept pipe runmode for now.

Implementing it is a bit more difficult than imagined ...

9 years agorumprun: Generate random MAC addresses for qemu/kvm
Martin Lucina [Tue, 20 Oct 2015 16:30:16 +0000 (18:30 +0200)]
rumprun: Generate random MAC addresses for qemu/kvm

Each unikernel on kvm/qemu gets the same MAC address, making them
unusable in bridged configurations.

9 years agokill accidentally committed debug print
Antti Kantee [Tue, 20 Oct 2015 14:57:25 +0000 (14:57 +0000)]
kill accidentally committed debug print

9 years agoPerform some config sanity checks
Antti Kantee [Tue, 20 Oct 2015 14:56:07 +0000 (14:56 +0000)]
Perform some config sanity checks

9 years agorumprun_config_path: extern -> static
Antti Kantee [Tue, 20 Oct 2015 13:17:04 +0000 (13:17 +0000)]
rumprun_config_path: extern -> static

9 years agog/c deconfig
Antti Kantee [Tue, 20 Oct 2015 13:15:41 +0000 (13:15 +0000)]
g/c deconfig

Should be and (mostly is) implemented by the rump kernel.

9 years agog/c unused
Antti Kantee [Tue, 20 Oct 2015 13:14:36 +0000 (13:14 +0000)]
g/c unused

9 years agoSupport backgrounded rc execution.
Antti Kantee [Tue, 20 Oct 2015 13:06:42 +0000 (13:06 +0000)]
Support backgrounded rc execution.

9 years agoAutomatically detect type of block devices in runtime config.
Antti Kantee [Tue, 20 Oct 2015 01:42:04 +0000 (01:42 +0000)]
Automatically detect type of block devices in runtime config.

In other words, do not run blkid in rumprun.  This change addresses
two issues:
  1) systems which do not have blkid will now work
  2) identifying fs type at launchtime does not do anything useful

9 years agoFix end-of-build prints a bit more.
Antti Kantee [Mon, 19 Oct 2015 23:56:48 +0000 (23:56 +0000)]
Fix end-of-build prints a bit more.

9 years agoUse rumprun_exec for the old-style cmdline passing.
Antti Kantee [Mon, 19 Oct 2015 23:53:50 +0000 (23:53 +0000)]
Use rumprun_exec for the old-style cmdline passing.

(temporary compat)

9 years agoPush the runmain logic into librumprun_base.
Antti Kantee [Mon, 19 Oct 2015 22:46:23 +0000 (22:46 +0000)]
Push the runmain logic into librumprun_base.

It's no longer required elsewhere.

9 years agoadd missing \n to printf
Antti Kantee [Mon, 19 Oct 2015 16:30:36 +0000 (16:30 +0000)]
add missing \n to printf

9 years agorumprun_base: crank up WARNS
Antti Kantee [Sun, 18 Oct 2015 13:38:58 +0000 (13:38 +0000)]
rumprun_base: crank up WARNS

9 years agoDon't assign const char * to char *
Antti Kantee [Sun, 18 Oct 2015 13:37:57 +0000 (13:37 +0000)]
Don't assign const char * to char *

9 years agoRename librumprun_base/rumpconfig.c -> config.c
Antti Kantee [Sun, 18 Oct 2015 13:11:01 +0000 (13:11 +0000)]
Rename librumprun_base/rumpconfig.c -> config.c

"rumpconfig" is definitely the wrong name.  It could be
rumprun_config.c, but let's drop the redudancy wrt. the lib name.

9 years agoplatform/xen: don't override common TARGETS
Antti Kantee [Fri, 16 Oct 2015 19:05:52 +0000 (19:05 +0000)]
platform/xen: don't override common TARGETS

9 years agofix xen/Makefile to work again
Antti Kantee [Fri, 16 Oct 2015 18:54:40 +0000 (18:54 +0000)]
fix xen/Makefile to work again

9 years agoPLATFORM comes from config.mk, so g/c it from Makefiles.
Antti Kantee [Fri, 16 Oct 2015 17:15:47 +0000 (17:15 +0000)]
PLATFORM comes from config.mk, so g/c it from Makefiles.

9 years agoReduce copypasteware in Makefiles
Antti Kantee [Fri, 16 Oct 2015 16:43:50 +0000 (16:43 +0000)]
Reduce copypasteware in Makefiles

9 years agoAssume Xen headers are in /usr/pkg/include on NetBSD.
Antti Kantee [Fri, 16 Oct 2015 14:10:38 +0000 (14:10 +0000)]
Assume Xen headers are in /usr/pkg/include on NetBSD.

This could be done better via a probe, but ...

9 years agoSimplify nolibc Makefile
Sebastian Wicki [Fri, 16 Oct 2015 13:06:17 +0000 (15:06 +0200)]
Simplify nolibc Makefile

No architecture specific ifdefs needed anymore, we can reuse
BUILDRUMP_TOOLFLAGS for i386.

9 years agoCONFIG -> RUMPRUN_MKCONF
Antti Kantee [Fri, 16 Oct 2015 02:10:06 +0000 (02:10 +0000)]
CONFIG -> RUMPRUN_MKCONF

If the name of the config file variable is not generic, devs
can set it in the env for convenience.  make it so!

9 years agoFix "buildtest" target.
Antti Kantee [Fri, 16 Oct 2015 02:08:26 +0000 (02:08 +0000)]
Fix "buildtest" target.

nb. it's no longer run automatically from the platform Makefile
since it requires a "make install" before it can be expected to work.

9 years agoRecord tool tuple in config.mk and use it.
Antti Kantee [Fri, 16 Oct 2015 02:06:57 +0000 (02:06 +0000)]
Record tool tuple in config.mk and use it.

9 years agoapp-tools Makefile: g/c MACHINE_ARCH assignment
Antti Kantee [Fri, 16 Oct 2015 01:59:03 +0000 (01:59 +0000)]
app-tools Makefile: g/c MACHINE_ARCH assignment

already set in config.mk

9 years agog/c unused variable
Antti Kantee [Fri, 16 Oct 2015 01:36:47 +0000 (01:36 +0000)]
g/c unused variable

9 years agoSpecifying LDFLAGS_BAKE here is finally unnecessary.
Antti Kantee [Thu, 15 Oct 2015 23:16:41 +0000 (23:16 +0000)]
Specifying LDFLAGS_BAKE here is finally unnecessary.

9 years agoGive app-tools its own Makefile instead of it being a .inc
Antti Kantee [Thu, 15 Oct 2015 22:41:09 +0000 (22:41 +0000)]
Give app-tools its own Makefile instead of it being a .inc

This means that app-tools are now built directly by build-rr.sh
instead of being driven by platform/x/Makefile.

9 years agoinclude platform in config.mk
Antti Kantee [Thu, 15 Oct 2015 22:34:27 +0000 (22:34 +0000)]
include platform in config.mk

9 years agog/c comment which makes little sense now
Antti Kantee [Thu, 15 Oct 2015 22:27:49 +0000 (22:27 +0000)]
g/c comment which makes little sense now

9 years agoStill set LDFLAGS_BAKE here until Makefile.app-tools is fixed.
Antti Kantee [Thu, 15 Oct 2015 20:15:01 +0000 (20:15 +0000)]
Still set LDFLAGS_BAKE here until Makefile.app-tools is fixed.

9 years agoFix itchy push finger problem part 1
Antti Kantee [Thu, 15 Oct 2015 20:12:20 +0000 (20:12 +0000)]
Fix itchy push finger problem part 1

restore @ln (not ln)

9 years agoSpecify bake-time special ldflags in global.mk
Antti Kantee [Thu, 15 Oct 2015 20:10:31 +0000 (20:10 +0000)]
Specify bake-time special ldflags in global.mk

Finally decouples Makefile.app-tools from platform/x/Makefile

9 years agoCreate links at the right place.
Antti Kantee [Thu, 15 Oct 2015 19:51:30 +0000 (19:51 +0000)]
Create links at the right place.

(no wonder I couldn't repeat the travis failure, I forgot to
commit this change ... :)

9 years agoNo reason to include <bmk-core/core.h> here
Antti Kantee [Thu, 15 Oct 2015 19:10:58 +0000 (19:10 +0000)]
No reason to include <bmk-core/core.h> here

9 years agoBuild librumprun_base as part of userland build-rr.sh cycle
Antti Kantee [Thu, 15 Oct 2015 17:52:45 +0000 (17:52 +0000)]
Build librumprun_base as part of userland build-rr.sh cycle

Also, install the lib to destdir.

9 years agoDon't complain if LDFLAGS_BAKE is missing.
Antti Kantee [Thu, 15 Oct 2015 19:10:03 +0000 (19:10 +0000)]
Don't complain if LDFLAGS_BAKE is missing.

Intermediary commit to fix cyclic commit dependency, the
reason will go away shortly.