From 0a4eef75588e160321bf0f882b4c5bb26c743e3e Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 5 Mar 2013 02:20:54 +0100 Subject: [PATCH 01/10] nvidia: Enable MSI (Message Signaled Interrupts) Only tested on ATV1, don't just enable it on other platforms without testing with known hardware. --- projects/ATV/filesystem/etc/modprobe.d/nvidia.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 projects/ATV/filesystem/etc/modprobe.d/nvidia.conf diff --git a/projects/ATV/filesystem/etc/modprobe.d/nvidia.conf b/projects/ATV/filesystem/etc/modprobe.d/nvidia.conf new file mode 100644 index 0000000000..382c641534 --- /dev/null +++ b/projects/ATV/filesystem/etc/modprobe.d/nvidia.conf @@ -0,0 +1,2 @@ +# Enable MSI (Message Signaled Interrupts) +options nvidia NVreg_EnableMSI=1 \ No newline at end of file From 498742d87b95f1563072249953e827b82d46c605 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 4 Mar 2013 01:59:31 +0100 Subject: [PATCH 02/10] new package: added package 'smem' smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. Signed-off-by: Stephan Raue --- packages/debug/meta | 2 +- packages/debug/smem/install | 26 ++++++++++++++++++++++++++ packages/debug/smem/meta | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100755 packages/debug/smem/install create mode 100644 packages/debug/smem/meta diff --git a/packages/debug/meta b/packages/debug/meta index 57ecc573d3..870cc994a8 100644 --- a/packages/debug/meta +++ b/packages/debug/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools pmtools powertop strace" +PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools pmtools powertop smem strace" PKG_BUILD_DEPENDS="toolchain" PKG_PRIORITY="optional" PKG_SECTION="debug" diff --git a/packages/debug/smem/install b/packages/debug/smem/install new file mode 100755 index 0000000000..a647fc3aaa --- /dev/null +++ b/packages/debug/smem/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/bin/ + cp $PKG_BUILD/smem $INSTALL/usr/bin/ diff --git a/packages/debug/smem/meta b/packages/debug/smem/meta new file mode 100644 index 0000000000..4686f7e58f --- /dev/null +++ b/packages/debug/smem/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="smem" +PKG_VERSION="1.2" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.selenic.com/smem/" +PKG_URL="http://www.selenic.com/smem/download/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="Python" +PKG_BUILD_DEPENDS="toolchain Python" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="smem: memory reporting tool" +PKG_LONGDESC="smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" From cbc4468094c9d3fbe3095a1e6c85ade80691dbdc Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 11 Feb 2013 16:12:49 +0100 Subject: [PATCH 03/10] new package: added package 'iftop' Signed-off-by: Stephan Raue --- packages/debug/iftop/build | 33 +++++++++++++++++ packages/debug/iftop/install | 26 +++++++++++++ packages/debug/iftop/meta | 37 +++++++++++++++++++ .../iftop/patches/iftop-automake-1.13.patch | 12 ++++++ packages/debug/meta | 2 +- 5 files changed, 109 insertions(+), 1 deletion(-) create mode 100755 packages/debug/iftop/build create mode 100755 packages/debug/iftop/install create mode 100644 packages/debug/iftop/meta create mode 100644 packages/debug/iftop/patches/iftop-automake-1.13.patch diff --git a/packages/debug/iftop/build b/packages/debug/iftop/build new file mode 100755 index 0000000000..1f9b576fd8 --- /dev/null +++ b/packages/debug/iftop/build @@ -0,0 +1,33 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +export LIBS="-ltinfo" + +cd $PKG_BUILD + +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + +make diff --git a/packages/debug/iftop/install b/packages/debug/iftop/install new file mode 100755 index 0000000000..23ae6b0c38 --- /dev/null +++ b/packages/debug/iftop/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/bin/ + cp $PKG_BUILD/iftop $INSTALL/usr/bin/ diff --git a/packages/debug/iftop/meta b/packages/debug/iftop/meta new file mode 100644 index 0000000000..6673478a60 --- /dev/null +++ b/packages/debug/iftop/meta @@ -0,0 +1,37 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="iftop" +PKG_VERSION="1.0pre2" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://htop.sourceforge.net/" +PKG_URL="http://www.ex-parrot.com/pdw/iftop/download/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="ncurses libpcap" +PKG_BUILD_DEPENDS="toolchain ncurses libpcap" +PKG_PRIORITY="optional" +PKG_SECTION="debug/tools" +PKG_SHORTDESC="iftop: display bandwidth usage on an interface" +PKG_LONGDESC="iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question 'why is our ADSL link so slow?'." + +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/packages/debug/iftop/patches/iftop-automake-1.13.patch b/packages/debug/iftop/patches/iftop-automake-1.13.patch new file mode 100644 index 0000000000..9997f7998b --- /dev/null +++ b/packages/debug/iftop/patches/iftop-automake-1.13.patch @@ -0,0 +1,12 @@ +diff -Naur iftop-1.0pre2/configure.in iftop-1.0pre2.patch/configure.in +--- iftop-1.0pre2/configure.in 2011-10-03 23:55:33.000000000 +0200 ++++ iftop-1.0pre2.patch/configure.in 2013-03-05 11:17:10.423257608 +0100 +@@ -28,7 +28,7 @@ + + AC_CANONICAL_SYSTEM + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + AM_INIT_AUTOMAKE(iftop, "1.0pre2") + + AC_DEFINE_UNQUOTED(IFTOP_VERSION, "$VERSION", [The iftop version number]) diff --git a/packages/debug/meta b/packages/debug/meta index 870cc994a8..0f394773b5 100644 --- a/packages/debug/meta +++ b/packages/debug/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools pmtools powertop smem strace" +PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools iftop pmtools powertop smem strace" PKG_BUILD_DEPENDS="toolchain" PKG_PRIORITY="optional" PKG_SECTION="debug" From 1ee9676ad35d080f852a6030f52d6eced9e41a98 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 12:26:58 +0100 Subject: [PATCH 04/10] iftop: fix build Signed-off-by: Stephan Raue --- packages/debug/iftop/build | 4 +++- packages/debug/iftop/meta | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/debug/iftop/build b/packages/debug/iftop/build index 1f9b576fd8..bb6dee2597 100755 --- a/packages/debug/iftop/build +++ b/packages/debug/iftop/build @@ -22,7 +22,9 @@ . config/options $1 -export LIBS="-ltinfo" +#strip_lto + +export LIBS="-lpthread -ltinfo -lusb-1.0" cd $PKG_BUILD diff --git a/packages/debug/iftop/meta b/packages/debug/iftop/meta index 6673478a60..6ad4fefc5c 100644 --- a/packages/debug/iftop/meta +++ b/packages/debug/iftop/meta @@ -25,8 +25,8 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://htop.sourceforge.net/" PKG_URL="http://www.ex-parrot.com/pdw/iftop/download/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="ncurses libpcap" -PKG_BUILD_DEPENDS="toolchain ncurses libpcap" +PKG_DEPENDS="ncurses" +PKG_BUILD_DEPENDS="toolchain ncurses libusb libpcap" PKG_PRIORITY="optional" PKG_SECTION="debug/tools" PKG_SHORTDESC="iftop: display bandwidth usage on an interface" From ef955a58e2cd1bc1a8a9f45662dfd2b464380635 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 12:27:17 +0100 Subject: [PATCH 05/10] libpcap: dont build shared library Signed-off-by: Stephan Raue --- packages/devel/libpcap/build | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/devel/libpcap/build b/packages/devel/libpcap/build index 165315c527..d34049aa7f 100755 --- a/packages/devel/libpcap/build +++ b/packages/devel/libpcap/build @@ -33,6 +33,7 @@ LIBS="-lpthread" \ --host=$TARGET_NAME \ --build=$HOST_NAME \ --prefix=/usr \ + --disable-shared \ --with-pcap=linux $MAKEINSTALL From 4972ec6b8ba6d807ae9e194e3e0279fecb84484b Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 8 Feb 2013 03:00:30 +0100 Subject: [PATCH 06/10] new package: add package 'wireless_tools' Signed-off-by: Stephan Raue --- packages/debug/meta | 2 +- packages/debug/wireless_tools/build | 31 +++++++++++++++++++++++ packages/debug/wireless_tools/install | 35 ++++++++++++++++++++++++++ packages/debug/wireless_tools/meta | 36 +++++++++++++++++++++++++++ 4 files changed, 103 insertions(+), 1 deletion(-) create mode 100755 packages/debug/wireless_tools/build create mode 100755 packages/debug/wireless_tools/install create mode 100644 packages/debug/wireless_tools/meta diff --git a/packages/debug/meta b/packages/debug/meta index 0f394773b5..45538f7df7 100644 --- a/packages/debug/meta +++ b/packages/debug/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools iftop pmtools powertop smem strace" +PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools iftop pmtools powertop smem strace wireless_tools" PKG_BUILD_DEPENDS="toolchain" PKG_PRIORITY="optional" PKG_SECTION="debug" diff --git a/packages/debug/wireless_tools/build b/packages/debug/wireless_tools/build new file mode 100755 index 0000000000..2241b76e85 --- /dev/null +++ b/packages/debug/wireless_tools/build @@ -0,0 +1,31 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD + +make PREFIX=/usr \ + CC="$TARGET_CC" \ + AR="$TARGET_AR" \ + CFLAGS="$TARGET_CFLAGS" \ + CPPFLAGS="$TARGET_CPPFLAGS" \ diff --git a/packages/debug/wireless_tools/install b/packages/debug/wireless_tools/install new file mode 100755 index 0000000000..f338e2c47b --- /dev/null +++ b/packages/debug/wireless_tools/install @@ -0,0 +1,35 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/bin/ + cp $PKG_BUILD/iwconfig $INSTALL/usr/bin/ + cp $PKG_BUILD/iwgetid $INSTALL/usr/bin/ + cp $PKG_BUILD/iwevent $INSTALL/usr/bin/ + cp $PKG_BUILD/iwlist $INSTALL/usr/bin/ + cp $PKG_BUILD/iwspy $INSTALL/usr/bin/ + cp $PKG_BUILD/iwpriv $INSTALL/usr/bin/ + cp $PKG_BUILD/ifrename $INSTALL/usr/bin/ + +mkdir -p $INSTALL/usr/lib/ + cp $PKG_BUILD/libiw.so.29 $INSTALL/usr/lib/ diff --git a/packages/debug/wireless_tools/meta b/packages/debug/wireless_tools/meta new file mode 100644 index 0000000000..40ce84acb7 --- /dev/null +++ b/packages/debug/wireless_tools/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="wireless_tools" +PKG_VERSION="29" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html" +PKG_URL="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$PKG_NAME.$PKG_VERSION.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="wireless-tools: tools allowing to manipulate the Wireless Extensions" +PKG_LONGDESC="The Wireless Tools (WT) is a set of tools allowing to manipulate the Wireless Extensions. They use a textual interface and are rather crude, but aim to support the full Wireless Extension. There are many other tools you can use with Wireless Extensions, however Wireless Tools is the reference implementation." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" From 79beae5de918a682bd39070017be30e52f51bf74 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 13:30:26 +0100 Subject: [PATCH 07/10] new package: add package 'popt' Signed-off-by: Stephan Raue --- packages/devel/popt/build | 36 +++++++++++++++++++ packages/devel/popt/install | 26 ++++++++++++++ packages/devel/popt/meta | 36 +++++++++++++++++++ .../popt/patches/popt-automake-1.12.patch | 11 ++++++ .../popt/patches/popt-automake-1.13.patch | 15 ++++++++ 5 files changed, 124 insertions(+) create mode 100755 packages/devel/popt/build create mode 100755 packages/devel/popt/install create mode 100644 packages/devel/popt/meta create mode 100644 packages/devel/popt/patches/popt-automake-1.12.patch create mode 100644 packages/devel/popt/patches/popt-automake-1.13.patch diff --git a/packages/devel/popt/build b/packages/devel/popt/build new file mode 100755 index 0000000000..9455093226 --- /dev/null +++ b/packages/devel/popt/build @@ -0,0 +1,36 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --enable-shared \ + --disable-static \ + +make +$MAKEINSTALL diff --git a/packages/devel/popt/install b/packages/devel/popt/install new file mode 100755 index 0000000000..880d16ecd4 --- /dev/null +++ b/packages/devel/popt/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib/ + cp -PR $PKG_BUILD/.libs/libpopt.so* $INSTALL/usr/lib/ diff --git a/packages/devel/popt/meta b/packages/devel/popt/meta new file mode 100644 index 0000000000..255ab1a904 --- /dev/null +++ b/packages/devel/popt/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2023 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="popt" +PKG_VERSION="1.16" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="LGPL" +PKG_SITE="http://www.rpm5.org/" +PKG_URL="http://rpm5.org/files/popt/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="popt: library for parsing command line parameters" +PKG_LONGDESC="Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. Popt allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/packages/devel/popt/patches/popt-automake-1.12.patch b/packages/devel/popt/patches/popt-automake-1.12.patch new file mode 100644 index 0000000000..3bd92081d6 --- /dev/null +++ b/packages/devel/popt/patches/popt-automake-1.12.patch @@ -0,0 +1,11 @@ +diff -Naur popt-1.16/configure.ac popt-1.16.patch/configure.ac +--- popt-1.16/configure.ac 2010-05-04 22:55:54.000000000 +0200 ++++ popt-1.16.patch/configure.ac 2013-03-05 13:20:28.769315267 +0100 +@@ -46,7 +46,6 @@ + AC_SYS_LARGEFILE + + AC_ISC_POSIX +-AM_C_PROTOTYPES + + AC_CHECK_HEADERS(float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h) + diff --git a/packages/devel/popt/patches/popt-automake-1.13.patch b/packages/devel/popt/patches/popt-automake-1.13.patch new file mode 100644 index 0000000000..d62ec3d1e4 --- /dev/null +++ b/packages/devel/popt/patches/popt-automake-1.13.patch @@ -0,0 +1,15 @@ +diff -Naur popt-1.16/Makefile.am popt-1.16.patch/Makefile.am +--- popt-1.16/Makefile.am 2010-05-04 22:55:54.000000000 +0200 ++++ popt-1.16.patch/Makefile.am 2013-03-05 13:27:22.179156704 +0100 +@@ -34,11 +34,6 @@ + + noinst_SCRIPTS = testit.sh + +-TESTS_ENVIRONMENT = \ +-test1="$(top_builddir)/test1" +- +-TESTS = $(top_srcdir)/testit.sh +- + include_HEADERS = popt.h + + usrlibdir = $(libdir) From 09a110462b0245032cda09e3bae51bb444ea7c1b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 13:46:16 +0100 Subject: [PATCH 08/10] new package: add package 'slang' Signed-off-by: Stephan Raue --- packages/devel/slang/build | 36 ++++++++++++++++++++++++++++++++++++ packages/devel/slang/install | 26 ++++++++++++++++++++++++++ packages/devel/slang/meta | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100755 packages/devel/slang/build create mode 100755 packages/devel/slang/install create mode 100644 packages/devel/slang/meta diff --git a/packages/devel/slang/build b/packages/devel/slang/build new file mode 100755 index 0000000000..d22dd078f0 --- /dev/null +++ b/packages/devel/slang/build @@ -0,0 +1,36 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +MAKEFLAGS=-j1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + +make +$MAKEINSTALL diff --git a/packages/devel/slang/install b/packages/devel/slang/install new file mode 100755 index 0000000000..88672f35f5 --- /dev/null +++ b/packages/devel/slang/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + + mkdir -p $INSTALL/usr/lib/ + cp -PR $PKG_BUILD/src/elfobjs/libslang.so* $INSTALL/usr/lib/ diff --git a/packages/devel/slang/meta b/packages/devel/slang/meta new file mode 100644 index 0000000000..9a7460ba15 --- /dev/null +++ b/packages/devel/slang/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="slang" +PKG_VERSION="2.2.4" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="LGPL" +PKG_SITE="http://www.jedsoft.org/slang/" +PKG_URL="ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="slang: library for the S-Lang extension language" +PKG_LONGDESC="S-Lang is an interpreted language and a programming library. The S-Lang language was designed so that it can be easily embedded into a program to provide the program with a powerful extension language. The S-Lang library, provided in this package, provides the S-Lang extension language. S-Lang's syntax resembles C, which makes it easy to recode S-Lang procedures in C if you need to." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" From 5caed7f096f6ebe7f513641d8d0fef4d3bbf5dfb Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 13:47:57 +0100 Subject: [PATCH 09/10] new package: add package 'newt' Signed-off-by: Stephan Raue --- packages/devel/newt/build | 34 ++++++++++++++++++++++++++++++++++ packages/devel/newt/install | 26 ++++++++++++++++++++++++++ packages/devel/newt/meta | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100755 packages/devel/newt/build create mode 100755 packages/devel/newt/install create mode 100644 packages/devel/newt/meta diff --git a/packages/devel/newt/build b/packages/devel/newt/build new file mode 100755 index 0000000000..3273d7fb02 --- /dev/null +++ b/packages/devel/newt/build @@ -0,0 +1,34 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + +make +$MAKEINSTALL diff --git a/packages/devel/newt/install b/packages/devel/newt/install new file mode 100755 index 0000000000..4d035c084b --- /dev/null +++ b/packages/devel/newt/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib/ + cp -PR $PKG_BUILD/libnewt.so* $INSTALL/usr/lib/ diff --git a/packages/devel/newt/meta b/packages/devel/newt/meta new file mode 100644 index 0000000000..4e54a60551 --- /dev/null +++ b/packages/devel/newt/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program 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, or (at your option) +# any later version. +# +# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="newt" +PKG_VERSION="0.52.14" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="LGPL" +PKG_SITE="https://fedorahosted.org/newt/" +PKG_URL="https://fedorahosted.org/releases/n/e/newt/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="popt slang" +PKG_BUILD_DEPENDS="toolchain popt slang" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="newt: library for color text mode, widget based user interfaces" +PKG_LONGDESC="Newt is a programming library for color text mode, widget based user interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. Newt is based on the S-Lang library." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" From 248df9fc205ea40b771f90f7b31be3974cf7a734 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 14:05:38 +0100 Subject: [PATCH 10/10] linux: build and install 'perf' on development builds Signed-off-by: Stephan Raue --- packages/linux/build | 24 ++++++++++++++++++++++++ packages/linux/install | 9 +++++++++ packages/linux/meta | 7 ++++++- 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/packages/linux/build b/packages/linux/build index 25f321a0c9..eec15af69f 100755 --- a/packages/linux/build +++ b/packages/linux/build @@ -65,3 +65,27 @@ LDFLAGS="" make $KERNEL_IMAGE DEBUG=false \ NLS=false \ ) + +if [ "$DEVTOOLS" = yes ]; then + ( cd tools/perf + + # dont use some optimizations because of build problems + LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"` + + export FLAGSGLIBC="$CFLAGS -I$SYSROOT_PREFIX/usr/include" + export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include" + export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/lib -L$SYSROOT_PREFIX/usr/lib" + + make CROSS_COMPILE="$TARGET_PREFIX" \ + V=1 \ + DEBUG=false \ + NLS=false \ + NO_GTK2=true \ + NO_LIBELF=true \ + NO_LIBPERL=true \ + NO_LIBPYTHON=false \ + PYTHON=$SYSROOT_PREFIX/usr/bin/python \ + WERROR=0 \ + ) +fi + diff --git a/packages/linux/install b/packages/linux/install index be498fcf1e..d8287358a0 100755 --- a/packages/linux/install +++ b/packages/linux/install @@ -46,3 +46,12 @@ mkdir -p $INSTALL/usr/lib mkdir -p $INSTALL/usr/bin cp -P $PKG_BUILD/tools/power/cpupower/cpupower $INSTALL/usr/bin + +if [ "$DEVTOOLS" = "yes" ]; then + mkdir -p $INSTALL/usr/bin + cp -P $PKG_BUILD/tools/perf/perf $INSTALL/usr/bin/ + + mkdir -p $INSTALL/usr/libexec/perf-core/scripts/python/ + cp -P $PKG_BUILD/tools/perf/perf-archive $INSTALL/usr/libexec/perf-core/ + cp -rP $PKG_BUILD/tools/perf/scripts/python/* $INSTALL/usr/libexec/perf-core/scripts/python/ +fi diff --git a/packages/linux/meta b/packages/linux/meta index 42bee3e347..cdd8b787e2 100644 --- a/packages/linux/meta +++ b/packages/linux/meta @@ -26,7 +26,7 @@ PKG_LICENSE="GPL" PKG_SITE="http://www.kernel.org" PKG_URL="http://www.kernel.org/pub/linux/kernel/v3.x/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_DEPENDS="busybox linux-drivers linux-firmware pciutils $BOOTLOADER" -PKG_BUILD_DEPENDS="toolchain module-init-tools xz cpio pciutils" +PKG_BUILD_DEPENDS="toolchain cpio module-init-tools pciutils xz" PKG_PRIORITY="optional" PKG_SECTION="linux" PKG_SHORTDESC="linux26: The Linux kernel 2.6 precompiled kernel binary image and modules" @@ -44,3 +44,8 @@ if [ "$LINUX" = "ti-omap4" ]; then PKG_VERSION="2.6.38-ti-omap4" PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" fi + +if [ "$DEVTOOLS" = "yes" ]; then + PKG_DEPENDS="$PKG_DEPENDS newt" + PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS newt" +fi