Package: update majestic-plugins.mk (#1253)

pull/1254/head
viktorxda 2024-01-13 23:56:52 +01:00 committed by GitHub
parent d393727aad
commit 02d4f95a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -4,8 +4,23 @@
#
################################################################################
MAJESTIC_PLUGINS_SITE = https://github.com/openipc/majestic-plugins/archive
MAJESTIC_PLUGINS_SOURCE = master.tar.gz
MAJESTIC_PLUGINS_PATH = $(BASE_DIR)/../majestic-plugins
ifneq ($(wildcard $(MAJESTIC_PLUGINS_PATH)),)
define MAJESTIC_PLUGINS_BUILD_CMDS
$(MAKE) CC=$(TARGET_CC) TARGET=$(OPENIPC_SOC_VENDOR) -C $(BASE_DIR)/../majestic-plugins -B
$(MAKE) CC=$(TARGET_CC) TARGET=$(OPENIPC_SOC_VENDOR) -C $(MAJESTIC_PLUGINS_PATH) -B
endef
else
define MAJESTIC_PLUGINS_BUILD_CMDS
$(MAKE) CC=$(TARGET_CC) TARGET=$(OPENIPC_SOC_VENDOR) -C $(@D) -B
endef
define MAJESTIC_PLUGINS_INSTALL_TARGET_CMDS
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib $(@D)/$(OPENIPC_SOC_VENDOR).so
endef
endif
$(eval $(generic-package))