]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Install rumprunfs_base files to destdir.
authorAntti Kantee <pooka@iki.fi>
Tue, 16 Feb 2016 22:48:40 +0000 (22:48 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 16 Feb 2016 22:48:40 +0000 (22:48 +0000)
lib/librumprunfs_base/Makefile
platform/Makefile.inc

index 9796ce515d2d06c735d4098d5182b2fd111d3e43..43b89ba55a65c5cb45f87c8df1b7dd20fc5cd659 100644 (file)
@@ -16,3 +16,9 @@ dependall:
            RUMPRUN_COOKFS_INCDIR="${RROBJ}/dest.stage/include"         \
                ${RROBJ}/app-tools/${TOOLTUPLE}-cookfs -s 1             \
                    ${MAKEOBJDIR}/librumprunfs_base.a rootfs )
+
+install:
+       mkdir -p ${DESTDIR}/share/rumprun/rumprunfs_base
+       ( cd ${.CURDIR}/rootfs ; tar -cf - . )                          \
+           | ( cd ${DESTDIR}/share/rumprun/rumprunfs_base ; tar -xf - )
+       install -m 444 ${MAKEOBJDIR}/librumprunfs_base.a ${LIBDIR}
index 0ccb203b5db546c12b88bc671b249fe00658e8ea..a82c335596911bea903790853e736a4ab7f874b8 100644 (file)
@@ -15,7 +15,7 @@ INSTALLTGTS+= librumpkern_mman_install
 ifneq (${KERNONLY},true)
 TARGETS+=      userlibs
 INSTALLTGTS+=  librumprun_base_install librumprun_tester_install2
-INSTALLTGTS+=  librumprunfs_base_install
+INSTALLTGTS+=  librumprunfs_base_install_custom
 ifeq (${CONFIG_CXX},yes)
 INSTALLTGTS+=  libunwind_install2
 endif
@@ -56,6 +56,12 @@ ${1}_install2:
        ( cd $${RROBJLIB}/${1} && \
            install -m 0444 ${1}.a $${INSTALLDIR_LIBARCH} )
 
+.PHONY: ${1}_install_custom
+${1}_install_custom:
+       ( cd ${2}/${1} && \
+           ${RUMPMAKE} MAKEOBJDIR=${RROBJLIB}/${1} \
+               LIBDIR=$${INSTALLDIR_LIBPLAT} DESTDIR=$${INSTALLDIR} install )
+
 .PHONY: ${1}_clean
 ${1}_clean:
        ( cd ${2}/${1} && \