From: Chunrong Guo <[email protected]> *gcc 4.9 depends cloog
Signed-off-by: Chunrong Guo <[email protected]> --- recipes-devtools/cloog/cloog.inc | 8 +++ recipes-devtools/cloog/cloog_0.18.0.bb | 22 +++++++++ .../cloog/files/fix-automake1.13+-error.patch | 57 ++++++++++++++++++++++ .../files/fix-libcloog-isl-include-directory.patch | 25 ++++++++++ 4 files changed, 112 insertions(+) create mode 100644 recipes-devtools/cloog/cloog.inc create mode 100644 recipes-devtools/cloog/cloog_0.18.0.bb create mode 100644 recipes-devtools/cloog/files/fix-automake1.13+-error.patch create mode 100644 recipes-devtools/cloog/files/fix-libcloog-isl-include-directory.patch diff --git a/recipes-devtools/cloog/cloog.inc b/recipes-devtools/cloog/cloog.inc new file mode 100644 index 0000000..9062b97 --- /dev/null +++ b/recipes-devtools/cloog/cloog.inc @@ -0,0 +1,8 @@ +DESCRIPTION = "CLooG is a free software and library to generate code for scanning Z-polyhedra." +HOMEPAGE = "http://www.cloog.org/" +LICENSE = "LGPL-2.1" +SECTION = "libs" + +BBCLASSEXTEND = "native nativesdk" + +inherit autotools diff --git a/recipes-devtools/cloog/cloog_0.18.0.bb b/recipes-devtools/cloog/cloog_0.18.0.bb new file mode 100644 index 0000000..63c59a6 --- /dev/null +++ b/recipes-devtools/cloog/cloog_0.18.0.bb @@ -0,0 +1,22 @@ +require cloog.inc + +DEPENDS = "gmp isl" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=11398e4927d7ca5001fd4c768e147d83" + +SRC_URI = "ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-${PV}.tar.gz \ + file://fix-automake1.13+-error.patch \ + file://fix-libcloog-isl-include-directory.patch " + +SRC_URI[md5sum] = "be78a47bd82523250eb3e91646db5b3d" +SRC_URI[sha256sum] = "1c4aa8dde7886be9cbe0f9069c334843b21028f61d344a2d685f88cb1dcf2228" + +S = "${WORKDIR}/cloog-${PV}" + +EXTRA_OECONF = "--with-bits=gmp --with-gmp-prefix=${STAGING_DIR_HOST}${prefix_native}" +EXTRA_OECONF_class-native = "--with-bits=gmp --with-gmp-prefix=${STAGING_DIR_NATIVE}${prefix_native}" +EXTRA_OECONF_class-nativesdk = " --with-bits=gmp --with-gmp-prefix=${STAGING_DIR_HOST}${exec_prefix}" + +EXTRA_OECONF += "--with-isl=no" +EXTRA_OECONF_class-native += "--with-isl=system --with-isl-prefix=${STAGING_DIR_NATIVE}${prefix_native}" +EXTRA_OECONF_class-nativesdk += "--with-isl=system --with-isl-prefix=${STAGING_DIR_HOST}${exec_prefix}" diff --git a/recipes-devtools/cloog/files/fix-automake1.13+-error.patch b/recipes-devtools/cloog/files/fix-automake1.13+-error.patch new file mode 100644 index 0000000..706a352 --- /dev/null +++ b/recipes-devtools/cloog/files/fix-automake1.13+-error.patch @@ -0,0 +1,57 @@ +From 61259c7d2f4a81ddc3efc2ce333f7499c632f44b Mon Sep 17 00:00:00 2001 +From: Lnc <[email protected]> +Date: Mon, 19 Aug 2013 15:28:09 +0200 +Subject: [PATCH] Fix error with automake 1.13+ + +--- + Makefile.am | 3 +-- + test/Makefile.am | 12 ++++++------ + 2 files changed, 7 insertions(+), 8 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 1749c95..5ac1b75 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -87,8 +87,7 @@ SOURCES_CORE = \ + source/union_domain.c \ + source/version.c + +-DEFAULT_INCLUDES = -I. +-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include ++AM_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include + AM_CFLAGS = $(CFLAGS_WARN) + libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@ @OSL_CPPFLAGS@ + libcloog_isl_la_LDFLAGS = -version-info @versioninfo@ \ +diff --git a/test/Makefile.am b/test/Makefile.am +index 65a8e5a..c97678b 100644 +--- a/test/Makefile.am ++++ b/test/Makefile.am +@@ -43,7 +43,7 @@ else + GENERATE_TEST = generate_test + endif + noinst_PROGRAMS = $(GENERATE_TEST) +-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include + LDADD = ../libcloog-isl.la + generate_test_SOURCES = generate_test.c + +@@ -319,11 +319,11 @@ test_run: generate_test$(EXEEXT) + $(srcdir)/check_run.sh + + check_SCRIPTS = \ +- $(srcdir)/check_c.sh \ +- $(srcdir)/check_fortran.sh \ +- $(srcdir)/check_strided.sh \ +- $(srcdir)/check_openscop.sh \ +- $(srcdir)/check_special.sh ++ check_c.sh \ ++ check_fortran.sh \ ++ check_strided.sh \ ++ check_openscop.sh \ ++ check_special.sh + + TESTS = $(check_SCRIPTS) + +-- +1.7.0.9.GIT + diff --git a/recipes-devtools/cloog/files/fix-libcloog-isl-include-directory.patch b/recipes-devtools/cloog/files/fix-libcloog-isl-include-directory.patch new file mode 100644 index 0000000..b2d6246 --- /dev/null +++ b/recipes-devtools/cloog/files/fix-libcloog-isl-include-directory.patch @@ -0,0 +1,25 @@ +From 2b5bef22e2d2891b568ca9ba6b8f0df88609cc7d Mon Sep 17 00:00:00 2001 +From: Cedric Bastoul <[email protected]> +Date: Fri, 4 Oct 2013 00:13:56 +0200 +Subject: [PATCH] Fix include directory for libcloog-isl + +--- + Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index fd0f5c3..0425400 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -89,7 +89,7 @@ SOURCES_CORE = \ + + AM_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include + AM_CFLAGS = $(CFLAGS_WARN) +-libcloog_isl_la_CPPFLAGS = @ISL_CPPFLAGS@ @OSL_CPPFLAGS@ ++libcloog_isl_la_CPPFLAGS = -I. -I$(top_builddir)/include -I$(top_srcdir)/include @ISL_CPPFLAGS@ @OSL_CPPFLAGS@ + libcloog_isl_la_LDFLAGS = -version-info @versioninfo@ \ + -rpath $(libdir) @ISL_LDFLAGS@ @OSL_LDFLAGS@ + libcloog_isl_la_LIBADD = @ISL_LIBS@ @OSL_LIBS@ $(ISL_LA) $(OSL_LA) +-- +1.7.0.9.GIT + -- 1.9.0 -- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
