Skip to content

Commit

Permalink
Package: update majestic-plugins.mk (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda authored Jan 13, 2024
1 parent d393727 commit 02d4f95
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion general/package/majestic-plugins/majestic-plugins.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 $(MAJESTIC_PLUGINS_PATH) -B
endef
else
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 $(@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))

0 comments on commit 02d4f95

Please sign in to comment.