1*4882a593SmuzhiyunSUMMARY = "Hardware performance monitoring counters" 2*4882a593SmuzhiyunHOMEPAGE = "https://team.inria.fr/pacap/software/tiptop/" 3*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 5*4882a593SmuzhiyunDEPENDS = "ncurses libxml2 bison-native flex-native" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSRC_URI = "http://files.inria.fr/pacap/${BPN}/${BP}.tar.gz \ 8*4882a593Smuzhiyun file://0001-Fix-parallel-build-problems-by-Adrian-Bunk.patch \ 9*4882a593Smuzhiyun file://0002-fix-reproducibility-of-build-process.patch \ 10*4882a593Smuzhiyun file://0001-Fix-build-when-S-B.patch \ 11*4882a593Smuzhiyun file://0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch \ 12*4882a593Smuzhiyun " 13*4882a593SmuzhiyunSRC_URI[sha256sum] = "51c4449c95bba34f16b429729c2f58431490665d8093efaa8643b2e1d1084182" 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://team.inria.fr/pacap/software/tiptop/" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyuninherit autotools 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunEXTRA_OECONF = "CFLAGS="$CFLAGS -I${STAGING_INCDIR}/libxml2"" 20*4882a593SmuzhiyunCOMPATIBLE_HOST = "(i.86|x86_64|arm|powerpc|aarch64).*-linux" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyundo_configure:prepend () { 23*4882a593Smuzhiyun # Two bugs in configure.ac when cross-compiling. 24*4882a593Smuzhiyun # 1. The path of libxml2. Specify it in EXTRA_OECONF. 25*4882a593Smuzhiyun # 2. hw's value on other platforms. Replace it if the target is 26*4882a593Smuzhiyun # not i*86/x86_64. 27*4882a593Smuzhiyun if ( echo "${TARGET_ARCH}" | grep -q -e 'i.86' -e 'x86_64' ); then 28*4882a593Smuzhiyun sed -i 's= -I/usr/include/libxml2==' ${S}/configure.ac 29*4882a593Smuzhiyun else 30*4882a593Smuzhiyun sed -i 's/hw=`uname -m`/hw="unknown"/' ${S}/configure.ac 31*4882a593Smuzhiyun sed -i 's= -I/usr/include/libxml2==' ${S}/configure.ac 32*4882a593Smuzhiyun fi 33*4882a593Smuzhiyun} 34