rules/perf: added rules for perf package.

This commit is contained in:
tsmarques 2016-10-17 23:12:47 +02:00 committed by Tiago Marques
parent 1069e42b8b
commit fb7aa49ab0
2 changed files with 63 additions and 0 deletions

32
rules/perf/default.bash Normal file
View File

@ -0,0 +1,32 @@
version=("3.19")
url=("https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz")
requires=('flex/host' 'bison/host' 'zlib/default')
# v3.19
md5=('d3fc8316d4d4d04b65cbc2d70799e763')
#3.14.63
# md5=('6cf8a6b23849f47f511e0e46cfdb6392')
build()
{
cd ../linux-$version/
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
NO_LIBELF=1 \
LDFLAGS=-static \
-C "./tools/perf/"
}
target_install()
{
$cmd_cp ../linux-$version/tools/perf/perf \
$cfg_dir_toolchain/bin/
}

31
rules/perf/default.bash~ Normal file
View File

@ -0,0 +1,31 @@
version=("3.19")
url=("https://www.kernel.org/pub/linux/kernel/v3.x/linux-$version.tar.xz")
requires=("flex/host bison/flex")
md5=('d3fc8316d4d4d04b65cbc2d70799e763')
# configure()
# {
# }
build()
{
cd ../linux-3.19/
$cmd_make \
CROSS_COMPILE="$cfg_target_canonical-" \
ARCH="$cfg_target_linux" \
INSTALL_MOD_PATH="$cfg_dir_rootfs/usr" \
KBUILD_VERBOSE=1 \
DEPMOD="$cfg_dir_toolchain/sbin/depmod" \
-C "./tools/perf/" &&
$cmd_cp "./tools/perf/perf" "$cfg_dir_toolchain/bin/"
}
# host_install()
# {
# }