[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,36 @@
From cae4c3b80fee0f3637d70f6d33946888c8105637 Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Sat, 13 Dec 2014 17:16:58 +0100
Subject: [PATCH] blas: don't overwrite ar options
ar's rcv options get lost when AR is passed on
the command line.
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
blas/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blas/Makefile b/blas/Makefile
index 895fd24..78cec9a 100644
--- a/blas/Makefile
+++ b/blas/Makefile
@@ -1,4 +1,4 @@
-AR = ar rcv
+AR = ar
RANLIB = ranlib
HEADERS = blas.h blasp.h
@@ -8,7 +8,7 @@ CFLAGS = $(OPTFLAGS)
FFLAGS = $(OPTFLAGS)
blas: $(FILES) $(HEADERS)
- $(AR) blas.a $(FILES)
+ $(AR) rcv blas.a $(FILES)
$(RANLIB) blas.a
clean:
--
1.9.3

View File

@ -0,0 +1,20 @@
Makefile: add a rule to build a static library
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Fabrice: update for 2.43]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
diff -durN liblinear-1.96.orig/Makefile liblinear-1.96/Makefile
--- liblinear-1.96.orig/Makefile 2014-11-15 07:50:23.000000000 +0100
+++ liblinear-1.96/Makefile 2014-12-14 00:23:00.135893956 +0100
@@ -16,6 +16,11 @@
fi; \
$(CXX) $${SHARED_LIB_FLAG} linear.o newton.o blas/blas.a -o liblinear.so.$(SHVER)
+# Keeping blas/blas.a as a pre-requisite, to ensure all .o files are built
+static-lib: linear.o newton.o blas/blas.a
+ $(AR) rcv liblinear.a linear.o newton.o blas/*.o
+ $(RANLIB) liblinear.a
+
train: newton.o linear.o train.c blas/blas.a
$(CXX) $(CFLAGS) -o train train.c newton.o linear.o $(LIBS)

View File

@ -0,0 +1,11 @@
config BR2_PACKAGE_LIBLINEAR
bool "liblinear"
depends on BR2_INSTALL_LIBSTDCPP
help
liblinear is a linear classifier for data with millions of
instances and features.
http://www.csie.ntu.edu.tw/~cjlin/liblinear/
comment "liblinear needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 45572b99d4eeffc3e8ad7b72c27370be867edf3523c396d8b278a2c873bfbb5c liblinear-2.44.tar.gz
sha256 d49b7898fd9ea7c29f0478e8c409ee7c0f621533d5eca7b7912e80391dc564e3 COPYRIGHT

View File

@ -0,0 +1,46 @@
################################################################################
#
# liblinear
#
################################################################################
LIBLINEAR_VERSION = 2.44
LIBLINEAR_SITE = http://www.csie.ntu.edu.tw/~cjlin/liblinear
LIBLINEAR_LICENSE = BSD-3-Clause
LIBLINEAR_LICENSE_FILES = COPYRIGHT
LIBLINEAR_INSTALL_STAGING = YES
LIBLINEAR_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
# $1: destination directory
define LIBLINEAR_INSTALL_SHARED
$(INSTALL) -m 0644 -D $(@D)/liblinear.so.5 $(1)/usr/lib/liblinear.so.5
ln -sf liblinear.so.5 $(1)/usr/lib/liblinear.so
endef
LIBLINEAR_CFLAGS += -fPIC
endif
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
# $1: destination directory
define LIBLINEAR_INSTALL_STATIC
$(INSTALL) -m 0644 -D $(@D)/liblinear.a $(1)/usr/lib/liblinear.a
endef
endif
define LIBLINEAR_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(LIBLINEAR_CFLAGS)" -C $(@D) \
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),lib) \
$(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),static-lib)
endef
define LIBLINEAR_INSTALL_STAGING_CMDS
$(INSTALL) -m 0644 -D $(@D)/linear.h $(STAGING_DIR)/usr/include/linear.h
$(call LIBLINEAR_INSTALL_SHARED,$(STAGING_DIR))
$(call LIBLINEAR_INSTALL_STATIC,$(STAGING_DIR))
endef
define LIBLINEAR_INSTALL_TARGET_CMDS
$(call LIBLINEAR_INSTALL_SHARED,$(TARGET_DIR))
endef
$(eval $(generic-package))