-
Notifications
You must be signed in to change notification settings - Fork 3
/
scikitlearn-support.patch
59 lines (52 loc) · 1.97 KB
/
scikitlearn-support.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From 7ea6a82abd2ca2204726f6ba1c2b93f52ef24e2f Mon Sep 17 00:00:00 2001
From: "Guillaume W. Bres" <[email protected]>
Date: Sun, 20 Feb 2022 15:41:55 +0100
Subject: [PATCH] unlock scikitlearn dependencies
Signed-off-by: Guillaume W. Bres <[email protected]>
---
package/lapack/lapack.mk | 1 +
package/openblas/openblas.mk | 9 +++++++++
package/python-pybind/python-pybind.mk | 1 +
3 files changed, 11 insertions(+)
diff --git a/package/lapack/lapack.mk b/package/lapack/lapack.mk
index 609075842d..cdae475097 100644
--- a/package/lapack/lapack.mk
+++ b/package/lapack/lapack.mk
@@ -23,3 +23,4 @@ LAPACK_CONF_OPTS += -DBUILD_COMPLEX=OFF -DBUILD_COMPLEX16=OFF
endif
$(eval $(cmake-package))
+$(eval $(host-cmake-package))
diff --git a/package/openblas/openblas.mk b/package/openblas/openblas.mk
index 4d506fa618..824b6924c8 100644
--- a/package/openblas/openblas.mk
+++ b/package/openblas/openblas.mk
@@ -65,6 +65,10 @@ define OPENBLAS_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(OPENBLAS_MAKE_OPTS) \
-C $(@D)
endef
+define HOST_OPENBLAS_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) $(OPENBLAS_MAKE_OPTS) \
+ -C $(@D)
+endef
define OPENBLAS_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(OPENBLAS_MAKE_OPTS) \
@@ -75,5 +79,10 @@ define OPENBLAS_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(OPENBLAS_MAKE_OPTS) \
-C $(@D) install PREFIX=$(TARGET_DIR)/usr
endef
+define HOST_OPENBLAS_INSTALL_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) $(OPENBLAS_MAKE_OPTS) \
+ -C $(@D) install PREFIX=$(HOST_DIR)/usr
+endef
$(eval $(generic-package))
+$(eval $(host-generic-package))
diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk
index 7448d246b2..6389f3c6b2 100644
--- a/package/python-pybind/python-pybind.mk
+++ b/package/python-pybind/python-pybind.mk
@@ -26,3 +26,4 @@ endef
PYTHON_PYBIND_POST_INSTALL_STAGING_HOOKS += PYTHON_PYBIND_INSTALL_MODULE
$(eval $(cmake-package))
+$(eval $(host-cmake-package))
--
2.20.1