Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Mar 24-27, 2025, special US time zones
Register
Loading...
v5.14.15
 1#!/bin/sh
 2# SPDX-License-Identifier: GPL-2.0
 3# Test one of the main kernel Makefile targets to generate a perf sources tarball
 4# suitable for build outside the full kernel sources.
 5#
 6# This is to test that the tools/perf/MANIFEST file lists all the files needed to
 7# be in such tarball, which sometimes gets broken when we move files around,
 8# like when we made some files that were in tools/perf/ available to other tools/
 9# codebases by moving it to tools/include/, etc.
 
10
11PERF=$1
12cd ${PERF}/../..
13make perf-targz-src-pkg > /dev/null
14TARBALL=$(ls -rt perf-*.tar.gz)
15TMP_DEST=$(mktemp -d)
16tar xf ${TARBALL} -C $TMP_DEST
17rm -f ${TARBALL}
18cd - > /dev/null
19make -C $TMP_DEST/perf*/tools/perf > /dev/null
20RC=$?
21rm -rf ${TMP_DEST}
22exit $RC
v6.9.4
 1#!/bin/sh
 2# SPDX-License-Identifier: GPL-2.0
 3# Test one of the main kernel Makefile targets to generate a perf sources tarball
 4# suitable for build outside the full kernel sources.
 5#
 6# This is to test that the tools/perf/MANIFEST file lists all the files needed to
 7# be in such tarball, which sometimes gets broken when we move files around,
 8# like when we made some files that were in tools/perf/ available to other tools/
 9# codebases by moving it to tools/include/, etc.
10set -e
11
12PERF=$1
13cd ${PERF}/../..
14make perf-targz-src-pkg
15TARBALL=$(ls -rt perf-*.tar.gz)
16TMP_DEST=$(mktemp -d)
17tar xf ${TARBALL} -C $TMP_DEST
18rm -f ${TARBALL}
19cd - > /dev/null
20make -C $TMP_DEST/perf*/tools/perf
21RC=$?
22rm -rf ${TMP_DEST}
23exit $RC