Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From 75b973373ed2e9a7a30f62dfe330299306ecff75 Mon Sep 17 00:00:00 2001
|
||||
From: Julien Olivain <ju.o@free.fr>
|
||||
Date: Sat, 5 Mar 2022 12:36:09 +0100
|
||||
Subject: [PATCH] Fix BLAS library integer size detection
|
||||
|
||||
When cross-compiling, octave ./configure script fails to detect the BLAS
|
||||
library integer size and fails with the message:
|
||||
|
||||
configure: error: unrecognized BLAS library integer size
|
||||
|
||||
This patch fixes this detection.
|
||||
|
||||
Patch adapted from:
|
||||
https://github.com/openembedded/meta-openembedded/commit/0ad153f721ef99de585c4452a997a7104f45d71d
|
||||
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
---
|
||||
configure.ac | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 4092e5915d..f4ea2c1987 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -757,6 +757,12 @@ if test $ax_blas_ok = no || test $ax_lapack_ok = no; then
|
||||
AC_MSG_ERROR([BLAS and LAPACK libraries are required])
|
||||
fi
|
||||
|
||||
+if ac_fn_f77_try_run "$LINENO"; then :
|
||||
+ ax_cv_blas_integer_size=8
|
||||
+else
|
||||
+ ax_cv_blas_integer_size=4
|
||||
+fi
|
||||
+
|
||||
case $ax_cv_blas_integer_size in
|
||||
4)
|
||||
HAVE_64_BIT_BLAS=no
|
||||
--
|
||||
2.39.2
|
||||
|
||||
38
package/octave/Config.in
Normal file
38
package/octave/Config.in
Normal file
@@ -0,0 +1,38 @@
|
||||
config BR2_PACKAGE_OCTAVE
|
||||
bool "octave"
|
||||
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
|
||||
depends on BR2_TOOLCHAIN_HAS_FORTRAN
|
||||
# Some Bootlin x86_64 toolchains (like version
|
||||
# bleeding-edge-2021.11-1) has a file
|
||||
# "x86_64-buildroot-linux-gnu/lib64/libgfortran.la" including
|
||||
# a "dependency_libs=" entry with an incorrect absolute path
|
||||
# to linquadmath.la on the bootlin build host. This breaks
|
||||
# builds using libtool with libgfortran. Those toolchains are
|
||||
# used by the "utils/test-pkg" script.
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_BOOTLIN || !BR2_x86_64
|
||||
select BR2_PACKAGE_OPENBLAS
|
||||
select BR2_PACKAGE_PCRE2
|
||||
help
|
||||
GNU Octave is a high-level language, primarily intended for
|
||||
numerical computations. It provides a convenient command
|
||||
line interface for solving linear and nonlinear problems
|
||||
numerically, and for performing other numerical experiments
|
||||
using a language that is mostly compatible with Matlab. It
|
||||
may also be used as a batch-oriented language. Octave has
|
||||
extensive tools for solving common numerical linear algebra
|
||||
problems, finding the roots of nonlinear equations,
|
||||
integrating ordinary functions, manipulating polynomials,
|
||||
and integrating ordinary differential and
|
||||
differential-algebraic equations. It is easily extensible
|
||||
and customizable via user-defined functions written in
|
||||
Octave's own language, or using dynamically loaded modules
|
||||
written in C++, C, Fortran, or other languages.
|
||||
|
||||
https://www.octave.org/
|
||||
|
||||
comment "octave needs a toolchain w/ C++ and fortran, gcc >= 7"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
|
||||
!BR2_TOOLCHAIN_HAS_FORTRAN
|
||||
5
package/octave/octave.hash
Normal file
5
package/octave/octave.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally computed after checking signature
|
||||
# https://ftp.gnu.org/gnu/octave/octave-11.1.0.tar.lz.sig
|
||||
# using key DBD9C84E39FE1AAE99F04446B05F05B75D36644B
|
||||
sha256 fb48e9bb9e3e7c6a4755cc90789ecfe54a00f5c59089cf6d50bb32d964bc1abf octave-11.1.0.tar.lz
|
||||
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYING
|
||||
76
package/octave/octave.mk
Normal file
76
package/octave/octave.mk
Normal file
@@ -0,0 +1,76 @@
|
||||
################################################################################
|
||||
#
|
||||
# octave
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OCTAVE_VERSION = 11.1.0
|
||||
OCTAVE_SITE = $(BR2_GNU_MIRROR)/octave
|
||||
OCTAVE_SOURCE = octave-$(OCTAVE_VERSION).tar.lz
|
||||
OCTAVE_LICENSE = GPL-3.0+
|
||||
OCTAVE_LICENSE_FILES = COPYING
|
||||
OCTAVE_AUTORECONF = YES
|
||||
|
||||
OCTAVE_CONF_OPTS = --disable-java
|
||||
|
||||
OCTAVE_DEPENDENCIES = \
|
||||
host-gperf \
|
||||
host-pkgconf \
|
||||
openblas \
|
||||
pcre2
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||
OCTAVE_CONF_OPTS += --with-bz2
|
||||
OCTAVE_DEPENDENCIES += bzip2
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --without-bz2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GRAPHICSMAGICK),y)
|
||||
OCTAVE_CONF_OPTS += --with-magick=GraphicsMagick++
|
||||
OCTAVE_DEPENDENCIES += graphicsmagick
|
||||
else ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
|
||||
OCTAVE_CONF_OPTS += --with-magick=ImageMagick++
|
||||
OCTAVE_DEPENDENCIES += imagemagick
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --without-magick
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
OCTAVE_CONF_OPTS += --with-curl
|
||||
OCTAVE_DEPENDENCIES += libcurl
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --without-curl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
||||
OCTAVE_CONF_OPTS += --with-sndfile
|
||||
OCTAVE_DEPENDENCIES += libsndfile
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --without-sndfile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
OCTAVE_CONF_OPTS += --with-openssl=yes
|
||||
OCTAVE_DEPENDENCIES += openssl
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --without-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
OCTAVE_CONF_OPTS += \
|
||||
--enable-readline \
|
||||
--with-libreadline-prefix=$(STAGING_DIR)/usr
|
||||
OCTAVE_DEPENDENCIES += readline
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --disable-readline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
OCTAVE_CONF_OPTS += --with-z
|
||||
OCTAVE_DEPENDENCIES += zlib
|
||||
else
|
||||
OCTAVE_CONF_OPTS += --without-z
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user