From: Antti Kantee Date: Tue, 16 Feb 2016 22:48:40 +0000 (+0000) Subject: Install rumprunfs_base files to destdir. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=14f1ea7b4ea98d196f6fbbc288c75464924b2688;p=osstest%2Frumprun.git Install rumprunfs_base files to destdir. --- diff --git a/lib/librumprunfs_base/Makefile b/lib/librumprunfs_base/Makefile index 9796ce5..43b89ba 100644 --- a/lib/librumprunfs_base/Makefile +++ b/lib/librumprunfs_base/Makefile @@ -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} diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 0ccb203..a82c335 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -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} && \