From fb7aa49ab05a2c1cdb4ed247206a8c32423766e2 Mon Sep 17 00:00:00 2001 From: tsmarques Date: Mon, 17 Oct 2016 23:12:47 +0200 Subject: [PATCH] rules/perf: added rules for perf package. --- rules/perf/default.bash | 32 ++++++++++++++++++++++++++++++++ rules/perf/default.bash~ | 31 +++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 rules/perf/default.bash create mode 100644 rules/perf/default.bash~ diff --git a/rules/perf/default.bash b/rules/perf/default.bash new file mode 100644 index 0000000..3cdcb0b --- /dev/null +++ b/rules/perf/default.bash @@ -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/ +} diff --git a/rules/perf/default.bash~ b/rules/perf/default.bash~ new file mode 100644 index 0000000..836fb1d --- /dev/null +++ b/rules/perf/default.bash~ @@ -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() +# { + +# }