]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Build librumprun_base as part of userland build-rr.sh cycle
authorAntti Kantee <pooka@iki.fi>
Thu, 15 Oct 2015 17:52:45 +0000 (17:52 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 15 Oct 2015 19:11:21 +0000 (19:11 +0000)
Also, install the lib to destdir.

build-rr.sh
lib/librumprun_base/Makefile
platform/Makefile.inc

index bdf8da8e9852936e26457566e6e530efce7bd559..4a6190e9457a40841c7efddb8886e333dd82ab1d 100755 (executable)
@@ -325,6 +325,7 @@ builduserspace ()
        for lib in ${LIBS}; do
                makeuserlib ${lib}
        done
+       makeuserlib $(pwd)/lib/librumprun_base ${PLATFORM}
        makeuserlib $(pwd)/lib/librumprun_tester ${PLATFORM}
 
        # build unwind bits if we support c++
@@ -341,9 +342,6 @@ builduserspace ()
 buildpci ()
 {
 
-       # need links to build the hypercall module
-       ${MAKE} -C ${PLATFORMDIR} links
-
        if eval ${PLATFORM_PCI_P}; then
                ${RUMPMAKE} -f ${PLATFORMDIR}/pci/Makefile.pci ${STDJ} obj
                ${RUMPMAKE} -f ${PLATFORMDIR}/pci/Makefile.pci ${STDJ} dependall
@@ -413,6 +411,8 @@ dobuild ()
        PLATFORM_MKCONF=
        . ${PLATFORMDIR}/platform.conf
 
+       ${MAKE} -C ${PLATFORMDIR} links
+
        buildrump "$@"
        ${KERNONLY} || builduserspace
 
index 6cd28ce6aa1be1113f5574f3daf4b0b6a8656eec..bcabff71901318e246098840fe84dd4ce5fc63c5 100644 (file)
@@ -1,5 +1,4 @@
 LIB=           rumprun_base
-LIBISPRIVATE=  # defined
 
 SRCS=          main.c rumprun.c
 SRCS+=         parseargs.c rumpconfig.c
index 63fad23e4990e6517849487af330e3f8261c522a..45bfd3d3bb1f13772472e63c8c631b51d066a12a 100644 (file)
@@ -4,13 +4,10 @@ endif
 
 COREDIR:=      $(shell pwd)/../../lib/libbmk_core
 RUMPUSERDIR:=  $(shell pwd)/../../lib/libbmk_rumpuser
-BASEDIR:=      $(shell pwd)/../../lib/librumprun_base
 COMPILERRTDIR:=        $(shell pwd)/../../lib/libcompiler_rt
 
 COMMONDIR:=    $(abspath ../)
 
-LDFLAGS_BAKE+= -L${BASEDIR}/${PLATFORM}
-
 define BUILDLIB_target
 .PHONY: ${1}/${PLATFORM}/${2}
 ${1}/${PLATFORM}/${2}:
@@ -19,21 +16,20 @@ ${1}/${PLATFORM}/${2}:
            && ${RUMPMAKE} MAKEOBJDIR=${PLATFORM} ${3} dependall )
 endef
 
-$(eval $(call BUILDLIB_target,${BASEDIR},librumprun_base.a))
 $(eval $(call BUILDLIB_target,${COREDIR},libbmk_core.a))
 $(eval $(call BUILDLIB_target,${RUMPUSERDIR},libbmk_rumpuser.a))
 $(eval $(call BUILDLIB_target,${COMPILERRTDIR},libcompiler_rt.a,RUMPSRC=${RUMPSRC}))
 
 PSEUDOSTUBS=${COMMONDIR}/rumprun-pseudolinkstubs
 
-${PSEUDOSTUBS}.c: ${BASEDIR}/${PLATFORM}/librumprun_base.a
+${PSEUDOSTUBS}.c: ${OBJDIR}/dest.stage/lib/librumprun_base.a
        sh ../makepseudolinkstubs.sh ${NM} ${RUMPSRC} $< $@
 
 bmk.ldscript: ${LDSCRIPT}
        ln -sf $< $@
 
 commonlibs: platformlibs userlibs
-userlibs: ${BASEDIR}/${PLATFORM}/librumprun_base.a ${PSEUDOSTUBS}.o
+userlibs: ${PSEUDOSTUBS}.o
 platformlibs: ${COREDIR}/${PLATFORM}/libbmk_core.a ${RUMPUSERDIR}/${PLATFORM}/libbmk_rumpuser.a bmk.ldscript
 compiler_rt: ${COMPILERRTDIR}/${PLATFORM}/libcompiler_rt.a
 
@@ -53,7 +49,6 @@ buildtest: ../../tests/hello/hello.c ${MAINOBJ} commonlibs app-tools
 
 .PHONY: commonclean
 commonclean:
-       ( cd ${BASEDIR} && ${RUMPMAKE} MAKEOBJDIR=${PLATFORM} cleandir )
        ( cd ${COREDIR} && ${RUMPMAKE} MAKEOBJDIR=${PLATFORM} cleandir )
        ( cd ${RUMPUSERDIR} && ${RUMPMAKE} MAKEOBJDIR=${PLATFORM} cleandir )
        ( cd ${COMPILERRTDIR} && \