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
@@ -0,0 +1,43 @@
From d2bd33ec18c146b27fb5aff7dd0089faa195ef9b Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Mon, 11 Feb 2019 21:42:01 +0100
Subject: [PATCH] meson.build: add atomic dependency for sparc
Linking with libatomic is needed on sparc otherwise build fails on:
ncmpc@exe/src_Main.cxx.o: In function `std::__atomic_base<long>::operator++()':
/home/buildroot/autobuild/instance-1/output/host/opt/ext-toolchain/sparc-buildroot-linux-uclibc/include/c++/6.4.0/bits/atomic_base.h:296: undefined reference to `__atomic_fetch_add_4'
Fixes:
- http://autobuild.buildroot.org/results/7ac1a07e4f72633d3ec92b79dc5d8c062490abdc
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/MusicPlayerDaemon/ncmpc/pull/45]
---
meson.build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meson.build b/meson.build
index 2e6defc..b393e39 100644
--- a/meson.build
+++ b/meson.build
@@ -174,6 +174,9 @@ else
pcre_dep = declare_dependency()
endif
+# Needed on sparc
+atomic_dep = cc.find_library('atomic', required: false)
+
inc = include_directories(
'src',
@@ -352,6 +355,7 @@ ncmpc = executable('ncmpc',
sources,
include_directories: inc,
dependencies: [
+ atomic_dep,
thread_dep,
boost_dep,
pcre_dep,
--
2.14.1
@@ -0,0 +1,38 @@
From 21ad6bf2bcb0745c25a28637449a72eee883a8e2 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sun, 21 Apr 2019 19:19:10 +0200
Subject: [PATCH] meson.build: link with lintl if needed
Fixes:
- http://autobuild.buildroot.org/results/d53978fb30d77cb4d10921bf721eff3d066567ce
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: not sent as upstream already rejected the first patch
on atomic: https://github.com/MusicPlayerDaemon/ncmpc/pull/45]
---
meson.build | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meson.build b/meson.build
index 2e6defc..28e9d29 100644
--- a/meson.build
+++ b/meson.build
@@ -42,6 +42,7 @@ else
error('libintl.h not found')
endif
conf.set('ENABLE_NLS', enable_nls)
+intl_dep = cc.find_library('intl', required: false)
if enable_nls
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
subdir('po')
@@ -356,6 +357,7 @@ ncmpc = executable('ncmpc',
boost_dep,
pcre_dep,
curses_dep,
+ intl_dep,
lirc_dep,
libmpdclient_dep,
],
--
2.20.1
+22
View File
@@ -0,0 +1,22 @@
config BR2_PACKAGE_NCMPC
bool "ncmpc"
depends on BR2_USE_MMU # fork()
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR # boost
depends on BR2_TOOLCHAIN_HAS_THREADS # boost
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
select BR2_PACKAGE_BOOST
select BR2_PACKAGE_BOOST_SYSTEM
select BR2_PACKAGE_LIBMPDCLIENT
select BR2_PACKAGE_NCURSES
help
ncmpc is a fully featured MPD client, which runs in a terminal
(using ncurses). Its goal is to provide a keyboard oriented
and consistent interface to MPD, without wasting resources.
http://www.musicpd.org/clients/ncmpc/
comment "ncmpc needs a toolchain w/ C++, wchar, threads, gcc >= 7"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_7
+5
View File
@@ -0,0 +1,5 @@
# Locally calculated after checking pgp signature
sha256 17ff446447e002f2ed4342b7324263a830df7d76bcf177dce928f7d3a6f1f785 ncmpc-0.45.tar.xz
# Hash for license file:
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
+40
View File
@@ -0,0 +1,40 @@
################################################################################
#
# ncmpc
#
################################################################################
NCMPC_VERSION_MAJOR = 0
NCMPC_VERSION = $(NCMPC_VERSION_MAJOR).45
NCMPC_SOURCE = ncmpc-$(NCMPC_VERSION).tar.xz
NCMPC_SITE = http://www.musicpd.org/download/ncmpc/$(NCMPC_VERSION_MAJOR)
NCMPC_DEPENDENCIES = \
boost \
host-pkgconf \
libmpdclient \
ncurses \
$(TARGET_NLS_DEPENDENCIES)
NCMPC_LICENSE = GPL-2.0+
NCMPC_LICENSE_FILES = COPYING
NCMPC_CPE_ID_VENDOR = ncmpc_project
NCMPC_CONF_OPTS = \
-Dcurses=ncurses \
-Ddocumentation=disabled \
$(if $(BR2_SYSTEM_ENABLE_NLS),-Dnls=enabled,-Dnls=disabled)
ifeq ($(BR2_PACKAGE_LIRC_TOOLS),y)
NCMPC_DEPENDENCIES += lirc-tools
NCMPC_CONF_OPTS += -Dlirc=enabled
else
NCMPC_CONF_OPTS += -Dlirc=disabled
endif
ifeq ($(BR2_PACKAGE_PCRE),y)
NCMPC_DEPENDENCIES += pcre
NCMPC_CONF_OPTS += -Dregex=enabled
else
NCMPC_CONF_OPTS += -Dregex=disabled
endif
$(eval $(meson-package))