blob: 4c41eaf3ff249bba04d2cff2c4cd50c3f94edf4a [file] [log] [blame]
MV_CPSS_SITE=repo://vendor/marvell/cpss
MV_CPSS_DEPENDENCIES=
MV_CPSS_INSTALL_STAGING = YES
MV_CPSS_INSTALL_TARGET = YES
MV_CPSS_ENV = \
TARGET_CROSS=$(TARGET_CROSS) \
STAGING_DIR=$(STAGING_DIR) \
BR2_JLEVEL=$(BR2_JLEVEL) \
define MV_CPSS_CONFIGURE_CMDS
$(MV_CPSS_ENV) $(MAKE) -C $(@D) configure
endef
define MV_CPSS_BUILD_CMDS
$(MV_CPSS_ENV) $(MAKE) -C $(@D) build
endef
define MV_CPSS_INSTALL_STAGING_CMDS
$(MV_CPSS_ENV) $(MAKE) PKGCONFIG=YES -C $(@D) buildlib
endef
define MV_CPSS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/cpss $(TARGET_DIR)/usr/bin/cpss
mkdir -p $(TARGET_DIR)/usr/lib/cpss/
cp -R $(@D)/src/cpss/luaCli/scripts $(TARGET_DIR)/usr/lib/cpss/
endef
define MV_CPSS_UNINSTALL_STAGING_CMDS
rm -rf $(STAGING_DIR)/usr/include/cpss
rm -rf $(STAGING_DIR)/usr/lib/cpss
endef
define MV_CPSS_UNINSTALL_TARGET_CMDS
rm $(TARGET_DIR)/usr/bin/cpss
rm -rf $(TARGET_DIR)/usr/lib/cpss
endef
$(eval $(call GENTARGETS))