Initial Commit
- initial default booting image
This commit is contained in:
38
package/18xx-ti-utils/0001-plt.h-fix-build-with-gcc-10.patch
Normal file
38
package/18xx-ti-utils/0001-plt.h-fix-build-with-gcc-10.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From 12d3b3c01b0ec28d45427754541a8156939346d9 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Thu, 13 Aug 2020 23:24:05 +0200
|
||||
Subject: [PATCH] plt.h: fix build with gcc 10
|
||||
|
||||
Drop EFUSE_PARAMETER_TYPE_ENM to fix the following build failure with
|
||||
gcc 10:
|
||||
|
||||
/home/buildroot/autobuild/run/instance-3/output-1/host/bin/arm-buildroot-linux-gnueabihf-gcc -L/home/buildroot/autobuild/run/instance-3/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/lib nvs.o misc_cmds.o calibrator.o plt.o wl18xx_plt.o ini.o -lm -lnl-3 -lnl-genl-3 -o calibrator
|
||||
/home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: misc_cmds.o:(.bss+0x0): multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:(.bss+0x0): first defined here
|
||||
/home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: calibrator.o: in function `.LANCHOR0':
|
||||
calibrator.c:(.bss+0xc): multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:(.bss+0x0): first defined here
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/df2d04de4b2e5003f3fc56c9e84db5054bd4d499
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: sent to sudharshan <sudharshan@ti.com>]
|
||||
---
|
||||
plt.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/plt.h b/plt.h
|
||||
index 8b534a9..43d5dbc 100644
|
||||
--- a/plt.h
|
||||
+++ b/plt.h
|
||||
@@ -399,7 +399,7 @@ enum EFUSE_PARAMETER_TYPE_ENMT {
|
||||
TX_BIP_PD_BUFFER_VBIAS_ERROR_E,
|
||||
EFUSE_NUMBER_OF_PARAMETERS_E,
|
||||
EFUSE_LAST_PARAMETER_E = (EFUSE_NUMBER_OF_PARAMETERS_E - 1)
|
||||
-} EFUSE_PARAMETER_TYPE_ENM;
|
||||
+};
|
||||
|
||||
int get_mac_addr(int ifc_num, unsigned char *mac_addr);
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
3
package/18xx-ti-utils/18xx-ti-utils.hash
Normal file
3
package/18xx-ti-utils/18xx-ti-utils.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 33be3c90719bf36d5da76c6faaefb07bf3697635f81b86e28b92307d7825483e 18xx-ti-utils-R8.8-git4.tar.gz
|
||||
sha256 363cef40b276a7a91ebcff3f78626d9cfe5e5a51927c725236007259403d5fc4 COPYING
|
||||
35
package/18xx-ti-utils/18xx-ti-utils.mk
Normal file
35
package/18xx-ti-utils/18xx-ti-utils.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# 18xx-ti-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
18XX_TI_UTILS_VERSION = R8.8
|
||||
18XX_TI_UTILS_SITE = https://git.ti.com/cgit/wilink8-wlan/18xx-ti-utils
|
||||
18XX_TI_UTILS_SITE_METHOD = git
|
||||
18XX_TI_UTILS_DEPENDENCIES = libnl
|
||||
18XX_TI_UTILS_LICENSE = BSD-3-Clause
|
||||
18XX_TI_UTILS_LICENSE_FILES = COPYING
|
||||
|
||||
18XX_TI_UTILS_CFLAGS = -I$(STAGING_DIR)/usr/include/libnl3 -DCONFIG_LIBNL32
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
18XX_TI_UTILS_BUILD_TARGET = static
|
||||
endif
|
||||
|
||||
define 18XX_TI_UTILS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
NFSROOT="$(STAGING_DIR)" NLVER=3 $(MAKE) -C $(@D) \
|
||||
CFLAGS="$(TARGET_CFLAGS) $(18XX_TI_UTILS_CFLAGS)" \
|
||||
$(18XX_TI_UTILS_BUILD_TARGET)
|
||||
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/wlconf \
|
||||
$(HOST_CONFIGURE_OPTS)
|
||||
endef
|
||||
|
||||
define 18XX_TI_UTILS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 $(@D)/calibrator $(TARGET_DIR)/usr/bin/calibrator
|
||||
$(INSTALL) -m 0755 $(@D)/wlconf/wlconf $(HOST_DIR)/bin/wlconf
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
14
package/18xx-ti-utils/Config.in
Normal file
14
package/18xx-ti-utils/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_18XX_TI_UTILS
|
||||
bool "18xx-ti-utils"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
TI Wilink calibration utilities.
|
||||
|
||||
CONFIG_NL80211_TESTMODE must be enabled in the kernel
|
||||
configuration for this package to work.
|
||||
|
||||
http://processors.wiki.ti.com/index.php/WL18xx_TX_Testing
|
||||
|
||||
comment "18xx-ti-utils needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
17
package/4th/0001-avoid-regen-during-install.patch
Normal file
17
package/4th/0001-avoid-regen-during-install.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
avoid regen during install
|
||||
|
||||
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
|
||||
|
||||
--- a/sources/Makefile
|
||||
+++ b/sources/Makefile
|
||||
@@ -122,7 +122,7 @@
|
||||
ln -sf $(SHARED_LIB) $(LIBRARIES)/lib4th.so
|
||||
endif
|
||||
|
||||
-mostlyinstall: libinstall all
|
||||
+mostlyinstall: libinstall
|
||||
cp 4th 4tsh pp4th $(BINARIES)
|
||||
|
||||
install: mostlyinstall
|
||||
--
|
||||
|
||||
3
package/4th/4th.hash
Normal file
3
package/4th/4th.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 b9f422b910cf99c63315241fd7a72e652ace11b1f78adabbc99628f3bccfb358 4th-3.64.2-unix.tar.gz
|
||||
sha256 8c6111b645a02219579ea66e84aa8e78a0ed4f4dd80857ffb91bcda5528717d4 COPYING
|
||||
70
package/4th/4th.mk
Normal file
70
package/4th/4th.mk
Normal file
@@ -0,0 +1,70 @@
|
||||
################################################################################
|
||||
#
|
||||
# 4th
|
||||
#
|
||||
################################################################################
|
||||
|
||||
4TH_VERSION = 3.64.2
|
||||
4TH_SOURCE = 4th-$(4TH_VERSION)-unix.tar.gz
|
||||
4TH_SITE = https://downloads.sourceforge.net/project/forth-4th/4th-$(4TH_VERSION)
|
||||
4TH_LICENSE = GPL-3.0+, LGPL-3.0+
|
||||
# The COPYING file only contains the text of the LGPL-3.0, but the
|
||||
# source code really contains parts under GPL-3.0+.
|
||||
4TH_LICENSE_FILES = COPYING
|
||||
4TH_DEPENDENCIES = host-4th
|
||||
4TH_INSTALL_STAGING = YES
|
||||
|
||||
4TH_CFLAGS = $(TARGET_CFLAGS) -DUNIX -fsigned-char
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
4TH_MAKE_ENV = $(TARGET_MAKE_ENV) STATIC=1
|
||||
else
|
||||
4TH_MAKE_ENV = $(TARGET_MAKE_ENV) SHARED=1
|
||||
4TH_CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
define 4TH_BUILD_CMDS
|
||||
$(4TH_MAKE_ENV) $(MAKE) -C $(@D)/sources all \
|
||||
CROSS="$(TARGET_CROSS)" \
|
||||
CFLAGS="$(4TH_CFLAGS)" \
|
||||
FOURTH=$(HOST_DIR)/bin/4th
|
||||
endef
|
||||
|
||||
define 4TH_INSTALL_STAGING_CMDS
|
||||
$(4TH_MAKE_ENV) $(MAKE) -C $(@D)/sources libinstall \
|
||||
LIBRARIES=$(STAGING_DIR)/usr/lib
|
||||
$(INSTALL) -D -m 0644 $(@D)/sources/4th.h \
|
||||
$(STAGING_DIR)/usr/include/4th.h
|
||||
endef
|
||||
|
||||
define 4TH_INSTALL_TARGET_CMDS
|
||||
mkdir -p $(TARGET_DIR)/usr/bin
|
||||
mkdir -p $(TARGET_DIR)/usr/lib
|
||||
$(4TH_MAKE_ENV) $(MAKE) -C $(@D)/sources mostlyinstall \
|
||||
BINARIES=$(TARGET_DIR)/usr/bin \
|
||||
LIBRARIES=$(TARGET_DIR)/usr/lib
|
||||
mkdir -p $(TARGET_DIR)/usr/share/4th/lib
|
||||
cp -dpf $(@D)/4th/*.4th $(TARGET_DIR)/usr/share/4th
|
||||
cp -dpf $(@D)/4th/lib/*.4th $(TARGET_DIR)/usr/share/4th/lib
|
||||
mkdir -p $(TARGET_DIR)/usr/share/4th/demo
|
||||
cp -dpf $(@D)/4th/demo/*.4th $(TARGET_DIR)/usr/share/4th/demo
|
||||
mkdir -p $(TARGET_DIR)/usr/share/4th/4pp/lib
|
||||
cp -dpf $(@D)/4th/4pp/*.4pp $(TARGET_DIR)/usr/share/4th/4pp
|
||||
cp -dpf $(@D)/4th/4pp/lib/*.4pp $(TARGET_DIR)/usr/share/4th/4pp/lib
|
||||
endef
|
||||
|
||||
define HOST_4TH_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/sources all \
|
||||
CFLAGS="$(HOST_CFLAGS) -DUNIX -fsigned-char"
|
||||
endef
|
||||
|
||||
define HOST_4TH_INSTALL_CMDS
|
||||
mkdir -p $(HOST_DIR)/bin
|
||||
mkdir -p $(HOST_DIR)/lib
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/sources mostlyinstall \
|
||||
BINARIES=$(HOST_DIR)/bin \
|
||||
LIBRARIES=$(HOST_DIR)/lib
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
8
package/4th/Config.in
Normal file
8
package/4th/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_4TH
|
||||
bool "4th"
|
||||
help
|
||||
4tH is a Forth compiler that can create bytecode,
|
||||
C-embeddable bytecode, standalone executables, but also
|
||||
works fine as a scripting language
|
||||
|
||||
https://thebeez.home.xs4all.nl/4tH/
|
||||
2942
package/Config.in
Normal file
2942
package/Config.in
Normal file
File diff suppressed because it is too large
Load Diff
139
package/Config.in.host
Normal file
139
package/Config.in.host
Normal file
@@ -0,0 +1,139 @@
|
||||
menu "Host utilities"
|
||||
|
||||
source "package/abootimg/Config.in.host"
|
||||
source "package/adsp-ldr/Config.in.host"
|
||||
source "package/aespipe/Config.in.host"
|
||||
source "package/agent-proxy/Config.in.host"
|
||||
source "package/amlogic-boot-fip/Config.in.host"
|
||||
source "package/andes-spi-burn/Config.in.host"
|
||||
source "package/android-tools/Config.in.host"
|
||||
source "package/arm-gnu-toolchain/Config.in.host"
|
||||
source "package/asn1c/Config.in.host"
|
||||
source "package/babeltrace2/Config.in.host"
|
||||
source "package/bmap-tools/Config.in.host"
|
||||
source "package/bmap-writer/Config.in.host"
|
||||
source "package/bootgen/Config.in.host"
|
||||
source "package/btrfs-progs/Config.in.host"
|
||||
source "package/ca-certificates/Config.in.host"
|
||||
source "package/casync-nano/Config.in.host"
|
||||
source "package/cbootimage/Config.in.host"
|
||||
source "package/checkpolicy/Config.in.host"
|
||||
source "package/checksec/Config.in.host"
|
||||
source "package/cmake/Config.in.host"
|
||||
source "package/composer/Config.in.host"
|
||||
source "package/cramfs/Config.in.host"
|
||||
source "package/crudini/Config.in.host"
|
||||
source "package/cryptsetup/Config.in.host"
|
||||
source "package/dbus-python/Config.in.host"
|
||||
source "package/delve/Config.in.host"
|
||||
source "package/depot-tools/Config.in.host"
|
||||
source "package/dfu-util/Config.in.host"
|
||||
source "package/dos2unix/Config.in.host"
|
||||
source "package/dosfstools/Config.in.host"
|
||||
source "package/doxygen/Config.in.host"
|
||||
source "package/dracut/Config.in.host"
|
||||
source "package/dtc/Config.in.host"
|
||||
source "package/e2fsprogs/Config.in.host"
|
||||
source "package/e2tools/Config.in.host"
|
||||
source "package/environment-setup/Config.in.host"
|
||||
source "package/erofs-utils/Config.in.host"
|
||||
source "package/eudev/Config.in.host"
|
||||
source "package/exfatprogs/Config.in.host"
|
||||
source "package/f2fs-tools/Config.in.host"
|
||||
source "package/faketime/Config.in.host"
|
||||
source "package/fatcat/Config.in.host"
|
||||
source "package/firmware-utils/Config.in.host"
|
||||
source "package/flutter-sdk-bin/Config.in.host"
|
||||
source "package/fwup/Config.in.host"
|
||||
source "package/genext2fs/Config.in.host"
|
||||
source "package/genimage/Config.in.host"
|
||||
source "package/genpart/Config.in.host"
|
||||
source "package/gnupg/Config.in.host"
|
||||
source "package/gnupg2/Config.in.host"
|
||||
source "package/go/Config.in.host"
|
||||
source "package/gobject-introspection/Config.in.host"
|
||||
source "package/google-breakpad/Config.in.host"
|
||||
source "package/gptfdisk/Config.in.host"
|
||||
source "package/hare/Config.in.host"
|
||||
source "package/imagemagick/Config.in.host"
|
||||
source "package/imx-mkimage/Config.in.host"
|
||||
source "package/imx-usb-loader/Config.in.host"
|
||||
source "package/jh71xx-tools/Config.in.host"
|
||||
source "package/jq/Config.in.host"
|
||||
source "package/kmod/Config.in.host"
|
||||
source "package/libp11/Config.in.host"
|
||||
source "package/llvm-project/lld/Config.in.host"
|
||||
source "package/lpc3250loader/Config.in.host"
|
||||
source "package/lttng-babeltrace/Config.in.host"
|
||||
source "package/lzma-alone/Config.in.host"
|
||||
source "package/mender-artifact/Config.in.host"
|
||||
source "package/meson-tools/Config.in.host"
|
||||
source "package/mfgtools/Config.in.host"
|
||||
source "package/microchip-hss-payload-generator/Config.in.host"
|
||||
source "package/minisign/Config.in.host"
|
||||
source "package/mkpasswd/Config.in.host"
|
||||
source "package/moby-buildkit/Config.in.host"
|
||||
source "package/mosquitto/Config.in.host"
|
||||
source "package/mtd/Config.in.host"
|
||||
source "package/mtools/Config.in.host"
|
||||
source "package/mxsldr/Config.in.host"
|
||||
source "package/nodejs/Config.in.host"
|
||||
source "package/odb/Config.in.host"
|
||||
source "package/omap-u-boot-utils/Config.in.host"
|
||||
source "package/openocd/Config.in.host"
|
||||
source "package/opkg-utils/Config.in.host"
|
||||
source "package/pahole/Config.in.host"
|
||||
source "package/parted/Config.in.host"
|
||||
source "package/patchelf/Config.in.host"
|
||||
source "package/pigz/Config.in.host"
|
||||
source "package/pkgconf/Config.in.host"
|
||||
source "package/pru-software-support/Config.in.host"
|
||||
source "package/pwgen/Config.in.host"
|
||||
source "package/python-cython/Config.in.host"
|
||||
source "package/python-greenlet/Config.in.host"
|
||||
source "package/python-iniparse/Config.in.host"
|
||||
source "package/python-kflash/Config.in.host"
|
||||
source "package/python-lxml/Config.in.host"
|
||||
source "package/python-pyyaml/Config.in.host"
|
||||
source "package/python-six/Config.in.host"
|
||||
source "package/python-uswid/Config.in.host"
|
||||
source "package/python-xlrd/Config.in.host"
|
||||
source "package/python3/Config.in.host"
|
||||
source "package/qemu/Config.in.host"
|
||||
source "package/qoriq-rcw/Config.in.host"
|
||||
source "package/qt6/Config.in.host"
|
||||
source "package/raspberrypi-usbboot/Config.in.host"
|
||||
source "package/rauc/Config.in.host"
|
||||
source "package/riscv-isa-sim/Config.in.host"
|
||||
source "package/runc/Config.in.host"
|
||||
source "package/rustc/Config.in.host"
|
||||
source "package/s6-rc/Config.in.host"
|
||||
source "package/sam-ba/Config.in.host"
|
||||
source "package/sdbus-cpp/Config.in.host"
|
||||
source "package/sdbusplus/Config.in.host"
|
||||
source "package/sentry-cli/Config.in.host"
|
||||
source "package/sigsum-go/Config.in.host"
|
||||
source "package/skopeo/Config.in.host"
|
||||
source "package/sloci-image/Config.in.host"
|
||||
source "package/snagboot/Config.in.host"
|
||||
source "package/squashfs/Config.in.host"
|
||||
source "package/sunxi-tools/Config.in.host"
|
||||
source "package/swig/Config.in.host"
|
||||
source "package/swtpm/Config.in.host"
|
||||
source "package/swugenerator/Config.in.host"
|
||||
source "package/systemd/Config.in.host"
|
||||
source "package/tegrarcm/Config.in.host"
|
||||
source "package/ti-cgt-pru/Config.in.host"
|
||||
source "package/tipidee/Config.in.host"
|
||||
source "package/uboot-tools/Config.in.host"
|
||||
source "package/ugetty/Config.in.host"
|
||||
source "package/util-linux/Config.in.host"
|
||||
source "package/utp_com/Config.in.host"
|
||||
source "package/uuu/Config.in.host"
|
||||
source "package/vboot-utils/Config.in.host"
|
||||
source "package/xfsprogs/Config.in.host"
|
||||
source "package/xorriso/Config.in.host"
|
||||
source "package/zip/Config.in.host"
|
||||
source "package/zstd/Config.in.host"
|
||||
|
||||
endmenu
|
||||
477
package/Makefile.in
Normal file
477
package/Makefile.in
Normal file
@@ -0,0 +1,477 @@
|
||||
ifndef MAKE
|
||||
MAKE := make
|
||||
endif
|
||||
ifndef HOSTMAKE
|
||||
HOSTMAKE = $(MAKE)
|
||||
endif
|
||||
HOSTMAKE := $(shell which $(HOSTMAKE) || type -p $(HOSTMAKE) || echo make)
|
||||
|
||||
# If BR2_JLEVEL is 0, scale the maximum concurrency with the number of
|
||||
# CPUs. An additional job is used in order to keep processors busy
|
||||
# while waiting on I/O.
|
||||
# If the number of processors is not available, assume one.
|
||||
ifeq ($(BR2_JLEVEL),0)
|
||||
PARALLEL_JOBS := $(shell echo \
|
||||
$$((1 + `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`)))
|
||||
else
|
||||
PARALLEL_JOBS := $(BR2_JLEVEL)
|
||||
endif
|
||||
|
||||
# Only build one job at a time, *and* to not randomise goals and
|
||||
# prerequisites ordering in make 4.4+
|
||||
MAKE1 := $(HOSTMAKE) -j1 $(if $(findstring --shuffle,$(MAKEFLAGS)),--shuffle=none)
|
||||
override MAKE = $(HOSTMAKE) \
|
||||
$(if $(findstring j,$(filter-out --%,$(MAKEFLAGS))),,-j$(PARALLEL_JOBS))
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||
TARGET_VENDOR = $(call qstrip,$(BR2_TOOLCHAIN_BUILDROOT_VENDOR))
|
||||
else
|
||||
TARGET_VENDOR = buildroot
|
||||
endif
|
||||
|
||||
# Sanity checks
|
||||
ifeq ($(TARGET_VENDOR),)
|
||||
$(error BR2_TOOLCHAIN_BUILDROOT_VENDOR is not allowed to be empty)
|
||||
endif
|
||||
ifeq ($(TARGET_VENDOR),unknown)
|
||||
$(error BR2_TOOLCHAIN_BUILDROOT_VENDOR cannot be 'unknown'. \
|
||||
It might be confused with the native toolchain)
|
||||
endif
|
||||
|
||||
# Compute GNU_TARGET_NAME
|
||||
# FDPIC on ARM requires a special target name: it has no OS field and must
|
||||
# use the suffix -uclinuxfdpiceabi.
|
||||
ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_BINFMT_FDPIC),y:y)
|
||||
GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-uclinuxfdpiceabi
|
||||
else
|
||||
GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI)
|
||||
endif
|
||||
|
||||
# FLAT binary format needs uclinux, except RISC-V which needs the
|
||||
# regular linux name.
|
||||
ifeq ($(BR2_BINFMT_FLAT):$(BR2_riscv),y:)
|
||||
TARGET_OS = uclinux
|
||||
else
|
||||
TARGET_OS = linux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
LIBC = uclibc
|
||||
else ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
LIBC = musl
|
||||
else ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
|
||||
LIBC = gnu
|
||||
else ifeq ($(BR_BUILDING),y)
|
||||
# This happens if there is a bug in Buildroot that allows an
|
||||
# architecture configuration that isn't supported by any library.
|
||||
$(error No C library enabled, this is not possible.)
|
||||
endif
|
||||
|
||||
# The ABI suffix is a bit special on ARM, as it needs to be
|
||||
# -uclibcgnueabi for uClibc EABI, and -gnueabi for glibc EABI.
|
||||
# This means that the LIBC and ABI aren't strictly orthogonal,
|
||||
# which explains why we need the test on LIBC below.
|
||||
ifeq ($(BR2_arm)$(BR2_armeb),y)
|
||||
ifeq ($(LIBC),uclibc)
|
||||
ABI = gnueabi
|
||||
else
|
||||
ABI = eabi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ARM_EABIHF),y)
|
||||
ABI := $(ABI)hf
|
||||
endif
|
||||
endif
|
||||
|
||||
# LoongArch Float ABI suffixes
|
||||
ifeq ($(BR2_LOONGARCH_ABI_LP64F),y)
|
||||
ABI = f32
|
||||
endif
|
||||
ifeq ($(BR2_LOONGARCH_ABI_LP64S),y)
|
||||
ABI = sf
|
||||
endif
|
||||
|
||||
# For FSL PowerPC there's SPE
|
||||
ifeq ($(BR2_POWERPC_CPU_HAS_SPE),y)
|
||||
ABI = spe
|
||||
# MPC8540s are e500v1 with single precision FP
|
||||
ifeq ($(BR2_powerpc_8540),y)
|
||||
TARGET_ABI += -mabi=spe -mfloat-gprs=single -Wa,-me500
|
||||
endif
|
||||
ifeq ($(BR2_powerpc_8548),y)
|
||||
TARGET_ABI += -mabi=spe -mfloat-gprs=double -Wa,-me500x2
|
||||
endif
|
||||
ifeq ($(BR2_powerpc_e500mc),y)
|
||||
TARGET_ABI += -mabi=spe -mfloat-gprs=double -Wa,-me500mc
|
||||
endif
|
||||
endif
|
||||
|
||||
# Use longcalls option for Xtensa globally.
|
||||
# The 'longcalls' option allows calls across a greater range of addresses,
|
||||
# and is required for some packages. While this option can degrade both
|
||||
# code size and performance, the linker can usually optimize away the
|
||||
# overhead when a call ends up within a certain range.
|
||||
#
|
||||
# Use auto-litpools for Xtensa globally.
|
||||
# Collecting literals into separate section can be advantageous if that
|
||||
# section is placed into DTCM at link time. This is applicable for code
|
||||
# running on bare metal, but makes no sense under linux, where userspace
|
||||
# is isolated from the physical memory details. OTOH placing literals into
|
||||
# separate section breaks build of huge source files, because l32r
|
||||
# instruction can only access literals in 256 KBytes range.
|
||||
#
|
||||
ifeq ($(BR2_xtensa),y)
|
||||
TARGET_ABI += -mlongcalls -mauto-litpools
|
||||
endif
|
||||
|
||||
STAGING_SUBDIR = $(GNU_TARGET_NAME)/sysroot
|
||||
STAGING_DIR = $(HOST_DIR)/$(STAGING_SUBDIR)
|
||||
|
||||
ifeq ($(BR2_OPTIMIZE_0),y)
|
||||
TARGET_OPTIMIZATION = -O0
|
||||
endif
|
||||
ifeq ($(BR2_OPTIMIZE_1),y)
|
||||
TARGET_OPTIMIZATION = -O1
|
||||
endif
|
||||
ifeq ($(BR2_OPTIMIZE_2),y)
|
||||
TARGET_OPTIMIZATION = -O2
|
||||
endif
|
||||
ifeq ($(BR2_OPTIMIZE_3),y)
|
||||
TARGET_OPTIMIZATION = -O3
|
||||
endif
|
||||
ifeq ($(BR2_OPTIMIZE_G),y)
|
||||
TARGET_OPTIMIZATION = -Og
|
||||
endif
|
||||
ifeq ($(BR2_OPTIMIZE_S),y)
|
||||
TARGET_OPTIMIZATION = -Os
|
||||
endif
|
||||
ifeq ($(BR2_OPTIMIZE_FAST),y)
|
||||
TARGET_OPTIMIZATION = -Ofast
|
||||
endif
|
||||
ifeq ($(BR2_ENABLE_DEBUG),)
|
||||
TARGET_DEBUGGING = -g0
|
||||
endif
|
||||
ifeq ($(BR2_DEBUG_1),y)
|
||||
TARGET_DEBUGGING = -g1
|
||||
endif
|
||||
ifeq ($(BR2_DEBUG_2),y)
|
||||
TARGET_DEBUGGING = -g2
|
||||
endif
|
||||
ifeq ($(BR2_DEBUG_3),y)
|
||||
TARGET_DEBUGGING = -g3
|
||||
endif
|
||||
|
||||
TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
|
||||
|
||||
# musl's dynamic loader doesn't support DT_TEXTREL, which results in a runtime
|
||||
# crash if it gets used. The "-z text" linker option issues a build-time error
|
||||
# when DT_TEXREL is used, so we capture the problem earlier.
|
||||
#
|
||||
# See also: https://www.openwall.com/lists/musl/2020/09/25/4
|
||||
#
|
||||
# NOTE: We're using "-ztext" instead of "-Wl,-z,text" here, because some
|
||||
# packages pass TARGET_LDFLAGS directly to ld rather than gcc, and ld doesn't
|
||||
# support -Wl,[...]. -z is supported by both gcc and clang, so it probably
|
||||
# won't cause us problems.
|
||||
#
|
||||
# We're using "-ztext" instead of "-z text" here, because some buildsystems
|
||||
# (like scons, for gpsd) will reorder and/or drop LDFLAGS, causing a lone
|
||||
# "-z" to be passed and the "text" keyword to be dropped otherwise. Both
|
||||
# gcc and ld supports that, so it probably won't cause us problems.
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL):$(BR2_STATIC_LIBS),y:)
|
||||
TARGET_LDFLAGS += -ztext
|
||||
endif
|
||||
|
||||
# By design, _FORTIFY_SOURCE requires gcc optimization to be enabled.
|
||||
# Therefore, we need to pass _FORTIFY_SOURCE and the optimization level
|
||||
# through the same mechanism, i.e currently through CFLAGS. Passing
|
||||
# _FORTIFY_SOURCE through the wrapper and the optimization level
|
||||
# through CFLAGS would not work, because CFLAGS are sometimes
|
||||
# ignored/overridden by packages, but the flags passed by the wrapper
|
||||
# are enforced: this would cause _FORTIFY_SOURCE to be used without any
|
||||
# optimization level, leading to a build / configure failure. So we keep
|
||||
# passing _FORTIFY_SOURCE and the optimization level both through CFLAGS.
|
||||
ifeq ($(BR2_FORTIFY_SOURCE_1),y)
|
||||
TARGET_HARDENED += -D_FORTIFY_SOURCE=1
|
||||
else ifeq ($(BR2_FORTIFY_SOURCE_2),y)
|
||||
TARGET_HARDENED += -D_FORTIFY_SOURCE=2
|
||||
else ifeq ($(BR2_FORTIFY_SOURCE_3),y)
|
||||
TARGET_HARDENED += -D_FORTIFY_SOURCE=3
|
||||
endif
|
||||
|
||||
TARGET_CPPFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||
ifeq ($(BR2_TIME_BITS_64),y)
|
||||
TARGET_CPPFLAGS += -D_TIME_BITS=64
|
||||
endif
|
||||
TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_HARDENED)
|
||||
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
||||
TARGET_FCFLAGS = $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
TARGET_CFLAGS += -fno-dwarf2-cfi-asm
|
||||
TARGET_CXXFLAGS += -fno-dwarf2-cfi-asm
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_BINFMT_FLAT),y)
|
||||
ifeq ($(BR2_riscv),y)
|
||||
TARGET_CFLAGS += -fPIC
|
||||
endif
|
||||
ELF2FLT_FLAGS = $(if $($(PKG)_FLAT_STACKSIZE),\
|
||||
-Wl$(comma)-elf2flt=-r -Wl$(comma)-elf2flt=-s$($(PKG)_FLAT_STACKSIZE),\
|
||||
-Wl$(comma)-elf2flt=-r)
|
||||
TARGET_CFLAGS += $(ELF2FLT_FLAGS)
|
||||
TARGET_CXXFLAGS += $(ELF2FLT_FLAGS)
|
||||
TARGET_FCFLAGS += $(ELF2FLT_FLAGS)
|
||||
TARGET_LDFLAGS += $(ELF2FLT_FLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||
TARGET_CROSS = $(HOST_DIR)/bin/$(GNU_TARGET_NAME)-
|
||||
else
|
||||
TARGET_CROSS = $(HOST_DIR)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
|
||||
endif
|
||||
|
||||
# gcc-4.7 and later ships with wrappers that will automatically pass
|
||||
# arguments to the binutils tools. Those are paths to necessary linker
|
||||
# plugins.
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),y)
|
||||
TARGET_GCC_WRAPPERS_PREFIX = gcc-
|
||||
endif
|
||||
|
||||
# Define TARGET_xx variables for all common binutils/gcc
|
||||
TARGET_AR = $(TARGET_CROSS)$(TARGET_GCC_WRAPPERS_PREFIX)ar
|
||||
TARGET_AS = $(TARGET_CROSS)as
|
||||
TARGET_CC = $(TARGET_CROSS)gcc
|
||||
TARGET_CPP = $(TARGET_CROSS)cpp
|
||||
TARGET_CXX = $(TARGET_CROSS)g++
|
||||
TARGET_FC = $(TARGET_CROSS)gfortran
|
||||
TARGET_LD = $(TARGET_CROSS)ld
|
||||
TARGET_NM = $(TARGET_CROSS)$(TARGET_GCC_WRAPPERS_PREFIX)nm
|
||||
TARGET_RANLIB = $(TARGET_CROSS)$(TARGET_GCC_WRAPPERS_PREFIX)ranlib
|
||||
TARGET_READELF = $(TARGET_CROSS)readelf
|
||||
TARGET_OBJCOPY = $(TARGET_CROSS)objcopy
|
||||
TARGET_OBJDUMP = $(TARGET_CROSS)objdump
|
||||
|
||||
ifeq ($(BR2_STRIP_strip),y)
|
||||
STRIP_STRIP_DEBUG := --strip-debug
|
||||
TARGET_STRIP = $(TARGET_CROSS)strip
|
||||
STRIPCMD = $(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
||||
else
|
||||
TARGET_STRIP = /bin/true
|
||||
STRIPCMD = $(TARGET_STRIP)
|
||||
endif
|
||||
INSTALL := $(shell which install || type -p install)
|
||||
UNZIP := $(shell which unzip || type -p unzip) -q
|
||||
|
||||
APPLY_PATCHES = TAR="$(TAR)" PATH=$(HOST_DIR)/bin:$$PATH support/scripts/apply-patches.sh $(if $(QUIET),-s)
|
||||
|
||||
HOST_CPPFLAGS = -I$(HOST_DIR)/include
|
||||
HOST_CFLAGS ?= -O2
|
||||
HOST_CFLAGS += $(HOST_CPPFLAGS)
|
||||
HOST_CXXFLAGS += $(HOST_CFLAGS)
|
||||
HOST_LDFLAGS += -L$(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib
|
||||
|
||||
# host-intltool should be executed with the system perl, so we save
|
||||
# the path to the system perl, before a host-perl built by Buildroot
|
||||
# might get installed into $(HOST_DIR)/bin and therefore appears
|
||||
# in our PATH. This system perl will be used as INTLTOOL_PERL.
|
||||
export PERL=$(shell which perl)
|
||||
|
||||
# host-intltool needs libxml-parser-perl, which Buildroot installs in
|
||||
# $(HOST_DIR)/lib/perl, so we must make sure that the system perl
|
||||
# finds this perl module by exporting the proper value for PERL5LIB.
|
||||
export PERL5LIB=$(HOST_DIR)/lib/perl
|
||||
|
||||
TARGET_MAKE_ENV = \
|
||||
GIT_DIR=. \
|
||||
PATH=$(BR_PATH)
|
||||
|
||||
TARGET_CONFIGURE_OPTS = \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
AR="$(TARGET_AR)" \
|
||||
AS="$(TARGET_AS)" \
|
||||
LD="$(TARGET_LD)" \
|
||||
NM="$(TARGET_NM)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
GCC="$(TARGET_CC)" \
|
||||
CPP="$(TARGET_CPP)" \
|
||||
CXX="$(TARGET_CXX)" \
|
||||
FC="$(TARGET_FC)" \
|
||||
F77="$(TARGET_FC)" \
|
||||
RANLIB="$(TARGET_RANLIB)" \
|
||||
READELF="$(TARGET_READELF)" \
|
||||
STRIP="$(TARGET_STRIP)" \
|
||||
OBJCOPY="$(TARGET_OBJCOPY)" \
|
||||
OBJDUMP="$(TARGET_OBJDUMP)" \
|
||||
AR_FOR_BUILD="$(HOSTAR)" \
|
||||
AS_FOR_BUILD="$(HOSTAS)" \
|
||||
CC_FOR_BUILD="$(HOSTCC)" \
|
||||
GCC_FOR_BUILD="$(HOSTCC)" \
|
||||
CXX_FOR_BUILD="$(HOSTCXX)" \
|
||||
LD_FOR_BUILD="$(HOSTLD)" \
|
||||
CPPFLAGS_FOR_BUILD="$(HOST_CPPFLAGS)" \
|
||||
CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
|
||||
CXXFLAGS_FOR_BUILD="$(HOST_CXXFLAGS)" \
|
||||
LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
|
||||
FCFLAGS_FOR_BUILD="$(HOST_FCFLAGS)" \
|
||||
DEFAULT_ASSEMBLER="$(TARGET_AS)" \
|
||||
DEFAULT_LINKER="$(TARGET_LD)" \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CXXFLAGS="$(TARGET_CXXFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
FCFLAGS="$(TARGET_FCFLAGS)" \
|
||||
FFLAGS="$(TARGET_FCFLAGS)" \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
STAGING_DIR="$(STAGING_DIR)" \
|
||||
INTLTOOL_PERL=$(PERL)
|
||||
|
||||
|
||||
HOST_MAKE_ENV = \
|
||||
GIT_DIR=. \
|
||||
PATH=$(BR_PATH) \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_SYSROOT_DIR="/" \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/share/pkgconfig"
|
||||
|
||||
HOST_CONFIGURE_OPTS = \
|
||||
$(HOST_MAKE_ENV) \
|
||||
AR="$(HOSTAR)" \
|
||||
AS="$(HOSTAS)" \
|
||||
LD="$(HOSTLD)" \
|
||||
NM="$(HOSTNM)" \
|
||||
CC="$(HOSTCC)" \
|
||||
GCC="$(HOSTCC)" \
|
||||
CXX="$(HOSTCXX)" \
|
||||
CPP="$(HOSTCPP)" \
|
||||
OBJCOPY="$(HOSTOBJCOPY)" \
|
||||
RANLIB="$(HOSTRANLIB)" \
|
||||
CPPFLAGS="$(HOST_CPPFLAGS)" \
|
||||
CFLAGS="$(HOST_CFLAGS)" \
|
||||
CXXFLAGS="$(HOST_CXXFLAGS)" \
|
||||
LDFLAGS="$(HOST_LDFLAGS)" \
|
||||
INTLTOOL_PERL=$(PERL)
|
||||
|
||||
# This is extra environment we can not export ourselves (eg. because some
|
||||
# packages use that variable internally, eg. uboot), so we have to
|
||||
# explicitly pass it to user-supplied external hooks (eg. post-build,
|
||||
# post-images)
|
||||
EXTRA_ENV = \
|
||||
PATH=$(BR_PATH) \
|
||||
BR2_DL_DIR=$(BR2_DL_DIR) \
|
||||
BUILD_DIR=$(BUILD_DIR) \
|
||||
CONFIG_DIR=$(CONFIG_DIR) \
|
||||
O=$(CANONICAL_O) \
|
||||
PARALLEL_JOBS=$(PARALLEL_JOBS)
|
||||
|
||||
################################################################################
|
||||
# settings we need to pass to configure
|
||||
|
||||
# does unaligned access trap?
|
||||
BR2_AC_CV_TRAP_CHECK = ac_cv_lbl_unaligned_fail=yes
|
||||
ifeq ($(BR2_i386),y)
|
||||
BR2_AC_CV_TRAP_CHECK = ac_cv_lbl_unaligned_fail=no
|
||||
endif
|
||||
ifeq ($(BR2_x86_64),y)
|
||||
BR2_AC_CV_TRAP_CHECK = ac_cv_lbl_unaligned_fail=no
|
||||
endif
|
||||
ifeq ($(BR2_m68k),y)
|
||||
BR2_AC_CV_TRAP_CHECK = ac_cv_lbl_unaligned_fail=no
|
||||
endif
|
||||
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
|
||||
BR2_AC_CV_TRAP_CHECK = ac_cv_lbl_unaligned_fail=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ENDIAN),"BIG")
|
||||
BR2_AC_CV_C_BIGENDIAN = ac_cv_c_bigendian=yes
|
||||
else
|
||||
BR2_AC_CV_C_BIGENDIAN = ac_cv_c_bigendian=no
|
||||
endif
|
||||
|
||||
# AM_GNU_GETTEXT misdetects musl gettext support.
|
||||
# musl currently implements api level 1 and 2 (basic + ngettext)
|
||||
# http://www.openwall.com/lists/musl/2015/04/16/3
|
||||
#
|
||||
# These autoconf variables should only be pre-seeded when the minimal
|
||||
# gettext implementation of musl is used. When the full blown
|
||||
# implementation provided by gettext libintl is used, auto-detection
|
||||
# works fine, and pre-seeding those values is actually wrong.
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL):$(BR2_PACKAGE_GETTEXT_PROVIDES_LIBINTL),y:)
|
||||
BR2_GT_CV_FUNC_GNUGETTEXT_LIBC = \
|
||||
gt_cv_func_gnugettext1_libc=yes \
|
||||
gt_cv_func_gnugettext2_libc=yes
|
||||
endif
|
||||
|
||||
TARGET_CONFIGURE_ARGS = \
|
||||
$(BR2_AC_CV_TRAP_CHECK) \
|
||||
ac_cv_func_mmap_fixed_mapped=yes \
|
||||
ac_cv_func_memcmp_working=yes \
|
||||
ac_cv_have_decl_malloc=yes \
|
||||
gl_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_calloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes \
|
||||
lt_cv_sys_lib_search_path_spec="" \
|
||||
$(BR2_AC_CV_C_BIGENDIAN) \
|
||||
$(BR2_GT_CV_FUNC_GNUGETTEXT_LIBC)
|
||||
|
||||
################################################################################
|
||||
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
NLS_OPTS = --enable-nls
|
||||
TARGET_NLS_DEPENDENCIES = host-gettext
|
||||
ifeq ($(BR2_PACKAGE_GETTEXT_PROVIDES_LIBINTL),y)
|
||||
TARGET_NLS_DEPENDENCIES += gettext
|
||||
TARGET_NLS_LIBS += -lintl
|
||||
endif
|
||||
else
|
||||
NLS_OPTS = --disable-nls
|
||||
endif
|
||||
|
||||
# We need anything that is invalid. Traditionally, we'd have used 'false' (and
|
||||
# we did so in the past). However, that breaks libtool for packages that have
|
||||
# optional C++ support (e.g. gnutls), because libtool will *require* a *valid*
|
||||
# C++ preprocessor as long as CXX is not 'no'.
|
||||
# Now, whether we use 'no' or 'false' for CXX as the same side effect: it is an
|
||||
# invalid C++ compiler, and thus will cause detection of C++ to fail (which is
|
||||
# expected and what we want), while at the same time taming libtool into
|
||||
# silence.
|
||||
ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
TARGET_CONFIGURE_OPTS += CXX=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
SHARED_STATIC_LIBS_OPTS = --enable-static --disable-shared
|
||||
TARGET_CFLAGS += -static
|
||||
TARGET_CXXFLAGS += -static
|
||||
TARGET_FCFLAGS += -static
|
||||
TARGET_LDFLAGS += -static
|
||||
else ifeq ($(BR2_SHARED_LIBS),y)
|
||||
SHARED_STATIC_LIBS_OPTS = --disable-static --enable-shared
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
SHARED_STATIC_LIBS_OPTS = --enable-static --enable-shared
|
||||
endif
|
||||
|
||||
# Used by our binutils patches.
|
||||
export BR_COMPILER_PARANOID_UNSAFE_PATH=enabled
|
||||
|
||||
include package/pkg-download.mk
|
||||
include package/pkg-autotools.mk
|
||||
include package/pkg-cmake.mk
|
||||
include package/pkg-luarocks.mk
|
||||
include package/pkg-perl.mk
|
||||
include package/pkg-python.mk
|
||||
include package/pkg-virtual.mk
|
||||
include package/pkg-generic.mk
|
||||
include package/pkg-kconfig.mk
|
||||
include package/pkg-rebar.mk
|
||||
include package/pkg-kernel-module.mk
|
||||
include package/pkg-waf.mk
|
||||
include package/pkg-golang.mk
|
||||
include package/pkg-meson.mk
|
||||
include package/pkg-qmake.mk
|
||||
include package/pkg-cargo.mk
|
||||
include package/pkg-hare.mk
|
||||
13
package/a10disp/Config.in
Normal file
13
package/a10disp/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_A10DISP
|
||||
bool "a10disp"
|
||||
depends on BR2_arm
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
Program to change the display mode of Allwinner ARM SOCs
|
||||
running the linux-sunxi kernel (and not the mainline kernel.)
|
||||
|
||||
http://github.com/hglm/a10disp
|
||||
|
||||
comment "a10disp needs a Linux kernel to be built"
|
||||
depends on BR2_arm
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
3
package/a10disp/a10disp.hash
Normal file
3
package/a10disp/a10disp.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 5077405030e8f97a1edd4b86d469466abbc4d32b4a4609e58459347fcd1ba35b a10disp-0.6.1.tar.gz
|
||||
sha256 ddf849966f57fee8f9675f5a3c7791353d1cba71695cd58016212fc236bbdbee a10disp.c
|
||||
23
package/a10disp/a10disp.mk
Normal file
23
package/a10disp/a10disp.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# a10disp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
A10DISP_VERSION = 0.6.1
|
||||
A10DISP_SITE = $(call github,hglm,a10disp,v$(A10DISP_VERSION))
|
||||
A10DISP_LICENSE = MIT
|
||||
A10DISP_LICENSE_FILES = a10disp.c
|
||||
|
||||
A10DISP_DEPENDENCIES = linux
|
||||
|
||||
define A10DISP_BUILD_CMDS
|
||||
cp -f $(LINUX_DIR)/include/video/sunxi_disp_ioctl.h $(@D)/
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(@D)/a10disp.c -o $(@D)/a10disp
|
||||
endef
|
||||
|
||||
define A10DISP_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/a10disp $(TARGET_DIR)/usr/bin/a10disp
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
9
package/aardvark-dns/Config.in
Normal file
9
package/aardvark-dns/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_AARDVARK_DNS
|
||||
bool "aardvark-dns"
|
||||
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_HOST_RUSTC
|
||||
help
|
||||
Authoritative dns server for A/AAAA container records.
|
||||
Forwards other request to host's /etc/resolv.conf
|
||||
|
||||
https://github.com/containers/aardvark-dns/
|
||||
3
package/aardvark-dns/aardvark-dns.hash
Normal file
3
package/aardvark-dns/aardvark-dns.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 4b22fb6586f84805b9170d5514b2070f3a090a88c0669a831c7e2a86dd150f17 aardvark-dns-v1.17.1-git4-cargo6.tar.gz
|
||||
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
||||
17
package/aardvark-dns/aardvark-dns.mk
Normal file
17
package/aardvark-dns/aardvark-dns.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
################################################################################
|
||||
#
|
||||
# aardvark-dns
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# When updating the version here, also update netavark in lockstep
|
||||
AARDVARK_DNS_VERSION = v1.17.1
|
||||
AARDVARK_DNS_SITE = https://github.com/containers/aardvark-dns
|
||||
AARDVARK_DNS_SITE_METHOD = git
|
||||
|
||||
AARDVARK_DNS_LICENSE = Apache-2.0
|
||||
AARDVARK_DNS_LICENSE_FILES = LICENSE
|
||||
AARDVARK_DNS_CPE_ID_VENDOR = containers
|
||||
AARDVARK_DNS_CPE_ID_VERSION = $(subst v,,$(AARDVARK_DNS_VERSION))
|
||||
|
||||
$(eval $(cargo-package))
|
||||
10
package/abootimg/Config.in
Normal file
10
package/abootimg/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_ABOOTIMG
|
||||
bool "abootimg"
|
||||
depends on BR2_USE_MMU # libblkid
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
|
||||
help
|
||||
Tool to manipulate Android Boot Images, either on files
|
||||
or directly on /dev block devices.
|
||||
|
||||
https://gitlab.com/ajs124/abootimg
|
||||
8
package/abootimg/Config.in.host
Normal file
8
package/abootimg/Config.in.host
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_HOST_ABOOTIMG
|
||||
bool "host abootimg"
|
||||
select BR2_PACKAGE_HOST_UTIL_LINUX
|
||||
help
|
||||
Tool to manipulate Android Boot Images, either on files
|
||||
or directly on /dev block devices.
|
||||
|
||||
https://github.com/ggrandou/abootimg
|
||||
3
package/abootimg/abootimg.hash
Normal file
3
package/abootimg/abootimg.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 a87493a268b5043974a433545b073730ca88cbc58d3c7086da291ec0c082d8bc abootimg-1ebeb393252ab5aeed62e34bc439b6728444f06e-git4.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
|
||||
34
package/abootimg/abootimg.mk
Normal file
34
package/abootimg/abootimg.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# abootimg
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ABOOTIMG_VERSION = 1ebeb393252ab5aeed62e34bc439b6728444f06e
|
||||
ABOOTIMG_SITE = https://gitlab.com/ajs124/abootimg.git
|
||||
ABOOTIMG_SITE_METHOD = git
|
||||
ABOOTIMG_LICENSE = GPL-2.0+
|
||||
ABOOTIMG_LICENSE_FILES = LICENSE
|
||||
|
||||
# depends on libblkid from util-linux
|
||||
ABOOTIMG_DEPENDENCIES = util-linux
|
||||
HOST_ABOOTIMG_DEPENDENCIES = host-util-linux
|
||||
|
||||
define ABOOTIMG_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define ABOOTIMG_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 $(@D)/abootimg $(TARGET_DIR)/usr/bin/abootimg
|
||||
endef
|
||||
|
||||
define HOST_ABOOTIMG_BUILD_CMDS
|
||||
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_ABOOTIMG_INSTALL_CMDS
|
||||
$(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/bin/abootimg
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
16
package/ace/Config.in
Normal file
16
package/ace/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_ACE
|
||||
bool "ace"
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
|
||||
help
|
||||
The ADAPTIVE Communication Environment (ACE(TM))
|
||||
An OO Network Programming Toolkit in C++.
|
||||
|
||||
http://www.dre.vanderbilt.edu/~schmidt/ACE.html
|
||||
|
||||
comment "ACE needs a glibc toolchain, dynamic library, C++, gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || BR2_STATIC_LIBS || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
6
package/ace/ace.hash
Normal file
6
package/ace/ace.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://download.dre.vanderbilt.edu/previous_versions/ACE-7.1.1.tar.bz2.md5:
|
||||
md5 6c86ec6c7879703783b9749d5409a67f ACE-7.1.1.tar.bz2
|
||||
|
||||
# Locally Computed:
|
||||
sha256 fe5fdeab1dddf4fdd99f73c59420886cf61ca2ce92adf2cc6b612b752986df62 ACE-7.1.1.tar.bz2
|
||||
sha256 687bf9d16119e0caf6fb5c18214928fd6ea0da10df91e906255b7613af8061d8 COPYING
|
||||
75
package/ace/ace.mk
Normal file
75
package/ace/ace.mk
Normal file
@@ -0,0 +1,75 @@
|
||||
################################################################################
|
||||
#
|
||||
# ace
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ACE_VERSION = 7.1.1
|
||||
ACE_SOURCE = ACE-$(ACE_VERSION).tar.bz2
|
||||
ACE_SITE = http://download.dre.vanderbilt.edu/previous_versions
|
||||
ACE_LICENSE = DOC
|
||||
ACE_LICENSE_FILES = COPYING
|
||||
ACE_INSTALL_STAGING = YES
|
||||
ACE_CPE_ID_VENDOR = vanderbilt
|
||||
ACE_CPE_ID_PRODUCT = adaptive_communication_environment
|
||||
|
||||
# Note: We are excluding examples, apps and tests
|
||||
# Only compiling ACE libraries (no TAO)
|
||||
ACE_LIBRARIES = ace ACEXML Kokyu netsvcs protocols/ace
|
||||
|
||||
ACE_CPPFLAGS = $(TARGET_CPPFLAGS) -std=c++14
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101915),y)
|
||||
ACE_CPPFLAGS += -O0
|
||||
endif
|
||||
|
||||
# ACE uses DEFFLAGS as C++ pre-processor flags, and CCFLAGS as the C++ flags.
|
||||
# Ace passes the pre-processor flags after the C++ flags, so we pass our
|
||||
# C++ flags as pre-processor flags, via DEFFLAGS.
|
||||
ACE_MAKE_OPTS = \
|
||||
ACE_ROOT="$(@D)" \
|
||||
DEFFLAGS="$(ACE_CPPFLAGS)"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
ACE_LIBRARIES += ace/SSL
|
||||
ACE_DEPENDENCIES += openssl
|
||||
define ACE_CONFIGURE_SSL
|
||||
echo "ssl = 1" >> $(@D)/include/makeinclude/platform_macros.GNU
|
||||
endef
|
||||
endif
|
||||
|
||||
# configure the target build
|
||||
# refer: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix
|
||||
define ACE_CONFIGURE_CMDS
|
||||
# create a config file
|
||||
echo ' #include "ace/config-linux.h" ' >> $(@D)/ace/config.h
|
||||
|
||||
# Create platform/compiler-specific Makefile configurations
|
||||
$(INSTALL) -m 0644 package/ace/platform_macros.GNU $(@D)/include/makeinclude/
|
||||
|
||||
$(ACE_CONFIGURE_SSL)
|
||||
endef
|
||||
|
||||
define ACE_BUILD_CMDS
|
||||
$(foreach lib,$(ACE_LIBRARIES), \
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$(lib) \
|
||||
$(ACE_MAKE_OPTS) all
|
||||
)
|
||||
endef
|
||||
|
||||
define ACE_LIBRARIES_INSTALL
|
||||
mkdir -p $(1)/usr/share/ace
|
||||
$(foreach lib,$(ACE_LIBRARIES), \
|
||||
$(MAKE) -C $(@D)/$(lib) $(ACE_MAKE_OPTS) DESTDIR=$(1) install
|
||||
)
|
||||
endef
|
||||
|
||||
define ACE_INSTALL_TARGET_CMDS
|
||||
$(call ACE_LIBRARIES_INSTALL,$(TARGET_DIR))
|
||||
endef
|
||||
|
||||
define ACE_INSTALL_STAGING_CMDS
|
||||
$(call ACE_LIBRARIES_INSTALL,$(STAGING_DIR))
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
14
package/ace/platform_macros.GNU
Normal file
14
package/ace/platform_macros.GNU
Normal file
@@ -0,0 +1,14 @@
|
||||
# help: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix
|
||||
|
||||
# create a platform macros file
|
||||
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
|
||||
|
||||
# disable RPATH
|
||||
install_rpath = 0
|
||||
|
||||
# set the installation prefix
|
||||
INSTALL_PREFIX = /usr
|
||||
|
||||
# fix link error with ARM EABI tools
|
||||
# http://list.isis.vanderbilt.edu/pipermail/ace-users/2008-January/002742.html
|
||||
no_hidden_visibility = 1
|
||||
32
package/acl/0001-Build-with-old-GCC-versions.patch
Normal file
32
package/acl/0001-Build-with-old-GCC-versions.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From a42519dceef0493ece45538375ae1791313f16d3 Mon Sep 17 00:00:00 2001
|
||||
From: Hollis Blanchard <hollis_blanchard@mentor.com>
|
||||
Date: Mon, 30 Jul 2018 14:29:46 -0700
|
||||
Subject: [PATCH] Remove pragmas inside functions
|
||||
|
||||
GCC 4.4.7, as found in RHEL6, reports:
|
||||
libacl/acl_from_text.c:307: error: #pragma GCC diagnostic not allowed inside functions
|
||||
|
||||
Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
|
||||
---
|
||||
libacl/acl_from_text.c | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/libacl/acl_from_text.c b/libacl/acl_from_text.c
|
||||
index 09790c9..fb6bc07 100644
|
||||
--- a/libacl/acl_from_text.c
|
||||
+++ b/libacl/acl_from_text.c
|
||||
@@ -304,11 +304,8 @@ parse_acl_entry(const char **text_p, acl_t *acl_p)
|
||||
create_entry:
|
||||
if (acl_create_entry(acl_p, &entry_d) != 0)
|
||||
return -1;
|
||||
-#pragma GCC diagnostic push
|
||||
-#pragma GCC diagnostic ignored "-Waddress"
|
||||
if (acl_copy_entry(entry_d, int2ext(&entry_obj)) != 0)
|
||||
return -1;
|
||||
-#pragma GCC diagnostic pop
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
--
|
||||
2.13.0
|
||||
|
||||
10
package/acl/Config.in
Normal file
10
package/acl/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_ACL
|
||||
bool "acl"
|
||||
select BR2_PACKAGE_ATTR
|
||||
help
|
||||
POSIX Access Control Lists, which are used to define more
|
||||
fine-grained discretionary access rights for files and
|
||||
directories.
|
||||
This package also provides libacl.
|
||||
|
||||
https://savannah.nongnu.org/projects/acl
|
||||
6
package/acl/acl.hash
Normal file
6
package/acl/acl.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 e661131456d2708a01c614a0f400e11d7d1bfaeb6f3e74b75bb980b72f0161a3 acl-2.4.0.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 a45a845012742796534f7e91fe623262ccfb99460a2bd04015bd28d66fba95b8 doc/COPYING
|
||||
sha256 01b1f9f2c8ee648a7a596a1abe8aa4ed7899b1c9e5551bda06da6e422b04aa55 doc/COPYING.LGPL
|
||||
22
package/acl/acl.mk
Normal file
22
package/acl/acl.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# acl
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ACL_VERSION = 2.4.0
|
||||
ACL_SOURCE = acl-$(ACL_VERSION).tar.xz
|
||||
ACL_SITE = https://download.savannah.nongnu.org/releases/acl
|
||||
ACL_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
|
||||
ACL_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL
|
||||
ACL_CPE_ID_VALID = YES
|
||||
|
||||
ACL_DEPENDENCIES = attr
|
||||
HOST_ACL_DEPENDENCIES = host-attr
|
||||
|
||||
ACL_INSTALL_STAGING = YES
|
||||
|
||||
ACL_CONF_OPTS = --disable-nls
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
14
package/acpica/Config.in
Normal file
14
package/acpica/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_ACPICA
|
||||
bool "acpica"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
The ACPI Component Architecture (ACPICA) project provides an
|
||||
operating system (OS)-independent reference implementation
|
||||
of the Advanced Configuration and Power Interface
|
||||
Specification (ACPI).
|
||||
|
||||
https://www.acpica.org
|
||||
|
||||
comment "acpica needs a toolchain w/ threads, wchar"
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
3
package/acpica/acpica.hash
Normal file
3
package/acpica/acpica.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# locally computed hash
|
||||
sha256 486423245f8154dd0bb5ada9ae057d670210dcbbc4386e62aeccdf5bfdad5f19 acpica-unix-20251212.tar.gz
|
||||
sha256 dbfa87ff77586ffd8da1185981a9695e80db09b114b3b00c194a9bcc2292a95e source/include/acpi.h
|
||||
41
package/acpica/acpica.mk
Normal file
41
package/acpica/acpica.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# acpica
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ACPICA_VERSION = 20251212
|
||||
ACPICA_SOURCE = acpica-unix-$(ACPICA_VERSION).tar.gz
|
||||
ACPICA_SITE = https://github.com/acpica/acpica/releases/download/$(ACPICA_VERSION)
|
||||
ACPICA_LICENSE = BSD-3-Clause or GPL-2.0
|
||||
ACPICA_LICENSE_FILES = source/include/acpi.h
|
||||
ACPICA_DEPENDENCIES = host-bison host-flex
|
||||
HOST_ACPICA_DEPENDENCIES = host-bison host-flex
|
||||
|
||||
define ACPICA_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
ACPI_HOST=_LINUX CC="$(TARGET_CC)" \
|
||||
NOWERROR=TRUE \
|
||||
all
|
||||
endef
|
||||
|
||||
define HOST_ACPICA_BUILD_CMDS
|
||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
NOWERROR=TRUE \
|
||||
all
|
||||
endef
|
||||
|
||||
define ACPICA_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
DESTDIR="$(TARGET_DIR)" \
|
||||
INSTALLFLAGS=-m755 install
|
||||
endef
|
||||
|
||||
define HOST_ACPICA_INSTALL_CMDS
|
||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
PREFIX="$(HOST_DIR)" \
|
||||
INSTALLFLAGS=-m755 install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
20
package/acpid/0001-dont-use-isfdtype.patch
Normal file
20
package/acpid/0001-dont-use-isfdtype.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Partially roll back upstream commit 4711119089e1ad08dad206f4fded68f1972fdeed
|
||||
since released versions of uClibc don't support isfdtype().
|
||||
|
||||
Signed-off-by: Gustavo Zaarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura acpid-2.0.22.orig/sock.c acpid-2.0.22/sock.c
|
||||
--- acpid-2.0.22.orig/sock.c 2014-04-22 18:04:19.706841764 -0300
|
||||
+++ acpid-2.0.22/sock.c 2014-04-22 18:05:08.285479625 -0300
|
||||
@@ -53,7 +53,10 @@
|
||||
int
|
||||
is_socket(int fd)
|
||||
{
|
||||
- return (isfdtype(fd, S_IFSOCK) == 1);
|
||||
+ int v;
|
||||
+ socklen_t l = sizeof(int);
|
||||
+
|
||||
+ return (getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&v, &l) == 0);
|
||||
}
|
||||
|
||||
/* accept a new client connection */
|
||||
11
package/acpid/Config.in
Normal file
11
package/acpid/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_ACPID
|
||||
bool "acpid"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Advanced Configuration and Power Interface event daemon.
|
||||
|
||||
Acpid is designed to notify user-space programs of ACPI
|
||||
events, and allows you to configure specific actions for
|
||||
specific events.
|
||||
|
||||
http://sourceforge.net/projects/acpid2/
|
||||
53
package/acpid/S02acpid
Normal file
53
package/acpid/S02acpid
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON="acpid"
|
||||
EXEC="/usr/sbin/$DAEMON"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
ACPID_ARGS=""
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -p "$PIDFILE" -x "$EXEC" \
|
||||
-- -n $ACPID_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE" -x "$EXEC"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
# Give acpid time to send dying gasp to syslog
|
||||
sleep 1
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart)
|
||||
"$1";;
|
||||
reload)
|
||||
restart;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
7
package/acpid/acpid.hash
Normal file
7
package/acpid/acpid.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# From https://sourceforge.net/projects/acpid2/files/
|
||||
md5 988c2e3fd5ba0ea4492d3ba7273af295 acpid-2.0.34.tar.xz
|
||||
sha1 9322112027e4aa5a8d1b97ec64ef1d150ff0f4fc acpid-2.0.34.tar.xz
|
||||
|
||||
# Locally computed
|
||||
sha256 2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333 acpid-2.0.34.tar.xz
|
||||
sha256 91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad COPYING
|
||||
40
package/acpid/acpid.mk
Normal file
40
package/acpid/acpid.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# acpid
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ACPID_VERSION = 2.0.34
|
||||
ACPID_SOURCE = acpid-$(ACPID_VERSION).tar.xz
|
||||
ACPID_SITE = http://downloads.sourceforge.net/project/acpid2
|
||||
ACPID_LICENSE = GPL-2.0+
|
||||
ACPID_LICENSE_FILES = COPYING
|
||||
ACPID_CPE_ID_VENDOR = tedfelix
|
||||
ACPID_CPE_ID_PRODUCT = acpid2
|
||||
ACPID_SELINUX_MODULES = acpi
|
||||
|
||||
define ACPID_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 package/acpid/acpid.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/acpid.service
|
||||
endef
|
||||
|
||||
define ACPID_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/acpid/S02acpid \
|
||||
$(TARGET_DIR)/etc/init.d/S02acpid
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_INIT_SYSV)$(BR2_INIT_SYSTEMD),y)
|
||||
ACPID_POWEROFF_CMD = /sbin/shutdown -hP now
|
||||
else
|
||||
ACPID_POWEROFF_CMD = /sbin/poweroff
|
||||
endif
|
||||
|
||||
define ACPID_SET_EVENTS
|
||||
mkdir -p $(TARGET_DIR)/etc/acpi/events
|
||||
printf 'event=button[ /]power\naction=%s\n' '$(ACPID_POWEROFF_CMD)' \
|
||||
>$(TARGET_DIR)/etc/acpi/events/powerbtn
|
||||
endef
|
||||
|
||||
ACPID_POST_INSTALL_TARGET_HOOKS += ACPID_SET_EVENTS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
9
package/acpid/acpid.service
Normal file
9
package/acpid/acpid.service
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=ACPI event daemon
|
||||
Documentation=man:acpid(8)
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/acpid --foreground --netlink
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
14
package/acpitool/Config.in
Normal file
14
package/acpitool/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_ACPITOOL
|
||||
bool "acpitool"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
A small, convenient command-line ACPI client with a lot of
|
||||
features for Linux
|
||||
|
||||
http://acpitool.sourceforge.net
|
||||
|
||||
comment "acpitool needs a toolchain w/ threads, C++, dynamic library"
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !BR2_INSTALL_LIBSTDCPP
|
||||
3
package/acpitool/acpitool.hash
Normal file
3
package/acpitool/acpitool.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# locally computed hash
|
||||
sha256 004fb6cd43102918b6302cf537a2db7ceadda04aef2e0906ddf230f820dad34f acpitool-0.5.1.tar.bz2
|
||||
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
|
||||
13
package/acpitool/acpitool.mk
Normal file
13
package/acpitool/acpitool.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# acpitool
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ACPITOOL_VERSION = 0.5.1
|
||||
ACPITOOL_SOURCE = acpitool-$(ACPITOOL_VERSION).tar.bz2
|
||||
ACPITOOL_SITE = http://downloads.sourceforge.net/sourceforge/acpitool
|
||||
ACPITOOL_LICENSE = GPL-2.0+
|
||||
ACPITOOL_LICENSE_FILES = COPYING
|
||||
|
||||
$(eval $(autotools-package))
|
||||
21
package/acsccid/Config.in
Normal file
21
package/acsccid/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_ACSCCID
|
||||
bool "acsccid"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # pcsc-lite, libusb
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb, pcsc-lite
|
||||
depends on BR2_USE_MMU # pcsc-lite
|
||||
depends on !BR2_STATIC_LIBS # pcsc-lite
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_PCSC_LITE
|
||||
# Even though there is a --disable-libusb option, it has in
|
||||
# fact no effect, and acsccid really requires libusb.
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
acsccid is a PC/SC driver for Linux/Mac OS X and it supports
|
||||
ACS CCID smart card readers.
|
||||
|
||||
http://acsccid.sourceforge.net/
|
||||
|
||||
comment "acsccid needs a toolchain w/ threads, dynamic library, gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
6
package/acsccid/acsccid.hash
Normal file
6
package/acsccid/acsccid.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://sourceforge.net/projects/acsccid/files/acsccid/1.1.13/
|
||||
md5 80a017891884863feccf2221a656d6b8 acsccid-1.1.13.tar.bz2
|
||||
sha1 35be7ee00b331fd7b4f9b718d39e4f43a1fca5c1 acsccid-1.1.13.tar.bz2
|
||||
# Locally computed
|
||||
sha256 8b19aba103ec03c448b9d1b562c8322f8d2ff37cf21d4cb8b0cf522c5f385c9f acsccid-1.1.13.tar.bz2
|
||||
sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING
|
||||
20
package/acsccid/acsccid.mk
Normal file
20
package/acsccid/acsccid.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# acsccid
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ACSCCID_VERSION = 1.1.13
|
||||
ACSCCID_SOURCE = acsccid-$(ACSCCID_VERSION).tar.bz2
|
||||
ACSCCID_SITE = http://downloads.sourceforge.net/acsccid
|
||||
ACSCCID_LICENSE = LGPL-2.1+
|
||||
ACSCCID_LICENSE_FILES = COPYING
|
||||
ACSCCID_INSTALL_STAGING = YES
|
||||
ACSCCID_DEPENDENCIES = pcsc-lite host-flex host-pkgconf libusb
|
||||
ACSCCID_CONF_OPTS = --enable-usbdropdir=/usr/lib/pcsc/drivers
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
ACSCCID_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
8
package/adsp-ldr/Config.in.host
Normal file
8
package/adsp-ldr/Config.in.host
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_HOST_ADSP_LDR
|
||||
bool "host adsp-ldr"
|
||||
help
|
||||
adsp-ldr is a tool that generates boot streams to be
|
||||
loaded and executed by the boot ROM of Analog Devices
|
||||
ADSP-SCXXX SoCs
|
||||
|
||||
https://github.com/analogdevicesinc/adsp-ldr
|
||||
3
package/adsp-ldr/adsp-ldr.hash
Normal file
3
package/adsp-ldr/adsp-ldr.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 0f240aa5aad9300d8f4bc7ffd9cc1c53e01dfd6120de4f20f60d4d4176d99c10 adsp-ldr-v1.0.1.tar.xz
|
||||
sha256 c965604b194588b5799b75fcc11cc39be09220e580ae96e2a72848f042de56a7 LICENSE
|
||||
21
package/adsp-ldr/adsp-ldr.mk
Normal file
21
package/adsp-ldr/adsp-ldr.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# adsp-ldr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ADSP_LDR_VERSION = 1.0.1
|
||||
ADSP_LDR_SOURCE = adsp-ldr-v$(ADSP_LDR_VERSION).tar.xz
|
||||
ADSP_LDR_SITE = https://github.com/analogdevicesinc/adsp-ldr/releases/download/v$(ADSP_LDR_VERSION)
|
||||
ADSP_LDR_LICENSE = BSD-3-Clause
|
||||
ADSP_LDR_LICENSE_FILES = LICENSE
|
||||
HOST_ADSP_LDR_DEPENDENCIES = host-libusb
|
||||
|
||||
define HOST_ADSP_LDR_INSTALL_CMDS
|
||||
# The U-Boot Makefile expects ldr to be prefixed by $(CROSS_COMPILE),
|
||||
# hence the rename to $(TARGET_CROSS)ldr
|
||||
$(INSTALL) -m 755 -D $(@D)/buildroot-build/ldr \
|
||||
$(TARGET_CROSS)ldr
|
||||
endef
|
||||
|
||||
$(eval $(host-meson-package))
|
||||
10
package/adwaita-icon-theme/Config.in
Normal file
10
package/adwaita-icon-theme/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_ADWAITA_ICON_THEME
|
||||
bool "adwaita icon theme"
|
||||
depends on BR2_PACKAGE_LIBGTK3
|
||||
# host-libgtk3 -> host-librsvg -> host-pango -> host-harfbuzz
|
||||
depends on BR2_HOST_GCC_AT_LEAST_4_9
|
||||
help
|
||||
Adwaita icon theme
|
||||
|
||||
comment "adwaita icon theme needs host gcc >= 4.9"
|
||||
depends on !BR2_HOST_GCC_AT_LEAST_4_9
|
||||
6
package/adwaita-icon-theme/adwaita-icon-theme.hash
Normal file
6
package/adwaita-icon-theme/adwaita-icon-theme.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://download.gnome.org/sources/adwaita-icon-theme/3.27/adwaita-icon-theme-3.27.2.sha256sum
|
||||
sha256 a594e7440971f860cc61b1b8291be15ffc1b8dd06a9f11485a5a7faf189bcf6b adwaita-icon-theme-3.37.2.tar.xz
|
||||
# locally computed
|
||||
sha256 51f83b2b4e9ed2beebc9b8eed2ecad29314a58ed8c5184b22ad8f9df703d3ce5 COPYING
|
||||
sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 COPYING_LGPL
|
||||
sha256 207fe75c396c0ae197c57d42c727163428b6667d98cef3644e41c6f1afe1895f COPYING_CCBYSA3
|
||||
16
package/adwaita-icon-theme/adwaita-icon-theme.mk
Normal file
16
package/adwaita-icon-theme/adwaita-icon-theme.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
################################################################################
|
||||
#
|
||||
# adwaita-icon-theme
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ADWAITA_ICON_THEME_VERSION_MAJOR = 3.37
|
||||
ADWAITA_ICON_THEME_VERSION = $(ADWAITA_ICON_THEME_VERSION_MAJOR).2
|
||||
ADWAITA_ICON_THEME_SITE = https://download.gnome.org/sources/adwaita-icon-theme/$(ADWAITA_ICON_THEME_VERSION_MAJOR)
|
||||
ADWAITA_ICON_THEME_SOURCE = adwaita-icon-theme-$(ADWAITA_ICON_THEME_VERSION).tar.xz
|
||||
ADWAITA_ICON_THEME_INSTALL_STAGING = YES
|
||||
ADWAITA_ICON_THEME_LICENSE = LGPL-3.0 or CC-BY-SA-3.0
|
||||
ADWAITA_ICON_THEME_LICENSE_FILES = COPYING COPYING_LGPL COPYING_CCBYSA3
|
||||
ADWAITA_ICON_THEME_DEPENDENCIES = host-intltool host-libgtk3
|
||||
|
||||
$(eval $(autotools-package))
|
||||
35
package/aer-inject/0001-libgen-basename.patch
Normal file
35
package/aer-inject/0001-libgen-basename.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From 197f51d29a01f46750fa6928409301aa8f1163d7 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 25 Mar 2024 09:04:40 -0700
|
||||
Subject: aer-inject: Include libgen.h for explicit basename prototype
|
||||
|
||||
The prototype for basename has been removed from string.h in the latest
|
||||
versions of musl [1]. This absence of prototype is flagged as an error
|
||||
by some compilers, such as clang-18. To resolve this, include libgen.h
|
||||
explicitly, which provides the prototype for basename.
|
||||
|
||||
[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
[sathya: Updated the commit log]
|
||||
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
|
||||
Upstream: https://git.kernel.org/pub/scm/linux/kernel/git/knsathya/aer-inject.git/commit/?id=197f51d29a01f46750fa6928409301aa8f1163d7
|
||||
Signed-off-by: J. Neuschaefer <j.neuschaefer@gmx.net>
|
||||
---
|
||||
aer-inject.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/aer-inject.c b/aer-inject.c
|
||||
index 74e7f72..eed1211 100644
|
||||
--- a/aer-inject.c
|
||||
+++ b/aer-inject.c
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <libgen.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
--
|
||||
cgit 1.2.3-korg
|
||||
|
||||
12
package/aer-inject/Config.in
Normal file
12
package/aer-inject/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_AER_INJECT
|
||||
bool "aer-inject"
|
||||
help
|
||||
aer-inject allows to inject PCIE AER errors on the software
|
||||
level into a running Linux kernel. This is intended for
|
||||
validation of the PCIE driver error recovery handler and
|
||||
PCIE AER core handler.
|
||||
|
||||
Requires a new Linux kernel with PCIE AER error injection
|
||||
patches.
|
||||
|
||||
https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/
|
||||
3
package/aer-inject/aer-inject.hash
Normal file
3
package/aer-inject/aer-inject.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 7ed5994b48f1c0504add380ba4d186f48a5a22b9bc2dd90c79d0d2f0c183540c aer-inject-9bd5e2c7886fca72f139cd8402488a2235957d41-git4.tar.gz
|
||||
sha256 659a191d8775e05c6c6a9a4ba66b3577c577342bb83f20d393135eb6633c8973 README
|
||||
23
package/aer-inject/aer-inject.mk
Normal file
23
package/aer-inject/aer-inject.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# aer-inject
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AER_INJECT_VERSION = 9bd5e2c7886fca72f139cd8402488a2235957d41
|
||||
AER_INJECT_SITE = https://github.com/intel/aer-inject.git
|
||||
AER_INJECT_SITE_METHOD = git
|
||||
AER_INJECT_LICENSE = GPL-2.0
|
||||
AER_INJECT_LICENSE_FILES = README
|
||||
AER_INJECT_DEPENDENCIES = host-flex host-bison
|
||||
|
||||
define AER_INJECT_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
|
||||
endef
|
||||
|
||||
define AER_INJECT_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) PREFIX=/usr/bin install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
11
package/aespipe/Config.in
Normal file
11
package/aespipe/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_AESPIPE
|
||||
bool "aespipe"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
aespipe program is AES encrypting or decrypting pipe. It reads
|
||||
from standard input and writes to standard output. It can be
|
||||
used to create and restore encrypted tar or cpio archives.
|
||||
It can be used to encrypt and decrypt loop-AES compatible
|
||||
encrypted disk images.
|
||||
|
||||
http://loop-aes.sourceforge.net/
|
||||
10
package/aespipe/Config.in.host
Normal file
10
package/aespipe/Config.in.host
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_HOST_AESPIPE
|
||||
bool "host aespipe"
|
||||
help
|
||||
aespipe program is AES encrypting or decrypting pipe. It
|
||||
reads from standard input and writes to standard output. It
|
||||
can be used to create and restore encrypted tar or cpio
|
||||
archives. It can be used to encrypt and decrypt loop-AES
|
||||
compatible encrypted disk images.
|
||||
|
||||
http://loop-aes.sourceforge.net/
|
||||
5
package/aespipe/aespipe.hash
Normal file
5
package/aespipe/aespipe.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://sourceforge.net/projects/loop-aes/files/aespipe/v2.4j/
|
||||
sha1 ba4d7cbaa0adbe924fa8d006d7f4e69c63f567a2 aespipe-v2.4j.tar.bz2
|
||||
md5 d0feebaa55a4a3aa5815492b8f096b09 aespipe-v2.4j.tar.bz2
|
||||
# Locally computed:
|
||||
sha256 448fe1e58612c184951645ddd926fc5bdb64fc4f2f828c766c82aa1127e9a3e2 aespipe-v2.4j.tar.bz2
|
||||
13
package/aespipe/aespipe.mk
Normal file
13
package/aespipe/aespipe.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# aespipe
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AESPIPE_VERSION = 2.4j
|
||||
AESPIPE_SOURCE = aespipe-v$(AESPIPE_VERSION).tar.bz2
|
||||
AESPIPE_SITE = http://loop-aes.sourceforge.net/aespipe
|
||||
AESPIPE_LICENSE = GPL
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
@@ -0,0 +1,35 @@
|
||||
From eb8ccfe5bb32273226d80236caab7a9386d71071 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Korsgaard <peter@korsgaard.com>
|
||||
Date: Thu, 18 Jun 2026 15:12:38 +0200
|
||||
Subject: [PATCH] io.c: isarmor(): do not set eof for <35 byte files
|
||||
|
||||
Encryption is silently broken for <35 byte files since commit b374d8de5a
|
||||
("stop reading after first EOF"), as readall() sets the eof flag when it was
|
||||
unable to read the entire 35 bytes in isarmor(), causing bread() to return
|
||||
EOF and ignore the <35 bytes already read.
|
||||
|
||||
Fix it by only setting the eof flag in isarmor() if nothing could be read.
|
||||
|
||||
Upstream: mailed to amin@firemail.cc
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
io.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/io.c b/io.c
|
||||
index 15ed4f7..2773022 100644
|
||||
--- a/io.c
|
||||
+++ b/io.c
|
||||
@@ -128,8 +128,7 @@ isarmor(Ibuf *b)
|
||||
nr = readall(b->fd, b->buf, sizeof(armorfirst) - 1, &b->eof);
|
||||
if(nr == -1)
|
||||
return -1;
|
||||
- if(nr == 0)
|
||||
- b->eof = 1;
|
||||
+ b->eof = (nr == 0);
|
||||
b->size = nr;
|
||||
if((usize)nr < sizeof(armorfirst) - 1)
|
||||
return 0;
|
||||
--
|
||||
2.47.3
|
||||
|
||||
10
package/agec/Config.in
Normal file
10
package/agec/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_AGEC
|
||||
bool "agec"
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
Agec is a simple file encryption tool that implements the
|
||||
age format in C with minimal dependencies. The tool supports
|
||||
asymmetric encryption based on X25519, and a passphrase
|
||||
encryption based on scrypt.
|
||||
|
||||
https://git.sr.ht/~min/agec
|
||||
3
package/agec/agec.hash
Normal file
3
package/agec/agec.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 97958ff82eaa6aa89328f4319d585e362130168c478cf6a85ba3f4d05e453669 0.1.0.tar.gz
|
||||
sha256 f7f37a8bb7d993825b10f5ce2838c1c452d902eda63cd180fdabc7c3a5dd0341 LICENSE
|
||||
24
package/agec/agec.mk
Normal file
24
package/agec/agec.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# agec
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AGEC_VERSION = 0.1.0
|
||||
AGEC_SOURCE = $(AGEC_VERSION).tar.gz
|
||||
AGEC_SITE = https://git.sr.ht/~min/agec/archive
|
||||
AGEC_LICENSE = 0BSD
|
||||
AGEC_LICENSE_FILES = LICENSE
|
||||
AGEC_DEPENDENCIES = host-pkgconf openssl
|
||||
|
||||
define AGEC_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
||||
LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
||||
endef
|
||||
|
||||
define AGEC_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
||||
PREFIX=$(TARGET_DIR)/usr install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
11
package/agent-proxy/Config.in.host
Normal file
11
package/agent-proxy/Config.in.host
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_HOST_AGENT_PROXY
|
||||
bool "host agent-proxy"
|
||||
help
|
||||
This is a simple, small proxy which was intended for use
|
||||
with kgdb, or gdbserver type connections where you want to
|
||||
share a text console and a debug session.
|
||||
|
||||
The idea is that you use the agent-proxy to connect to a
|
||||
serial port directly or to a remote terminal server.
|
||||
|
||||
git://git.kernel.org/pub/scm/utils/kernel/kgdb/agent-proxy.git
|
||||
3
package/agent-proxy/agent-proxy.hash
Normal file
3
package/agent-proxy/agent-proxy.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 b1667b36074c10ebd6dd1f89eda75d5877bc8e06ecf2919f18e75a7a5a9de19b agent-proxy-1.97.tar.gz
|
||||
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 COPYING
|
||||
20
package/agent-proxy/agent-proxy.mk
Normal file
20
package/agent-proxy/agent-proxy.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# agent-proxy
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AGENT_PROXY_VERSION = 1.97
|
||||
AGENT_PROXY_SITE = https://git.kernel.org/pub/scm/utils/kernel/kgdb/agent-proxy.git/snapshot
|
||||
AGENT_PROXY_LICENSE = GPL-2.0
|
||||
AGENT_PROXY_LICENSE_FILES = COPYING
|
||||
|
||||
define HOST_AGENT_PROXY_BUILD_CMDS
|
||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_AGENT_PROXY_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/agent-proxy $(HOST_DIR)/bin/agent-proxy
|
||||
endef
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
23
package/agentpp/Config.in
Normal file
23
package/agentpp/Config.in
Normal file
@@ -0,0 +1,23 @@
|
||||
config BR2_PACKAGE_AGENTPP
|
||||
bool "agent++"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # snmp++
|
||||
depends on !BR2_STATIC_LIBS # snmp++
|
||||
select BR2_PACKAGE_SNMPPP
|
||||
help
|
||||
AGENT++ is a set of C++ classes which provides a complete
|
||||
protocol engine and dispatch table for the development of
|
||||
SNMP agents. AGENT++ is a multilingual API which supports
|
||||
SNMPv1, SNMPv2c, and SNMPv3. It provides various C++ classes
|
||||
implementing prototypes for scalar and table SNMP managed
|
||||
objects that can be customized by derivation. Additional
|
||||
classes support the development of proxy agents as well as
|
||||
sending notifications.
|
||||
|
||||
SNMPv3 support is enabled if SNMP++ enables it.
|
||||
|
||||
https://www.agentpp.com/api/cpp/agent_pp.html
|
||||
|
||||
comment "agent++ needs a toolchain w/ threads, C++, dynamic library"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS
|
||||
3
package/agentpp/agentpp.hash
Normal file
3
package/agentpp/agentpp.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 10542169c3cea8cb547a0b7a678d631eda6d0b4b0381dc84df4cf5d26905db13 agent++-4.7.2.tar.gz
|
||||
sha256 1eb85fc97224598dad1852b5d6483bbcf0aa8608790dcc657a5a2a761ae9c8c6 LICENSE-2_0.txt
|
||||
20
package/agentpp/agentpp.mk
Normal file
20
package/agentpp/agentpp.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# agentpp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AGENTPP_VERSION = 4.7.2
|
||||
AGENTPP_SOURCE = agent++-$(AGENTPP_VERSION).tar.gz
|
||||
AGENTPP_SITE = http://www.agentpp.com/download
|
||||
AGENTPP_LICENSE = Apache-2.0
|
||||
AGENTPP_LICENSE_FILES = LICENSE-2_0.txt
|
||||
AGENTPP_INSTALL_STAGING = YES
|
||||
AGENTPP_DEPENDENCIES = host-pkgconf snmppp
|
||||
AGENTPP_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
|
||||
AGENTPP_CONF_OPTS += \
|
||||
--disable-proxy \
|
||||
--disable-forwarder \
|
||||
--disable-rpath
|
||||
|
||||
$(eval $(autotools-package))
|
||||
15
package/aichat/Config.in
Normal file
15
package/aichat/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_AICHAT
|
||||
bool "aichat"
|
||||
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_HOST_RUSTC
|
||||
help
|
||||
AIChat helps seamlessly integrate different LLM models,
|
||||
providing access via the CLI and network. It can serve
|
||||
as a gateway to heterogeneous and distributed LLMs.
|
||||
|
||||
Handy features like roles, macros, and sessions help
|
||||
simplify repetitive tasks and reuse of existing solutions.
|
||||
Features like playgrounds and arenas help to explore and
|
||||
compare models.
|
||||
|
||||
https://github.com/sigoden/aichat
|
||||
4
package/aichat/aichat.hash
Normal file
4
package/aichat/aichat.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally generated
|
||||
sha256 7a6e5071ea05543d0022fa98d1a96625bfb6c1b094768d9cf0123057376129d1 aichat-0.30.0-cargo6.tar.gz
|
||||
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE-APACHE
|
||||
sha256 5af431a6a9869052e2be4e71ccd731c7efe45dca47eaca84d4d1fb38f134cb79 LICENSE-MIT
|
||||
12
package/aichat/aichat.mk
Normal file
12
package/aichat/aichat.mk
Normal file
@@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
#
|
||||
# aichat
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AICHAT_VERSION = 0.30.0
|
||||
AICHAT_SITE = $(call github,sigoden,aichat,v$(AICHAT_VERSION))
|
||||
AICHAT_LICENSE = Apache-2.0 or MIT
|
||||
AICHAT_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT
|
||||
|
||||
$(eval $(cargo-package))
|
||||
102
package/aircrack-ng/0001-autotools-add-PCRE2-detection.patch
Normal file
102
package/aircrack-ng/0001-autotools-add-PCRE2-detection.patch
Normal file
@@ -0,0 +1,102 @@
|
||||
From 6b05dc10cdcf45d50bc8f9dd74667a3ff399a059 Mon Sep 17 00:00:00 2001
|
||||
From: Andras Gemes <andrasgemes@outlook.com>
|
||||
Date: Fri, 20 Jan 2023 14:52:12 +0100
|
||||
Subject: [PATCH] autotools: add PCRE2 detection
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/aircrack-ng/commit/6b05dc10cdcf45d50bc8f9dd74667a3ff399a059
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
build/m4/aircrack_ng_pcre2.m4 | 61 +++++++++++++++++++++++++++++++++++
|
||||
configure.ac | 2 ++
|
||||
2 files changed, 63 insertions(+)
|
||||
create mode 100644 build/m4/aircrack_ng_pcre2.m4
|
||||
|
||||
diff --git a/build/m4/aircrack_ng_pcre2.m4 b/build/m4/aircrack_ng_pcre2.m4
|
||||
new file mode 100644
|
||||
index 0000000000..f61c0f656d
|
||||
--- /dev/null
|
||||
+++ b/build/m4/aircrack_ng_pcre2.m4
|
||||
@@ -0,0 +1,61 @@
|
||||
+dnl Aircrack-ng
|
||||
+dnl
|
||||
+dnl Copyright (C) 2023 Andras Gemes <andrasgemes@outlook.com>
|
||||
+dnl
|
||||
+dnl Autotool support was written by: Joseph Benden <joe@benden.us>
|
||||
+dnl
|
||||
+dnl This program is free software; you can redistribute it and/or modify
|
||||
+dnl it under the terms of the GNU General Public License as published by
|
||||
+dnl the Free Software Foundation; either version 2 of the License, or
|
||||
+dnl (at your option) any later version.
|
||||
+dnl
|
||||
+dnl This program is distributed in the hope that it will be useful,
|
||||
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+dnl GNU General Public License for more details.
|
||||
+dnl
|
||||
+dnl You should have received a copy of the GNU General Public License
|
||||
+dnl along with this program; if not, write to the Free Software
|
||||
+dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
+dnl
|
||||
+dnl In addition, as a special exception, the copyright holders give
|
||||
+dnl permission to link the code of portions of this program with the
|
||||
+dnl OpenSSL library under certain conditions as described in each
|
||||
+dnl individual source file, and distribute linked combinations
|
||||
+dnl including the two.
|
||||
+dnl
|
||||
+dnl You must obey the GNU General Public License in all respects
|
||||
+dnl for all of the code used other than OpenSSL.
|
||||
+dnl
|
||||
+dnl If you modify file(s) with this exception, you may extend this
|
||||
+dnl exception to your dnl version of the file(s), but you are not obligated
|
||||
+dnl to do so.
|
||||
+dnl
|
||||
+dnl If you dnl do not wish to do so, delete this exception statement from your
|
||||
+dnl version.
|
||||
+dnl
|
||||
+dnl If you delete this exception statement from all source files in the
|
||||
+dnl program, then also delete it here.
|
||||
+
|
||||
+AC_DEFUN([AIRCRACK_NG_PCRE2], [
|
||||
+AC_ARG_ENABLE(static-pcre2,
|
||||
+ AS_HELP_STRING([--enable-static-pcre2],
|
||||
+ [Enable statically linked PCRE2 libpcre2-8.]),
|
||||
+ [static_pcre2=$enableval], [static_pcre2=no])
|
||||
+
|
||||
+if test "x$static_pcre2" != "xno"; then
|
||||
+ AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT])
|
||||
+ AX_EXT_HAVE_STATIC_LIB(PCRE2, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, pcre2 libpcre2-8, pcre2_version)
|
||||
+ if test "x$PCRE2_FOUND" = xyes; then
|
||||
+ HAVE_PCRE2=yes
|
||||
+ else
|
||||
+ HAVE_PCRE2=no
|
||||
+ fi
|
||||
+else
|
||||
+ PKG_CHECK_MODULES(PCRE2, libpcre2-8, HAVE_PCRE2=yes, HAVE_PCRE2=no)
|
||||
+fi
|
||||
+
|
||||
+AS_IF([test "x$HAVE_PCRE2" = "xyes"], [
|
||||
+ AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
+])
|
||||
+])
|
||||
\ No newline at end of file
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 06aca4e466..6d8e0e5677 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -143,6 +143,7 @@ AIRCRACK_NG_EXT_SCRIPTS
|
||||
AIRCRACK_NG_HWLOC
|
||||
AIRCRACK_NG_PCAP
|
||||
AIRCRACK_NG_PCRE
|
||||
+AIRCRACK_NG_PCRE2
|
||||
AIRCRACK_NG_RFKILL
|
||||
AIRCRACK_NG_SQLITE
|
||||
AIRCRACK_NG_ZLIB
|
||||
@@ -319,6 +320,7 @@ ${PACKAGE} ${VERSION}
|
||||
Jemalloc: ${JEMALLOC}
|
||||
Pcap: ${PCAP_FOUND}
|
||||
Pcre: ${HAVE_PCRE}
|
||||
+ Pcre2: ${HAVE_PCRE2}
|
||||
Sqlite: ${HAVE_SQLITE3}
|
||||
Tcmalloc: ${TCMALLOC}
|
||||
Zlib: ${HAVE_ZLIB}
|
||||
@@ -0,0 +1,142 @@
|
||||
From b381ef3f6b6cc83a4aa016f4c0aebb58fcffcf3f Mon Sep 17 00:00:00 2001
|
||||
From: Andras Gemes <andrasgemes@outlook.com>
|
||||
Date: Mon, 23 Jan 2023 16:58:38 +0100
|
||||
Subject: [PATCH] autotools: indicate if PCRE or PCRE2 is being used
|
||||
|
||||
Upstream: https://github.com/aircrack-ng/aircrack-ng/commit/b381ef3f6b6cc83a4aa016f4c0aebb58fcffcf3f
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
build/m4/aircrack_ng_pcre.m4 | 28 ++++++++++++++--
|
||||
build/m4/aircrack_ng_pcre2.m4 | 61 -----------------------------------
|
||||
configure.ac | 3 +-
|
||||
3 files changed, 26 insertions(+), 66 deletions(-)
|
||||
delete mode 100644 build/m4/aircrack_ng_pcre2.m4
|
||||
|
||||
diff --git a/build/m4/aircrack_ng_pcre.m4 b/build/m4/aircrack_ng_pcre.m4
|
||||
index 72f09b98ff..af3e24b4bc 100644
|
||||
--- a/build/m4/aircrack_ng_pcre.m4
|
||||
+++ b/build/m4/aircrack_ng_pcre.m4
|
||||
@@ -55,7 +55,29 @@ else
|
||||
PKG_CHECK_MODULES(PCRE, libpcre, HAVE_PCRE=yes, HAVE_PCRE=no)
|
||||
fi
|
||||
|
||||
-AS_IF([test "x$HAVE_PCRE" = "xyes"], [
|
||||
+AC_ARG_ENABLE(static-pcre2,
|
||||
+ AS_HELP_STRING([--enable-static-pcre2],
|
||||
+ [Enable statically linked PCRE2 libpcre2-8.]),
|
||||
+ [static_pcre2=$enableval], [static_pcre2=no])
|
||||
+
|
||||
+if test "x$static_pcre2" != "xno"; then
|
||||
+ AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT])
|
||||
+ AX_EXT_HAVE_STATIC_LIB(PCRE2, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, pcre2 libpcre2-8, pcre2_version)
|
||||
+ if test "x$PCRE2_FOUND" = xyes; then
|
||||
+ HAVE_PCRE2=yes
|
||||
+ else
|
||||
+ HAVE_PCRE2=no
|
||||
+ fi
|
||||
+else
|
||||
+ PKG_CHECK_MODULES(PCRE2, libpcre2-8, HAVE_PCRE2=yes, HAVE_PCRE2=no)
|
||||
+fi
|
||||
+
|
||||
+if test "x$HAVE_PCRE" = "xyes" && test "x$HAVE_PCRE2" = "xyes"; then
|
||||
+ AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
+ PCRE2_NOTE="(Pcre and Pcre2 found, using Pcre2)"
|
||||
+elif test "x$HAVE_PCRE" = "xyes"; then
|
||||
AC_DEFINE([HAVE_PCRE], [1], [Define this if you have libpcre on your system])
|
||||
-])
|
||||
-])
|
||||
+elif test "x$HAVE_PCRE2" = "xyes"; then
|
||||
+ AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
+fi
|
||||
+])
|
||||
\ No newline at end of file
|
||||
diff --git a/build/m4/aircrack_ng_pcre2.m4 b/build/m4/aircrack_ng_pcre2.m4
|
||||
deleted file mode 100644
|
||||
index f61c0f656d..0000000000
|
||||
--- a/build/m4/aircrack_ng_pcre2.m4
|
||||
+++ /dev/null
|
||||
@@ -1,61 +0,0 @@
|
||||
-dnl Aircrack-ng
|
||||
-dnl
|
||||
-dnl Copyright (C) 2023 Andras Gemes <andrasgemes@outlook.com>
|
||||
-dnl
|
||||
-dnl Autotool support was written by: Joseph Benden <joe@benden.us>
|
||||
-dnl
|
||||
-dnl This program is free software; you can redistribute it and/or modify
|
||||
-dnl it under the terms of the GNU General Public License as published by
|
||||
-dnl the Free Software Foundation; either version 2 of the License, or
|
||||
-dnl (at your option) any later version.
|
||||
-dnl
|
||||
-dnl This program is distributed in the hope that it will be useful,
|
||||
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-dnl GNU General Public License for more details.
|
||||
-dnl
|
||||
-dnl You should have received a copy of the GNU General Public License
|
||||
-dnl along with this program; if not, write to the Free Software
|
||||
-dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
-dnl
|
||||
-dnl In addition, as a special exception, the copyright holders give
|
||||
-dnl permission to link the code of portions of this program with the
|
||||
-dnl OpenSSL library under certain conditions as described in each
|
||||
-dnl individual source file, and distribute linked combinations
|
||||
-dnl including the two.
|
||||
-dnl
|
||||
-dnl You must obey the GNU General Public License in all respects
|
||||
-dnl for all of the code used other than OpenSSL.
|
||||
-dnl
|
||||
-dnl If you modify file(s) with this exception, you may extend this
|
||||
-dnl exception to your dnl version of the file(s), but you are not obligated
|
||||
-dnl to do so.
|
||||
-dnl
|
||||
-dnl If you dnl do not wish to do so, delete this exception statement from your
|
||||
-dnl version.
|
||||
-dnl
|
||||
-dnl If you delete this exception statement from all source files in the
|
||||
-dnl program, then also delete it here.
|
||||
-
|
||||
-AC_DEFUN([AIRCRACK_NG_PCRE2], [
|
||||
-AC_ARG_ENABLE(static-pcre2,
|
||||
- AS_HELP_STRING([--enable-static-pcre2],
|
||||
- [Enable statically linked PCRE2 libpcre2-8.]),
|
||||
- [static_pcre2=$enableval], [static_pcre2=no])
|
||||
-
|
||||
-if test "x$static_pcre2" != "xno"; then
|
||||
- AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT])
|
||||
- AX_EXT_HAVE_STATIC_LIB(PCRE2, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, pcre2 libpcre2-8, pcre2_version)
|
||||
- if test "x$PCRE2_FOUND" = xyes; then
|
||||
- HAVE_PCRE2=yes
|
||||
- else
|
||||
- HAVE_PCRE2=no
|
||||
- fi
|
||||
-else
|
||||
- PKG_CHECK_MODULES(PCRE2, libpcre2-8, HAVE_PCRE2=yes, HAVE_PCRE2=no)
|
||||
-fi
|
||||
-
|
||||
-AS_IF([test "x$HAVE_PCRE2" = "xyes"], [
|
||||
- AC_DEFINE([HAVE_PCRE2], [1], [Define this if you have libpcre2-8 on your system])
|
||||
-])
|
||||
-])
|
||||
\ No newline at end of file
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 6d8e0e5677..9d1d148cfd 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -143,7 +143,6 @@ AIRCRACK_NG_EXT_SCRIPTS
|
||||
AIRCRACK_NG_HWLOC
|
||||
AIRCRACK_NG_PCAP
|
||||
AIRCRACK_NG_PCRE
|
||||
-AIRCRACK_NG_PCRE2
|
||||
AIRCRACK_NG_RFKILL
|
||||
AIRCRACK_NG_SQLITE
|
||||
AIRCRACK_NG_ZLIB
|
||||
@@ -320,7 +319,7 @@ ${PACKAGE} ${VERSION}
|
||||
Jemalloc: ${JEMALLOC}
|
||||
Pcap: ${PCAP_FOUND}
|
||||
Pcre: ${HAVE_PCRE}
|
||||
- Pcre2: ${HAVE_PCRE2}
|
||||
+ Pcre2: ${HAVE_PCRE2} ${PCRE2_NOTE}
|
||||
Sqlite: ${HAVE_SQLITE3}
|
||||
Tcmalloc: ${TCMALLOC}
|
||||
Zlib: ${HAVE_ZLIB}
|
||||
20
package/aircrack-ng/Config.in
Normal file
20
package/aircrack-ng/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_AIRCRACK_NG
|
||||
bool "aircrack-ng"
|
||||
depends on BR2_USE_MMU # uses fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4 if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
A set of tools for auditing wireless networks
|
||||
|
||||
For complete functionality, also select ethtool, iw,
|
||||
util-linux (utilities and rfkill), and wireless_tools.
|
||||
|
||||
http://www.aircrack-ng.org/
|
||||
|
||||
comment "aircrack-ng needs a toolchain w/ dynamic library, threads, C++"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !BR2_INSTALL_LIBSTDCPP
|
||||
6
package/aircrack-ng/aircrack-ng.hash
Normal file
6
package/aircrack-ng/aircrack-ng.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From http://www.aircrack-ng.org/downloads.html
|
||||
sha1 bd43a35281c9c81d958b95aa76b4404c29f904ff aircrack-ng-1.7.tar.gz
|
||||
md5 a918ea7146f91d8c799fb770c38f4bec aircrack-ng-1.7.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 fc51fd3a97223f2fd47b057202d4a6b0daaedf23b5a1f5ff8723c192fc1e021d LICENSE
|
||||
77
package/aircrack-ng/aircrack-ng.mk
Normal file
77
package/aircrack-ng/aircrack-ng.mk
Normal file
@@ -0,0 +1,77 @@
|
||||
################################################################################
|
||||
#
|
||||
# aircrack-ng
|
||||
#
|
||||
################################################################################
|
||||
|
||||
AIRCRACK_NG_VERSION = 1.7
|
||||
AIRCRACK_NG_SITE = http://download.aircrack-ng.org
|
||||
AIRCRACK_NG_LICENSE = GPL-2.0+
|
||||
AIRCRACK_NG_LICENSE_FILES = LICENSE
|
||||
AIRCRACK_NG_CPE_ID_VENDOR = aircrack-ng
|
||||
AIRCRACK_NG_DEPENDENCIES = \
|
||||
$(if $(BR2_PACKAGE_CMOCKA),cmocka) \
|
||||
$(if $(BR2_PACKAGE_LIBNL),libnl) \
|
||||
$(if $(BR2_PACKAGE_OPENSSL),openssl) \
|
||||
$(if $(BR2_PACKAGE_PCRE2),pcre2) \
|
||||
$(if $(BR2_PACKAGE_ZLIB),zlib) \
|
||||
host-pkgconf
|
||||
AIRCRACK_NG_AUTORECONF = YES
|
||||
# Enable buddy-ng, easside-ng, tkiptun-ng, wesside-ng
|
||||
AIRCRACK_NG_CONF_OPTS = --with-experimental
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
||||
AIRCRACK_NG_CONF_OPTS += --with-opt
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-opt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DUMA),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += duma
|
||||
AIRCRACK_NG_CONF_OPTS += --with-duma
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-duma
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HWLOC),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += hwloc
|
||||
AIRCRACK_NG_CONF_OPTS += --enable-hwloc
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --disable-hwloc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JEMALLOC),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += jemalloc
|
||||
AIRCRACK_NG_CONF_OPTS += --with-jemalloc
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-jemalloc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += libgcrypt
|
||||
AIRCRACK_NG_CONF_OPTS += \
|
||||
--with-gcrypt \
|
||||
--with-libgcrypt-prefix=$(STAGING_DIR)/usr
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-gcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += libpcap
|
||||
AIRCRACK_NG_CONF_OPTS += \
|
||||
--with-libpcap-include=$(STAGING_DIR)/usr/include \
|
||||
--with-libpcap-lib=$(STAGING_DIR)/usr/lib
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
AIRCRACK_NG_CONF_ENV += \
|
||||
LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
||||
AIRCRACK_NG_DEPENDENCIES += sqlite
|
||||
AIRCRACK_NG_CONF_OPTS += --with-sqlite3=$(STAGING_DIR)/usr
|
||||
else
|
||||
AIRCRACK_NG_CONF_OPTS += --without-sqlite3
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -0,0 +1,36 @@
|
||||
From 4cb9681ab99db3d8e330ac789e17ec69583aecd4 Mon Sep 17 00:00:00 2001
|
||||
From: Herve Codina <herve.codina@bootlin.com>
|
||||
Date: Thu, 28 Oct 2021 18:39:18 +0200
|
||||
Subject: [PATCH] toolchains: remove --hash-style management
|
||||
|
||||
Using an external toolchain, with an external configuration given
|
||||
using TARGET_GLOBAL_XXXX variables, having '--hash-style=both'
|
||||
in Alchemy toolchains can lead to compilation failure.
|
||||
|
||||
This patch simply removes all --hash-style settings.
|
||||
|
||||
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
|
||||
---
|
||||
toolchains/linux/eglibc/flags.mk | 9 +--------
|
||||
1 file changed, 1 insertion(+), 8 deletions(-)
|
||||
|
||||
diff --git a/toolchains/linux/eglibc/flags.mk b/toolchains/linux/eglibc/flags.mk
|
||||
index 95c0a46..4474729 100644
|
||||
--- a/toolchains/linux/eglibc/flags.mk
|
||||
+++ b/toolchains/linux/eglibc/flags.mk
|
||||
@@ -11,11 +11,4 @@ TARGET_GLOBAL_LDLIBS += -pthread -lrt
|
||||
TARGET_GLOBAL_CFLAGS += -funwind-tables
|
||||
|
||||
# Enable link optimization for binutils's ld.
|
||||
-# gnu hash not supported by mips ABI
|
||||
-ifeq ("$(TARGET_ARCH)","mips")
|
||||
- TARGET_GLOBAL_LDFLAGS += -Wl,-O1
|
||||
-else ifeq ("$(TARGET_ARCH)","mips64")
|
||||
- TARGET_GLOBAL_LDFLAGS += -Wl,-O1
|
||||
-else
|
||||
- TARGET_GLOBAL_LDFLAGS += -Wl,-O1,--hash-style=both
|
||||
-endif
|
||||
+TARGET_GLOBAL_LDFLAGS += -Wl,-O1
|
||||
--
|
||||
2.31.1
|
||||
|
||||
4
package/alchemy/alchemy.hash
Normal file
4
package/alchemy/alchemy.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally computed:
|
||||
sha256 346c06b9317691a9371d878b850e61f8bcec4f20132ac95340b9d2571be25ee8 alchemy-d95b3c38cd37814a1b98d0bbf813de7adaaecfbc.tar.gz
|
||||
sha256 542f44eecd9f8806ec1ae285201e442ab547c82d9f8c70e44c977d6332a2bea0 COPYING
|
||||
sha256 49872815ee3de163f07a83737c996e77a5bffa186d06b1e3bb969bfb68c251df README
|
||||
71
package/alchemy/alchemy.mk
Normal file
71
package/alchemy/alchemy.mk
Normal file
@@ -0,0 +1,71 @@
|
||||
################################################################################
|
||||
#
|
||||
# alchemy
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALCHEMY_VERSION = d95b3c38cd37814a1b98d0bbf813de7adaaecfbc
|
||||
ALCHEMY_SITE = $(call github,Parrot-Developers,alchemy,$(ALCHEMY_VERSION))
|
||||
ALCHEMY_LICENSE = BSD-3-Clause (Alchemy), GPL-2.0 (kconfig)
|
||||
ALCHEMY_LICENSE_FILES = COPYING README
|
||||
HOST_ALCHEMY_DEPENDENCIES = host-pkgconf host-python3
|
||||
|
||||
ALCHEMY_HOME = $(HOST_DIR)/opt/alchemy
|
||||
ALCHEMY_SDK_BASEDIR = $(STAGING_DIR)/usr/lib/alchemy/sdk
|
||||
|
||||
define HOST_ALCHEMY_INSTALL_CMDS
|
||||
mkdir -p $(ALCHEMY_HOME)
|
||||
cp -rf $(@D)/* $(ALCHEMY_HOME)
|
||||
cp $(HOST_ALCHEMY_PKGDIR)/atom.mk.in $(ALCHEMY_HOME)/atom.mk.in
|
||||
endef
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
|
||||
# Variables used by other packages
|
||||
|
||||
ALCHEMY_MAKE = $(ALCHEMY_HOME)/scripts/alchemake
|
||||
|
||||
# TARGET_ARCH is set to 'xxx' to avoid Alchemy managing the architecture.
|
||||
# When Alchemy manages the architecture, it can add some flags to CFGLAGS and
|
||||
# can lead to incorrect result with the toolchain provided in TARGET_CROSS.
|
||||
# 'xxx' is an unknown architecture for Alchemy. Using this value is a simple
|
||||
# way to disable the Alchemy architecture management.
|
||||
ALCHEMY_TARGET_ENV = \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
ALCHEMY_HOME=$(ALCHEMY_HOME) \
|
||||
ALCHEMY_WORKSPACE_DIR="$(@D)" \
|
||||
ALCHEMY_TARGET_OUT=alchemy-out \
|
||||
PKGCONFIG_BIN=$(PKG_CONFIG_HOST_BINARY) \
|
||||
TARGET_OS=linux \
|
||||
TARGET_OS_FLAVOUR=buildroot \
|
||||
TARGET_CROSS="$(TARGET_CROSS)" \
|
||||
TARGET_ARCH=xxx \
|
||||
TARGET_GLOBAL_CXXFLAGS="$(TARGET_CXXFLAGS)" \
|
||||
TARGET_GLOBAL_LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
TARGET_GLOBAL_FFLAGS="$(TARGET_FCFLAGS)" \
|
||||
TARGET_GLOBAL_FCFLAGS="$(TARGET_FCFLAGS)"
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
ALCHEMY_TARGET_ENV += \
|
||||
TARGET_FORCE_STATIC=1 \
|
||||
TARGET_GLOBAL_CFLAGS="$(TARGET_CFLAGS)"
|
||||
else
|
||||
ALCHEMY_TARGET_ENV += \
|
||||
TARGET_GLOBAL_CFLAGS="$(TARGET_CFLAGS) -fPIC"
|
||||
endif
|
||||
|
||||
# Install an Alchemy SDK file.
|
||||
# This macro can be used by Alchemy packages
|
||||
# $1: Alchemy module name
|
||||
# $2: Alchemy module file name
|
||||
# $3: Alchemy module libraries this module depends on
|
||||
define ALCHEMY_INSTALL_LIB_SDK_FILE
|
||||
$(INSTALL) -m 0644 -D \
|
||||
$(ALCHEMY_HOME)/atom.mk.in \
|
||||
$(ALCHEMY_SDK_BASEDIR)/$($(PKG)_NAME)/atom.mk
|
||||
$(SED) 's#@STAGING_DIR@#$(STAGING_DIR)#' \
|
||||
-e 's#@MODULE@#$(strip $(1))#' \
|
||||
-e 's#@MODULE_FILENAME@#$(strip $(2))#' \
|
||||
-e 's#@LIBRARIES@#$(strip $(3))#' \
|
||||
$(ALCHEMY_SDK_BASEDIR)/$($(PKG)_NAME)/atom.mk
|
||||
endef
|
||||
8
package/alchemy/atom.mk.in
Normal file
8
package/alchemy/atom.mk.in
Normal file
@@ -0,0 +1,8 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := @MODULE@
|
||||
LOCAL_SDK := @STAGING_DIR@
|
||||
LOCAL_DESTDIR := usr/lib
|
||||
LOCAL_MODULE_FILENAME := @MODULE_FILENAME@
|
||||
LOCAL_LIBRARIES := @LIBRARIES@
|
||||
include $(BUILD_LIBRARY)
|
||||
20
package/alfred/Config.in
Normal file
20
package/alfred/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_ALFRED
|
||||
bool "alfred"
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
Alfred is a user space daemon for distributing arbitrary
|
||||
local information over the mesh/network in a decentralized
|
||||
fashion.
|
||||
|
||||
This data can be anything which appears to be useful -
|
||||
originally designed to replace the batman-adv visualization
|
||||
(vis), you may distribute hostnames, phone books,
|
||||
administration information, DNS information, the local
|
||||
weather forecast ...
|
||||
|
||||
https://www.open-mesh.org/projects/alfred/wiki
|
||||
|
||||
comment "alfred needs a toolchain w/ dynamic library, threads"
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
5
package/alfred/alfred.hash
Normal file
5
package/alfred/alfred.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://downloads.open-mesh.org/batman/stable/sources/alfred/alfred-2022.1.tar.gz.sha1
|
||||
sha1 14e916bda706ccff510f2ea00bb3143c582c9ff2 alfred-2022.1.tar.gz
|
||||
# Locally computed
|
||||
sha256 3a0ac2bb26e0cb3f2732d4873669a0a22e9825e8f9a8e7abac986363f275097f alfred-2022.1.tar.gz
|
||||
sha256 cecbf53d1148e13256ac29f8b900655b7fc8dc12d59939a95bc2323ea1747025 LICENSES/preferred/GPL-2.0
|
||||
25
package/alfred/alfred.mk
Normal file
25
package/alfred/alfred.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# alfred
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALFRED_VERSION = 2022.1
|
||||
ALFRED_SITE = https://downloads.open-mesh.org/batman/stable/sources/alfred
|
||||
ALFRED_LICENSE = GPL-2.0
|
||||
ALFRED_LICENSE_FILES = LICENSES/preferred/GPL-2.0
|
||||
ALFRED_DEPENDENCIES = libnl
|
||||
|
||||
define ALFRED_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) -C $(@D) \
|
||||
CONFIG_ALFRED_CAPABILITIES=n \
|
||||
CONFIG_ALFRED_GPSD=n
|
||||
endef
|
||||
|
||||
define ALFRED_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/alfred $(TARGET_DIR)/usr/bin/alfred
|
||||
$(INSTALL) -m 0755 -D $(@D)/vis/batadv-vis $(TARGET_DIR)/usr/bin/batadv-vis
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,64 @@
|
||||
From ffc567b790005850c561f9f6590b069b61f5ba20 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Fri, 13 Apr 2018 09:02:37 +0200
|
||||
Subject: [PATCH] Don't use fork() on noMMU platforms
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
[Jörg: update patch for 1.1.6]
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
Upstream: http://mailman.alsa-project.org/pipermail/alsa-devel/2018-November/141376.html
|
||||
[Bernd: update patch for 1.2.15.1]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
---
|
||||
configure.ac | 2 ++
|
||||
src/pcm/pcm_direct.c | 10 +++++++++-
|
||||
2 files changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7a152a4abd20..3cf88c37db56 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -56,6 +56,8 @@ AC_CHECK_FUNCS([eaccess])
|
||||
dnl Enable largefile support
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
+AC_CHECK_FUNC([fork])
|
||||
+
|
||||
SAVE_LIBRARY_VERSION
|
||||
AC_SUBST(LIBTOOL_VERSION_INFO)
|
||||
|
||||
diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c
|
||||
index e53e59238119..cf94c7c1dbf0 100644
|
||||
--- a/src/pcm/pcm_direct.c
|
||||
+++ b/src/pcm/pcm_direct.c
|
||||
@@ -442,13 +442,21 @@ int snd_pcm_direct_server_create(snd_pcm_direct_t *dmix)
|
||||
close(dmix->server_fd);
|
||||
return ret;
|
||||
}
|
||||
-
|
||||
+
|
||||
+#ifdef HAVE_FORK
|
||||
ret = fork();
|
||||
+#else
|
||||
+ ret = vfork();
|
||||
+#endif
|
||||
if (ret < 0) {
|
||||
close(dmix->server_fd);
|
||||
return ret;
|
||||
} else if (ret == 0) {
|
||||
+#ifdef HAVE_FORK
|
||||
ret = fork();
|
||||
+#else
|
||||
+ ret = vfork();
|
||||
+#endif
|
||||
if (ret == 0)
|
||||
server_job(dmix);
|
||||
_exit(EXIT_SUCCESS);
|
||||
--
|
||||
2.43.0
|
||||
|
||||
85
package/alsa-lib/Config.in
Normal file
85
package/alsa-lib/Config.in
Normal file
@@ -0,0 +1,85 @@
|
||||
comment "alsa-lib needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
menuconfig BR2_PACKAGE_ALSA_LIB
|
||||
bool "alsa-lib"
|
||||
# Even though some parts of alsa-lib use threads only when
|
||||
# available, some PCM plugins use them unconditionally. Since
|
||||
# the usage of alsa-lib on no-thread systems is pretty
|
||||
# unlikely, just require thread support globally for alsa-lib.
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
# Temporary until
|
||||
# https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4913
|
||||
# is fixed
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
help
|
||||
The Advanced Linux Sound Architecture (ALSA) provides audio
|
||||
and MIDI functionality to the Linux operating system.
|
||||
|
||||
http://www.alsa-project.org/
|
||||
|
||||
if BR2_PACKAGE_ALSA_LIB
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_PYTHON
|
||||
bool "Python support for alsa-lib"
|
||||
depends on BR2_PACKAGE_PYTHON3
|
||||
help
|
||||
Add python support for alsa-lib.
|
||||
Python will be built and libpython will be installed
|
||||
in the target directory
|
||||
http://www.alsa-project.org/
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_DEVDIR
|
||||
string "directory with ALSA device files"
|
||||
default "/dev/snd"
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_PCM_PLUGINS
|
||||
string "built PCM plugins"
|
||||
default "all" if BR2_USE_MMU
|
||||
default "copy linear route mulaw alaw adpcm rate plug multi file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul" if !BR2_USE_MMU
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_CTL_PLUGINS
|
||||
string "built control plugins"
|
||||
default "all"
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_ALOAD
|
||||
bool "aload"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
bool "mixer"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_PCM
|
||||
bool "pcm"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_RAWMIDI
|
||||
bool "rawmidi"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_HWDEP
|
||||
bool "hwdep"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
bool "seq"
|
||||
default y
|
||||
select BR2_PACKAGE_ALSA_LIB_RAWMIDI
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_UCM
|
||||
bool "ucm"
|
||||
default y
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS
|
||||
bool "old-symbols"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_LIB_TOPOLOGY
|
||||
bool "topology"
|
||||
default y
|
||||
depends on !BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
4
package/alsa-lib/alsa-lib.hash
Normal file
4
package/alsa-lib/alsa-lib.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 f740db7f488255944ffd4428416ee3390a96742856916433df468c281436480e alsa-lib-1.2.16.1.tar.bz2
|
||||
sha256 32434afcc8666ba060e111d715bfdb6c2d5dd8a35fa4d3ab8ad67d8f850d2f2b COPYING
|
||||
sha256 bfe16cf823bcff261fc6a062c07ee96660e3c39678f42f39a788a68dbc234ced aserver/COPYING
|
||||
77
package/alsa-lib/alsa-lib.mk
Normal file
77
package/alsa-lib/alsa-lib.mk
Normal file
@@ -0,0 +1,77 @@
|
||||
################################################################################
|
||||
#
|
||||
# alsa-lib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALSA_LIB_VERSION = 1.2.16.1
|
||||
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2
|
||||
ALSA_LIB_SITE = https://www.alsa-project.org/files/pub/lib
|
||||
ALSA_LIB_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (aserver)
|
||||
ALSA_LIB_LICENSE_FILES = COPYING aserver/COPYING
|
||||
ALSA_LIB_CPE_ID_VENDOR = alsa-project
|
||||
ALSA_LIB_INSTALL_STAGING = YES
|
||||
ALSA_LIB_CFLAGS = $(TARGET_CFLAGS)
|
||||
ALSA_LIB_AUTORECONF = YES
|
||||
ALSA_LIB_CONF_OPTS = \
|
||||
--with-alsa-devdir=$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_DEVDIR)) \
|
||||
--with-pcm-plugins="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_PCM_PLUGINS))" \
|
||||
--with-ctl-plugins="$(call qstrip,$(BR2_PACKAGE_ALSA_LIB_CTL_PLUGINS))"
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
||||
ALSA_LIB_CONF_OPTS += --without-versioned
|
||||
endif
|
||||
|
||||
# Can't build with static & shared at the same time (1.0.25+)
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
ALSA_LIB_CONF_OPTS += \
|
||||
--enable-shared=no \
|
||||
--without-libdl
|
||||
else
|
||||
ALSA_LIB_CONF_OPTS += --enable-static=no
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_ALOAD),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-aload
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-mixer
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-pcm
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_RAWMIDI),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-rawmidi
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_HWDEP),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-hwdep
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_SEQ),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-seq
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_UCM),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-ucm
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-old-symbols
|
||||
endif
|
||||
ifneq ($(BR2_PACKAGE_ALSA_LIB_TOPOLOGY),y)
|
||||
ALSA_LIB_CONF_OPTS += --disable-topology
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
|
||||
ALSA_LIB_CONF_OPTS += \
|
||||
--enable-mixer-pymods \
|
||||
--with-pythonlibs=-lpython$(PYTHON3_VERSION_MAJOR) \
|
||||
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
||||
ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
||||
ALSA_LIB_DEPENDENCIES += python3
|
||||
else
|
||||
ALSA_LIB_CONF_OPTS += --disable-python
|
||||
endif
|
||||
|
||||
ALSA_LIB_CONF_ENV = \
|
||||
CFLAGS="$(ALSA_LIB_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -lm"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
8
package/alsa-plugins/Config.in
Normal file
8
package/alsa-plugins/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_ALSA_PLUGINS
|
||||
bool "alsa-plugins"
|
||||
depends on BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_HWDEP
|
||||
help
|
||||
Advanced Linux Sound Architecture Plugins
|
||||
|
||||
http://www.alsa-project.org/
|
||||
4
package/alsa-plugins/alsa-plugins.hash
Normal file
4
package/alsa-plugins/alsa-plugins.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 7bd8a83d304e8e2d86a25895d8dcb0ef0245a8df32e271959cdbdc6af39b66f2 alsa-plugins-1.2.12.tar.bz2
|
||||
sha256 32434afcc8666ba060e111d715bfdb6c2d5dd8a35fa4d3ab8ad67d8f850d2f2b COPYING
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING.GPL
|
||||
42
package/alsa-plugins/alsa-plugins.mk
Normal file
42
package/alsa-plugins/alsa-plugins.mk
Normal file
@@ -0,0 +1,42 @@
|
||||
################################################################################
|
||||
#
|
||||
# alsa-plugins
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALSA_PLUGINS_VERSION = 1.2.12
|
||||
ALSA_PLUGINS_SOURCE = alsa-plugins-$(ALSA_PLUGINS_VERSION).tar.bz2
|
||||
ALSA_PLUGINS_SITE = https://www.alsa-project.org/files/pub/plugins
|
||||
ALSA_PLUGINS_LICENSE = LGPL-2.1+
|
||||
ALSA_PLUGINS_LICENSE_FILES = COPYING
|
||||
ALSA_PLUGINS_DEPENDENCIES = host-pkgconf alsa-lib
|
||||
|
||||
ALSA_PLUGINS_CONF_OPTS = \
|
||||
--disable-jack \
|
||||
--disable-usbstream \
|
||||
--disable-libav \
|
||||
--disable-maemo-plugin \
|
||||
--disable-maemo-resource-manager \
|
||||
--with-speex=no
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
ALSA_PLUGINS_DEPENDENCIES += pulseaudio
|
||||
ALSA_PLUGINS_CONF_OPTS += --enable-pulseaudio
|
||||
else
|
||||
ALSA_PLUGINS_CONF_OPTS += --disable-pulseaudio
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_UTILS),y)
|
||||
ALSA_PLUGINS_DEPENDENCIES += alsa-utils
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
|
||||
ALSA_PLUGINS_CONF_OPTS += --enable-samplerate
|
||||
ALSA_PLUGINS_DEPENDENCIES += libsamplerate
|
||||
ALSA_PLUGINS_LICENSE += , GPL-2.0+ (samplerate plugin)
|
||||
ALSA_PLUGINS_LICENSE_FILES += COPYING.GPL
|
||||
else
|
||||
ALSA_PLUGINS_CONF_OPTS += --disable-samplerate
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -0,0 +1,110 @@
|
||||
From 4bfd1f15114550e1be7e43ae37a61906e1bff809 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 17 Jul 2022 18:59:48 +0200
|
||||
Subject: [PATCH] alsactl/info.c: fix conditionals on __ALSA_PCM_H and
|
||||
__ALSA_RAWMIDI_H
|
||||
|
||||
Commit bbc74a61ac7c35e506c3d7f76ecf943cb55736a6 ("alsactl: implement
|
||||
'info' command") implemented an alsactl info command. In this
|
||||
implementation, there was an attempt to properly address optional
|
||||
features from alsa-lib by using conditions on __ALSA_PCM_H,
|
||||
__ALSA_RAWMIDI_H.
|
||||
|
||||
Unfortunately, this attempt does not work entirely: only the code
|
||||
inside pcm_device_list(), rawmidi_device_list() was conditionally
|
||||
compiled, but their very prototype also use type definitions provided
|
||||
in pcm.h and rawmidi.h. So really, it's the entire function that needs
|
||||
to be conditionally implemented.
|
||||
|
||||
Also, snd_rawmidi_stream_name() was not handled properly, for the same
|
||||
reason.
|
||||
|
||||
This commit implements pcm_device_list() only if __ALSA_PCM_H is
|
||||
defined, and implements snd_rawmidi_stream_name() and
|
||||
rawmidi_device_list() only if __ALSA_RAWMIDI_H is defined.
|
||||
|
||||
general_card_info() is modified to not call the PCM or raw MIDI
|
||||
functions when support is not available.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Upstream: https://mailman.alsa-project.org/pipermail/alsa-devel/2022-July/203846.html
|
||||
[Bernd: update patch for 1.2.10]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
alsactl/info.c | 14 ++++++++++----
|
||||
1 file changed, 10 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/alsactl/info.c b/alsactl/info.c
|
||||
index 253539d..9bd72af 100644
|
||||
--- a/alsactl/info.c
|
||||
+++ b/alsactl/info.c
|
||||
@@ -22,9 +22,9 @@
|
||||
#include "aconfig.h"
|
||||
#include "alsactl.h"
|
||||
|
||||
+#ifdef __ALSA_PCM_H
|
||||
static int pcm_device_list(snd_ctl_t *ctl, snd_pcm_stream_t stream, bool *first)
|
||||
{
|
||||
-#ifdef __ALSA_PCM_H
|
||||
int err, dev, idx;
|
||||
unsigned int count;
|
||||
snd_pcm_info_t *pcminfo;
|
||||
@@ -76,10 +76,12 @@ static int pcm_device_list(snd_ctl_t *ctl, snd_pcm_stream_t stream, bool *first)
|
||||
idx, snd_pcm_info_get_subdevice_name(pcminfo));
|
||||
}
|
||||
}
|
||||
-#endif
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
+#ifdef __ALSA_RAWMIDI_H
|
||||
static const char *snd_rawmidi_stream_name(snd_rawmidi_stream_t stream)
|
||||
{
|
||||
if (stream == SND_RAWMIDI_STREAM_INPUT)
|
||||
@@ -91,7 +93,6 @@ static const char *snd_rawmidi_stream_name(snd_rawmidi_stream_t stream)
|
||||
|
||||
static int rawmidi_device_list(snd_ctl_t *ctl, snd_rawmidi_stream_t stream, bool *first)
|
||||
{
|
||||
-#ifdef __ALSA_RAWMIDI_H
|
||||
int err, dev, idx;
|
||||
unsigned int count;
|
||||
snd_rawmidi_info_t *info;
|
||||
@@ -143,9 +144,10 @@ static int rawmidi_device_list(snd_ctl_t *ctl, snd_rawmidi_stream_t stream, bool
|
||||
idx, snd_rawmidi_info_get_subdevice_name(info));
|
||||
}
|
||||
}
|
||||
-#endif
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
static int hwdep_device_list(snd_ctl_t *ctl)
|
||||
{
|
||||
@@ -227,17 +229,21 @@ int general_card_info(int cardno)
|
||||
}
|
||||
err = card_info(ctl);
|
||||
|
||||
+#ifdef __ALSA_PCM_H
|
||||
first = true;
|
||||
if (err >= 0)
|
||||
err = pcm_device_list(ctl, SND_PCM_STREAM_PLAYBACK, &first);
|
||||
if (err >= 0)
|
||||
err = pcm_device_list(ctl, SND_PCM_STREAM_CAPTURE, &first);
|
||||
+#endif
|
||||
|
||||
+#ifdef __ALSA_RAWMIDI_H
|
||||
first = true;
|
||||
if (err >= 0)
|
||||
err = rawmidi_device_list(ctl, SND_RAWMIDI_STREAM_INPUT, &first);
|
||||
if (err >= 0)
|
||||
err = rawmidi_device_list(ctl, SND_RAWMIDI_STREAM_OUTPUT, &first);
|
||||
+#endif
|
||||
|
||||
if (err >= 0)
|
||||
err = hwdep_device_list(ctl);
|
||||
--
|
||||
2.36.1
|
||||
|
||||
100
package/alsa-utils/Config.in
Normal file
100
package/alsa-utils/Config.in
Normal file
@@ -0,0 +1,100 @@
|
||||
comment "alsa-utils needs a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU # fork
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
menuconfig BR2_PACKAGE_ALSA_UTILS
|
||||
bool "alsa-utils"
|
||||
depends on BR2_USE_MMU # fork
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
help
|
||||
This package contains the command line utilities for the ALSA
|
||||
project.
|
||||
|
||||
http://www.alsa-project.org/
|
||||
|
||||
if BR2_PACKAGE_ALSA_UTILS
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSACONF
|
||||
bool "alsaconf"
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ACONNECT
|
||||
bool "aconnect"
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSACTL
|
||||
bool "alsactl"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSALOOP
|
||||
bool "alsaloop"
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSAMIXER
|
||||
bool "alsamixer"
|
||||
default y
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
|
||||
comment "alsamixer needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSAUCM
|
||||
bool "alsaucm"
|
||||
select BR2_PACKAGE_ALSA_LIB_UCM
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSATPLG
|
||||
bool "alsatplg"
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
select BR2_PACKAGE_ALSA_LIB_TOPOLOGY
|
||||
|
||||
comment "alsatplg needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_AMIDI
|
||||
bool "amidi"
|
||||
select BR2_PACKAGE_ALSA_LIB_RAWMIDI
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_AMIXER
|
||||
bool "amixer"
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_APLAY
|
||||
bool "aplay/arecord"
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_APLAYMIDI
|
||||
bool "aplaymidi"
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ARECORDMIDI
|
||||
bool "arecordmidi"
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ASEQDUMP
|
||||
bool "aseqdump"
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_ASEQNET
|
||||
bool "aseqnet"
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_BAT
|
||||
bool "bat"
|
||||
help
|
||||
ALSABAT (ALSA Basic Audio Tester) is a simple command-line
|
||||
utility intended to help automate audio driver and sound
|
||||
server testing with little human interaction.
|
||||
|
||||
Note that analysis support in alsabat requires fftw single
|
||||
precision.
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_IECSET
|
||||
bool "iecset"
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST
|
||||
bool "speaker-test"
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
|
||||
endif
|
||||
3
package/alsa-utils/alsa-utils.hash
Normal file
3
package/alsa-utils/alsa-utils.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 092399d5e8749a1d5e188e393157521cec4b75693b60ebb79bbce728cff2232c alsa-utils-1.2.16.tar.bz2
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
|
||||
101
package/alsa-utils/alsa-utils.mk
Normal file
101
package/alsa-utils/alsa-utils.mk
Normal file
@@ -0,0 +1,101 @@
|
||||
################################################################################
|
||||
#
|
||||
# alsa-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALSA_UTILS_VERSION = 1.2.16
|
||||
ALSA_UTILS_SOURCE = alsa-utils-$(ALSA_UTILS_VERSION).tar.bz2
|
||||
ALSA_UTILS_SITE = https://www.alsa-project.org/files/pub/utils
|
||||
ALSA_UTILS_LICENSE = GPL-2.0
|
||||
ALSA_UTILS_LICENSE_FILES = COPYING
|
||||
ALSA_UTILS_INSTALL_STAGING = YES
|
||||
ALSA_UTILS_DEPENDENCIES = host-pkgconf alsa-lib \
|
||||
$(if $(BR2_PACKAGE_NCURSES),ncurses) \
|
||||
$(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSACTL),y)
|
||||
ALSA_UTILS_SELINUX_MODULES += alsa
|
||||
endif
|
||||
|
||||
ALSA_UTILS_CONF_ENV = \
|
||||
ac_cv_prog_ncurses5_config=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS) \
|
||||
LIBS=$(TARGET_NLS_LIBS)
|
||||
|
||||
ALSA_UTILS_CONF_OPTS = \
|
||||
--disable-xmlto \
|
||||
--disable-rst2man \
|
||||
--with-curses=$(if $(BR2_PACKAGE_NCURSES_WCHAR),ncursesw,ncurses)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSALOOP),y)
|
||||
ALSA_UTILS_CONF_OPTS += --enable-alsaloop
|
||||
else
|
||||
ALSA_UTILS_CONF_OPTS += --disable-alsaloop
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER),y)
|
||||
ALSA_UTILS_CONF_OPTS += --disable-alsamixer
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_UTILS_BAT),y)
|
||||
ALSA_UTILS_CONF_OPTS += --enable-bat
|
||||
# Analysis support requires fftw single precision
|
||||
ALSA_UTILS_DEPENDENCIES += $(if $(BR2_PACKAGE_FFTW_SINGLE),fftw-single)
|
||||
else
|
||||
ALSA_UTILS_CONF_OPTS += --disable-bat
|
||||
endif
|
||||
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSACONF) += usr/sbin/alsaconf
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSACTL) += usr/sbin/alsactl
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSALOOP) += usr/bin/alsaloop
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER) += usr/bin/alsamixer
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSATPLG) += usr/bin/alsatplg
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_AMIDI) += usr/bin/amidi
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_AMIXER) += usr/bin/amixer
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_APLAY) += usr/bin/aplay usr/bin/arecord
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_BAT) += usr/bin/alsabat
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_IECSET) += usr/bin/iecset
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ACONNECT) += usr/bin/aconnect
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSAUCM) += usr/bin/alsaucm
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_APLAYMIDI) += usr/bin/aplaymidi
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ARECORDMIDI) += usr/bin/arecordmidi
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ASEQDUMP) += usr/bin/aseqdump
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ASEQNET) += usr/bin/aseqnet
|
||||
ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST) += usr/bin/speaker-test
|
||||
|
||||
define ALSA_UTILS_INSTALL_TARGET_CMDS
|
||||
mkdir -p $(TARGET_DIR)/var/lib/alsa
|
||||
for i in $(ALSA_UTILS_TARGETS_y); do \
|
||||
$(INSTALL) -D -m 755 $(STAGING_DIR)/$$i $(TARGET_DIR)/$$i || exit 1; \
|
||||
done
|
||||
if [ -x "$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
|
||||
mkdir -p $(TARGET_DIR)/usr/share/alsa/speaker-test; \
|
||||
mkdir -p $(TARGET_DIR)/usr/share/sounds/alsa; \
|
||||
cp -rdpf $(STAGING_DIR)/usr/share/alsa/speaker-test/* $(TARGET_DIR)/usr/share/alsa/speaker-test/; \
|
||||
cp -rdpf $(STAGING_DIR)/usr/share/sounds/alsa/* $(TARGET_DIR)/usr/share/sounds/alsa/; \
|
||||
fi
|
||||
if [ -x "$(TARGET_DIR)/usr/sbin/alsactl" ]; then \
|
||||
mkdir -p $(TARGET_DIR)/usr/share/; \
|
||||
cp -rdpf $(STAGING_DIR)/usr/share/alsa/* $(TARGET_DIR)/usr/share/alsa/; \
|
||||
fi
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSACTL)$(BR2_INIT_SYSTEMD),yy)
|
||||
ALSA_UTILS_DEPENDENCIES += systemd
|
||||
ALSA_UTILS_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
|
||||
define ALSA_UTILS_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 $(@D)/alsactl/conf/alsa-restore.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service
|
||||
$(INSTALL) -D -m 0644 $(@D)/alsactl/conf/alsa-state.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service.d
|
||||
printf '[Install]\nWantedBy=multi-user.target\n' \
|
||||
>$(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service.d/buildroot-enable.conf
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service.d
|
||||
printf '[Install]\nWantedBy=multi-user.target\n' \
|
||||
>$(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service.d/buildroot-enable.conf;
|
||||
endef
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
40
package/alsamixergui/0001-misc-fixes.patch
Normal file
40
package/alsamixergui/0001-misc-fixes.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -11,7 +11,10 @@
|
||||
AC_PROG_LN_S
|
||||
|
||||
dnl Checks for libraries.
|
||||
-AC_CHECK_LIB(fltk,numericsort,,AC_MSG_ERROR("missing fltk"))
|
||||
+AC_CHECK_LIB(fltk,numericsort,,
|
||||
+AC_CHECK_LIB(fltk,fl_numericsort,,
|
||||
+AC_MSG_ERROR("missing fltk"))
|
||||
+)
|
||||
AM_PATH_ALSA(0.9.0)
|
||||
|
||||
dnl Checks for header files.
|
||||
--- a/src/alsamixer.cxx 2007-10-21 12:39:11.000000000 -0400
|
||||
+++ b/src/alsamixer.cxx 2007-10-21 12:49:10.000000000 -0400
|
||||
@@ -2081,8 +2081,8 @@ static void
|
||||
mixer_signal_handler (int signal)
|
||||
{
|
||||
if (signal != SIGSEGV)
|
||||
- mixer_abort (ERR_SIGNAL, sys_siglist[signal], 0);
|
||||
- else
|
||||
+ // mixer_abort (ERR_SIGNAL, sys_siglist[signal], 0);
|
||||
+ //else
|
||||
{
|
||||
fprintf (stderr, "\nSegmentation fault.\n");
|
||||
_exit (11);
|
||||
--- a/src/alsamixer.cxx 2006-01-16 12:41:54.000000000 -0600
|
||||
+++ b/src/alsamixer.cxx 2006-01-16 12:45:44.000000000 -0600
|
||||
@@ -653,8 +653,8 @@
|
||||
if (vleft >= 0 && vright >= 0) {
|
||||
if (joined) {
|
||||
#ifdef ALSAMIXER_GUI
|
||||
- for (chn = snd_mixer_selem_channel_id_t(0); chn < SND_MIXER_SCHN_LAST;
|
||||
- snd_mixer_selem_channel_id_t(int(chn)++))
|
||||
+ for (chn = snd_mixer_selem_channel_id_t(0); chn < SND_MIXER_SCHN_LAST;
|
||||
+ snd_mixer_selem_channel_id_t(int(chn)+1))
|
||||
#else
|
||||
for (chn = 0; chn < SND_MIXER_SCHN_LAST; chn++)
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
From c154195fa161575363280aac9e928b7225f0de9e Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Sun, 29 Dec 2019 17:42:13 +0100
|
||||
Subject: [PATCH] configure: fix detection of fltk libs
|
||||
|
||||
Chaining calls to AC_CHECK_LIB one in the other, breaks the configure
|
||||
script, because some internal functions (e.g. ac_fn_c_try_link) would
|
||||
not be defined before they are needed, leading the build to fail as
|
||||
thus:
|
||||
|
||||
checking for snd_tplg_new in -latopology... ./configure: line 4630:
|
||||
ac_fn_c_try_link: command not found
|
||||
no
|
||||
configure: error: No linkable libatopology was found.
|
||||
|
||||
Using AC_CHECK_LIB() in sequence (i.e. one after the other) and
|
||||
memorising the result is not trivial: AC_CHECK_LIB() implements a
|
||||
ddefault action-if-found that append to LIBS, but not if the user
|
||||
ptrovides their own action-if-found.
|
||||
|
||||
Instead, AC_SEARH_LIBS() always append to LIBS, *and* run the
|
||||
user-provided action.
|
||||
|
||||
So, we switch to AC_SEARCH_LIBS() and memorise the result for each
|
||||
test, to eventually test if ether worked.
|
||||
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
---
|
||||
configure.in | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 9307cc2..55f6864 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -11,10 +11,10 @@ AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
|
||||
dnl Checks for libraries.
|
||||
-AC_CHECK_LIB(fltk,numericsort,,
|
||||
-AC_CHECK_LIB(fltk,fl_numericsort,,
|
||||
-AC_MSG_ERROR("missing fltk"))
|
||||
-)
|
||||
+has_fltk=false
|
||||
+AC_SEARCH_LIBS(numericsort,fltk,has_fltk=true)
|
||||
+AC_SEARCH_LIBS(fl_numericsort,fltk,has_fltk=true)
|
||||
+AS_IF(test "${has_fltk}" = "false", AC_MSG_ERROR("missing fltk"))
|
||||
AM_PATH_ALSA(0.9.0)
|
||||
|
||||
dnl Checks for header files.
|
||||
--
|
||||
2.20.1
|
||||
|
||||
18
package/alsamixergui/Config.in
Normal file
18
package/alsamixergui/Config.in
Normal file
@@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_ALSAMIXERGUI
|
||||
bool "alsamixergui"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_MMU # fltk fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
|
||||
select BR2_PACKAGE_FLTK
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
help
|
||||
A nice GUI mixer for Alsa using fltk
|
||||
|
||||
http://www.iua.upf.es/~mdeboer/projects/alsamixergui/
|
||||
|
||||
comment "alsamixergui needs a toolchain w/ C++, threads"
|
||||
depends on BR2_PACKAGE_XORG7 && BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
4
package/alsamixergui/alsamixergui.hash
Normal file
4
package/alsamixergui/alsamixergui.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/a/alsamixergui/alsamixergui_0.9.0rc2-1-9.dsc
|
||||
md5 af942a41b81ba27e2e4d0a1e1ab0decb alsamixergui_0.9.0rc2-1.orig.tar.gz
|
||||
# locally computed
|
||||
sha256 ea617b76dcd0df74576686ca34c281f43bb9d844015cea91e3debc91538d2b1d debian/copyright
|
||||
16
package/alsamixergui/alsamixergui.mk
Normal file
16
package/alsamixergui/alsamixergui.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
################################################################################
|
||||
#
|
||||
# alsamixergui
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALSAMIXERGUI_VERSION = 0.9.0rc2-1
|
||||
ALSAMIXERGUI_SOURCE = alsamixergui_$(ALSAMIXERGUI_VERSION).orig.tar.gz
|
||||
ALSAMIXERGUI_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/a/alsamixergui
|
||||
ALSAMIXERGUI_LICENSE = GPL-2.0+
|
||||
ALSAMIXERGUI_LICENSE_FILES = debian/copyright
|
||||
ALSAMIXERGUI_AUTORECONF = YES
|
||||
|
||||
ALSAMIXERGUI_DEPENDENCIES = fltk alsa-lib
|
||||
|
||||
$(eval $(autotools-package))
|
||||
8
package/altera-stapl/Config.in
Normal file
8
package/altera-stapl/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_ALTERA_STAPL
|
||||
bool "altera-stapl"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8 # libgpiod
|
||||
select BR2_PACKAGE_LIBGPIOD
|
||||
help
|
||||
Altera Jam STAPL Bytecode Player.
|
||||
|
||||
https://github.com/kontron/altera-stapl
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user