From bc29d625ff1cfad1be86521d058ec01689b66aef Mon Sep 17 00:00:00 2001 From: Peter Vicman Date: Mon, 4 Apr 2016 10:11:59 +0200 Subject: [PATCH] imx6: add irqbalanced daemon for linux 4.4 --- packages/linux/package.mk | 2 +- packages/sysutils/irqbalanced/package.mk | 40 +++++++++++++++++++ .../irqbalanced/system.d/irqbalance.service | 10 +++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 packages/sysutils/irqbalanced/package.mk create mode 100644 packages/sysutils/irqbalanced/system.d/irqbalance.service diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 1f36f92dee..aa7ac4b3fc 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -48,7 +48,7 @@ case "$LINUX" in PKG_SOURCE_DIR="$PKG_NAME-$PKG_VERSION-$PKG_COMMIT" PKG_SOURCE_NAME="$PKG_SOURCE_DIR.tar.xz" PKG_URL="$DISTRO_SRC/$PKG_SOURCE_NAME" - PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET imx6-status-led imx6-soc-fan" + PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET imx6-status-led imx6-soc-fan irqbalanced" ;; *) PKG_VERSION="4.4.6" diff --git a/packages/sysutils/irqbalanced/package.mk b/packages/sysutils/irqbalanced/package.mk new file mode 100644 index 0000000000..0e672bfdab --- /dev/null +++ b/packages/sysutils/irqbalanced/package.mk @@ -0,0 +1,40 @@ +################################################################################ +# This file is part of LibreELEC - https://LibreELEC.tv +# Copyright (C) 2016 Team LibreELEC +# +# LibreELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LibreELEC. If not, see . +################################################################################ + +PKG_NAME="irqbalanced" +PKG_VERSION="7f31046" +PKG_REV="1" +PKG_ARCH="arm" +PKG_LICENSE="other" +PKG_SITE="http://www.freescale.com" +PKG_URL="https://github.com/dv1/irqbalanced/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain systemd glib" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="irqbalanced: distribute hardware interrupts across processors on a multiprocessor system." +PKG_LONGDESC="irqbalanced: distribute hardware interrupts across processors on a multiprocessor system." +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +pre_configure_target() { + sh -c ./autogen.sh +} + +post_install() { + enable_service irqbalance.service +} diff --git a/packages/sysutils/irqbalanced/system.d/irqbalance.service b/packages/sysutils/irqbalanced/system.d/irqbalance.service new file mode 100644 index 0000000000..a9d97d14bf --- /dev/null +++ b/packages/sysutils/irqbalanced/system.d/irqbalance.service @@ -0,0 +1,10 @@ +[Unit] +Description=irqbalance +After=proc.mount + +[Service] +ExecStart=/usr/sbin/irqbalance +Type=forking + +[Install] +WantedBy=sysinit.target