Move buildroot to bsp directory.
This commit is contained in:
29
bsp/buildroot/package/pixman/0001-Disable-tests.patch
Normal file
29
bsp/buildroot/package/pixman/0001-Disable-tests.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
From 9b8132738c364fc3c886e81e7d383aaff80dc867 Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Sat, 5 Dec 2015 12:00:53 +0100
|
||||
Subject: [PATCH] Disable tests
|
||||
|
||||
Tests are causing build failures on some architectures that are missing
|
||||
a proper fenv.h, so just disable them.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
---
|
||||
Status: Buildroot specific, not suitable for upstream in this state.
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 5137c9e..eae79fd 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
-SUBDIRS = pixman demos test
|
||||
+SUBDIRS = pixman demos
|
||||
|
||||
pkgconfigdir=$(libdir)/pkgconfig
|
||||
pkgconfig_DATA=pixman-1.pc
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
From 2a5b33fe5cb921993573392afac19185e224b49a Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 17 Jan 2016 14:14:28 +0100
|
||||
Subject: [PATCH] pixman-private: include <float.h> only in C code
|
||||
|
||||
<float.h> is included unconditionally by pixman-private.h, which in
|
||||
turn gets included by assembler files. Unfortunately, with certain C
|
||||
libraries (like the musl C library), <float.h> cannot be included in
|
||||
assembler files:
|
||||
|
||||
CCLD libpixman-arm-simd.la
|
||||
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages:
|
||||
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)'
|
||||
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h: Assembler messages:
|
||||
/home/test/buildroot/output/host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/float.h:8: Error: bad instruction `int __flt_rounds(void)'
|
||||
|
||||
It turns out however that <float.h> is not needed by assembly files,
|
||||
so we move its inclusion within the #ifndef __ASSEMBLER__ condition,
|
||||
which solves the problem.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
pixman/pixman-private.h | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
|
||||
index 73108a0..73a5414 100644
|
||||
--- a/pixman/pixman-private.h
|
||||
+++ b/pixman/pixman-private.h
|
||||
@@ -1,5 +1,3 @@
|
||||
-#include <float.h>
|
||||
-
|
||||
#ifndef PIXMAN_PRIVATE_H
|
||||
#define PIXMAN_PRIVATE_H
|
||||
|
||||
@@ -30,6 +28,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
+#include <float.h>
|
||||
|
||||
#include "pixman-compiler.h"
|
||||
|
||||
--
|
||||
2.6.4
|
||||
|
||||
6
bsp/buildroot/package/pixman/Config.in
Normal file
6
bsp/buildroot/package/pixman/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_PIXMAN
|
||||
bool "pixman"
|
||||
help
|
||||
Cairo pixel manager
|
||||
|
||||
http://cairographics.org/releases/
|
||||
2
bsp/buildroot/package/pixman/pixman.hash
Normal file
2
bsp/buildroot/package/pixman/pixman.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://lists.x.org/archives/xorg-announce/2016-January/002672.html
|
||||
sha1 367698744e74d6d4f363041482965b9ea7fbe4a5 pixman-0.34.0.tar.bz2
|
||||
41
bsp/buildroot/package/pixman/pixman.mk
Normal file
41
bsp/buildroot/package/pixman/pixman.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# pixman
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PIXMAN_VERSION = 0.34.0
|
||||
PIXMAN_SOURCE = pixman-$(PIXMAN_VERSION).tar.bz2
|
||||
PIXMAN_SITE = http://xorg.freedesktop.org/releases/individual/lib
|
||||
PIXMAN_LICENSE = MIT
|
||||
PIXMAN_LICENSE_FILES = COPYING
|
||||
|
||||
PIXMAN_INSTALL_STAGING = YES
|
||||
PIXMAN_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# For 0001-Disable-tests.patch
|
||||
PIXMAN_AUTORECONF = YES
|
||||
|
||||
# don't build gtk based demos
|
||||
PIXMAN_CONF_OPTS = --disable-gtk
|
||||
|
||||
# disable iwmmxt support for CPU's that don't have
|
||||
# this feature
|
||||
ifneq ($(BR2_iwmmxt),y)
|
||||
PIXMAN_CONF_OPTS += --disable-arm-iwmmxt
|
||||
endif
|
||||
|
||||
# toolchain gets confused about TLS access through GOT (PIC), so disable TLS
|
||||
# movhi r4, %got_hiadj(%tls_ldo(fast_path_cache))
|
||||
# {standard input}:172: Error: bad expression
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII),y)
|
||||
PIXMAN_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DPIXMAN_NO_TLS"
|
||||
endif
|
||||
|
||||
# Altivec detection isn't reliable for CS toolchains
|
||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC),y)
|
||||
PIXMAN_CONF_OPTS += --disable-vmx
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user