Package: filter plugins by vendor (#1285)

pull/1287/head
viktorxda 2024-01-29 13:32:33 +01:00 committed by GitHub
parent 0d0bef8da6
commit 4cc7781e0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 12 deletions

View File

@ -3,7 +3,7 @@
# OpenIPC.org | 2024
#
scr_version=1.0.34
scr_version=1.0.35
args=" $@"
@ -102,7 +102,7 @@ download_firmware() {
free_resources() {
echo_c 37 "\nStop services, sync files, free up memory"
for proc in crond klogd majestic ntpd rngd syslogd; do
for proc in majestic crond klogd ntpd rngd syslogd; do
echo -n "Killing $proc "
while [ -n "$(pidof $proc)" ]; do
killall -q $proc

View File

@ -1,7 +1,6 @@
config BR2_PACKAGE_MAJESTIC
bool "Majestic streamer"
default n
select BR2_PACKAGE_MAJESTIC_PLUGINS
help
Tiny but powerful IPC streaming software
(non-commercial version for personal use only)

View File

@ -12,10 +12,8 @@ MAJESTIC_LICENSE_FILES = LICENSE
MAJESTIC_FAMILY = $(OPENIPC_SOC_FAMILY)
MAJESTIC_RELEASE = $(OPENIPC_FLAVOR)
# filter Majestic ultimate for these platforms
MAJESTIC_LIST = t20 t21 hi3516av100 hi3519v101
ifneq ($(filter $(MAJESTIC_LIST),$(MAJESTIC_FAMILY)),)
MAJESTIC_ULTIMATE = t20 t21 hi3516av100 hi3519v101
ifneq ($(filter $(MAJESTIC_ULTIMATE),$(MAJESTIC_FAMILY)),)
MAJESTIC_RELEASE = lite
endif
@ -23,19 +21,22 @@ ifeq ($(MAJESTIC_RELEASE),lte)
MAJESTIC_RELEASE = fpv
endif
MAJESTIC_DEPENDENCIES = \
MAJESTIC_VENDOR = hisilicon goke ingenic sigmastar
ifneq ($(filter $(MAJESTIC_VENDOR),$(OPENIPC_SOC_VENDOR)),)
MAJESTIC_DEPENDENCIES += majestic-plugins
endif
MAJESTIC_DEPENDENCIES += \
libevent-openipc \
libogg-openipc \
mbedtls-openipc \
opus-openipc \
json-c
MAJESTIC_STRIP_COMPONENTS = 0
define MAJESTIC_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc
$(INSTALL) -m 644 $(@D)/majestic-mini.yaml $(TARGET_DIR)/etc/majestic.yaml
$(INSTALL) -m 644 $(@D)/majestic.yaml $(TARGET_DIR)/etc/majestic.full
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc $(@D)/majestic.yaml
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc $(@D)/majestic.full
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
$(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(MAJESTIC_PKGDIR)/files/S95majestic