initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
config BR2_PACKAGE_LINENOISE
bool "linenoise"
help
A small self-contained alternative to readline and libedit
https://github.com/antirez/linenoise
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 f5054a4fe120d43d85427cf58af93e56b9bb80389d507a9bec9b75531a340014 linenoise-1.0.tar.gz
sha256 efe1692aa5b869edaa0ac88f95eb0276c1125304ffc636a299db3ebbab47f62b LICENSE
+30
View File
@@ -0,0 +1,30 @@
################################################################################
#
# linenoise
#
################################################################################
LINENOISE_VERSION = 1.0
LINENOISE_SITE = $(call github,antirez,linenoise,$(LINENOISE_VERSION))
LINENOISE_LICENSE = BSD-2-Clause
LINENOISE_LICENSE_FILES = LICENSE
LINENOISE_INSTALL_STAGING = YES
# Static library only, nothing to install on target
LINENOISE_INSTALL_TARGET = NO
define LINENOISE_BUILD_CMDS
cd $(@D); $(TARGET_CC) $(TARGET_CFLAGS) -c linenoise.c
cd $(@D); $(TARGET_AR) rcu liblinenoise.a linenoise.o
cd $(@D); $(TARGET_CC) $(TARGET_LDFLAGS) -o linenoise_example example.c -L. -llinenoise
endef
define LINENOISE_INSTALL_STAGING_CMDS
$(INSTALL) -m 644 -D $(@D)/linenoise.h \
$(STAGING_DIR)/usr/include/linenoise.h
$(INSTALL) -m 644 -D $(@D)/liblinenoise.a \
$(STAGING_DIR)/usr/lib/liblinenoise.a
$(INSTALL) -m 755 -D $(@D)/linenoise_example \
$(STAGING_DIR)/usr/bin/linenoise_example
endef
$(eval $(generic-package))