Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
From 43a6b4c7b3a63b1cd7f1ed2772a1147be892560f Mon Sep 17 00:00:00 2001
From: Marcus Hoffmann <marcus.hoffmann@othermo.de>
Date: Wed, 9 Apr 2025 16:03:59 +0200
Subject: [PATCH] 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>
[Marcus: update for 2.48]
Signed-off-by: Marcus Hoffmann <marcus.hoffmann@othermo.de>
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 4f22d17..5cf9b26 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,11 @@ all: train predict
lib: linear.o newton.o blas/blas.a
$(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)
--
2.43.0

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.
https://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 166ca3c741b2207a74978cdb55077261be43b1e58e55f2b4c4f40e6ec1d8a347 liblinear-2.49.tar.gz
sha256 684e76f565a31ab057790c612bdacc2ee542f8a90b69f922377a92334771488c COPYRIGHT

View File

@@ -0,0 +1,46 @@
################################################################################
#
# liblinear
#
################################################################################
LIBLINEAR_VERSION = 2.49
LIBLINEAR_SITE = https://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles
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.6 $(1)/usr/lib/liblinear.so.6
ln -sf liblinear.so.6 $(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))