summaryrefslogtreecommitdiffstats
path: root/meta-egvirt/recipes-virtioloopback/virtio-loopback-adapter/virtio-loopback-adapter.bb
blob: 0fc909bbfa01ec5103040e2f28ddacc1dc3ff4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SUMMARY = "Virtio-loopback-adapter application"
DESCRIPTION = "Adapter bridge for virtio-loopback"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README.md;md5=ecc9c54ada6f0c33054d3bde010744f7"

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-${PV}:"
SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/virtio/adapter_app;protocol=https;branch=master"
SRCREV = "5810ae7ac9e5e1526f4d64c11f0c28ee2ee8f1a5"

S = "${WORKDIR}/git"
TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {
	cd ${S}
	make
}

do_install() {
	mkdir ${D}/usr/bin/ -p
	install -m 0755 ${S}/adapter ${D}/usr/bin/virtio-loopback-adapter
}

DEPENDS = ""
FILES:${PN} += "/usr/bin/virtio-loopback-adapter"
enchmark)\n"); fprintf(stderr, " -L\tUse cpu load of <int> with burn load (default: 4)\n"); + fprintf(stderr, " -M\tForce RAM size to <int>. Useful when disk is smaller than RAM.\n"); fprintf(stderr, " -t\tSeconds to run each benchmark (default: 30)\n"); fprintf(stderr, " -B\tNice the benchmarked thread to <int> (default: 0)\n"); fprintf(stderr, " -N\tNice the load thread to <int> (default: 0)\n"); @@ -1482,7 +1489,7 @@ int main(int argc, char **argv) terminal_error("signal"); #endif - while ((q = getopt(argc, argv, "hl:L:B:N:ut:bcnrC:I:m:w:x:W:X:")) != -1) { + while ((q = getopt(argc, argv, "hl:L:M:B:N:ut:bcnrC:I:m:w:x:W:X:")) != -1) { switch (q) { case 'h': usage(); @@ -1496,6 +1503,9 @@ int main(int argc, char **argv) case 'L': ud.cpu_load = atoi(optarg); break; + case 'M': + ud.ram = atoi(optarg); + break; case 'B': ud.bench_nice = atoi(optarg); break;