diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-20 18:48:09 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-06-25 06:44:51 -0700 |
| commit | 188491dd2b349d2dc7c0d40b9ee8d870228704f3 (patch) | |
| tree | 54dbcfa399ebfec2b2d2ad060f52205b561b5948 /meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb | |
| parent | eebf8c78db2e5923a85582efb30722341705693d (diff) | |
| download | meta-openembedded-188491dd2b349d2dc7c0d40b9ee8d870228704f3.tar.gz | |
suitesparse: Update after toolchain selection changes
The toolchain selection changes mean CC is not set until after the recipe
is parsed, breaking the manipulations made by this recipe.
Replace it with code to inherit the cmake class, which correctly
configures cmake to use the right compiler/compiler flags.
We need to patch the makefiles to avoid those options being added
incorrectly.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb b/meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb index 13e6fd066c..29f114a9dc 100644 --- a/meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb +++ b/meta-oe/recipes-devtools/suitesparse/suitesparse_5.10.1.bb | |||
| @@ -4,6 +4,7 @@ SRC_URI = "git://github.com/DrTimothyAldenDavis/SuiteSparse;protocol=https;branc | |||
| 4 | file://0001-Preserve-CXXFLAGS-from-environment-in-Mongoose.patch \ | 4 | file://0001-Preserve-CXXFLAGS-from-environment-in-Mongoose.patch \ |
| 5 | file://0002-Preserve-links-when-installing-libmetis.patch \ | 5 | file://0002-Preserve-links-when-installing-libmetis.patch \ |
| 6 | file://0003-Add-version-information-to-libmetis.patch \ | 6 | file://0003-Add-version-information-to-libmetis.patch \ |
| 7 | file://makefile-quoting.patch \ | ||
| 7 | " | 8 | " |
| 8 | SRCREV = "538273cfd53720a10e34a3d80d3779b607e1ac26" | 9 | SRCREV = "538273cfd53720a10e34a3d80d3779b607e1ac26" |
| 9 | 10 | ||
| @@ -14,25 +15,17 @@ DEPENDS = "cmake-native lapack gmp mpfr chrpath-native" | |||
| 14 | PROVIDES = "mongoose graphblas" | 15 | PROVIDES = "mongoose graphblas" |
| 15 | RPROVIDES:${PN} = "mongoose graphblas" | 16 | RPROVIDES:${PN} = "mongoose graphblas" |
| 16 | 17 | ||
| 17 | # The values of $CC, $CXX, and $LD that Bitbake uses have spaces in them which | 18 | inherit cmake |
| 18 | # causes problems when the SuiteSparse Makefiles try to pass these values on | ||
| 19 | # the command line. To get around this problem, set these variables to only the | ||
| 20 | # program name and prepend the rest of the value onto the corresponding FLAGS | ||
| 21 | # variable. | ||
| 22 | CFLAGS:prepend := "${@" ".join(d.getVar('CC').split()[1:])} " | ||
| 23 | export CC := "${@d.getVar('CC').split()[0]}" | ||
| 24 | 19 | ||
| 25 | CXXFLAGS:prepend := "${@" ".join(d.getVar('CXX').split()[1:])} " | 20 | B = "${S}" |
| 26 | export CXX := "${@d.getVar('CXX').split()[0]}" | ||
| 27 | |||
| 28 | LDFLAGS:prepend := "${@" ".join(d.getVar('LD').split()[1:])} " | ||
| 29 | export LD := "${@d.getVar('LD').split()[0]}" | ||
| 30 | 21 | ||
| 31 | export CMAKE_OPTIONS = " \ | 22 | export CMAKE_OPTIONS = " \ |
| 32 | -DCMAKE_INSTALL_PREFIX=${D}${prefix} \ | 23 | -DCMAKE_INSTALL_PREFIX=${D}${prefix} \ |
| 33 | -DCMAKE_INSTALL_LIBDIR=${baselib} \ | 24 | -DCMAKE_INSTALL_LIBDIR=${baselib} \ |
| 34 | " | 25 | " |
| 35 | 26 | ||
| 27 | OECMAKE_SOURCEPATH = "${S}/Mongoose ${S}/metis-5.1.0 ${S}/GraphBLAS" | ||
| 28 | |||
| 36 | do_compile () { | 29 | do_compile () { |
| 37 | oe_runmake library | 30 | oe_runmake library |
| 38 | } | 31 | } |
