isl: new package
PATCH v3 1/3 isl: new package
In reply to a message not in the archiveisl is a library for manipulating sets and relations of integer points bounded by linear constraints.
isl is needed for the optional graphite optimisations that are supported by gcc since version 4.5. Therefore this package is required for the toolchain to support graphite.
Graphite optimisations primarily involve loop blocking flattening and interchage so are probably of mimimal use in an embedded system where small sizes are favoured.
---
Changes v2 -> v3:
- removed packages from Config.in
- disabled target builds
- added empty line to commit messages
- removed isl patch as different version used
Changes v1 -> v2:
- added more lucid and verbose description in commit messages
- fixed the url and removed the sources files
- add complete graphite as three commits yet a single patch
--- package/isl/Config.in | 7 +++++++ package/isl/isl.mk | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/isl/Config.in create mode 100644 package/isl/isl.mk
package/isl/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_ISL + bool "isl" + select BR2_PACKAGE_GMP + help + Library for manipulating sets and relations of integer points bounded by linear constraints. + + http://freecode.com/projects/isl
package/isl/isl.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# isl +# +################################################################################ + +ISL_VERSION = 0.11.1 +ISL_SITE = http://isl.gforge.inria.fr/ +ISL_LICENSE = MIT +ISL_LICENSE_FILES = LICENSE +ISL_INSTALL_STAGING = YES +ISL_DEPENDENCIES = gmp + +$(eval $(host-autotools-package))
Signature · 1 line
1.9.3
PATCH v3 2/3 cloog: new package
In reply to a message not in the archiveCLooG is a free software and library to generate code for scanning Z-polyhedra.
cloog is needed for the optional graphite optimisations that are supported by gcc since version 4.5. Therefore this package is required for the toolchain to support graphite.
Graphite optimisations primarily involve loop blocking flattening and interchage so are probably of mimimal use in an embedded system where small sizes are favoured.
cloog depends on isl.
---
Changes v2 -> v3:
- removed packages from Config.in
- disabled target builds
- added empty line to commit messages
- removed isl patch as different version used
Changes v1 -> v2:
- added more lucid and verbose description in commit messages
- fixed the url and removed the sources files
- add complete graphite as three commits yet a single patch
--- package/cloog/Config.in | 8 ++++++++ package/cloog/cloog.mk | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 package/cloog/Config.in create mode 100644 package/cloog/cloog.mk
package/cloog/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_CLOOG + bool "cloog" + select BR2_PACKAGE_GMP + select BR2_PACKAGE_ISL + help + Chunky LOOp Generator - Library which generates loops for scanning Z-polyhedra. + + http://clooglib.org/
package/cloog/cloog.mk new file +16 -0
@@ -0,0 +1,16 @@ +################################################################################ +# +# cloog +# +################################################################################ + +CLOOG_VERSION = 0.18.1 +CLOOG_SITE = http://www.bastoul.net/cloog/pages/download/ +CLOOG_INSTALL_STAGING = YES +CLOOG_LICENSE = LGPLv2.1 +CLOOG_LICENSE_FILES = LICENSE +CLOOG_DEPENDENCIES = gmp isl + +HOST_CLOOG_CONF_OPT = --with-isl=system --with-polylib=no + +$(eval $(host-autotools-package))
Signature · 1 line
1.9.3
PATCH v3 3/3 Add an BR2_GCC_ENABLE_GRAPHITE flag for the buildroot toolchain
In reply to a message not in the archiveThe gcc graphite optimisations such as loop-interchange, blocking and loop-flattening, also known as graphite are an optional feature of gcc that is very well supported since about gcc version 4.5.
This patch adds support for graphite for the toolchain as an optional flag for versions 4.6 onwards as an optional flag, that is disabled by default.
---
Changes v2 -> v3:
- removed packages from Config.in
- disabled target builds
- added empty line to commit messages
- removed isl patch as different version used
Changes v1 -> v2:
- added more lucid and verbose description in commit messages
- fixed the url and removed the sources files
- add complete graphite as three commits yet a single patch
--- package/gcc/Config.in.host | 16 ++++++++++++++++ package/gcc/gcc.mk | 9 +++++++++ 2 files changed, 25 insertions(+)
package/gcc/Config.in.host +16 -0
@@ -3,6 +3,9 @@ comment "GCC Options" config BR2_GCC_NEEDS_MPC bool +config BR2_GCC_SUPPORTS_GRAPHITE + bool + choice prompt "GCC compiler Version" default BR2_GCC_VERSION_4_4_X if BR2_sparc_sparchfleon || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleon || BR2_sparc_sparcsfleonv8
@@ -42,36 +45,43 @@ choice config BR2_GCC_VERSION_4_6_X depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a7 && !BR2_cortex_a12 && !BR2_x86_jaguar && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_pj4 select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc 4.6.x" config BR2_GCC_VERSION_4_7_X depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a12 && !BR2_x86_jaguar && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_pj4 select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc 4.7.x" config BR2_GCC_VERSION_4_8_X depends on !BR2_microblaze && !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a12 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc 4.8.x" config BR2_GCC_VERSION_4_8_ARC depends on BR2_arc select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc 4.8-arc" config BR2_GCC_VERSION_4_9_X depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc 4.9.x" config BR2_GCC_VERSION_4_9_MICROBLAZE depends on BR2_microblaze select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc 4.9-microblaze" config BR2_GCC_VERSION_SNAP depends on !BR2_microblaze && !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 select BR2_GCC_NEEDS_MPC + select BR2_GCC_SUPPORTS_GRAPHITE bool "gcc snapshot" endchoice
@@ -147,6 +157,12 @@ config BR2_INSTALL_FORTRAN cross-compiler, and install the Fortran runtime to the target. +config BR2_GCC_ENABLE_GRAPHITE + bool "Enable compiler graphite optimisations" + depends on BR2_GCC_SUPPORTS_GRAPHITE + help + Enable the compiler to support graphite optimisations + config BR2_GCC_ENABLE_TLS bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC default y
package/gcc/gcc.mk +9 -0
@@ -156,6 +156,15 @@ HOST_GCC_COMMON_DEPENDENCIES += host-mpc HOST_GCC_COMMON_CONF_OPT += --with-mpc=$(HOST_DIR)/usr endif +ifeq ($(BR2_GCC_ENABLE_GRAPHITE),y) +HOST_GCC_COMMON_DEPENDENCIES += \ + host-isl \ + host-cloog +HOST_GCC_COMMON_CONF_OPT += \ + --disable-isl-version-check \ + --disable-cloog-version-check +endif + ifneq ($(BR2_arc)$(BR2_GCC_VERSION_SNAP),) HOST_GCC_COMMON_DEPENDENCIES += host-flex host-bison endif
Signature · 1 line
1.9.3
PATCH v3 1/3 isl: new package
In reply to Steve ThomasDear Steve Thomas,
package/isl/Config.in line 7
Quoted 13 lines · Steve Thomas
package/isl/Config.in new file +7
-0@@ -0,0 +1,7 @@ +config BR2_PACKAGE_ISL + bool "isl" + select BR2_PACKAGE_GMP + help + Library for manipulating sets and relations of integer points bounded by linear constraints. + + http://freecode.com/projects/isl
This part is not needed.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 2/3 cloog: new package
In reply to Steve ThomasDear Steve Thomas,
Quoted 6 lines · Steve Thomas
package/cloog/Config.in new file +0
-0
package/cloog/Config.in line 8
Quoted 8 lines
package/cloog/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_CLOOG + bool "cloog" + select BR2_PACKAGE_GMP + select BR2_PACKAGE_ISL + help + Chunky LOOp Generator - Library which generates loops for scanning Z-polyhedra. + + http://clooglib.org/
This part is not needed.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 3/3 Add an BR2_GCC_ENABLE_GRAPHITE flag for the buildroot toolchain
In reply to Steve ThomasDear Steve Thomas,
package/gcc/gcc.mk HOST_GCC_COMMON_DEPENDENCIES += host-mpc · line 166
Quoted 8 lines · Steve Thomas
package/gcc/gcc.mk +8
-0+ifeq ($(BR2_GCC_ENABLE_GRAPHITE),y) +HOST_GCC_COMMON_DEPENDENCIES += \ + host-isl \ + host-cloog +HOST_GCC_COMMON_CONF_OPT += \ + --disable-isl-version-check \ + --disable-cloog-version-check +endif
Do we really need to disable the version checks? Also, for gmp and mpfr we pass --with-gmp, --with-mpfr. Maybe we should do the same here when graphite is enabled, and pass --without-{isl,cloog} when graphite is disabled?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com