mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-08 02:09:48 +03:00
Compare commits
82 Commits
2017.05-rc
...
2017.05
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd2020aadf | ||
|
|
43552504c8 | ||
|
|
17aa47fa2c | ||
|
|
fddb760946 | ||
|
|
8e0cb0c12d | ||
|
|
e43efb9b65 | ||
|
|
e1c2c432a9 | ||
|
|
2fcb07fbe3 | ||
|
|
6ff4293c94 | ||
|
|
ae8704c752 | ||
|
|
5bd7415e24 | ||
|
|
cbd29d0ad4 | ||
|
|
54fd9482e9 | ||
|
|
2c112fecb1 | ||
|
|
a6a4a8b2ef | ||
|
|
91a418c373 | ||
|
|
93c7571334 | ||
|
|
2fb7cbeb74 | ||
|
|
eddaf1f00e | ||
|
|
9e9dee2534 | ||
|
|
27e0626e99 | ||
|
|
92c1b8132d | ||
|
|
bd6ec23ed3 | ||
|
|
2d9f199061 | ||
|
|
12687c5c76 | ||
|
|
30ed9de2fd | ||
|
|
557f8d649d | ||
|
|
80ebba2b5a | ||
|
|
d35b447f09 | ||
|
|
96f3ae6c24 | ||
|
|
3f0cdaad8b | ||
|
|
eca61c93d5 | ||
|
|
01ad3a38d2 | ||
|
|
e692e1f2b2 | ||
|
|
8225042e0e | ||
|
|
621408e595 | ||
|
|
27d7ef126b | ||
|
|
019ad60567 | ||
|
|
db55de2b42 | ||
|
|
4f9190f14e | ||
|
|
0e42273072 | ||
|
|
a7777eecd4 | ||
|
|
a2ad9cf71d | ||
|
|
ad79bb5085 | ||
|
|
cfecdfadc1 | ||
|
|
e0a7876691 | ||
|
|
6ddab6c28e | ||
|
|
da5816561b | ||
|
|
cbf2b6e3db | ||
|
|
e1404d5b4e | ||
|
|
d01b0bbad0 | ||
|
|
9b853b7844 | ||
|
|
f19a4433d4 | ||
|
|
2c1d080c2d | ||
|
|
a71fb422ba | ||
|
|
0ade154f23 | ||
|
|
6bc8de6f9d | ||
|
|
675101b0fe | ||
|
|
556434fb83 | ||
|
|
fa397537bb | ||
|
|
a396b3ab1e | ||
|
|
3d1234dab8 | ||
|
|
3c54b7086f | ||
|
|
a0c4cf0f96 | ||
|
|
e6213e8ee6 | ||
|
|
8644a83bd8 | ||
|
|
8213190bfa | ||
|
|
daf1c35025 | ||
|
|
509eb19191 | ||
|
|
4d1c2c82e8 | ||
|
|
15423bd46e | ||
|
|
19e78e509e | ||
|
|
d332f2c521 | ||
|
|
fa3c5cad44 | ||
|
|
ee72dbe576 | ||
|
|
52258901ec | ||
|
|
f8e1fdbe97 | ||
|
|
be8d1efd1e | ||
|
|
7fde83cdf0 | ||
|
|
2677210f54 | ||
|
|
f884abe4de | ||
|
|
beb6524225 |
40
CHANGES
40
CHANGES
@@ -1,3 +1,43 @@
|
||||
2017.05, Released May 31st, 2017
|
||||
|
||||
Minor fixes.
|
||||
|
||||
External toolchain: musl dynamic linker symlink for mips-sf
|
||||
corrected.
|
||||
|
||||
Updated/fixed packages: agentpp, bash, exim, hans, madplay,
|
||||
qpid-proton, rtl8188eu, snmppp, stm32flash, strongswan, sudo,
|
||||
xen
|
||||
|
||||
Issues resolved (http://bugs.buildroot.org):
|
||||
|
||||
#9906: genimage: Disk full
|
||||
|
||||
2017.05-rc3, Released May 30th, 2017
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
ARC toolchain bumped to 2017.03
|
||||
|
||||
Runtime testing improvements and cleanups.
|
||||
|
||||
Updated/fixed packages: acpica, armadillo, audiofile, c-icap,
|
||||
cppcms, dhcp, docker-engine, dropbear, elfutils, erlang,
|
||||
fbgrab, ffmpeg, flashrom, ftop, gnutls, google-breakpad,
|
||||
keepalived, kodi, libcdio, libepoxy, libev, libminiupnpc,
|
||||
libqmi, libtasn1, libv4l, mariadb, mono, mosh, mosquitto,
|
||||
mxml, ntp, opencv, openpowerlink, oracle-mysql, popt,
|
||||
pulseview, python-enum34, rabbitmq-c, redis, samba4, stella,
|
||||
xen
|
||||
|
||||
Removed packages: firejail, ola
|
||||
|
||||
Issues resolved (http://bugs.buildroot.org):
|
||||
|
||||
#9871: fbgrab 1.3 won't build with BR2_REPRODUCIBLE set
|
||||
#9876: aarch64 support with gcc 4.8 toolchain
|
||||
#9896: host-gcc-initial error downloading because incorrect URL
|
||||
|
||||
2017.05-rc2, Released May 17th, 2017
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
22
DEVELOPERS
22
DEVELOPERS
@@ -30,9 +30,17 @@ N: Abhilash Tuse <abhilash.tuse@imgtec.com>
|
||||
F: package/gstreamer1/gst1-rtsp-server/
|
||||
|
||||
N: Adam Duskett <aduskett@gmail.com>
|
||||
F: package/audit/
|
||||
F: package/checkpolicy/
|
||||
F: package/gstreamer1/gst1-vaapi/
|
||||
F: package/libselinux/
|
||||
F: package/libsemanage/
|
||||
F: package/libsepol/
|
||||
F: package/nginx-naxsi/
|
||||
F: package/policycoreutils/
|
||||
F: package/python-mutagen/
|
||||
F: package/sepolgen/
|
||||
F: package/setools/
|
||||
F: package/sngrep/
|
||||
|
||||
N: Alex Suykov <alex.suykov@gmail.com>
|
||||
@@ -75,9 +83,6 @@ N: Andrey Smirnov <andrew.smirnov@gmail.com
|
||||
F: package/python-decorator/
|
||||
F: package/python-simplegeneric/
|
||||
|
||||
N: Andrew Ruder <andrew.ruder@elecsyscorp.com>
|
||||
F: package/expect/
|
||||
|
||||
N: Andy Kennedy <andy.kennedy@adtran.com>
|
||||
F: package/libunwind/
|
||||
|
||||
@@ -160,6 +165,8 @@ F: boot/syslinux/
|
||||
F: package/dc3dd/
|
||||
|
||||
N: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
F: package/alsa-lib/
|
||||
F: package/alsa-utils/
|
||||
F: package/apache/
|
||||
F: package/apr/
|
||||
F: package/apr-util/
|
||||
@@ -315,9 +322,6 @@ F: package/libdvbsi/
|
||||
F: package/libsvg/
|
||||
F: package/libsvg-cairo/
|
||||
|
||||
N: Chris Frederick <chrisf@cdf123.net>
|
||||
F: package/firejail/
|
||||
|
||||
N: Chris Packham <judge.packham@gmail.com>
|
||||
F: package/eventlog/
|
||||
F: package/micropython/
|
||||
@@ -397,9 +401,6 @@ F: package/lua-cjson/
|
||||
F: package/luaexpat/
|
||||
F: package/xinetd/
|
||||
|
||||
N: Dave Skok <blanco.ether@gmail.com>
|
||||
F: package/ola/
|
||||
|
||||
N: David Bachelart <david.bachelart@bbright.com>
|
||||
F: package/ccrypt/
|
||||
F: package/dos2unix/
|
||||
@@ -1193,9 +1194,6 @@ F: package/nvidia-tegra23/nvidia-tegra23-codecs/
|
||||
N: Nimai Mahajan <nimaim@gmail.com>
|
||||
F: package/libucl/
|
||||
|
||||
N: Niranjan Reddy <niranjan.reddy@rockwellcollins.com>
|
||||
F: package/cgroupfs-mount/
|
||||
|
||||
N: Noé Rubinstein <noe.rubinstein@gmail.com>
|
||||
F: package/tpm-tools/
|
||||
F: package/trousers/
|
||||
|
||||
4
Makefile
4
Makefile
@@ -86,9 +86,9 @@ else # umask / $(CURDIR) / $(O)
|
||||
all:
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION := 2017.05-rc2
|
||||
export BR2_VERSION := 2017.05
|
||||
# Actual time the release is cut (for reproducible builds)
|
||||
BR2_VERSION_EPOCH = 1495000000
|
||||
BR2_VERSION_EPOCH = 1496267000
|
||||
|
||||
# Save running make version since it's clobbered by the make package
|
||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="panel-heading">Download</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<h3 style="text-align: center;">Latest stable release: <b>2017.02.2</b></h3>
|
||||
<h3 style="text-align: center;">Latest long term support release: <b>2017.02.2</b></h3>
|
||||
|
||||
<div class="row mt centered">
|
||||
<div class="col-sm-6">
|
||||
@@ -42,40 +42,75 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2017.05-rc2</b></h3>
|
||||
<h3 style="text-align: center;">Latest stable release: <b>2017.05</b></h3>
|
||||
|
||||
<div class="row mt centered">
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.05-rc2.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.05.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.05-rc2.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.05.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.05-rc2.tar.gz">buildroot-2017.05-rc2.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.05-rc2.tar.gz.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2017.05.tar.gz">buildroot-2017.05.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.05.tar.gz.sign">PGP signature</a></p>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.05-rc2.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.05.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.05-rc2.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.05.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.05-rc2.tar.bz2">buildroot-2017.05-rc2.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.05-rc2.tar.bz2.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2017.05.tar.bz2">buildroot-2017.05.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.05.tar.bz2.sign">PGP signature</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2017.05-rc3</b></h3>
|
||||
<div class="row mt centered">
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.05-rc3.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.05-rc3.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.05-rc3.tar.gz">buildroot-2017.05-rc3.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.05-rc3.tar.gz.sign">PGP signature</a></p>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.05-rc3.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.05-rc3.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.05-rc3.tar.bz2">buildroot-2017.05-rc3.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.05-rc3.tar.bz2.sign">PGP signature</a></p>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
This and earlier releases (and their PGP signatures) can always be downloaded from
|
||||
<a href="/downloads/">http://buildroot.net/downloads/</a>.
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,46 @@
|
||||
<h2>News</h2>
|
||||
<ul class="timeline">
|
||||
|
||||
<li class="timeline-inverted">
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<h4 class="timeline-title">2017.05 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>31 May 2017</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>The stable 2017.05 release is out - Thanks to everyone
|
||||
contributing and testing the release candidates. See the
|
||||
<a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2017.05">CHANGES</a>
|
||||
file for more details
|
||||
and go to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2017.05.tar.bz2">2017.05 release</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<h4 class="timeline-title">2017.05-rc3 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>30 May 2017</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>Release candidate 3 is out with more cleanups and security
|
||||
/ build fixes. See
|
||||
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2017.05-rc3">CHANGES</a>
|
||||
file for details.</p>
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to
|
||||
pick up
|
||||
the <a href="/downloads/buildroot-2017.05-rc3.tar.bz2">2017.05-rc3
|
||||
release candidate</a>, and report any problems found to
|
||||
the <a href="support.html">mailing list</a>
|
||||
or <a href="https://bugs.uclibc.org">bug tracker</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="timeline-inverted">
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
|
||||
@@ -26,7 +26,7 @@ choice
|
||||
prompt "Kernel version"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
bool "Latest version (4.11.1)"
|
||||
bool "Latest version (4.11.3)"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
bool "Latest CIP SLTS version (v4.4.55-cip3)"
|
||||
@@ -116,7 +116,7 @@ endif
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "4.11.1" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "4.11.3" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.55-cip3" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
|
||||
if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
|
||||
@@ -440,7 +440,6 @@ endmenu
|
||||
source "package/odroid-mali/Config.in"
|
||||
source "package/odroid-scripts/Config.in"
|
||||
source "package/ofono/Config.in"
|
||||
source "package/ola/Config.in"
|
||||
source "package/on2-8170-modules/Config.in"
|
||||
source "package/open2300/Config.in"
|
||||
source "package/openipmi/Config.in"
|
||||
@@ -1811,7 +1810,6 @@ menu "System tools"
|
||||
source "package/efibootmgr/Config.in"
|
||||
source "package/efivar/Config.in"
|
||||
source "package/emlog/Config.in"
|
||||
source "package/firejail/Config.in"
|
||||
source "package/ftop/Config.in"
|
||||
source "package/getent/Config.in"
|
||||
source "package/htop/Config.in"
|
||||
|
||||
@@ -17,10 +17,22 @@ define ACPICA_BUILD_CMDS
|
||||
all
|
||||
endef
|
||||
|
||||
define HOST_ACPICA_BUILD_CMDS
|
||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
all
|
||||
endef
|
||||
|
||||
define ACPICA_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
HARDWARE_NAME=$(BR2_ARCH) DESTDIR="$(TARGET_DIR)" \
|
||||
INSTALLFLAGS=-m755 install
|
||||
endef
|
||||
|
||||
define HOST_ACPICA_INSTALL_CMDS
|
||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
PREFIX="$(HOST_DIR)/usr" \
|
||||
INSTALLFLAGS=-m755 install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
|
||||
@@ -5,13 +5,14 @@ config BR2_PACKAGE_AGENTPP
|
||||
depends on !BR2_STATIC_LIBS # snmp++
|
||||
select BR2_PACKAGE_SNMPPP
|
||||
help
|
||||
AGENT++ is a set of C++ classes which provides a complete protocol
|
||||
engine and dispatch table for the development of SNMP agents.
|
||||
AGENT++ is a multilingual API which supports SNMPv1, SNMPv2c, and
|
||||
SNMPv3. It provides various C++ classes implementing prototypes for
|
||||
scalar and table SNMP managed objects that can be customized by
|
||||
derivation. Additional classes support the development of proxy
|
||||
agents as well as sending notifications.
|
||||
AGENT++ is a set of C++ classes which provides a complete
|
||||
protocol engine and dispatch table for the development of
|
||||
SNMP agents. AGENT++ is a multilingual API which supports
|
||||
SNMPv1, SNMPv2c, and SNMPv3. It provides various C++ classes
|
||||
implementing prototypes for scalar and table SNMP managed
|
||||
objects that can be customized by derivation. Additional
|
||||
classes support the development of proxy agents as well as
|
||||
sending notifications.
|
||||
|
||||
SNMPv3 support is enabled if SNMP++ enables it.
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_AICCU
|
||||
bool "aiccu"
|
||||
depends on !BR2_STATIC_LIBS # gnutls
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
@@ -18,6 +19,7 @@ config BR2_PACKAGE_AICCU
|
||||
|
||||
http://www.sixxs.net/tools/aiccu/
|
||||
|
||||
comment "aiccu needs a toolchain w/ wchar, threads"
|
||||
comment "aiccu needs a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !(BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS)
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_STATIC_LIBS
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
################################################################################
|
||||
|
||||
ARMADILLO_VERSION = 6.500.4
|
||||
ARMADILLO_SITE = http://downloads.sourceforge.net/project/arma
|
||||
# upstream removed tarball from
|
||||
# http://downloads.sourceforge.net/project/arma
|
||||
ARMADILLO_SITE = https://ftp.fau.de/macports/distfiles/armadillo
|
||||
ARMADILLO_DEPENDENCIES = clapack
|
||||
ARMADILLO_INSTALL_STAGING = YES
|
||||
ARMADILLO_LICENSE = MPL-2.0
|
||||
|
||||
161
package/audiofile/0008-CVE-2015-7747.patch
Normal file
161
package/audiofile/0008-CVE-2015-7747.patch
Normal file
@@ -0,0 +1,161 @@
|
||||
Description: fix buffer overflow when changing both sample format and
|
||||
number of channels
|
||||
Origin: https://github.com/mpruett/audiofile/pull/25
|
||||
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721
|
||||
Bug-Debian: https://bugs.debian.org/801102
|
||||
|
||||
Downloaded from
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/audiofile/files/audiofile-0.3.6-CVE-2015-7747.patch
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
--- a/libaudiofile/modules/ModuleState.cpp
|
||||
+++ b/libaudiofile/modules/ModuleState.cpp
|
||||
@@ -402,7 +402,7 @@ status ModuleState::arrange(AFfilehandle
|
||||
addModule(new Transform(outfc, in.pcm, out.pcm));
|
||||
|
||||
if (in.channelCount != out.channelCount)
|
||||
- addModule(new ApplyChannelMatrix(infc, isReading,
|
||||
+ addModule(new ApplyChannelMatrix(outfc, isReading,
|
||||
in.channelCount, out.channelCount,
|
||||
in.pcm.minClip, in.pcm.maxClip,
|
||||
track->channelMatrix));
|
||||
--- a/test/Makefile.am
|
||||
+++ b/test/Makefile.am
|
||||
@@ -26,6 +26,7 @@ TESTS = \
|
||||
VirtualFile \
|
||||
floatto24 \
|
||||
query2 \
|
||||
+ sixteen-stereo-to-eight-mono \
|
||||
sixteen-to-eight \
|
||||
testchannelmatrix \
|
||||
testdouble \
|
||||
@@ -139,6 +140,7 @@ printmarkers_SOURCES = printmarkers.c
|
||||
printmarkers_LDADD = $(LIBAUDIOFILE) -lm
|
||||
|
||||
sixteen_to_eight_SOURCES = sixteen-to-eight.c TestUtilities.cpp TestUtilities.h
|
||||
+sixteen_stereo_to_eight_mono_SOURCES = sixteen-stereo-to-eight-mono.c TestUtilities.cpp TestUtilities.h
|
||||
|
||||
testchannelmatrix_SOURCES = testchannelmatrix.c TestUtilities.cpp TestUtilities.h
|
||||
|
||||
--- /dev/null
|
||||
+++ b/test/sixteen-stereo-to-eight-mono.c
|
||||
@@ -0,0 +1,118 @@
|
||||
+/*
|
||||
+ Audio File Library
|
||||
+
|
||||
+ Copyright 2000, Silicon Graphics, Inc.
|
||||
+
|
||||
+ 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 of the License, 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
+*/
|
||||
+
|
||||
+/*
|
||||
+ sixteen-stereo-to-eight-mono.c
|
||||
+
|
||||
+ This program tests the conversion from 2-channel 16-bit integers to
|
||||
+ 1-channel 8-bit integers.
|
||||
+*/
|
||||
+
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include <config.h>
|
||||
+#endif
|
||||
+
|
||||
+#include <stdint.h>
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
+#include <unistd.h>
|
||||
+#include <limits.h>
|
||||
+
|
||||
+#include <audiofile.h>
|
||||
+
|
||||
+#include "TestUtilities.h"
|
||||
+
|
||||
+int main (int argc, char **argv)
|
||||
+{
|
||||
+ AFfilehandle file;
|
||||
+ AFfilesetup setup;
|
||||
+ int16_t frames16[] = {14298, 392, 3923, -683, 958, -1921};
|
||||
+ int8_t frames8[] = {28, 6, -2};
|
||||
+ int i, frameCount = 3;
|
||||
+ int8_t byte;
|
||||
+ AFframecount result;
|
||||
+
|
||||
+ setup = afNewFileSetup();
|
||||
+
|
||||
+ afInitFileFormat(setup, AF_FILE_WAVE);
|
||||
+
|
||||
+ afInitSampleFormat(setup, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 16);
|
||||
+ afInitChannels(setup, AF_DEFAULT_TRACK, 2);
|
||||
+
|
||||
+ char *testFileName;
|
||||
+ if (!createTemporaryFile("sixteen-to-eight", &testFileName))
|
||||
+ {
|
||||
+ fprintf(stderr, "Could not create temporary file.\n");
|
||||
+ exit(EXIT_FAILURE);
|
||||
+ }
|
||||
+
|
||||
+ file = afOpenFile(testFileName, "w", setup);
|
||||
+ if (file == AF_NULL_FILEHANDLE)
|
||||
+ {
|
||||
+ fprintf(stderr, "could not open file for writing\n");
|
||||
+ exit(EXIT_FAILURE);
|
||||
+ }
|
||||
+
|
||||
+ afFreeFileSetup(setup);
|
||||
+
|
||||
+ afWriteFrames(file, AF_DEFAULT_TRACK, frames16, frameCount);
|
||||
+
|
||||
+ afCloseFile(file);
|
||||
+
|
||||
+ file = afOpenFile(testFileName, "r", AF_NULL_FILESETUP);
|
||||
+ if (file == AF_NULL_FILEHANDLE)
|
||||
+ {
|
||||
+ fprintf(stderr, "could not open file for reading\n");
|
||||
+ exit(EXIT_FAILURE);
|
||||
+ }
|
||||
+
|
||||
+ afSetVirtualSampleFormat(file, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 8);
|
||||
+ afSetVirtualChannels(file, AF_DEFAULT_TRACK, 1);
|
||||
+
|
||||
+ for (i=0; i<frameCount; i++)
|
||||
+ {
|
||||
+ /* Read one frame. */
|
||||
+ result = afReadFrames(file, AF_DEFAULT_TRACK, &byte, 1);
|
||||
+
|
||||
+ if (result != 1)
|
||||
+ break;
|
||||
+
|
||||
+ /* Compare the byte read with its precalculated value. */
|
||||
+ if (memcmp(&byte, &frames8[i], 1) != 0)
|
||||
+ {
|
||||
+ printf("error\n");
|
||||
+ printf("expected %d, got %d\n", frames8[i], byte);
|
||||
+ exit(EXIT_FAILURE);
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+#ifdef DEBUG
|
||||
+ printf("got what was expected: %d\n", byte);
|
||||
+#endif
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ afCloseFile(file);
|
||||
+ unlink(testFileName);
|
||||
+ free(testFileName);
|
||||
+
|
||||
+ exit(EXIT_SUCCESS);
|
||||
+}
|
||||
193
package/audiofile/0009-Fix-static-linking-with-libsndfile.patch
Normal file
193
package/audiofile/0009-Fix-static-linking-with-libsndfile.patch
Normal file
@@ -0,0 +1,193 @@
|
||||
From d89a938f48e97b5770509d53c5478c5c3008d6e8 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Sat, 27 May 2017 17:53:33 +0200
|
||||
Subject: [PATCH 1/1] Fix static linking with libsndfile
|
||||
|
||||
libsndfile and audiofile both contain mixXX functions in their alac
|
||||
code which lead to symbol name clashes when apps like mpd try to
|
||||
statically link to both audiofile and libsndfile at the same time.
|
||||
|
||||
This patch renames these functions to avoid the problem which was
|
||||
detected by the buildroot autobuilders:
|
||||
http://autobuild.buildroot.net/results/799/7997ccd698f03885f98d00bd150dc3a578e4b161/
|
||||
|
||||
Patch sent upstream: https://github.com/mpruett/audiofile/pull/45
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
libaudiofile/alac/ALACEncoder.cpp | 28 ++++++++++++++--------------
|
||||
libaudiofile/alac/matrix_enc.c | 8 ++++----
|
||||
libaudiofile/alac/matrixlib.h | 8 ++++----
|
||||
3 files changed, 22 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/libaudiofile/alac/ALACEncoder.cpp b/libaudiofile/alac/ALACEncoder.cpp
|
||||
index da922c2..3d088cc 100644
|
||||
--- a/libaudiofile/alac/ALACEncoder.cpp
|
||||
+++ b/libaudiofile/alac/ALACEncoder.cpp
|
||||
@@ -332,19 +332,19 @@ int32_t ALACEncoder::EncodeStereo( BitBuffer * bitstream, void * inputBuffer, ui
|
||||
switch ( mBitDepth )
|
||||
{
|
||||
case 16:
|
||||
- mix16( (int16_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate, mixBits, mixRes );
|
||||
+ audiofile_alac_mix16( (int16_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate, mixBits, mixRes );
|
||||
break;
|
||||
case 20:
|
||||
- mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate, mixBits, mixRes );
|
||||
+ audiofile_alac_mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate, mixBits, mixRes );
|
||||
break;
|
||||
case 24:
|
||||
// includes extraction of shifted-off bytes
|
||||
- mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate,
|
||||
+ audiofile_alac_mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate,
|
||||
mixBits, mixRes, mShiftBufferUV, bytesShifted );
|
||||
break;
|
||||
case 32:
|
||||
// includes extraction of shifted-off bytes
|
||||
- mix32( (int32_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate,
|
||||
+ audiofile_alac_mix32( (int32_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples/dilate,
|
||||
mixBits, mixRes, mShiftBufferUV, bytesShifted );
|
||||
break;
|
||||
}
|
||||
@@ -379,19 +379,19 @@ int32_t ALACEncoder::EncodeStereo( BitBuffer * bitstream, void * inputBuffer, ui
|
||||
switch ( mBitDepth )
|
||||
{
|
||||
case 16:
|
||||
- mix16( (int16_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
+ audiofile_alac_mix16( (int16_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
break;
|
||||
case 20:
|
||||
- mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
+ audiofile_alac_mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
break;
|
||||
case 24:
|
||||
// also extracts the shifted off bytes into the shift buffers
|
||||
- mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
+ audiofile_alac_mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
mixBits, mixRes, mShiftBufferUV, bytesShifted );
|
||||
break;
|
||||
case 32:
|
||||
// also extracts the shifted off bytes into the shift buffers
|
||||
- mix32( (int32_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
+ audiofile_alac_mix32( (int32_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
mixBits, mixRes, mShiftBufferUV, bytesShifted );
|
||||
break;
|
||||
}
|
||||
@@ -605,19 +605,19 @@ int32_t ALACEncoder::EncodeStereoFast( BitBuffer * bitstream, void * inputBuffer
|
||||
switch ( mBitDepth )
|
||||
{
|
||||
case 16:
|
||||
- mix16( (int16_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
+ audiofile_alac_mix16( (int16_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
break;
|
||||
case 20:
|
||||
- mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
+ audiofile_alac_mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, mixBits, mixRes );
|
||||
break;
|
||||
case 24:
|
||||
// also extracts the shifted off bytes into the shift buffers
|
||||
- mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
+ audiofile_alac_mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
mixBits, mixRes, mShiftBufferUV, bytesShifted );
|
||||
break;
|
||||
case 32:
|
||||
// also extracts the shifted off bytes into the shift buffers
|
||||
- mix32( (int32_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
+ audiofile_alac_mix32( (int32_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples,
|
||||
mixBits, mixRes, mShiftBufferUV, bytesShifted );
|
||||
break;
|
||||
}
|
||||
@@ -756,7 +756,7 @@ int32_t ALACEncoder::EncodeStereoEscape( BitBuffer * bitstream, void * inputBuff
|
||||
break;
|
||||
case 20:
|
||||
// mix20() with mixres param = 0 means de-interleave so use it to simplify things
|
||||
- mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, 0, 0 );
|
||||
+ audiofile_alac_mix20( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, 0, 0 );
|
||||
for ( index = 0; index < numSamples; index++ )
|
||||
{
|
||||
BitBufferWrite( bitstream, mMixBufferU[index], 20 );
|
||||
@@ -765,7 +765,7 @@ int32_t ALACEncoder::EncodeStereoEscape( BitBuffer * bitstream, void * inputBuff
|
||||
break;
|
||||
case 24:
|
||||
// mix24() with mixres param = 0 means de-interleave so use it to simplify things
|
||||
- mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, 0, 0, mShiftBufferUV, 0 );
|
||||
+ audiofile_alac_mix24( (uint8_t *) inputBuffer, stride, mMixBufferU, mMixBufferV, numSamples, 0, 0, mShiftBufferUV, 0 );
|
||||
for ( index = 0; index < numSamples; index++ )
|
||||
{
|
||||
BitBufferWrite( bitstream, mMixBufferU[index], 24 );
|
||||
diff --git a/libaudiofile/alac/matrix_enc.c b/libaudiofile/alac/matrix_enc.c
|
||||
index e194330..8abd556 100644
|
||||
--- a/libaudiofile/alac/matrix_enc.c
|
||||
+++ b/libaudiofile/alac/matrix_enc.c
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
// 16-bit routines
|
||||
|
||||
-void mix16( int16_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres )
|
||||
+void audiofile_alac_mix16( int16_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres )
|
||||
{
|
||||
int16_t * ip = in;
|
||||
int32_t j;
|
||||
@@ -95,7 +95,7 @@ void mix16( int16_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t num
|
||||
// 20-bit routines
|
||||
// - the 20 bits of data are left-justified in 3 bytes of storage but right-aligned for input/output predictor buffers
|
||||
|
||||
-void mix20( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres )
|
||||
+void audiofile_alac_mix20( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres )
|
||||
{
|
||||
int32_t l, r;
|
||||
uint8_t * ip = in;
|
||||
@@ -140,7 +140,7 @@ void mix20( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t num
|
||||
// 24-bit routines
|
||||
// - the 24 bits of data are right-justified in the input/output predictor buffers
|
||||
|
||||
-void mix24( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
+void audiofile_alac_mix24( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
int32_t mixbits, int32_t mixres, uint16_t * shiftUV, int32_t bytesShifted )
|
||||
{
|
||||
int32_t l, r;
|
||||
@@ -240,7 +240,7 @@ void mix24( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t num
|
||||
// - otherwise, the calculations might overflow into the 33rd bit and be lost
|
||||
// - therefore, these routines deal with the specified "unused lower" bytes in the "shift" buffers
|
||||
|
||||
-void mix32( int32_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
+void audiofile_alac_mix32( int32_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
int32_t mixbits, int32_t mixres, uint16_t * shiftUV, int32_t bytesShifted )
|
||||
{
|
||||
int32_t * ip = in;
|
||||
diff --git a/libaudiofile/alac/matrixlib.h b/libaudiofile/alac/matrixlib.h
|
||||
index 0a4f371..5728b6d 100644
|
||||
--- a/libaudiofile/alac/matrixlib.h
|
||||
+++ b/libaudiofile/alac/matrixlib.h
|
||||
@@ -38,17 +38,17 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// 16-bit routines
|
||||
-void mix16( int16_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres );
|
||||
+void audiofile_alac_mix16( int16_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres );
|
||||
void unmix16( int32_t * u, int32_t * v, int16_t * out, uint32_t stride, int32_t numSamples, int32_t mixbits, int32_t mixres );
|
||||
|
||||
// 20-bit routines
|
||||
-void mix20( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres );
|
||||
+void audiofile_alac_mix20( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples, int32_t mixbits, int32_t mixres );
|
||||
void unmix20( int32_t * u, int32_t * v, uint8_t * out, uint32_t stride, int32_t numSamples, int32_t mixbits, int32_t mixres );
|
||||
|
||||
// 24-bit routines
|
||||
// - 24-bit data sometimes compresses better by shifting off the bottom byte so these routines deal with
|
||||
// the specified "unused lower bytes" in the combined "shift" buffer
|
||||
-void mix24( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
+void audiofile_alac_mix24( uint8_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
int32_t mixbits, int32_t mixres, uint16_t * shiftUV, int32_t bytesShifted );
|
||||
void unmix24( int32_t * u, int32_t * v, uint8_t * out, uint32_t stride, int32_t numSamples,
|
||||
int32_t mixbits, int32_t mixres, uint16_t * shiftUV, int32_t bytesShifted );
|
||||
@@ -57,7 +57,7 @@ void unmix24( int32_t * u, int32_t * v, uint8_t * out, uint32_t stride, int32_t
|
||||
// - note that these really expect the internal data width to be < 32-bit but the arrays are 32-bit
|
||||
// - otherwise, the calculations might overflow into the 33rd bit and be lost
|
||||
// - therefore, these routines deal with the specified "unused lower" bytes in the combined "shift" buffer
|
||||
-void mix32( int32_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
+void audiofile_alac_mix32( int32_t * in, uint32_t stride, int32_t * u, int32_t * v, int32_t numSamples,
|
||||
int32_t mixbits, int32_t mixres, uint16_t * shiftUV, int32_t bytesShifted );
|
||||
void unmix32( int32_t * u, int32_t * v, int32_t * out, uint32_t stride, int32_t numSamples,
|
||||
int32_t mixbits, int32_t mixres, uint16_t * shiftUV, int32_t bytesShifted );
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -9,7 +9,7 @@ BASH_SITE = $(BR2_GNU_MIRROR)/bash
|
||||
# Build after since bash is better than busybox shells
|
||||
BASH_DEPENDENCIES = ncurses readline host-bison \
|
||||
$(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
||||
BASH_CONF_OPTS = --with-installed-readline
|
||||
BASH_CONF_OPTS = --with-installed-readline --without-bash-malloc
|
||||
BASH_LICENSE = GPL-3.0+
|
||||
BASH_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -24,7 +24,7 @@ BASH_CONF_ENV += \
|
||||
|
||||
# The static build needs some trickery
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
BASH_CONF_OPTS += --enable-static-link --without-bash-malloc
|
||||
BASH_CONF_OPTS += --enable-static-link
|
||||
# bash wants to redefine the getenv() function. To check whether this is
|
||||
# possible, AC_TRY_RUN is used which is not possible in
|
||||
# cross-compilation.
|
||||
|
||||
@@ -23,7 +23,7 @@ endchoice
|
||||
|
||||
config BR2_BINUTILS_VERSION
|
||||
string
|
||||
default "arc-2017.03-rc2" if BR2_arc
|
||||
default "arc-2017.03" if BR2_arc
|
||||
default "2.26.1" if BR2_BINUTILS_VERSION_2_26_X
|
||||
default "2.27" if BR2_BINUTILS_VERSION_2_27_X
|
||||
default "2.28" if BR2_BINUTILS_VERSION_2_28_X
|
||||
|
||||
@@ -4,4 +4,4 @@ sha512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12c
|
||||
sha512 ede2e4e59a800260eea8c14eafbaee94e30abadafd5c419a3370f9f62213cf027d6400a1d4970b6958bd4d220e675dcd483a708107016e7abd5c99d7392ba8fd binutils-2.28.tar.bz2
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 577fbd59dc8d41022ed511b86f3afc49af48ab798a7b187411a466621dc6247dff7dd84fa110ca278f09a9e523d8bdb892a233c00bf47d11b92be70e7278efe9 binutils-arc-2017.03-rc2.tar.gz
|
||||
sha512 07d5639e74eafe8fced259870c1a7dedee67c534573dda53fb78ee1ffeec9e17479fdde41dccd03b1cf0248023acbef7f66013398b2f722e4a8891ac680d1d16 binutils-arc-2017.03.tar.gz
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
|
||||
ifeq ($(BINUTILS_VERSION),)
|
||||
ifeq ($(BR2_arc),y)
|
||||
BINUTILS_VERSION = arc-2017.03-rc2
|
||||
BINUTILS_VERSION = arc-2017.03
|
||||
else
|
||||
BINUTILS_VERSION = 2.27
|
||||
endif
|
||||
|
||||
@@ -29,17 +29,17 @@ C_ICAP_CONF_ENV = ac_cv_10031b_ipc_sem=yes ac_cv_fcntl=yes
|
||||
C_ICAP_AUTORECONF = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
|
||||
C_ICAP_CONF_OPTS += --with-berkeleydb
|
||||
C_ICAP_CONF_OPTS += --with-bdb
|
||||
C_ICAP_DEPENDENCIES += berkeleydb
|
||||
else
|
||||
C_ICAP_CONF_OPTS += --without-berkeleydb
|
||||
C_ICAP_CONF_OPTS += --without-bdb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||
C_ICAP_CONF_OPTS += --with-bzip2
|
||||
C_ICAP_CONF_OPTS += --with-bzlib
|
||||
C_ICAP_DEPENDENCIES += bzip2
|
||||
else
|
||||
C_ICAP_CONF_OPTS += --without-bzip2
|
||||
C_ICAP_CONF_OPTS += --without-bzlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
|
||||
@@ -33,12 +33,16 @@ config BR2_PACKAGE_CONNMAN_WIFI
|
||||
|
||||
config BR2_PACKAGE_CONNMAN_WISPR
|
||||
bool "enable WISPr support"
|
||||
depends on !BR2_STATIC_LIBS # gnutls
|
||||
select BR2_PACKAGE_GNUTLS
|
||||
help
|
||||
Enable support for Wireless Internet Service Provider
|
||||
roaming (WISPr). A RADIUS server is used to authenticate the
|
||||
subscriber's credentials.
|
||||
|
||||
comment "connman WISPr needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_CONNMAN_BLUETOOTH
|
||||
bool "enable Bluetooth support"
|
||||
help
|
||||
|
||||
@@ -11,6 +11,10 @@ CPPCMS_LICENSE_FILES = COPYING.TXT
|
||||
CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
|
||||
CPPCMS_INSTALL_STAGING = YES
|
||||
|
||||
# disable rpath to avoid getting /usr/lib added to the link search
|
||||
# path
|
||||
CPPCMS_CONF_OPTS = -DCMAKE_SKIP_RPATH=ON
|
||||
|
||||
CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
|
||||
|
||||
@@ -102,6 +102,7 @@ define DHCP_INSTALL_INIT_SYSTEMD
|
||||
ln -sf ../../../../usr/lib/systemd/system/dhcpd.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/dhcpd.service
|
||||
|
||||
mkdir -p $(TARGET_DIR)/usr/lib/tmpfiles.d
|
||||
echo "d /var/lib/dhcp 0755 - - - -" > \
|
||||
$(TARGET_DIR)/usr/lib/tmpfiles.d/dhcpd.conf
|
||||
echo "f /var/lib/dhcp/dhcpd.leases - - - - -" >> \
|
||||
|
||||
@@ -42,6 +42,11 @@ DOCKER_ENGINE_BUILD_TAGS += seccomp
|
||||
DOCKER_ENGINE_DEPENDENCIES += libseccomp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
DOCKER_ENGINE_BUILD_TAGS += journald
|
||||
DOCKER_ENGINE_DEPENDENCIES += systemd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DAEMON),y)
|
||||
DOCKER_ENGINE_BUILD_TAGS += daemon
|
||||
DOCKER_ENGINE_BUILD_TARGETS += dockerd
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# From https://matt.ucc.asn.au/dropbear/releases/SHA256SUM.asc
|
||||
sha256 2720ea54ed009af812701bcc290a2a601d5c107d12993e5d92c0f5f81f718891 dropbear-2016.74.tar.bz2
|
||||
sha256 6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c dropbear-2017.75.tar.bz2
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DROPBEAR_VERSION = 2016.74
|
||||
DROPBEAR_VERSION = 2017.75
|
||||
DROPBEAR_SITE = http://matt.ucc.asn.au/dropbear/releases
|
||||
DROPBEAR_SOURCE = dropbear-$(DROPBEAR_VERSION).tar.bz2
|
||||
DROPBEAR_LICENSE = MIT, BSD-2-Clause-like, BSD-2-Clause
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
Add a --{enable,disable}-progs configure option
|
||||
From dfea82b761b2ea4708fbf9370a5467ae4be525ca Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 29 May 2017 23:03:48 +0300
|
||||
Subject: [PATCH] Add a --{enable,disable}-progs configure option
|
||||
|
||||
Add a --{enable,disable}-progs configuration option to elfutils. This
|
||||
allows to selectively disable the compilation of the elfutils programs
|
||||
@@ -13,26 +16,15 @@ Based on the former patch by Thomas Petazzoni.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
---
|
||||
Makefile.am | 6 +++++-
|
||||
configure.ac | 6 ++++++
|
||||
2 files changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
diff -rup a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2016-03-31 09:48:08.000000000 +0100
|
||||
+++ b/configure.ac 2016-06-17 14:47:03.561704498 +0100
|
||||
@@ -253,6 +253,12 @@ AC_SUBST([LIBEBL_SUBDIR])
|
||||
AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
|
||||
AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
|
||||
|
||||
+AC_ARG_ENABLE([progs],
|
||||
+ AS_HELP_STRING([--enable-progs], [enable progs]),
|
||||
+ enable_progs=$enableval,
|
||||
+ enable_progs=yes)
|
||||
+AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
|
||||
+
|
||||
dnl zlib is mandatory.
|
||||
save_LIBS="$LIBS"
|
||||
LIBS=
|
||||
diff -rup a/Makefile.am b/Makefile.am
|
||||
--- a/Makefile.am 2016-01-12 12:49:19.000000000 +0000
|
||||
+++ b/Makefile.am 2016-06-17 14:48:02.585861468 +0100
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 2ff444e7bf1d..70443abb4fb6 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -26,9 +26,13 @@ AM_MAKEFLAGS = --no-print-directory
|
||||
|
||||
pkginclude_HEADERS = version.h
|
||||
@@ -48,3 +40,23 @@ diff -rup a/Makefile.am b/Makefile.am
|
||||
|
||||
EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
|
||||
COPYING COPYING-GPLV2 COPYING-LGPLV3
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index c2c1d90b2133..7b4c38381cca 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -259,6 +259,12 @@ AC_SUBST([LIBEBL_SUBDIR])
|
||||
AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
|
||||
AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
|
||||
|
||||
+AC_ARG_ENABLE([progs],
|
||||
+ AS_HELP_STRING([--enable-progs], [enable progs]),
|
||||
+ enable_progs=$enableval,
|
||||
+ enable_progs=yes)
|
||||
+AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
|
||||
+
|
||||
dnl zlib is mandatory.
|
||||
save_LIBS="$LIBS"
|
||||
LIBS=
|
||||
--
|
||||
2.11.0
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
Add an implementation of the fts_*() functions
|
||||
From 098760f7eac1fb86b3f6871d5bb10f9f44468f2d Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 29 May 2017 23:08:05 +0300
|
||||
Subject: [PATCH] Add an implementation of the fts_*() functions
|
||||
|
||||
The fts_*() functions are optional in uClibc, and not compiled in our
|
||||
default configuration. The best option would be to migrate this
|
||||
@@ -28,11 +31,21 @@ Based on the former patch by Thomas Petazzoni.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
---
|
||||
configure.ac | 4 +
|
||||
libdwfl/Makefile.am | 3 +
|
||||
libdwfl/fts.c | 1095 ++++++++++++++++++++++++++++++++++++++++
|
||||
libdwfl/fts_.h | 131 +++++
|
||||
libdwfl/linux-kernel-modules.c | 4 +
|
||||
5 files changed, 1237 insertions(+)
|
||||
create mode 100644 libdwfl/fts.c
|
||||
create mode 100644 libdwfl/fts_.h
|
||||
|
||||
diff -Nrup a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2016-06-17 14:47:03.561704498 +0100
|
||||
+++ b/configure.ac 2016-06-17 14:52:35.038200412 +0100
|
||||
@@ -259,6 +259,10 @@ AC_ARG_ENABLE([progs],
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7b4c38381cca..bcebb05fa532 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -265,6 +265,10 @@ AC_ARG_ENABLE([progs],
|
||||
enable_progs=yes)
|
||||
AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
|
||||
|
||||
@@ -43,9 +56,25 @@ diff -Nrup a/configure.ac b/configure.ac
|
||||
dnl zlib is mandatory.
|
||||
save_LIBS="$LIBS"
|
||||
LIBS=
|
||||
diff -Nrup a/libdwfl/fts.c b/libdwfl/fts.c
|
||||
--- a/libdwfl/fts.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ b/libdwfl/fts.c 2016-06-17 14:57:26.649912084 +0100
|
||||
diff --git a/libdwfl/Makefile.am b/libdwfl/Makefile.am
|
||||
index 89ca92ed8110..a5a5615c5f94 100644
|
||||
--- a/libdwfl/Makefile.am
|
||||
+++ b/libdwfl/Makefile.am
|
||||
@@ -77,6 +77,9 @@ endif
|
||||
if LZMA
|
||||
libdwfl_a_SOURCES += lzma.c
|
||||
endif
|
||||
+if !HAVE_FTS
|
||||
+libdwfl_a_SOURCES += fts.c
|
||||
+endif
|
||||
|
||||
libdwfl = $(libdw)
|
||||
libdw = ../libdw/libdw.so
|
||||
diff --git a/libdwfl/fts.c b/libdwfl/fts.c
|
||||
new file mode 100644
|
||||
index 000000000000..f34cc03bd963
|
||||
--- /dev/null
|
||||
+++ b/libdwfl/fts.c
|
||||
@@ -0,0 +1,1095 @@
|
||||
+/*-
|
||||
+ * Copyright (c) 1990, 1993, 1994
|
||||
@@ -1142,9 +1171,11 @@ diff -Nrup a/libdwfl/fts.c b/libdwfl/fts.c
|
||||
+ errno = oerrno;
|
||||
+ return (ret);
|
||||
+}
|
||||
diff -Nrup a/libdwfl/fts_.h b/libdwfl/fts_.h
|
||||
--- a/libdwfl/fts_.h 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ b/libdwfl/fts_.h 2016-06-17 14:58:42.003387566 +0100
|
||||
diff --git a/libdwfl/fts_.h b/libdwfl/fts_.h
|
||||
new file mode 100644
|
||||
index 000000000000..0a070ba8dce5
|
||||
--- /dev/null
|
||||
+++ b/libdwfl/fts_.h
|
||||
@@ -0,0 +1,131 @@
|
||||
+/*
|
||||
+ * Copyright (c) 1989, 1993
|
||||
@@ -1277,31 +1308,25 @@ diff -Nrup a/libdwfl/fts_.h b/libdwfl/fts_.h
|
||||
+__END_DECLS
|
||||
+
|
||||
+#endif /* fts.h */
|
||||
diff -Nrup a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
|
||||
--- a/libdwfl/linux-kernel-modules.c 2016-03-02 16:25:38.000000000 +0000
|
||||
+++ b/libdwfl/linux-kernel-modules.c 2016-06-17 14:59:50.267724089 +0100
|
||||
@@ -29,7 +29,11 @@
|
||||
/* We include this before config.h because it can't handle _FILE_OFFSET_BITS.
|
||||
Everything we need here is fine if its declarations just come first. */
|
||||
|
||||
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
|
||||
index 9d0fef2cf260..47f0e3892294 100644
|
||||
--- a/libdwfl/linux-kernel-modules.c
|
||||
+++ b/libdwfl/linux-kernel-modules.c
|
||||
@@ -31,10 +31,14 @@
|
||||
Everything we need here is fine if its declarations just come first.
|
||||
Also, include sys/types.h before fts. On some systems fts.h is not self
|
||||
contained. */
|
||||
+#ifdef HAVE_FTS_H
|
||||
#include <fts.h>
|
||||
#ifdef BAD_FTS
|
||||
#include <sys/types.h>
|
||||
#include <fts.h>
|
||||
#endif
|
||||
+#else
|
||||
+#include <fts_.h>
|
||||
+#endif
|
||||
|
||||
#include <config.h>
|
||||
|
||||
diff -Nrup a/libdwfl/Makefile.am b/libdwfl/Makefile.am
|
||||
--- a/libdwfl/Makefile.am 2016-01-12 12:49:19.000000000 +0000
|
||||
+++ b/libdwfl/Makefile.am 2016-06-17 15:01:03.492157569 +0100
|
||||
@@ -77,6 +77,9 @@ endif
|
||||
if LZMA
|
||||
libdwfl_a_SOURCES += lzma.c
|
||||
endif
|
||||
+if !HAVE_FTS
|
||||
+libdwfl_a_SOURCES += fts.c
|
||||
+endif
|
||||
|
||||
libdwfl = $(libdw)
|
||||
libdw = ../libdw/libdw.so
|
||||
#include <system.h>
|
||||
--
|
||||
2.11.0
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
Really make -Werror conditional to BUILD_WERROR
|
||||
From 1d8f27d73df6369b19ddd6732960df0d4fdec338 Mon Sep 17 00:00:00 2001
|
||||
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
Date: Mon, 29 May 2017 23:24:42 +0300
|
||||
Subject: [PATCH] Really make -Werror conditional to BUILD_WERROR
|
||||
|
||||
Otherwise it will fail with an error message like this one:
|
||||
|
||||
@@ -12,15 +15,22 @@ cc1: all warnings being treated as errors
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
---
|
||||
config/eu.am | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff -rup a/config/eu.am b/config/eu.am
|
||||
--- a/config/eu.am 2016-03-02 16:25:38.000000000 +0000
|
||||
+++ b/config/eu.am 2016-06-17 15:05:08.270974835 +0100
|
||||
@@ -65,7 +65,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W
|
||||
diff --git a/config/eu.am b/config/eu.am
|
||||
index 8fe1e259f9e2..c5a6209a4e04 100644
|
||||
--- a/config/eu.am
|
||||
+++ b/config/eu.am
|
||||
@@ -71,7 +71,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
|
||||
-Wold-style-definition -Wstrict-prototypes \
|
||||
$(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
|
||||
$(NULL_DEREFERENCE_WARNING) \
|
||||
$(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
|
||||
- $(if $($(*F)_no_Werror),,-Werror) \
|
||||
$(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
|
||||
$(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
|
||||
$($(*F)_CFLAGS)
|
||||
--
|
||||
2.11.0
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 3c056914c8a438b210be0d790463b960fc79d234c3f05ce707cbff80e94cba30 elfutils-0.166.tar.bz2
|
||||
# From https://sourceware.org/elfutils/ftp/0.169/sha512.sum
|
||||
sha512 0a81a20bb2aff533d035d6b76f1403437b2e11bce390db57e34b8c26e4b9b3150346d83dddcbfbbdc58063f046ca3223508dba35c6ce88e375d201e7a777a8b9 elfutils-0.169.tar.bz2
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ELFUTILS_VERSION = 0.166
|
||||
ELFUTILS_VERSION = 0.169
|
||||
ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2
|
||||
ELFUTILS_SITE = https://sourceware.org/elfutils/ftp/$(ELFUTILS_VERSION)
|
||||
ELFUTILS_INSTALL_STAGING = YES
|
||||
@@ -20,11 +20,9 @@ HOST_ELFUTILS_AUTORECONF = YES
|
||||
# Pass a custom program prefix to avoid a naming conflict between
|
||||
# elfutils binaries and binutils binaries.
|
||||
ELFUTILS_CONF_OPTS += \
|
||||
--disable-werror \
|
||||
--program-prefix="eu-"
|
||||
|
||||
HOST_ELFUTILS_CONF_OPTS = \
|
||||
--disable-werror \
|
||||
--with-bzlib \
|
||||
--with-lzma \
|
||||
--disable-progs
|
||||
|
||||
@@ -16,11 +16,12 @@ config BR2_PACKAGE_ERLANG
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_PACKAGE_ERLANG_ARCH_SUPPORTS
|
||||
help
|
||||
Erlang is a programming language used to build massively scalable
|
||||
soft real-time systems with requirements on high availability.
|
||||
Some of its uses are in telecoms, banking, e-commerce, computer
|
||||
telephony and instant messaging. Erlang's runtime system has
|
||||
built-in support for concurrency, distribution and fault tolerance.
|
||||
Erlang is a programming language used to build massively
|
||||
scalable soft real-time systems with requirements on high
|
||||
availability. Some of its uses are in telecoms, banking,
|
||||
e-commerce, computer telephony and instant messaging.
|
||||
Erlang's runtime system has built-in support for
|
||||
concurrency, distribution and fault tolerance.
|
||||
|
||||
http://www.erlang.org
|
||||
|
||||
@@ -29,18 +30,19 @@ if BR2_PACKAGE_ERLANG
|
||||
config BR2_PACKAGE_ERLANG_SMP
|
||||
bool "enable SMP support"
|
||||
help
|
||||
Erlang provides both a UP and an SMP emulator. The UP emulator
|
||||
is always built, and this option enables compilation of the SMP
|
||||
emulator. The choice of which emulator to use is made at runtime.
|
||||
If you do not need SMP support, turning this option off reduces
|
||||
compile time and the size of the Erlang installation.
|
||||
Erlang provides both a UP and an SMP emulator. The UP
|
||||
emulator is always built, and this option enables
|
||||
compilation of the SMP emulator. The choice of which
|
||||
emulator to use is made at runtime. If you do not need SMP
|
||||
support, turning this option off reduces compile time and
|
||||
the size of the Erlang installation.
|
||||
|
||||
config BR2_PACKAGE_ERLANG_MEGACO
|
||||
bool "install megaco application"
|
||||
help
|
||||
The Megaco application is a framework for building applications
|
||||
on top of the Megaco/H.248 protocol. It is approximately 14MB in
|
||||
size so if you do not need it then it is recommended not to
|
||||
enable it.
|
||||
The Megaco application is a framework for building
|
||||
applications on top of the Megaco/H.248 protocol. It is
|
||||
approximately 14MB in size so if you do not need it then
|
||||
it is recommended not to enable it.
|
||||
|
||||
endif # BR2_PACKAGE_ERLANG
|
||||
|
||||
@@ -8,8 +8,9 @@ config BR2_PACKAGE_EXIM
|
||||
select BR2_PACKAGE_PCRE
|
||||
select BR2_PACKAGE_BERKELEYDB
|
||||
help
|
||||
Exim is a message transfer agent (MTA) developed at the University of
|
||||
Cambridge for use on Unix systems connected to the Internet.
|
||||
Exim is a message transfer agent (MTA) developed at the
|
||||
University of Cambridge for use on Unix systems connected to
|
||||
the Internet.
|
||||
|
||||
http://www.exim.org/
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ FBGRAB_LICENSE = GPL-2.0
|
||||
FBGRAB_LICENSE_FILES = COPYING
|
||||
|
||||
define FBGRAB_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) fbgrab
|
||||
endef
|
||||
|
||||
define FBGRAB_INSTALL_TARGET_CMDS
|
||||
|
||||
@@ -3,7 +3,13 @@ config BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
|
||||
# fenv.h lacks FE_INVALID, FE_OVERFLOW & FE_UNDERFLOW on nios2
|
||||
# No support for ARMv7-M in the ARM assembly logic
|
||||
# Microblaze build affected by gcc PR71124 (infinite loop)
|
||||
default y if !BR2_nios2 && !BR2_ARM_CPU_ARMV7M && !BR2_microblaze
|
||||
# m68k coldfire causes a build failure, because the check for
|
||||
# atomics (atomic_store) succeeds, which causes ffmpeg to
|
||||
# think atomic intrinsics are available, while they are
|
||||
# not. See https://patchwork.ozlabs.org/patch/756664/ and
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68467 for more
|
||||
# details.
|
||||
default y if !BR2_nios2 && !BR2_ARM_CPU_ARMV7M && !BR2_microblaze && !BR2_m68k_cf
|
||||
|
||||
menuconfig BR2_PACKAGE_FFMPEG
|
||||
bool "ffmpeg"
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
config BR2_PACKAGE_FIREJAIL
|
||||
bool "firejail"
|
||||
depends on BROKEN # does not cross-compile at all
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# uClibc: error: ‘EM_ARM’ undeclared
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC
|
||||
help
|
||||
Firejail is a SUID program that reduces the risk of security
|
||||
breaches by restricting the running environment of untrusted
|
||||
applications using Linux namespaces and seccomp-bpf. It
|
||||
allows a process and all its descendants to have their own
|
||||
private view of the globally shared kernel resources, such
|
||||
as the network stack, process table, mount table.
|
||||
|
||||
https://firejail.wordpress.com/
|
||||
|
||||
comment "firejail needs a glibc or musl toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BROKEN
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -1,3 +0,0 @@
|
||||
# From https://sourceforge.net/projects/firejail/files/firejail/
|
||||
md5 7e6dca7202b1d70105b39646755cc620 firejail-0.9.44.8.tar.xz
|
||||
sha1 019423df0aee84d474f9fcd1f6a871a2fe8aa9a5 firejail-0.9.44.8.tar.xz
|
||||
@@ -1,28 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# firejail
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FIREJAIL_VERSION = 0.9.44.8
|
||||
FIREJAIL_SITE = http://download.sourceforge.net/firejail
|
||||
FIREJAIL_SOURCE = firejail-$(FIREJAIL_VERSION).tar.xz
|
||||
FIREJAIL_LICENSE = GPL-2.0+
|
||||
FIREJAIL_LICENSE_FILES = COPYING
|
||||
|
||||
FIREJAIL_CONF_OPTS = \
|
||||
--enable-bind \
|
||||
--enable-file-transfer \
|
||||
--enable-network \
|
||||
--enable-seccomp \
|
||||
--enable-userns
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
FIREJAIL_CONF_OPTS += --enable-busybox-workaround
|
||||
endif
|
||||
|
||||
define FIREJAIL_PERMISSIONS
|
||||
/usr/bin/firejail f 4755 0 0 - - - - -
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -1,27 +0,0 @@
|
||||
hwaccess: sys/io.h is not specific to glibc
|
||||
|
||||
Under Linux, sys/io.h provides inb and outb, so we really need it.
|
||||
However, its inclusion is conditional to the _GLIBC_ define. This is
|
||||
usually OK under Linux, since both glibc and uClibc define it (uclibc
|
||||
fakes being glibc).
|
||||
|
||||
But the musl C library does not impersonate glibc, so we're missing
|
||||
including sys/io.h in this case.
|
||||
|
||||
Change the include from checking _GLIBC_ to checking whether this is
|
||||
Linux, looking for the __linux__ define.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff -durN flashrom-0.9.8.orig/hwaccess.h flashrom-0.9.8/hwaccess.h
|
||||
--- flashrom-0.9.8.orig/hwaccess.h 2015-02-10 09:03:10.000000000 +0100
|
||||
+++ flashrom-0.9.8/hwaccess.h 2015-10-28 20:01:54.259202484 +0100
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "platform.h"
|
||||
|
||||
#if IS_X86
|
||||
-#if defined(__GLIBC__)
|
||||
+#if defined(__linux__)
|
||||
#include <sys/io.h>
|
||||
#endif
|
||||
#endif
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 13dc7c895e583111ecca370363a3527d237d178a134a94b20db7df177c05f934 flashrom-0.9.8.tar.bz2
|
||||
sha256 cb3156b0f63eb192024b76c0814135930297aac41f80761a5d293de769783c45 flashrom-0.9.9.tar.bz2
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLASHROM_VERSION = 0.9.8
|
||||
FLASHROM_VERSION = 0.9.9
|
||||
FLASHROM_SOURCE = flashrom-$(FLASHROM_VERSION).tar.bz2
|
||||
FLASHROM_SITE = http://download.flashrom.org/releases
|
||||
FLASHROM_DEPENDENCIES = pciutils libusb libusb-compat libftdi host-pkgconf
|
||||
|
||||
@@ -5,4 +5,4 @@ config BR2_PACKAGE_FTOP
|
||||
Ftop is to files what top is to processes.
|
||||
The progress of all open files and file systems can be monitored.
|
||||
|
||||
https://code.google.com/p/ftop/
|
||||
https://sourceforge.net/projects/ftop/
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
# From https://code.google.com/p/ftop/downloads/detail?name=ftop-1.0.tar.gz&can=2&q=
|
||||
sha1 a0523862dd63ed3bec14846b6e05afcfdebb15c2 ftop-1.0.tar.gz
|
||||
# From https://sourceforge.net/projects/ftop/files/ftop/1.0/
|
||||
md5 57c68b6e7431f4219d9eddaebcb395da ftop-1.0.tar.bz2
|
||||
sha1 d3ef1b74825f50c7c442d299b29d23c2478f199b ftop-1.0.tar.bz2
|
||||
# Locally computed
|
||||
sha256 3a705f4f291384344cd32c3dd5f5f6a7cd7cea7624c83cb7e923966dbcd47f82 ftop-1.0.tar.bz2
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
################################################################################
|
||||
|
||||
FTOP_VERSION = 1.0
|
||||
FTOP_SITE = http://ftop.googlecode.com/files
|
||||
FTOP_SOURCE = ftop-$(FTOP_VERSION).tar.bz2
|
||||
FTOP_SITE = https://sourceforge.net/projects/ftop/files/ftop/$(FTOP_VERSION)
|
||||
FTOP_DEPENDENCIES = ncurses
|
||||
FTOP_LICENSE = GPL-3.0+
|
||||
FTOP_LICENSE_FILES = COPYING
|
||||
|
||||
@@ -106,7 +106,7 @@ config BR2_GCC_VERSION
|
||||
default "4.9.4" if BR2_GCC_VERSION_4_9_X
|
||||
default "5.4.0" if BR2_GCC_VERSION_5_X
|
||||
default "6.3.0" if BR2_GCC_VERSION_6_X
|
||||
default "arc-2017.03-rc2" if BR2_GCC_VERSION_ARC
|
||||
default "arc-2017.03" if BR2_GCC_VERSION_ARC
|
||||
default "musl-5.4.0" if BR2_GCC_VERSION_OR1K
|
||||
|
||||
config BR2_EXTRA_GCC_CONFIG_OPTIONS
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
From 139fed9d29ab935b3bc5159c0bdf7b8b8a39442d Mon Sep 17 00:00:00 2001
|
||||
From: Claudiu Zissulescu <claziss@gmail.com>
|
||||
Date: Mon, 15 May 2017 05:05:27 -0400
|
||||
Subject: [PATCH] [FIX] PIC: return false for any PIC related unspecs
|
||||
|
||||
---
|
||||
gcc/config/arc/arc.c | 9 ++++-----
|
||||
gcc/testsuite/gcc.target/arc/pr9001191897.c | 10 ++++++++++
|
||||
2 files changed, 14 insertions(+), 5 deletions(-)
|
||||
create mode 100644 gcc/testsuite/gcc.target/arc/pr9001191897.c
|
||||
|
||||
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
|
||||
index 3d53a667d37f..b00126f4d2c4 100644
|
||||
--- a/gcc/config/arc/arc.c
|
||||
+++ b/gcc/config/arc/arc.c
|
||||
@@ -6056,11 +6056,8 @@ arc_legitimate_constant_p (machine_mode mode, rtx x)
|
||||
return true;
|
||||
|
||||
case NEG:
|
||||
- /* Assembler does not understand -(@label@gotoff). Also, we do
|
||||
- not print such pic address constant. */
|
||||
- if (GET_CODE (XEXP (x, 0)) == UNSPEC)
|
||||
- return false;
|
||||
return arc_legitimate_constant_p (mode, XEXP (x, 0));
|
||||
+
|
||||
case PLUS:
|
||||
case MINUS:
|
||||
{
|
||||
@@ -6090,7 +6087,9 @@ arc_legitimate_constant_p (machine_mode mode, rtx x)
|
||||
case UNSPEC_TLS_IE:
|
||||
return true;
|
||||
default:
|
||||
- break;
|
||||
+ /* Any other unspec ending here are pic related, hence the above
|
||||
+ constant pic address checking returned false. */
|
||||
+ return false;
|
||||
}
|
||||
/* Fall through. */
|
||||
|
||||
diff --git a/gcc/testsuite/gcc.target/arc/pr9001191897.c b/gcc/testsuite/gcc.target/arc/pr9001191897.c
|
||||
new file mode 100644
|
||||
index 000000000000..2b9e1689803f
|
||||
--- /dev/null
|
||||
+++ b/gcc/testsuite/gcc.target/arc/pr9001191897.c
|
||||
@@ -0,0 +1,10 @@
|
||||
+/* { dg-do compile } */
|
||||
+/* { dg-skip-if "" { ! { clmcpu } } } */
|
||||
+/* { dg-options "-mcpu=arch2 -Os -fpic -mno-sdata -mno-indexed-loads -w" } */
|
||||
+a;
|
||||
+c() {
|
||||
+ static char b[25];
|
||||
+ for (; a >= 0; a--)
|
||||
+ if (b[a])
|
||||
+ b[a] = '\0';
|
||||
+}
|
||||
--
|
||||
2.7.4
|
||||
|
||||
55
package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch
Normal file
55
package/gcc/arc-2017.03/0001-ARC-Fix-tst_movb-pattern.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
From 08235ef444fd32d311fc9edb65895133820462e3 Mon Sep 17 00:00:00 2001
|
||||
From: claziss <claziss@synopsys.com>
|
||||
Date: Wed, 24 May 2017 12:53:43 +0200
|
||||
Subject: [PATCH] [ARC] Fix tst_movb pattern.
|
||||
|
||||
The tst_movb pattern is missing guarding when spitting.
|
||||
|
||||
gcc/
|
||||
2017-05-24 Claudiu Zissulescu <claziss@synopsys.com>
|
||||
|
||||
* config/arc/arc.md (tst_movb): Add guard when splitting.
|
||||
|
||||
testsuite/
|
||||
2017-05-24 Claudiu Zissulescu <claziss@synopsys.com>
|
||||
|
||||
* gcc.target/arc/pr9001195952.c: New test.
|
||||
---
|
||||
gcc/config/arc/arc.md | 2 +-
|
||||
gcc/testsuite/gcc.target/arc/pr9001195952.c | 11 +++++++++++
|
||||
2 files changed, 12 insertions(+), 1 deletion(-)
|
||||
create mode 100755 gcc/testsuite/gcc.target/arc/pr9001195952.c
|
||||
|
||||
diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
|
||||
index e78abaaafc42..d5510aeb0600 100644
|
||||
--- a/gcc/config/arc/arc.md
|
||||
+++ b/gcc/config/arc/arc.md
|
||||
@@ -863,7 +863,7 @@ archs4xd, archs4xd_slow"
|
||||
(clobber (match_scratch:SI 3 "=X,X,X,X,X,X,Rrq,Rrq,c"))]
|
||||
"TARGET_NPS_BITOPS"
|
||||
"movb.f.cl %3,%1,%p2,%p2,%s2"
|
||||
- "reload_completed
|
||||
+ "TARGET_NPS_BITOPS && reload_completed
|
||||
&& (extract_constrain_insn_cached (insn), (which_alternative & ~1) != 6)"
|
||||
[(set (match_dup 0) (match_dup 4))])
|
||||
|
||||
diff --git a/gcc/testsuite/gcc.target/arc/pr9001195952.c b/gcc/testsuite/gcc.target/arc/pr9001195952.c
|
||||
new file mode 100755
|
||||
index 000000000000..252438d8d78b
|
||||
--- /dev/null
|
||||
+++ b/gcc/testsuite/gcc.target/arc/pr9001195952.c
|
||||
@@ -0,0 +1,11 @@
|
||||
+/* { dg-do compile } */
|
||||
+/* { dg-skip-if "" { ! { clmcpu } } } */
|
||||
+/* { dg-options "-mcpu=archs -Os -w -fpic" } */
|
||||
+
|
||||
+/* tst_movb split pattern is wrong for anything else than NPS
|
||||
+ chip. */
|
||||
+__bswap_32___bsx() {
|
||||
+ int a = __builtin_bswap32(__bswap_32___bsx);
|
||||
+ if (a & 1048575)
|
||||
+ zlog_warn();
|
||||
+}
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -12,6 +12,6 @@ sha512 2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d
|
||||
sha512 234dd9b1bdc9a9c6e352216a7ef4ccadc6c07f156006a59759c5e0e6a69f0abcdc14630eff11e3826dd6ba5933a8faa43043f3d1d62df6bd5ab1e82862f9bf78 gcc-6.3.0.tar.bz2
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 8157d784367de2de853f7d288a213ee3222ac77321d18a887cd5a9c55b53f5948cc8608ec82398cb7e0a155ffa79f86f6469a23b505b22cd0eb5b69d610abd41 gcc-arc-2017.03-rc2.tar.gz
|
||||
sha512 282f76b8b63372f5b4426092b80d36da96cd0bda2a8588405b9ec22806c69fafb696b0e0df65bc36c3c3aa8ce5befc24246fd5c6ddb21dcde01f45f7b11ff7c4 gcc-arc-2017.03.tar.gz
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 841101f7de45f327bf2e92f3efc73ca88a021e4b9b541458ce80a16e55882bd8606a8492d75c57c589ee2c10d42ae2865b67690155d7289a541df1d68096402f gcc-musl-5.4.0.tar.gz
|
||||
|
||||
@@ -55,7 +55,7 @@ endif
|
||||
# If cross-gdb is not enabled, the latest working version is chosen.
|
||||
config BR2_GDB_VERSION
|
||||
string
|
||||
default "arc-2017.03-rc2-gdb" if BR2_arc
|
||||
default "arc-2017.03-gdb" if BR2_arc
|
||||
default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
|
||||
default "7.10.1" if BR2_GDB_VERSION_7_10
|
||||
default "7.11.1" if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB
|
||||
|
||||
@@ -5,4 +5,4 @@ sha512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 0a467091d4b01fbecabb4b8da1cb743025c70e7f4874a0b5c8fa2ec623569a39bde6762b91806de0be6e63711aeb6909715cfbe43860de73d8aec6159a9f10a7 gdb-6be65fb56ea6694a9260733a536a023a1e2d4d57.tar.gz
|
||||
sha512 275241c215d0bd32ab0f9f16358c46a66fd0d5db09d9a148b169a6b8135cfe91c6240a6bb75977573d4fc449a98f0702254577cbdc4598c6153ebbdca39253cf gdb-arc-2017.03-rc2-gdb.tar.gz
|
||||
sha512 8ec849a5ea1c16f104c51c4813c35ab229e460eef0025967673b87316f62b5171f05448cda018464914d43d2da50b2902eb7f9f060d0af1368a9db111f959668 gdb-arc-2017.03-gdb.tar.gz
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
config BR2_PACKAGE_GNUTLS
|
||||
bool "gnutls"
|
||||
# https://gitlab.com/gnutls/gnutls/issues/203
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBTASN1
|
||||
select BR2_PACKAGE_LIBUNISTRING
|
||||
@@ -22,5 +24,5 @@ config BR2_PACKAGE_GNUTLS_TOOLS
|
||||
|
||||
endif
|
||||
|
||||
comment "gnutls needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
comment "gnutls needs a toolchain w/ wchar, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 af443e86ba538d4d3e37c4732c00101a492fe4b56a55f4112ff0ab39dbe6579d gnutls-3.5.10.tar.xz
|
||||
sha256 63cb39a5eaa029381df2e49a74cfb7be89fc4a592445191818ffe1e66bde57cb gnutls-3.5.12.tar.xz
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
GNUTLS_VERSION_MAJOR = 3.5
|
||||
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).10
|
||||
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).12
|
||||
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
||||
GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
|
||||
GNUTLS_LICENSE = LGPL-2.1+ (core library), GPL-3.0+ (gnutls-openssl library)
|
||||
|
||||
@@ -23,14 +23,14 @@ define HOST_GOOGLE_BREAKPAD_LSS
|
||||
$(HOST_DIR)/usr/include/linux_syscall_support.h \
|
||||
$(@D)/src/third_party/lss/linux_syscall_support.h
|
||||
endef
|
||||
HOST_GOOGLE_BREAKPAD_POST_EXTRACT_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
|
||||
HOST_GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
|
||||
|
||||
define GOOGLE_BREAKPAD_LSS
|
||||
$(INSTALL) -D -m 0644 \
|
||||
$(STAGING_DIR)/usr/include/linux_syscall_support.h \
|
||||
$(@D)/src/third_party/lss/linux_syscall_support.h
|
||||
endef
|
||||
GOOGLE_BREAKPAD_POST_EXTRACT_HOOKS += GOOGLE_BREAKPAD_LSS
|
||||
GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += GOOGLE_BREAKPAD_LSS
|
||||
|
||||
define GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
|
||||
$(EXTRA_ENV) package/google-breakpad/gen-syms.sh $(STAGING_DIR) \
|
||||
|
||||
@@ -10,7 +10,7 @@ HANS_LICENSE = GPL-3.0+
|
||||
HANS_LICENSE_FILES = LICENSE
|
||||
|
||||
define HANS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) GCC="$(TARGET_CC)" GPP="$(TARGET_CXX)" -C $(@D)
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) GCC="$(TARGET_CC)" GPP="$(TARGET_CXX)" -C $(@D)
|
||||
endef
|
||||
|
||||
define HANS_INSTALL_TARGET_CMDS
|
||||
|
||||
@@ -2,6 +2,7 @@ config BR2_PACKAGE_KEEPALIVED
|
||||
bool "keepalived"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_STATIC_LIBS # uses libdl
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_POPT
|
||||
help
|
||||
@@ -15,6 +16,6 @@ config BR2_PACKAGE_KEEPALIVED
|
||||
|
||||
http://www.keepalived.org/
|
||||
|
||||
comment "keepalived needs a toolchain w/ dynamic library"
|
||||
comment "keepalived needs a toolchain w/ dynamic library, headers >= 3.4"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Not possible to directly refer to kodi variables, because of
|
||||
# first/second expansion trickery...
|
||||
KODI_JSONSCHEMABUILDER_VERSION = 17.1-Krypton
|
||||
KODI_JSONSCHEMABUILDER_VERSION = 17.3-Krypton
|
||||
KODI_JSONSCHEMABUILDER_SITE = $(call github,xbmc,xbmc,$(KODI_JSONSCHEMABUILDER_VERSION))
|
||||
KODI_JSONSCHEMABUILDER_SOURCE = kodi-$(KODI_JSONSCHEMABUILDER_VERSION).tar.gz
|
||||
KODI_JSONSCHEMABUILDER_LICENSE = GPL-2.0
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Not possible to directly refer to kodi variables, because of
|
||||
# first/second expansion trickery...
|
||||
KODI_TEXTUREPACKER_VERSION = 17.1-Krypton
|
||||
KODI_TEXTUREPACKER_VERSION = 17.3-Krypton
|
||||
KODI_TEXTUREPACKER_SITE = $(call github,xbmc,xbmc,$(KODI_TEXTUREPACKER_VERSION))
|
||||
KODI_TEXTUREPACKER_SOURCE = kodi-$(KODI_TEXTUREPACKER_VERSION).tar.gz
|
||||
KODI_TEXTUREPACKER_LICENSE = GPL-2.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Locally computed
|
||||
sha256 303f3903cbb57ccc2961f09cf3746505542bcb129a464f0687d7ca8601cebbee kodi-17.1-Krypton.tar.gz
|
||||
sha256 1de8653a3729cefd1baaf09ecde5ace01a1e3a58fbf29d48c1363f2503d331a1 kodi-17.3-Krypton.tar.gz
|
||||
# Locally computed - libdvdcss
|
||||
sha256 b6eb2d929ff56cb051152c32010afc5e7cf5fe8c5ae32dca412a2b46b6b57e34 2f12236.tar.gz
|
||||
# Locally computed - libdvdnav
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# When updating the version, please also update kodi-jsonschemabuilder
|
||||
# and kodi-texturepacker
|
||||
KODI_VERSION = 17.1-Krypton
|
||||
KODI_VERSION = 17.3-Krypton
|
||||
KODI_SITE = $(call github,xbmc,xbmc,$(KODI_VERSION))
|
||||
KODI_LICENSE = GPL-2.0
|
||||
KODI_LICENSE_FILES = LICENSE.GPL
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
config BR2_PACKAGE_LIBCDIO
|
||||
bool "libcdio"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
# ARC toolchain issue
|
||||
depends on !BR2_arc
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
help
|
||||
The GNU Compact Disc Input and Control library.
|
||||
|
||||
200
package/libepoxy/0002-Make-EGL-support-optional.patch
Normal file
200
package/libepoxy/0002-Make-EGL-support-optional.patch
Normal file
@@ -0,0 +1,200 @@
|
||||
From 0511fc56e7017209ad18d16551ccaad05de9486c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 8 May 2017 23:12:49 +0200
|
||||
Subject: [PATCH] Make EGL support optional
|
||||
|
||||
It is perfectly possible to build Mesa3D with just OpenGL support, and
|
||||
use with GLX in X.org, without having EGL/OpenGLES support.
|
||||
|
||||
However, libepoxy currently unconditionally requires EGL support in its
|
||||
configure.ac, which causes a build failure when Mesa3D only provides
|
||||
full OpenGL support:
|
||||
|
||||
checking for EGL... no
|
||||
configure: error: Package requirements (egl) were not met:
|
||||
|
||||
Package egl was not found in the pkg-config search path.
|
||||
Perhaps you should add the directory containing `egl.pc'
|
||||
to the PKG_CONFIG_PATH environment variable
|
||||
Package 'egl', required by 'world', not found
|
||||
|
||||
This commit fixes that by:
|
||||
|
||||
- Adjusting the configure.ac to add a --{enable,disable}-egl option
|
||||
handled in the exact same way as --{enable,disable}-glx
|
||||
|
||||
- Adjusting the meson build logic in the same way.
|
||||
|
||||
- Adjusting src/dispatch_common.h to define PLATFORM_HAS_EGL correctly,
|
||||
which allows to not include any EGL related header file if EGL
|
||||
support is not enabled.
|
||||
|
||||
Submitted-upstream: https://github.com/anholt/libepoxy/pull/123
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
configure.ac | 33 ++++++++++++++++++++++++++++-----
|
||||
meson.build | 21 ++++++++++++++++++---
|
||||
meson_options.txt | 5 +++++
|
||||
src/dispatch_common.h | 8 ++++----
|
||||
4 files changed, 55 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 31b0985..2dbecd9 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -88,11 +88,35 @@ AS_CASE([$enable_glx],
|
||||
[AC_MSG_ERROR([Invalid value "$enable_glx" for option "--enable-glx"])]
|
||||
])
|
||||
|
||||
-# The remaining platform specific API for GL/GLES are enabled
|
||||
-# depending on the platform we're building for
|
||||
+AC_ARG_ENABLE([egl],
|
||||
+ [AC_HELP_STRING([--enable-egl=@<:@auto,yes,no@:>@], [Enable EGL support @<:@default=auto@:>@])],
|
||||
+ [enable_egl=$enableval],
|
||||
+ [enable_egl=auto])
|
||||
+
|
||||
+AS_CASE([$enable_egl],
|
||||
+ [auto], [
|
||||
+ AS_CASE([$host_os],
|
||||
+ [mingw*], [build_egl=no],
|
||||
+ [darwin*], [build_egl=no],
|
||||
+ [android*], [build_egl=no],
|
||||
+ [build_egl=yes])
|
||||
+ ],
|
||||
+
|
||||
+ [yes], [
|
||||
+ build_egl=yes
|
||||
+ ],
|
||||
+
|
||||
+ [no], [
|
||||
+ build_egl=no
|
||||
+ ],
|
||||
+
|
||||
+ [AC_MSG_ERROR([Invalid value "$enable_egl" for option "--enable-egl"])]
|
||||
+])
|
||||
+
|
||||
+# The remaining platform specific API are enabled depending on the
|
||||
+# platform we're building for
|
||||
AS_CASE([$host_os],
|
||||
[mingw*], [
|
||||
- build_egl=no
|
||||
build_wgl=yes
|
||||
has_znow=yes
|
||||
# On windows, the DLL has to have all of its functions
|
||||
@@ -108,7 +132,6 @@ AS_CASE([$host_os],
|
||||
],
|
||||
|
||||
[darwin*], [
|
||||
- build_egl=no
|
||||
build_wgl=no
|
||||
build_apple=yes
|
||||
has_znow=no
|
||||
@@ -116,7 +139,6 @@ AS_CASE([$host_os],
|
||||
],
|
||||
|
||||
[
|
||||
- build_egl=yes
|
||||
build_wgl=no
|
||||
has_znow=yes
|
||||
# On platforms with dlopen, we load everything dynamically and
|
||||
@@ -131,6 +153,7 @@ AM_CONDITIONAL(BUILD_EGL, test x$build_egl = xyes)
|
||||
if test x$build_egl = xyes; then
|
||||
PKG_CHECK_MODULES(EGL, [egl])
|
||||
AC_DEFINE([BUILD_EGL], [1], [build EGL tests])
|
||||
+ AC_DEFINE(ENABLE_EGL, [1], [Whether EGL support is enabled])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(BUILD_GLX, test x$build_glx = xyes)
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 5435f45..226152e 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -51,26 +51,41 @@ elif enable_glx == 'no'
|
||||
build_glx = false
|
||||
endif
|
||||
|
||||
+enable_egl = get_option('enable-egl')
|
||||
+if enable_egl == 'auto'
|
||||
+ if host_system == 'windows'
|
||||
+ build_egl = false
|
||||
+ elif host_system == 'darwin'
|
||||
+ build_egl = false
|
||||
+ elif host_system == 'android'
|
||||
+ build_egl = false
|
||||
+ else
|
||||
+ build_egl = true
|
||||
+ endif
|
||||
+elif enable_egl == 'yes'
|
||||
+ build_egl = true
|
||||
+elif enable_egl == 'no'
|
||||
+ build_egl = false
|
||||
+endif
|
||||
+
|
||||
# The remaining platform specific API for GL/GLES are enabled
|
||||
# depending on the platform we're building for
|
||||
if host_system == 'windows'
|
||||
- build_egl = false
|
||||
build_apple = false
|
||||
build_wgl = true
|
||||
has_znow = true
|
||||
elif host_system == 'darwin'
|
||||
- build_egl = false
|
||||
build_apple = true
|
||||
build_wgl = false
|
||||
has_znow = false
|
||||
else
|
||||
- build_egl = true
|
||||
build_apple = false
|
||||
build_wgl = false
|
||||
has_znow = true
|
||||
endif
|
||||
|
||||
conf.set10('ENABLE_GLX', build_glx)
|
||||
+conf.set10('ENABLE_EGL', build_egl)
|
||||
|
||||
# Compiler flags, taken from the Xorg macros
|
||||
if cc.get_id() == 'msvc'
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
index 18932f5..244476a 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -6,3 +6,8 @@ option('enable-glx',
|
||||
choices: [ 'auto', 'yes', 'no' ],
|
||||
value: 'auto',
|
||||
description: 'Enable GLX support')
|
||||
+option('enable-egl',
|
||||
+ type: 'combo',
|
||||
+ choices: [ 'auto', 'yes', 'no' ],
|
||||
+ value: 'auto',
|
||||
+ description: 'Enable EGL support')
|
||||
diff --git a/src/dispatch_common.h b/src/dispatch_common.h
|
||||
index e3277f7..e16771f 100644
|
||||
--- a/src/dispatch_common.h
|
||||
+++ b/src/dispatch_common.h
|
||||
@@ -24,19 +24,19 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
-#define PLATFORM_HAS_EGL 0
|
||||
+#define PLATFORM_HAS_EGL ENABLE_EGL
|
||||
#define PLATFORM_HAS_GLX ENABLE_GLX
|
||||
#define PLATFORM_HAS_WGL 1
|
||||
#elif defined(__APPLE__)
|
||||
-#define PLATFORM_HAS_EGL 0
|
||||
+#define PLATFORM_HAS_EGL ENABLE_EGL
|
||||
#define PLATFORM_HAS_GLX ENABLE_GLX
|
||||
#define PLATFORM_HAS_WGL 0
|
||||
#elif defined(ANDROID)
|
||||
-#define PLATFORM_HAS_EGL 1
|
||||
+#define PLATFORM_HAS_EGL ENABLE_EGL
|
||||
#define PLATFORM_HAS_GLX 0
|
||||
#define PLATFORM_HAS_WGL 0
|
||||
#else
|
||||
-#define PLATFORM_HAS_EGL 1
|
||||
+#define PLATFORM_HAS_EGL ENABLE_EGL
|
||||
#define PLATFORM_HAS_GLX ENABLE_GLX
|
||||
#define PLATFORM_HAS_WGL 0
|
||||
#endif
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -12,6 +12,8 @@ LIBEPOXY_INSTALL_STAGING = YES
|
||||
LIBEPOXY_DEPENDENCIES = host-pkgconf xutil_util-macros
|
||||
LIBEPOXY_LICENSE = MIT
|
||||
LIBEPOXY_LICENSE_FILES = COPYING
|
||||
# 0002-Make-EGL-support-optional.patch
|
||||
LIBEPOXY_AUTORECONF = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
|
||||
LIBEPOXY_CONF_OPTS += --enable-egl
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
LIBEV_VERSION = 4.22
|
||||
LIBEV_SITE = http://dist.schmorp.de/libev
|
||||
LIBEV_SITE = http://dist.schmorp.de/libev/Attic
|
||||
LIBEV_INSTALL_STAGING = YES
|
||||
LIBEV_LICENSE = BSD-2-Clause or GPL-2.0+
|
||||
LIBEV_LICENSE_FILES = LICENSE
|
||||
|
||||
@@ -12,14 +12,15 @@ if BR2_PACKAGE_LIBMICROHTTPD
|
||||
config BR2_PACKAGE_LIBMICROHTTPD_SSL
|
||||
bool "https support"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
|
||||
depends on !BR2_STATIC_LIBS # gnutls
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_GNUTLS
|
||||
select BR2_PACKAGE_LIBGCRYPT
|
||||
help
|
||||
Enable HTTPS (SSL) support.
|
||||
|
||||
comment "libmicrohttpd https support needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
comment "libmicrohttpd https support needs a toolchain w/ wchar, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 54797f6e763d417627f89f60e4ae0a431dab0523f92f83def23ea02d0defafea libmicrohttpd-0.9.52.tar.gz
|
||||
sha256 0c1cab8dc9f2588bd3076a28f77a7f8de9560cbf2d80e53f9a8696ada80ed0f8 libmicrohttpd-0.9.55.tar.gz
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBMICROHTTPD_VERSION = 0.9.52
|
||||
LIBMICROHTTPD_VERSION = 0.9.55
|
||||
LIBMICROHTTPD_SITE = $(BR2_GNU_MIRROR)/libmicrohttpd
|
||||
LIBMICROHTTPD_LICENSE_FILES = COPYING
|
||||
LIBMICROHTTPD_INSTALL_STAGING = YES
|
||||
|
||||
59
package/libminiupnpc/0001-miniupnpc-Fix-CVE-2017-8798.patch
Normal file
59
package/libminiupnpc/0001-miniupnpc-Fix-CVE-2017-8798.patch
Normal file
@@ -0,0 +1,59 @@
|
||||
From f0f1f4b22d6a98536377a1bb07e7c20e4703d229 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Bernard <miniupnp@free.fr>
|
||||
Date: Tue, 9 May 2017 12:00:47 +0200
|
||||
Subject: [PATCH] miniupnpc: Fix CVE-2017-8798
|
||||
|
||||
Thanks to tin/Team OSTStrom
|
||||
|
||||
[Peter: drop Changelog.txt modification, convert to -p1 format]
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
miniupnpc/miniwget.c | 12 +++++++-----
|
||||
1 file changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/miniwget.c b/miniwget.c
|
||||
index 37cb47b7..1eda57c5 100644
|
||||
--- a/miniwget.c
|
||||
+++ b/miniwget.c
|
||||
@@ -284,11 +284,12 @@ getHTTPResponse(int s, int * size, int * status_code)
|
||||
goto end_of_stream;
|
||||
}
|
||||
}
|
||||
- bytestocopy = ((int)chunksize < (n - i))?chunksize:(unsigned int)(n - i);
|
||||
+ /* it is guaranteed that (n >= i) */
|
||||
+ bytestocopy = (chunksize < (unsigned int)(n - i))?chunksize:(unsigned int)(n - i);
|
||||
if((content_buf_used + bytestocopy) > content_buf_len)
|
||||
{
|
||||
char * tmp;
|
||||
- if(content_length >= (int)(content_buf_used + bytestocopy)) {
|
||||
+ if((content_length >= 0) && ((unsigned int)content_length >= (content_buf_used + bytestocopy))) {
|
||||
content_buf_len = content_length;
|
||||
} else {
|
||||
content_buf_len = content_buf_used + bytestocopy;
|
||||
@@ -313,14 +314,15 @@ getHTTPResponse(int s, int * size, int * status_code)
|
||||
{
|
||||
/* not chunked */
|
||||
if(content_length > 0
|
||||
- && (int)(content_buf_used + n) > content_length) {
|
||||
+ && (content_buf_used + n) > (unsigned int)content_length) {
|
||||
/* skipping additional bytes */
|
||||
n = content_length - content_buf_used;
|
||||
}
|
||||
if(content_buf_used + n > content_buf_len)
|
||||
{
|
||||
char * tmp;
|
||||
- if(content_length >= (int)(content_buf_used + n)) {
|
||||
+ if(content_length >= 0
|
||||
+ && (unsigned int)content_length >= (content_buf_used + n)) {
|
||||
content_buf_len = content_length;
|
||||
} else {
|
||||
content_buf_len = content_buf_used + n;
|
||||
@@ -340,7 +342,7 @@ getHTTPResponse(int s, int * size, int * status_code)
|
||||
}
|
||||
}
|
||||
/* use the Content-Length header value if available */
|
||||
- if(content_length > 0 && (int)content_buf_used >= content_length)
|
||||
+ if(content_length > 0 && content_buf_used >= (unsigned int)content_length)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("End of HTTP content\n");
|
||||
@@ -1,22 +1,24 @@
|
||||
From 85863c9e051fe59add4e47dbfcb37072234f0110 Mon Sep 17 00:00:00 2001
|
||||
From 8f6181b6f8dd82aa1ab1288cc7f2fd05d4a2519f Mon Sep 17 00:00:00 2001
|
||||
From: Matt Weber <matthew.weber@rockwellcollins.com>
|
||||
Date: Mon, 1 May 2017 19:55:07 -0500
|
||||
Subject: [PATCH] musl compat canonicalize_file_name()
|
||||
|
||||
Adds an inline equivalent of canonicalize_file_name
|
||||
Adds an equivalent of canonicalize_file_name
|
||||
using realpath().
|
||||
|
||||
Bug report (origin of this patch):
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=99944
|
||||
|
||||
Bug report has been updated with suggestion to not use inline.
|
||||
|
||||
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
|
||||
---
|
||||
configure.ac | 2 ++
|
||||
src/libqmi-glib/qmi-utils.h | 18 ++++++++++++++++++
|
||||
2 files changed, 20 insertions(+)
|
||||
src/libqmi-glib/qmi-utils.c | 15 +++++++++++++++
|
||||
2 files changed, 17 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 162d5ae..9cb82fd 100644
|
||||
index c56fa3e..d835db4 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -80,6 +80,8 @@ AC_SUBST(GLIB_LIBS)
|
||||
@@ -28,19 +30,16 @@ index 162d5ae..9cb82fd 100644
|
||||
dnl qmi-firmware-update is optional, enabled by default
|
||||
AC_ARG_ENABLE([firmware-update],
|
||||
AS_HELP_STRING([--enable-firmware-update],
|
||||
diff --git a/src/libqmi-glib/qmi-utils.h b/src/libqmi-glib/qmi-utils.h
|
||||
index 4fd5199..4869da5 100644
|
||||
--- a/src/libqmi-glib/qmi-utils.h
|
||||
+++ b/src/libqmi-glib/qmi-utils.h
|
||||
@@ -29,6 +29,24 @@
|
||||
#error "Only <libqmi-glib.h> can be included directly."
|
||||
#endif
|
||||
diff --git a/src/libqmi-glib/qmi-utils.c b/src/libqmi-glib/qmi-utils.c
|
||||
index 29e5f22..26aff9e 100644
|
||||
--- a/src/libqmi-glib/qmi-utils.c
|
||||
+++ b/src/libqmi-glib/qmi-utils.c
|
||||
@@ -34,6 +34,21 @@
|
||||
#include "qmi-utils.h"
|
||||
#include "qmi-error-types.h"
|
||||
|
||||
+#ifndef HAVE_CANONICALIZE_FILE_NAME
|
||||
+#include <limits.h>
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <stdio.h>
|
||||
+static char * canonicalize_file_name(const char *path)
|
||||
+{
|
||||
+ char buf[PATH_MAX] = { };
|
||||
@@ -54,9 +53,9 @@ index 4fd5199..4869da5 100644
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#include <glib.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
/**
|
||||
* SECTION:qmi-utils
|
||||
* @title: Common utilities
|
||||
--
|
||||
2.7.4
|
||||
1.9.1
|
||||
|
||||
|
||||
@@ -22,11 +22,15 @@ config BR2_PACKAGE_LIBSOUP_GNOME
|
||||
|
||||
config BR2_PACKAGE_LIBSOUP_SSL
|
||||
bool "https support"
|
||||
depends on !BR2_STATIC_LIBS # gnutls
|
||||
select BR2_PACKAGE_GLIB_NETWORKING
|
||||
select BR2_PACKAGE_GNUTLS
|
||||
help
|
||||
Enable HTTPS (SSL) support.
|
||||
|
||||
comment "libsoup https support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
|
||||
comment "libsoup needs a toolchain w/ wchar, threads"
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
From dd091c8af163213e12aa92f61bc4916e0f102633 Mon Sep 17 00:00:00 2001
|
||||
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
|
||||
Date: Tue, 26 Jul 2016 08:45:33 +0200
|
||||
Subject: [PATCH] configure: don't add -Werror to build flags
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
Patch status: upstream
|
||||
|
||||
configure.ac | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7a14e04..066f5fe 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -70,8 +70,6 @@ AC_ARG_ENABLE([gcc-warnings],
|
||||
)
|
||||
|
||||
if test "$gl_gcc_warnings" = yes; then
|
||||
- gl_WARN_ADD([-Werror], [WERROR_CFLAGS])
|
||||
-
|
||||
nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
|
||||
nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
|
||||
nw="$nw -Wtraditional" # Warns on #elif which we use often
|
||||
--
|
||||
2.7.3
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 4f6f7a8fd691ac2b8307c8ca365bad711db607d4ad5966f6938a9d2ecd65c920 libtasn1-4.9.tar.gz
|
||||
sha256 6753da2e621257f33f5b051cc114d417e5206a0818fe0b1ecfd6153f70934753 libtasn1-4.12.tar.gz
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBTASN1_VERSION = 4.9
|
||||
LIBTASN1_VERSION = 4.12
|
||||
LIBTASN1_SITE = $(BR2_GNU_MIRROR)/libtasn1
|
||||
LIBTASN1_DEPENDENCIES = host-bison
|
||||
LIBTASN1_LICENSE = GPL-3.0+ (tests, tools), LGPL-2.1+ (library)
|
||||
@@ -12,7 +12,5 @@ LIBTASN1_LICENSE_FILES = COPYING COPYING.LIB
|
||||
LIBTASN1_INSTALL_STAGING = YES
|
||||
# 'missing' fallback logic botched so disable it completely
|
||||
LIBTASN1_CONF_ENV = MAKEINFO="true"
|
||||
# For 0001-configure-don-t-add-Werror-to-build-flags.patch
|
||||
LIBTASN1_AUTORECONF = YES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -46,10 +46,7 @@ LIBV4L_DEPENDENCIES += libgl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
LIBV4L_CONF_OPTS += --with-libudev
|
||||
LIBV4L_DEPENDENCIES += udev
|
||||
else
|
||||
LIBV4L_CONF_OPTS += --without-libudev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLU),y)
|
||||
|
||||
@@ -226,9 +226,9 @@ config BR2_DEFAULT_KERNEL_HEADERS
|
||||
default "3.4.113" if BR2_KERNEL_HEADERS_3_4
|
||||
default "3.10.105" if BR2_KERNEL_HEADERS_3_10
|
||||
default "3.12.74" if BR2_KERNEL_HEADERS_3_12
|
||||
default "4.1.39" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.68" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.28" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.10.16" if BR2_KERNEL_HEADERS_4_10
|
||||
default "4.11.1" if BR2_KERNEL_HEADERS_4_11
|
||||
default "4.1.40" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.70" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.30" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.10.17" if BR2_KERNEL_HEADERS_4_10
|
||||
default "4.11.3" if BR2_KERNEL_HEADERS_4_11
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
|
||||
109
package/madplay/0002-buildroot-libtool-v1.5.patch.patch
Normal file
109
package/madplay/0002-buildroot-libtool-v1.5.patch.patch
Normal file
@@ -0,0 +1,109 @@
|
||||
From ce661985c098635965573aac8fc983a72f60d396 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Tue, 30 May 2017 16:42:34 +0200
|
||||
Subject: [PATCH] buildroot-libtool-v1.5.patch
|
||||
|
||||
Apply buildroot-libtool-v1.5.patch rebased on libtool 1.5.2 used
|
||||
in madplay and fixing all conflicts.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
ltmain.sh | 40 ++++++++++++++++++++++++++++++----------
|
||||
1 file changed, 30 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/ltmain.sh b/ltmain.sh
|
||||
index 4b9f940..0b71220 100644
|
||||
--- a/ltmain.sh
|
||||
+++ b/ltmain.sh
|
||||
@@ -164,6 +164,11 @@ do
|
||||
arg="$1"
|
||||
shift
|
||||
|
||||
+ # Make -static behave as -all-static
|
||||
+ case $arg in
|
||||
+ -static) arg="-all-static" ;;
|
||||
+ esac
|
||||
+
|
||||
case $arg in
|
||||
-*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) optarg= ;;
|
||||
@@ -549,8 +554,9 @@ if test -z "$show_help"; then
|
||||
# line option must be used.
|
||||
if test -z "$tagname"; then
|
||||
$echo "$modename: unable to infer tagged configuration"
|
||||
- $echo "$modename: specify a tag with \`--tag'" 1>&2
|
||||
- exit 1
|
||||
+ $echo "$modename: defaulting to \`CC'"
|
||||
+ $echo "$modename: if this is not correct, specify a tag with \`--tag'"
|
||||
+# exit 1
|
||||
# else
|
||||
# $echo "$modename: using $tagname tagged configuration"
|
||||
fi
|
||||
@@ -1228,7 +1234,8 @@ EOF
|
||||
prevarg="$arg"
|
||||
|
||||
case $arg in
|
||||
- -all-static)
|
||||
+ # Make -static behave like -all-static
|
||||
+ -all-static | -static)
|
||||
if test -n "$link_static_flag"; then
|
||||
compile_command="$compile_command $link_static_flag"
|
||||
finalize_command="$finalize_command $link_static_flag"
|
||||
@@ -2135,8 +2142,14 @@ EOF
|
||||
absdir="$abs_ladir"
|
||||
libdir="$abs_ladir"
|
||||
else
|
||||
- dir="$libdir"
|
||||
- absdir="$libdir"
|
||||
+ # Adding 'libdir' from the .la file to our library search paths
|
||||
+ # breaks crosscompilation horribly. We cheat here and don't add
|
||||
+ # it, instead adding the path where we found the .la. -CL
|
||||
+ dir="$abs_ladir"
|
||||
+ absdir="$abs_ladir"
|
||||
+ libdir="$abs_ladir"
|
||||
+ #dir="$libdir"
|
||||
+ #absdir="$libdir"
|
||||
fi
|
||||
else
|
||||
dir="$ladir/$objdir"
|
||||
@@ -2261,7 +2274,7 @@ EOF
|
||||
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
|
||||
if test "$installed" = no; then
|
||||
notinst_deplibs="$notinst_deplibs $lib"
|
||||
- need_relink=yes
|
||||
+ need_relink=no
|
||||
fi
|
||||
# This is a shared library
|
||||
|
||||
@@ -5146,6 +5159,10 @@ fi\
|
||||
# Replace all uninstalled libtool libraries with the installed ones
|
||||
newdependency_libs=
|
||||
for deplib in $dependency_libs; do
|
||||
+ # Replacing uninstalled with installed can easily break crosscompilation,
|
||||
+ # since the installed path is generally the wrong architecture. -CL
|
||||
+ newdependency_libs="$newdependency_libs $deplib"
|
||||
+ continue
|
||||
case $deplib in
|
||||
*.la)
|
||||
name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
|
||||
@@ -5464,10 +5481,13 @@ relink_command=\"$relink_command\""
|
||||
# At present, this check doesn't affect windows .dll's that
|
||||
# are installed into $libdir/../bin (currently, that works fine)
|
||||
# but it's something to keep an eye on.
|
||||
- if test "$inst_prefix_dir" = "$destdir"; then
|
||||
- $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
|
||||
- exit 1
|
||||
- fi
|
||||
+ #
|
||||
+ # This breaks install into our staging area. -PB
|
||||
+ #
|
||||
+ # if test "$inst_prefix_dir" = "$destdir"; then
|
||||
+ # $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
|
||||
+ # exit 1
|
||||
+ # fi
|
||||
|
||||
if test -n "$inst_prefix_dir"; then
|
||||
# Stick the inst_prefix_dir data into the link command.
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# From https://downloads.mariadb.org/mariadb/10.1.22/
|
||||
sha256 bcb0572e7ad32cea9740a21e9255f733bdf60a5561ffbda317c22dd12b3966ce mariadb-10.1.22.tar.gz
|
||||
# From https://downloads.mariadb.org/mariadb/10.1.23/
|
||||
sha256 54d8114e24bfa5e3ebdc7d69e071ad1471912847ea481b227d204f9d644300bf mariadb-10.1.23.tar.gz
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MARIADB_VERSION = 10.1.22
|
||||
MARIADB_VERSION = 10.1.23
|
||||
MARIADB_SITE = https://downloads.mariadb.org/interstitial/mariadb-$(MARIADB_VERSION)/source
|
||||
MARIADB_LICENSE = GPL-2.0 (server), GPL-2.0 with FLOSS exception (GPL client library), LGPL-2.0 (LGPL client library)
|
||||
MARIADB_LICENSE_FILES = README COPYING COPYING.LESSER
|
||||
# Tarball no longer contains LGPL license text
|
||||
# https://jira.mariadb.org/browse/MDEV-12297
|
||||
MARIADB_LICENSE_FILES = README COPYING
|
||||
MARIADB_INSTALL_STAGING = YES
|
||||
MARIADB_PROVIDES = mysql
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ MONO_CONF_OPTS = --with-mcs-docs=no \
|
||||
define MONO_INSTALL_LIBS
|
||||
rsync -av --exclude=*.so --exclude=*.mdb \
|
||||
$(HOST_DIR)/usr/lib/mono $(TARGET_DIR)/usr/lib/
|
||||
rsync -av $(HOST_DIR)/etc/mono $(TARGET_DIR)/etc
|
||||
endef
|
||||
|
||||
MONO_POST_INSTALL_TARGET_HOOKS += MONO_INSTALL_LIBS
|
||||
|
||||
@@ -24,4 +24,11 @@ config BR2_PACKAGE_MOSH
|
||||
allows roaming, and provides speculative local echo and line editing
|
||||
of user keystrokes.
|
||||
|
||||
Mosh requires that the remote machine has a locale setting matching
|
||||
the one on the client.
|
||||
|
||||
When using mosh with dropbear on a remote machine, the client needs mosh
|
||||
with a version above 1.3.0 and the --no-ssh-pty option needs to be passed
|
||||
when starting the connection.
|
||||
|
||||
https://mosh.mit.edu
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
From 0de640dd834b6c01c4904e11d51f3a1406c89469 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 3 Apr 2017 20:34:07 +0200
|
||||
Subject: [PATCH] Remove -lanl when WITH_ADNS is unset
|
||||
|
||||
Do not add -lanl to BROKER_LIBS for all Linux builds.
|
||||
Indeed, -lanl is only needed for getaddrinfo_a which is only used in
|
||||
_mosquitto_try_connect_step1 when WITH_ADNS is set
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
config.mk | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/config.mk b/config.mk
|
||||
index 6e369c2..44639d2 100644
|
||||
--- a/config.mk
|
||||
+++ b/config.mk
|
||||
@@ -159,10 +159,6 @@ ifeq ($(UNAME),QNX)
|
||||
LIB_LIBS:=$(LIB_LIBS) -lsocket
|
||||
endif
|
||||
|
||||
-ifeq ($(UNAME),Linux)
|
||||
- BROKER_LIBS:=$(BROKER_LIBS) -lanl
|
||||
-endif
|
||||
-
|
||||
ifeq ($(WITH_WRAP),yes)
|
||||
BROKER_LIBS:=$(BROKER_LIBS) -lwrap
|
||||
BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_WRAP
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally computed:
|
||||
sha512 c05ca8679b9a6f540868f4ccf701257fcabc114d5450ac0bbbe80b91bb7cd4fc52668773e945506760c7a5bd8a494e0a56100714112e5d2713d57bfab8951587 mosquitto-1.4.11.tar.gz
|
||||
sha512 75e6105498869ab13265df7a0bea6052c014d59d0c0efb61162d8257d34c0153fce32130e84c28e99fd494f374949aac5e01c19f7439c2eea575b52ef1179c3c mosquitto-1.4.12.tar.gz
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MOSQUITTO_VERSION = 1.4.11
|
||||
MOSQUITTO_VERSION = 1.4.12
|
||||
MOSQUITTO_SITE = http://mosquitto.org/files/source
|
||||
MOSQUITTO_LICENSE = EPL-1.0 or EDLv1.0
|
||||
MOSQUITTO_LICENSE_FILES = LICENSE.txt epl-v10 edl-v10
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
MXML_VERSION = 2.10
|
||||
MXML_SITE = http://www.msweet.org/files/project3
|
||||
MXML_SITE = https://github.com/michaelrsweet/mxml/releases/download/release-$(MXML_VERSION)
|
||||
MXML_LICENSE = LGPL-2.0+ with exceptions
|
||||
MXML_LICENSE_FILES = COPYING
|
||||
MXML_INSTALL_STAGING = YES
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_NETWORK_MANAGER
|
||||
bool "networkmanager"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
|
||||
depends on !BR2_STATIC_LIBS # gnutls
|
||||
depends on BR2_USE_MMU # dbus
|
||||
depends on BR2_PACKAGE_HAS_UDEV
|
||||
# Tested with 3.2, but may even work with earlier versions
|
||||
@@ -57,8 +58,8 @@ comment "pppd support needs a glibc or uClibc toolchain"
|
||||
|
||||
endif
|
||||
|
||||
comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.7"
|
||||
comment "NetworkManager needs udev /dev management and a glibc toolchain w/ headers >= 3.7, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 || \
|
||||
!BR2_TOOLCHAIN_USES_GLIBC
|
||||
!BR2_TOOLCHAIN_USES_GLIBC || BR2_STATIC_LIBS
|
||||
|
||||
23
package/ntp/0003-ntpq-fpic.patch
Normal file
23
package/ntp/0003-ntpq-fpic.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
ntpq/Makefile.am: add NTP_HARD_CFLAGS
|
||||
|
||||
Pass NTP_HARD_CFLAGS when building ntpq, like in all other ntp
|
||||
modules, to make sure -fPIC is passed.
|
||||
|
||||
Originally taken from
|
||||
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494143c3b4921a5c8b8596d58f2c8b98296bf688.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/ntpq/Makefile.am
|
||||
===================================================================
|
||||
--- a/ntpq/Makefile.am
|
||||
+++ b/ntpq/Makefile.am
|
||||
@@ -23,7 +23,7 @@
|
||||
ntpq_LDADD += $(LDADD_NTP)
|
||||
noinst_HEADERS= ntpq.h
|
||||
noinst_LIBRARIES= libntpq.a
|
||||
-libntpq_a_CFLAGS= -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
|
||||
+libntpq_a_CFLAGS= $(NTP_HARD_CFLAGS) -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
|
||||
CLEANFILES=
|
||||
DISTCLEANFILES= .version version.c config.log $(man_MANS)
|
||||
ETAGS_ARGS= Makefile.am
|
||||
@@ -21,6 +21,7 @@ NTP_CONF_OPTS = \
|
||||
--with-crypto
|
||||
|
||||
# 0002-ntp-syscalls-fallback.patch
|
||||
# 0003-ntpq-fpic.patch
|
||||
NTP_AUTORECONF = YES
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
From cd4f5d9d8a10c368584e8e714ebb0f9695267063 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Marchi <simon.marchi@polymtl.ca>
|
||||
Date: Mon, 10 Aug 2015 15:01:42 -0400
|
||||
Subject: [PATCH] Remove -fvisibiliy-inlines-hidden
|
||||
|
||||
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 714e435..17a23e2 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -32,7 +32,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS = --enable-python-libs
|
||||
COMMON_CXXFLAGS_ONLY_WARNINGS = \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_builddir)/include \
|
||||
- -Wall -Wformat -W -fvisibility-inlines-hidden \
|
||||
+ -Wall -Wformat -W \
|
||||
$(libprotobuf_CFLAGS)
|
||||
|
||||
COMMON_CXXFLAGS = $(COMMON_CXXFLAGS_ONLY_WARNINGS)
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
From bbb03794def326c2e8ad2de523c5a61a4c8cb464 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
|
||||
Date: Thu, 22 Sep 2016 00:58:58 +0200
|
||||
Subject: [PATCH] Remove replacing -I with -isystem
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Building OLA with a GCC 6 cross-toolchain fails:
|
||||
|
||||
```
|
||||
/usr/bin/arm-linux-g++ -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE
|
||||
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I./include -I./include
|
||||
-Wall -Wformat -W -isystem
|
||||
/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include -pthread
|
||||
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
|
||||
-pthread -c -o libs/acn/e131_transmit_test.o
|
||||
libs/acn/e131_transmit_test.cpp
|
||||
/usr/bin/arm-linux-g++ -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE
|
||||
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I./include -I./include
|
||||
-Wall -Wformat -W -isystem
|
||||
/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include -pthread
|
||||
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
|
||||
-pthread -c -o libs/acn/E131TestFramework.o
|
||||
libs/acn/E131TestFramework.cpp
|
||||
In file included from
|
||||
/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/6.1.0/ext/string_conversions.h:41:0,
|
||||
from
|
||||
/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/6.1.0/bits/basic_string.h:5402,
|
||||
from
|
||||
/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/6.1.0/string:52,
|
||||
from ./tools/ola_trigger/config.ypp:2:
|
||||
/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/6.1.0/cstdlib:75:25:
|
||||
fatal error: stdlib.h: No such file or directory
|
||||
#include_next <stdlib.h>
|
||||
^
|
||||
compilation terminated.
|
||||
```
|
||||
|
||||
The C++ library in GCC 6 now provides its own `<stdlib.h>` header that
|
||||
wraps the C library header of the same name, so in `<cstdlib>` the
|
||||
header include
|
||||
|
||||
```
|
||||
#include <stdlib.h>
|
||||
```
|
||||
|
||||
has become
|
||||
|
||||
```
|
||||
#include_next <stdlib.h>
|
||||
```
|
||||
|
||||
`#include_next` is sensitive to the order of directories in the
|
||||
preprocessor's search path, so if that order is changed with `-isystem`
|
||||
then the compiler can't find the right header:
|
||||
|
||||
```
|
||||
[1] /usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include
|
||||
[2] /opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/6.1.0
|
||||
[..]
|
||||
End of search list.
|
||||
```
|
||||
|
||||
`<cstdlib>` is located in [2] whereas `<stdlib.h>` (C library header) is
|
||||
in [1]. In this case, the `#include_next <stdlib.h>` statement in
|
||||
`<cstdlib>`, located in [2], is evaluated **after** the search path [1],
|
||||
so the compiler does not find the right system header.
|
||||
|
||||
The problem is that the OLA build system replaces the `-I` in the CFLAGS
|
||||
from libprotobuf with `-isystem` to fix some warnings treated as errors
|
||||
in the libprotobuf header files.
|
||||
|
||||
`-isystem` should be used to suppress warnings in system headers only
|
||||
and the libprotobuf header files are not system files.
|
||||
|
||||
The correct fix is to compile with less restrictions and remove
|
||||
`-Werror` for the build.
|
||||
|
||||
As using `-isystem` is reordering GCCs search path and using `-isystem`
|
||||
is really not necessary, remove the faulty replacement of `-I`.
|
||||
|
||||
Upstream status: https://github.com/OpenLightingProject/ola/pull/1126
|
||||
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
---
|
||||
config/ola.m4 | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/config/ola.m4 b/config/ola.m4
|
||||
index 2796cfb..d3b8cc8 100644
|
||||
--- a/config/ola.m4
|
||||
+++ b/config/ola.m4
|
||||
@@ -24,9 +24,6 @@ AC_DEFUN([PROTOBUF_SUPPORT],
|
||||
AC_REQUIRE_CPP()
|
||||
PKG_CHECK_MODULES(libprotobuf, [protobuf >= $1])
|
||||
|
||||
-# We want to replace -I with -isystem here to disable errors in the .h files
|
||||
-# See https://groups.google.com/forum/#!topic/open-lighting/39Mj0KXlCIk
|
||||
-libprotobuf_CFLAGS=`echo $libprotobuf_CFLAGS | sed 's/-I/-isystem /'`
|
||||
AC_SUBST([libprotobuf_CFLAGS])
|
||||
|
||||
AC_ARG_WITH([protoc],
|
||||
--
|
||||
2.10.0
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
comment "ola needs a toolchain w/ C++, threads, dynamic library, host and target gcc >= 4.5"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_STATIC_LIBS || !BR2_HOST_GCC_AT_LEAST_4_5 \
|
||||
|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_5
|
||||
depends on BROKEN
|
||||
depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
|
||||
|
||||
menuconfig BR2_PACKAGE_OLA
|
||||
bool "ola (open lighting architecture)"
|
||||
select BR2_PACKAGE_PROTOBUF
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
# Build fails with current protobuf
|
||||
# https://github.com/OpenLightingProject/ola/issues/1192
|
||||
depends on BROKEN
|
||||
depends on BR2_INSTALL_LIBSTDCPP # protobuf
|
||||
depends on !BR2_STATIC_LIBS # protobuf
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
|
||||
depends on BR2_HOST_GCC_AT_LEAST_4_5 # protobuf
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 # protobuf
|
||||
help
|
||||
Open Lighting Architecture provides applications
|
||||
with a mechanism to send and receive DMX512 & RDM
|
||||
commands using hardware devices and DMX over IP protocols.
|
||||
|
||||
http://www.opendmx.net/index.php/OLA
|
||||
|
||||
if BR2_PACKAGE_OLA
|
||||
|
||||
comment "bindings and interface"
|
||||
|
||||
config BR2_PACKAGE_OLA_WEB
|
||||
bool "http interface"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt, libmicrohttpd
|
||||
select BR2_PACKAGE_LIBMICROHTTPD
|
||||
help
|
||||
Build OLA with browser interface.
|
||||
|
||||
config BR2_PACKAGE_OLA_PYTHON_BINDINGS
|
||||
bool "python bindings"
|
||||
depends on BR2_PACKAGE_PYTHON
|
||||
select BR2_PACKAGE_PYTHON_PROTOBUF
|
||||
help
|
||||
Build OLA with support for the Python language.
|
||||
|
||||
config BR2_PACKAGE_OLA_SLP
|
||||
bool "slp tools"
|
||||
help
|
||||
Build OLA with slp tools.
|
||||
|
||||
comment "tests and examples"
|
||||
|
||||
config BR2_PACKAGE_OLA_EXAMPLES
|
||||
bool "examples"
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
Build OLA examples.
|
||||
|
||||
config BR2_PACKAGE_OLA_RDM_TESTS
|
||||
bool "rdm tests"
|
||||
depends on BR2_PACKAGE_OLA_PYTHON_BINDINGS
|
||||
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_PYTHON_NUMPY
|
||||
help
|
||||
Build OLA RDM tests.
|
||||
|
||||
comment "plugin selections"
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_E131
|
||||
bool "acn E131"
|
||||
help
|
||||
Build ACN E131 plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_ARTNET
|
||||
bool "artnet"
|
||||
help
|
||||
Build Artnet plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_OPENDMX
|
||||
bool "DMX4Linux"
|
||||
help
|
||||
Build DMX4Linux plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_DUMMY
|
||||
bool "dummy"
|
||||
help
|
||||
Build Dummy plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_ESPNET
|
||||
bool "espnet"
|
||||
help
|
||||
Build EspNet plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_KINET
|
||||
bool "kinet"
|
||||
help
|
||||
Build KiNet plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_MILINT
|
||||
bool "Milford Instruments"
|
||||
help
|
||||
Build Milford Instruments 1-463 plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_OSC
|
||||
bool "osc"
|
||||
select BR2_PACKAGE_LIBLO
|
||||
help
|
||||
Build Open Sound Control plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_PATHPORT
|
||||
bool "pathport"
|
||||
help
|
||||
Build Pathport plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_SANDNET
|
||||
bool "sandnet"
|
||||
help
|
||||
Build SandNet plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_SHOWNET
|
||||
bool "shownet"
|
||||
help
|
||||
Build ShowNet plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_STAGEPROFI
|
||||
bool "stageprofi"
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
Build StageProfi plugin for OLA.
|
||||
|
||||
config BR2_PACKAGE_OLA_PLUGIN_USBPRO
|
||||
bool "usbpro"
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
Build UsbPro plugin for OLA.
|
||||
|
||||
endif
|
||||
@@ -1,2 +0,0 @@
|
||||
# Locally calculated
|
||||
sha256 986e61874bc80db3b23cf201af2dafa39e3412cc50cddf1cd449c869110bfd27 ola-0.10.2.tar.gz
|
||||
@@ -1,180 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# ola
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OLA_VERSION = 0.10.2
|
||||
OLA_SITE = https://github.com/OpenLightingProject/ola/releases/download/$(OLA_VERSION)
|
||||
OLA_LICENSE = LGPL-2.1+ (libola, libolacommon, Python bindings), GPL-2.0+ (libolaserver, olad, Python examples and tests)
|
||||
OLA_LICENSE_FILES = LICENCE GPL LGPL
|
||||
OLA_INSTALL_STAGING = YES
|
||||
OLA_AUTORECONF = YES
|
||||
|
||||
# util-linux provides uuid lib
|
||||
OLA_DEPENDENCIES = protobuf util-linux host-bison host-flex host-ola
|
||||
|
||||
OLA_CONF_OPTS = \
|
||||
ac_cv_have_pymod_google_protobuf=yes \
|
||||
--disable-gcov \
|
||||
--disable-tcmalloc \
|
||||
--disable-unittests \
|
||||
--disable-root-check \
|
||||
--disable-java-libs \
|
||||
--disable-fatal-warnings \
|
||||
--with-ola-protoc-plugin=$(HOST_DIR)/usr/bin/ola_protoc_plugin
|
||||
|
||||
HOST_OLA_DEPENDENCIES = host-util-linux host-protobuf
|
||||
|
||||
# When building the host part, disable as much as possible to speed up
|
||||
# the configure step and avoid missing host dependencies.
|
||||
HOST_OLA_CONF_OPTS = \
|
||||
--disable-all-plugins \
|
||||
--disable-slp \
|
||||
--disable-osc \
|
||||
--disable-uart \
|
||||
--disable-libusb \
|
||||
--disable-libftdi \
|
||||
--disable-http \
|
||||
--disable-examples \
|
||||
--disable-unittests \
|
||||
--disable-doxygen-html \
|
||||
--disable-doxygen-doc \
|
||||
--disable-fatal-warnings
|
||||
|
||||
# On the host side, we only need ola_protoc_plugin, so build and install this
|
||||
# only.
|
||||
HOST_OLA_MAKE_OPTS = protoc/ola_protoc_plugin
|
||||
define HOST_OLA_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/protoc/ola_protoc_plugin $(HOST_DIR)/usr/bin/ola_protoc_plugin
|
||||
endef
|
||||
|
||||
# sets where to find python libs built for target and required by ola
|
||||
OLA_CONF_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
||||
OLA_MAKE_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
||||
|
||||
## OLA Bindings and Interface selections
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_WEB),y)
|
||||
OLA_CONF_OPTS += --enable-http
|
||||
OLA_DEPENDENCIES += libmicrohttpd
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-http
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_SLP),y)
|
||||
OLA_CONF_OPTS += --enable-slp
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-slp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PYTHON_BINDINGS),y)
|
||||
OLA_CONF_OPTS += --enable-python-libs
|
||||
OLA_DEPENDENCIES += python python-protobuf
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-python-libs
|
||||
endif
|
||||
|
||||
## OLA Examples and Tests
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_EXAMPLES),y)
|
||||
OLA_CONF_OPTS += --enable-examples
|
||||
OLA_DEPENDENCIES += ncurses
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-examples
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_RDM_TESTS),y)
|
||||
OLA_CONF_OPTS += --enable-rdm-tests
|
||||
OLA_DEPENDENCIES += python-numpy
|
||||
# needed as numpy builds some shared libraries and ola checks for
|
||||
# numpy using a host python test program which fails with 'wrong ELF
|
||||
# class'.
|
||||
OLA_CONF_ENV = ac_cv_have_pymod_numpy=yes
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-rdm-tests
|
||||
endif
|
||||
|
||||
## OLA Plugin selections
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_E131),y)
|
||||
OLA_CONF_OPTS += --enable-e131
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-e131
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ARTNET),y)
|
||||
OLA_CONF_OPTS += --enable-artnet
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-artnet
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_OPENDMX),y)
|
||||
OLA_CONF_OPTS += --enable-opendmx
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-opendmx
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_DUMMY),y)
|
||||
OLA_CONF_OPTS += --enable-dummy
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-dummy
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_ESPNET),y)
|
||||
OLA_CONF_OPTS += --enable-espnet
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-espnet
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_KINET),y)
|
||||
OLA_CONF_OPTS += --enable-kinet
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-kinet
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_OSC),y)
|
||||
OLA_CONF_OPTS += --enable-osc
|
||||
OLA_DEPENDENCIES += liblo
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-osc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_MILINT),y)
|
||||
OLA_CONF_OPTS += --enable-milinst
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-milinst
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_PATHPORT),y)
|
||||
OLA_CONF_OPTS += --enable-pathport
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-pathport
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SANDNET),y)
|
||||
OLA_CONF_OPTS += --enable-sandnet
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-sandnet
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_SHOWNET),y)
|
||||
OLA_CONF_OPTS += --enable-shownet
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-shownet
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_STAGEPROFI),y)
|
||||
OLA_CONF_OPTS += --enable-stageprofi --enable-libusb
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-stageprofi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OLA_PLUGIN_USBPRO),y)
|
||||
OLA_CONF_OPTS += --enable-usbpro --enable-libusb
|
||||
else
|
||||
OLA_CONF_OPTS += --disable-usbpro
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
@@ -192,7 +192,8 @@ OPENCV_CONF_OPTS += -DWITH_GTK=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENCV_WITH_JASPER),y)
|
||||
OPENCV_CONF_OPTS += -DWITH_JASPER=ON
|
||||
OPENCV_CONF_OPTS += -DWITH_JASPER=ON \
|
||||
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -D__STDC_LIMIT_MACROS"
|
||||
OPENCV_DEPENDENCIES += jasper
|
||||
else
|
||||
OPENCV_CONF_OPTS += -DWITH_JASPER=OFF
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
From d05273e65657d82e44fb7bd91a8fba0ba990ff2c Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sat, 27 May 2017 23:51:41 +0200
|
||||
Subject: [PATCH] [FIX] use contrib getopt() only on Windows
|
||||
|
||||
Otherwise, contrib getopt will clash with the one from the libc when
|
||||
building statically.
|
||||
|
||||
lib64/libc.a(getopt.os):(.data+0x8): multiple definition of `optind'
|
||||
CMakeFiles/demo_mn_console.dir/__/__/contrib/getopt/getopt.c.o:(.data+0x8): first defined here
|
||||
lib64/libc.a(getopt.os):(.data+0x4): multiple definition of `opterr'
|
||||
CMakeFiles/demo_mn_console.dir/__/__/contrib/getopt/getopt.c.o:(.data+0xc): first defined here
|
||||
/lib64/libc.a(getopt.os): In function `__GI_getopt':
|
||||
getopt.c:(.text+0x76e): multiple definition of `getopt'
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
apps/demo_cn_console/CMakeLists.txt | 2 +-
|
||||
apps/demo_cn_console/src/main.c | 6 ++++++
|
||||
apps/demo_mn_console/CMakeLists.txt | 2 +-
|
||||
apps/demo_mn_console/src/main.c | 6 ++++++
|
||||
4 files changed, 14 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/apps/demo_cn_console/CMakeLists.txt b/apps/demo_cn_console/CMakeLists.txt
|
||||
index a3a80bb..5733213 100644
|
||||
--- a/apps/demo_cn_console/CMakeLists.txt
|
||||
+++ b/apps/demo_cn_console/CMakeLists.txt
|
||||
@@ -61,7 +61,6 @@ SET(DEMO_SOURCES
|
||||
${COMMON_SOURCE_DIR}/eventlog/eventlog.c
|
||||
${COMMON_SOURCE_DIR}/eventlog/eventlogstring.c
|
||||
${CONTRIB_SOURCE_DIR}/console/printlog.c
|
||||
- ${CONTRIB_SOURCE_DIR}/getopt/getopt.c
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
@@ -114,6 +113,7 @@ ENDIF (CFG_KERNEL_STACK_DIRECTLINK)
|
||||
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
include(linux.cmake)
|
||||
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
+ SET(DEMO_SOURCES ${DEMO_SOURCES} ${CONTRIB_SOURCE_DIR}/getopt/getopt.c)
|
||||
include (windows.cmake)
|
||||
ELSE()
|
||||
MESSAGE(FATAL_ERROR "System ${CMAKE_SYSTEM_NAME} is not supported!")
|
||||
diff --git a/apps/demo_cn_console/src/main.c b/apps/demo_cn_console/src/main.c
|
||||
index c630586..9406473 100644
|
||||
--- a/apps/demo_cn_console/src/main.c
|
||||
+++ b/apps/demo_cn_console/src/main.c
|
||||
@@ -50,7 +50,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <system/system.h>
|
||||
#include <obdcreate/obdcreate.h>
|
||||
+
|
||||
+#if (TARGET_SYSTEM == _WIN32_)
|
||||
#include <getopt/getopt.h>
|
||||
+#else
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include <console/console.h>
|
||||
#include <eventlog/eventlog.h>
|
||||
|
||||
diff --git a/apps/demo_mn_console/CMakeLists.txt b/apps/demo_mn_console/CMakeLists.txt
|
||||
index 9c3378c..a81c4b3 100644
|
||||
--- a/apps/demo_mn_console/CMakeLists.txt
|
||||
+++ b/apps/demo_mn_console/CMakeLists.txt
|
||||
@@ -67,7 +67,6 @@ SET(DEMO_SOURCES
|
||||
${COMMON_SOURCE_DIR}/eventlog/eventlog.c
|
||||
${COMMON_SOURCE_DIR}/eventlog/eventlogstring.c
|
||||
${CONTRIB_SOURCE_DIR}/console/printlog.c
|
||||
- ${CONTRIB_SOURCE_DIR}/getopt/getopt.c
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
@@ -129,6 +128,7 @@ ENDIF()
|
||||
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
include(linux.cmake)
|
||||
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
+ SET(DEMO_SOURCES ${DEMO_SOURCES} ${CONTRIB_SOURCE_DIR}/getopt/getopt.c)
|
||||
include (windows.cmake)
|
||||
ELSE()
|
||||
MESSAGE(FATAL_ERROR "System ${CMAKE_SYSTEM_NAME} is not supported!")
|
||||
diff --git a/apps/demo_mn_console/src/main.c b/apps/demo_mn_console/src/main.c
|
||||
index 12d9be0..194e446 100644
|
||||
--- a/apps/demo_mn_console/src/main.c
|
||||
+++ b/apps/demo_mn_console/src/main.c
|
||||
@@ -50,7 +50,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <system/system.h>
|
||||
#include <obdcreate/obdcreate.h>
|
||||
+
|
||||
+#if (TARGET_SYSTEM == _WIN32_)
|
||||
#include <getopt/getopt.h>
|
||||
+#else
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include <console/console.h>
|
||||
#include <eventlog/eventlog.h>
|
||||
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
From 406e1759dc6a4c18f6a38c3d7571aacb177487c6 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sun, 28 May 2017 00:25:11 +0200
|
||||
Subject: [PATCH] [FIX]: use pcap-config to fix static linking with libpcap
|
||||
|
||||
When linking demo_mn_console statically with pcap, the CMake build
|
||||
system forget to link with other libraries linked with libpcap
|
||||
(-lnl-genl-3 -lnl-3 -ldbus-1 -pthread).
|
||||
|
||||
[100%] Linking C executable demo_mn_console
|
||||
lib64/libpcap.a(pcap-linux.o): In function nl80211_init': pcap-linux.c:(.text+0x41e): undefined reference tonl_socket_alloc'
|
||||
|
||||
To fix this, the build system could use pcap-config:
|
||||
pcap-config --libs --static
|
||||
-L/path/to/sysroot/usr/lib -lpcap -L/path/to/sysroot/usr/lib/.libs
|
||||
-lnl-genl-3 -lnl-3 -L/path/to/sysroot/usr/lib -ldbus-1 -pthread
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/f43/f437d09ac6c689c911e1885b95da33b692f2cb3c
|
||||
http://autobuild.buildroot.net/results/385/3859dc0f4de7e3284a96d5841f040f69f71842df
|
||||
https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/issues/187
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
apps/demo_cn_console/linux.cmake | 20 ++++++++++++++++++++
|
||||
apps/demo_mn_console/linux.cmake | 20 ++++++++++++++++++++
|
||||
apps/demo_mn_qt/linux.cmake | 22 +++++++++++++++++++++-
|
||||
drivers/linux/drv_daemon_pcap/CMakeLists.txt | 22 +++++++++++++++++++++-
|
||||
4 files changed, 82 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/apps/demo_cn_console/linux.cmake b/apps/demo_cn_console/linux.cmake
|
||||
index 1c6f51c..7752917 100644
|
||||
--- a/apps/demo_cn_console/linux.cmake
|
||||
+++ b/apps/demo_cn_console/linux.cmake
|
||||
@@ -46,8 +46,28 @@ SET (DEMO_ARCH_SOURCES
|
||||
################################################################################
|
||||
# Set architecture specific libraries
|
||||
|
||||
+IF (NOT CFG_COMPILE_SHARED_LIBRARY)
|
||||
+ SET(PCAP_CONFIG_OPTS --static)
|
||||
+ENDIF()
|
||||
+
|
||||
IF (CFG_KERNEL_STACK_DIRECTLINK OR CFG_KERNEL_STACK_USERSPACE_DAEMON)
|
||||
+
|
||||
+find_program(PCAP_CONFIG NAMES pcap-config PATHS)
|
||||
+
|
||||
+if (PCAP_CONFIG)
|
||||
+ message (STATUS "Looking for pcap-config... ${PCAP_CONFIG}")
|
||||
+
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --libs ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --cflags ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+
|
||||
+ SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} ${PCAP_LDFLAGS})
|
||||
+else (PCAP_CONFIG)
|
||||
+ message (STATUS "pcap-config not found, using defaults...")
|
||||
SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pcap)
|
||||
+endif (PCAP_CONFIG)
|
||||
+
|
||||
ENDIF (CFG_KERNEL_STACK_DIRECTLINK OR CFG_KERNEL_STACK_USERSPACE_DAEMON)
|
||||
SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pthread rt)
|
||||
|
||||
diff --git a/apps/demo_mn_console/linux.cmake b/apps/demo_mn_console/linux.cmake
|
||||
index d24e4fc..5951dbf 100644
|
||||
--- a/apps/demo_mn_console/linux.cmake
|
||||
+++ b/apps/demo_mn_console/linux.cmake
|
||||
@@ -46,8 +46,28 @@ SET (DEMO_ARCH_SOURCES
|
||||
################################################################################
|
||||
# Set architecture specific libraries
|
||||
|
||||
+IF (NOT CFG_COMPILE_SHARED_LIBRARY)
|
||||
+ SET(PCAP_CONFIG_OPTS --static)
|
||||
+ENDIF()
|
||||
+
|
||||
IF (CFG_KERNEL_STACK_DIRECTLINK OR CFG_KERNEL_STACK_USERSPACE_DAEMON)
|
||||
+
|
||||
+find_program(PCAP_CONFIG NAMES pcap-config PATHS)
|
||||
+
|
||||
+if (PCAP_CONFIG)
|
||||
+ message (STATUS "Looking for pcap-config... ${PCAP_CONFIG}")
|
||||
+
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --libs ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --cflags ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+
|
||||
+ SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} ${PCAP_LDFLAGS})
|
||||
+else (PCAP_CONFIG)
|
||||
+ message (STATUS "pcap-config not found, using defaults...")
|
||||
SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pcap)
|
||||
+endif (PCAP_CONFIG)
|
||||
+
|
||||
ENDIF (CFG_KERNEL_STACK_DIRECTLINK OR CFG_KERNEL_STACK_USERSPACE_DAEMON)
|
||||
SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pthread rt)
|
||||
|
||||
diff --git a/apps/demo_mn_qt/linux.cmake b/apps/demo_mn_qt/linux.cmake
|
||||
index 6ed75ee..c69dbd9 100644
|
||||
--- a/apps/demo_mn_qt/linux.cmake
|
||||
+++ b/apps/demo_mn_qt/linux.cmake
|
||||
@@ -37,8 +37,28 @@
|
||||
################################################################################
|
||||
# Set architecture specific libraries
|
||||
|
||||
+IF (NOT CFG_COMPILE_SHARED_LIBRARY)
|
||||
+ SET(PCAP_CONFIG_OPTS --static)
|
||||
+ENDIF()
|
||||
+
|
||||
IF(CFG_KERNEL_STACK_DIRECTLINK OR CFG_KERNEL_STACK_USERSPACE_DAEMON)
|
||||
- SET(ARCH_LIBRARIES ${ARCH_LIBRARIES} pcap)
|
||||
+
|
||||
+find_program(PCAP_CONFIG NAMES pcap-config PATHS)
|
||||
+
|
||||
+if (PCAP_CONFIG)
|
||||
+ message (STATUS "Looking for pcap-config... ${PCAP_CONFIG}")
|
||||
+
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --libs ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --cflags ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+
|
||||
+ SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} ${PCAP_LDFLAGS})
|
||||
+else (PCAP_CONFIG)
|
||||
+ message (STATUS "pcap-config not found, using defaults...")
|
||||
+ SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pcap)
|
||||
+endif (PCAP_CONFIG)
|
||||
+
|
||||
ENDIF()
|
||||
SET(ARCH_LIBRARIES ${ARCH_LIBRARIES} pthread rt)
|
||||
|
||||
diff --git a/drivers/linux/drv_daemon_pcap/CMakeLists.txt b/drivers/linux/drv_daemon_pcap/CMakeLists.txt
|
||||
index 2b4a2c1..98f693f 100644
|
||||
--- a/drivers/linux/drv_daemon_pcap/CMakeLists.txt
|
||||
+++ b/drivers/linux/drv_daemon_pcap/CMakeLists.txt
|
||||
@@ -134,7 +134,27 @@ INCLUDE_DIRECTORIES(
|
||||
${CONTRIB_SOURCE_DIR}
|
||||
)
|
||||
|
||||
-SET (ARCH_LIBRARIES pcap pthread rt)
|
||||
+IF (NOT CFG_COMPILE_SHARED_LIBRARY)
|
||||
+ SET(PCAP_CONFIG_OPTS --static)
|
||||
+ENDIF()
|
||||
+
|
||||
+find_program(PCAP_CONFIG NAMES pcap-config PATHS)
|
||||
+
|
||||
+if (PCAP_CONFIG)
|
||||
+ message (STATUS "Looking for pcap-config... ${PCAP_CONFIG}")
|
||||
+
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --libs ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+ execute_process (COMMAND ${PCAP_CONFIG} --cflags ${PCAP_CONFIG_OPTS}
|
||||
+ OUTPUT_VARIABLE PCAP_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
+
|
||||
+ SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} ${PCAP_LDFLAGS})
|
||||
+else (PCAP_CONFIG)
|
||||
+ message (STATUS "pcap-config not found, using defaults...")
|
||||
+ SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pcap)
|
||||
+endif (PCAP_CONFIG)
|
||||
+
|
||||
+SET (ARCH_LIBRARIES ${ARCH_LIBRARIES} pthread rt)
|
||||
|
||||
ADD_EXECUTABLE(${EXE_NAME} ${DRV_SOURCES})
|
||||
SET_PROPERTY(TARGET ${EXE_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
|
||||
--
|
||||
2.9.4
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user