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 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | file://make-btt-scripts-python3-ready.patch \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 16 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | EXTRA_OEMAKE = "\ |
| 21 | 'CC=${CC}' \ |
| 22 | 'CFLAGS=${CFLAGS}' \ |
| 23 | 'LDFLAGS=${LDFLAGS}' \ |
| 24 | " |
| 25 | |
| 26 | # There are a few parallel issues: |
| 27 | # 1) ../rbtree.o: error adding symbols: Invalid operation |
| 28 | # collect2: error: ld returned 1 exit status |
| 29 | # Makefile:42: recipe for target 'btt' failed |
| 30 | # 2) git/blkiomon.c:216: undefined reference to `rb_insert_color' |
| 31 | # collect2: error: ld returned 1 exit status |
| 32 | # Makefile:27: recipe for target 'blkparse' failed |
| 33 | # 3) ld: rbtree.o: invalid string offset 128 >= 125 for section `.strtab' |
| 34 | # 4) btreplay.o: file not recognized: File truncated |
| 35 | # collect2: error: ld returned 1 exit status |
| 36 | # btreplay/btreplay.c:47:18: fatal error: list.h: No such file or directory |
| 37 | PARALLEL_MAKE = "" |
| 38 | |
| 39 | do_install() { |
| 40 | oe_runmake ARCH="${ARCH}" prefix=${prefix} \ |
| 41 | mandir=${mandir} DESTDIR=${D} install |
| 42 | } |
| 43 | |