mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
[snip of Makefile]
# bison will create both sqlhist.tab.c and sqlhist.tab.h
sqlhist.tab.h:
sqlhist.tab.c: sqlhist.y sqlhist.tab.h
bison --debug -v --report-file=bison.report -d -o $@ $<
[snip]
sources of libtracefs is fetched by git, the mtime of sqlhist.y,
sqlhist.tab.c is random. so sometimes, sqlhist.tab.c is regenerated,
sometimes, sqlhist.tab.c in original sources in used. bison used to
gernerate sqlhist.tab.c by upstream libtracefs maybe has different
version with the build host one. This make the final libtracefs.so not
reproducible. This fix touch sqlhist.tab.c to make it has the newest
mtime, and sqlhist.tab.c is not regenerated during build.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
26 lines
959 B
BlitzBasic
26 lines
959 B
BlitzBasic
# Copyright (C) 2022 Khem Raj <raj.khem@gmail.com>
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
SUMMARY = "Library to parse raw trace event formats "
|
|
HOMEPAGE = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
|
|
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
|
|
LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \
|
|
file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
|
|
SECTION = "libs"
|
|
DEPENDS = "libtraceevent bison-native flex-native"
|
|
|
|
SRCREV = "03790961bf2e83b7b61fb6d326fb1076a4293adb"
|
|
SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \
|
|
file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \
|
|
"
|
|
|
|
inherit pkgconfig bash-completion
|
|
|
|
do_compile:prepend() {
|
|
touch ${S}/src/sqlhist.tab.c
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig
|
|
}
|