Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Generates traces of I/O traffic on block devices" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://brick.kernel.dk/snaps/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
| 5 | |
| 6 | DEPENDS = "libaio" |
| 7 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | SRCREV = "cca113f2fe0759b91fd6a0e10fdcda2c28f18a7e" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | PV = "1.2.0+git${SRCPV}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
| 12 | SRC_URI = "git://git.kernel.dk/blktrace.git \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 13 | file://ldflags.patch \ |
Brad Bishop | bba38f3 | 2018-08-23 16:11:46 +0800 | [diff] [blame^] | 14 | file://CVE-2018-10689.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | EXTRA_OEMAKE = "\ |
| 20 | 'CC=${CC}' \ |
| 21 | 'CFLAGS=${CFLAGS}' \ |
| 22 | 'LDFLAGS=${LDFLAGS}' \ |
| 23 | " |
| 24 | |
| 25 | # There are a few parallel issues: |
| 26 | # 1) ../rbtree.o: error adding symbols: Invalid operation |
| 27 | # collect2: error: ld returned 1 exit status |
| 28 | # Makefile:42: recipe for target 'btt' failed |
| 29 | # 2) git/blkiomon.c:216: undefined reference to `rb_insert_color' |
| 30 | # collect2: error: ld returned 1 exit status |
| 31 | # Makefile:27: recipe for target 'blkparse' failed |
| 32 | # 3) ld: rbtree.o: invalid string offset 128 >= 125 for section `.strtab' |
| 33 | # 4) btreplay.o: file not recognized: File truncated |
| 34 | # collect2: error: ld returned 1 exit status |
| 35 | # btreplay/btreplay.c:47:18: fatal error: list.h: No such file or directory |
| 36 | PARALLEL_MAKE = "" |
| 37 | |
| 38 | do_install() { |
| 39 | oe_runmake ARCH="${ARCH}" prefix=${prefix} \ |
| 40 | mandir=${mandir} DESTDIR=${D} install |
| 41 | } |
| 42 | |