update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
Makefile.gnu: allow non-root install by not enforcing root ownserhip
|
||||
|
||||
Signed-off-by: Rémi Rérolle <remi.rerolle@gmail.com>
|
||||
|
||||
diff -ruN a/Makefile.gnu b/Makefile.gnu
|
||||
--- a/Makefile.gnu 2015-04-09 16:34:02.315316841 +0200
|
||||
+++ b/Makefile.gnu 2015-04-09 16:34:28.875483201 +0200
|
||||
@@ -71,9 +71,9 @@
|
||||
|
||||
install:
|
||||
install -d $(INCDIR) $(INSTALLDIR)
|
||||
- install -m 644 -o root -g root $(HEADER) $(INCDIR)
|
||||
- install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
|
||||
- install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
|
||||
+ install -m 644 $(HEADER) $(INCDIR)
|
||||
+ install -m 644 $(STATICLIB) $(INSTALLDIR)
|
||||
+ install -m 755 $(SHAREDLIB) $(INSTALLDIR)
|
||||
ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(VERLIBNAME)
|
||||
ln -sf $(VERLIBNAME) $(INSTALLDIR)/$(LIBNAME)
|
||||
# ldconfig
|
||||
@@ -0,0 +1,67 @@
|
||||
Fix build issue caused by invalid register usage on x86
|
||||
|
||||
Patch taken from https://github.com/openexr/openexr/issues/128.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp
|
||||
===================================================================
|
||||
--- a/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp
|
||||
+++ b/Source/OpenEXR/IlmImf/ImfSystemSpecific.cpp
|
||||
@@ -40,21 +40,19 @@
|
||||
|
||||
namespace {
|
||||
#if defined(IMF_HAVE_SSE2) && defined(__GNUC__)
|
||||
-
|
||||
+#include <cpuid.h>
|
||||
// Helper functions for gcc + SSE enabled
|
||||
- void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx)
|
||||
+ void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx,
|
||||
+ unsigned int &ecx, unsigned int &edx)
|
||||
{
|
||||
- __asm__ __volatile__ (
|
||||
- "cpuid"
|
||||
- : /* Output */ "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
|
||||
- : /* Input */ "a"(n)
|
||||
- : /* Clobber */);
|
||||
+ __get_cpuid(n, &eax, &ebx, &ecx, &edx);
|
||||
}
|
||||
|
||||
#else // IMF_HAVE_SSE2 && __GNUC__
|
||||
|
||||
// Helper functions for generic compiler - all disabled
|
||||
- void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx)
|
||||
+ void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx,
|
||||
+ unsigned int &ecx, unsigned int &edx)
|
||||
{
|
||||
eax = ebx = ecx = edx = 0;
|
||||
}
|
||||
@@ -64,7 +62,7 @@
|
||||
|
||||
#ifdef OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX
|
||||
|
||||
- void xgetbv(int n, int &eax, int &edx)
|
||||
+ void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx)
|
||||
{
|
||||
__asm__ __volatile__ (
|
||||
"xgetbv"
|
||||
@@ -75,7 +73,7 @@
|
||||
|
||||
#else // OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX
|
||||
|
||||
- void xgetbv(int n, int &eax, int &edx)
|
||||
+ void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx)
|
||||
{
|
||||
eax = edx = 0;
|
||||
}
|
||||
@@ -94,8 +92,8 @@
|
||||
f16c(false)
|
||||
{
|
||||
bool osxsave = false;
|
||||
- int max = 0;
|
||||
- int eax, ebx, ecx, edx;
|
||||
+ unsigned int max = 0;
|
||||
+ unsigned int eax, ebx, ecx, edx;
|
||||
|
||||
cpuid(0, max, ebx, ecx, edx);
|
||||
if (max > 0)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,31 @@
|
||||
libraw/dc_raw: fix gcc-6 failures
|
||||
|
||||
With gcc-6, it is no longer allowed to narrow the type of constants in
|
||||
a constant array declaration.
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.org/results/081/0811531872f69f9febbdc482dfbdd7fb5c35d1c8/build-end.log
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff -durN a/Source/LibRawLite/internal/dcraw_common.cpp b/Source/LibRawLite/internal/dcraw_common.cpp
|
||||
--- a/Source/LibRawLite/internal/dcraw_common.cpp
|
||||
+++ b/Source/LibRawLite/internal/dcraw_common.cpp
|
||||
@@ -2479,7 +2479,7 @@
|
||||
|
||||
void CLASS kodak_radc_load_raw()
|
||||
{
|
||||
- static const char src[] = {
|
||||
+ static const signed char src[] = {
|
||||
1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8,
|
||||
1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8,
|
||||
2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8,
|
||||
@@ -4519,7 +4519,7 @@
|
||||
*/
|
||||
void CLASS vng_interpolate()
|
||||
{
|
||||
- static const signed char *cp, terms[] = {
|
||||
+ static const int *cp, terms[] = {
|
||||
-2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01,
|
||||
-2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01,
|
||||
-2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
|
||||
21
bsp/buildroot-2017.02.11/package/libfreeimage/Config.in
Normal file
21
bsp/buildroot-2017.02.11/package/libfreeimage/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_LIBFREEIMAGE
|
||||
bool "libfreeimage"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
# compiler issue: "Error: invalid register number `63'"
|
||||
depends on !BR2_arc
|
||||
# Numerous build issues
|
||||
depends on !BR2_bfin
|
||||
help
|
||||
FreeImage is an Open Source library project for developers who
|
||||
would like to support popular graphics image formats like PNG,
|
||||
BMP, JPEG, TIFF and others as needed by today's multimedia
|
||||
applications.
|
||||
|
||||
http://freeimage.sourceforge.net
|
||||
|
||||
comment "libfreeimage needs a toolchain w/ C++, dynamic library, wchar"
|
||||
depends on !BR2_arc
|
||||
depends on !BR2_bfin
|
||||
depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 fbfc65e39b3d4e2cb108c4ffa8c41fd02c07d4d436c594fff8dab1a6d5297f89 FreeImage3170.zip
|
||||
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# libfreeimage
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBFREEIMAGE_VERSION = 3.17.0
|
||||
LIBFREEIMAGE_SITE = http://downloads.sourceforge.net/freeimage
|
||||
LIBFREEIMAGE_SOURCE = FreeImage$(subst .,,$(LIBFREEIMAGE_VERSION)).zip
|
||||
LIBFREEIMAGE_LICENSE = GPLv2 or GPLv3 or FreeImage Public License
|
||||
LIBFREEIMAGE_LICENSE_FILES = license-gplv2.txt license-gplv3.txt license-fi.txt
|
||||
LIBFREEIMAGE_INSTALL_STAGING = YES
|
||||
|
||||
define LIBFREEIMAGE_EXTRACT_CMDS
|
||||
$(UNZIP) $(DL_DIR)/$(LIBFREEIMAGE_SOURCE) -d $(@D)
|
||||
mv $(@D)/FreeImage/* $(@D)
|
||||
rmdir $(@D)/FreeImage
|
||||
endef
|
||||
|
||||
define LIBFREEIMAGE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define LIBFREEIMAGE_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define LIBFREEIMAGE_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
Reference in New Issue
Block a user