From 3bee494abe875007fd76a7f5fb49724c690d0140 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 2 Jul 2022 13:44:53 +0200 Subject: [PATCH] - vuplus-platform-util: move target to package dir --- make/target-blobs.mk | 60 ----------------- .../vuplus-platform-util.mk | 67 +++++++++++++++++++ 2 files changed, 67 insertions(+), 60 deletions(-) create mode 100644 package/vuplus-platform-util/vuplus-platform-util.mk diff --git a/make/target-blobs.mk b/make/target-blobs.mk index 6dc363a6..f6e371b6 100644 --- a/make/target-blobs.mk +++ b/make/target-blobs.mk @@ -363,63 +363,3 @@ multiboxse-libs: $(DL_DIR)/$(BOXMODEL_LIBS_SOURCE) | $(TARGET_DIR) ln -sf /lib/ld-linux-armhf.so.3 $(TARGET_libdir)/hisilicon/ld-linux.so $(REMOVE)/$(BOXMODEL_LIBS_DIR) $(call TOUCH) - -# ----------------------------------------------------------------------------- - -VUSOLO4K_PLATFORM_UTIL_VERSION = $(VUSOLO4K_DRIVERS_VERSION) -VUSOLO4K_PLATFORM_UTIL_DIR = platform-util-vusolo4k -VUSOLO4K_PLATFORM_UTIL_SOURCE = platform-util-vusolo4k-17.1-$(VUSOLO4K_PLATFORM_UTIL_VERSION).r0.tar.gz -VUSOLO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -VUDUO4K_PLATFORM_UTIL_VERSION = $(VUDUO4K_DRIVERS_VERSION) -VUDUO4K_PLATFORM_UTIL_DIR = platform-util-vuduo4k -VUDUO4K_PLATFORM_UTIL_SOURCE = platform-util-vuduo4k-18.1-$(VUDUO4K_PLATFORM_UTIL_VERSION).r0.tar.gz -VUDUO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -VUDUO4KSE_PLATFORM_UTIL_VERSION = $(VUDUO4KSE_DRIVERS_VERSION) -VUDUO4KSE_PLATFORM_UTIL_DIR = platform-util-vuduo4kse -VUDUO4KSE_PLATFORM_UTIL_SOURCE = platform-util-vuduo4kse-17.1-$(VUDUO4KSE_PLATFORM_UTIL_VERSION).r0.tar.gz -VUDUO4KSE_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -VUULTIMO4K_PLATFORM_UTIL_VERSION = $(VUULTIMO4K_DRIVERS_VERSION) -VUULTIMO4K_PLATFORM_UTIL_DIR = platform-util-vuultimo4k -VUULTIMO4K_PLATFORM_UTIL_SOURCE = platform-util-vuultimo4k-17.1-$(VUULTIMO4K_PLATFORM_UTIL_VERSION).r0.tar.gz -VUULTIMO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -VUZERO4K_PLATFORM_UTIL_VERSION = $(VUZERO4K_DRIVERS_VERSION) -VUZERO4K_PLATFORM_UTIL_DIR = platform-util-vuzero4k -VUZERO4K_PLATFORM_UTIL_SOURCE = platform-util-vuzero4k-17.1-$(VUZERO4K_PLATFORM_UTIL_VERSION).r0.tar.gz -VUZERO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -VUUNO4K_PLATFORM_UTIL_VERSION = $(VUUNO4K_DRIVERS_VERSION) -VUUNO4K_PLATFORM_UTIL_DIR = platform-util-vuuno4k -VUUNO4K_PLATFORM_UTIL_SOURCE = platform-util-vuuno4k-17.1-$(VUUNO4K_PLATFORM_UTIL_VERSION).r0.tar.gz -VUUNO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -VUUNO4KSE_PLATFORM_UTIL_VERSION = $(VUUNO4KSE_DRIVERS_VERSION) -VUUNO4KSE_PLATFORM_UTIL_DIR = platform-util-vuuno4kse -VUUNO4KSE_PLATFORM_UTIL_SOURCE = platform-util-vuuno4kse-17.1-$(VUUNO4KSE_PLATFORM_UTIL_VERSION).r0.tar.gz -VUUNO4KSE_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util - -# ----------------------------------------------------------------------------- - -BOXMODEL_PLATFORM_UTIL_VERSION = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_VERSION) -BOXMODEL_PLATFORM_UTIL_DIR = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_DIR) -BOXMODEL_PLATFORM_UTIL_SOURCE = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_SOURCE) -BOXMODEL_PLATFORM_UTIL_SITE = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_SITE) - -ifneq ($(BOXMODEL_PLATFORM_UTIL_SOURCE),$(empty)) -$(DL_DIR)/$(BOXMODEL_PLATFORM_UTIL_SOURCE): - $(download) $(BOXMODEL_PLATFORM_UTIL_SITE)/$(BOXMODEL_PLATFORM_UTIL_SOURCE) -endif - -vuplus-platform-util: $(DL_DIR)/$(BOXMODEL_PLATFORM_UTIL_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(BOXMODEL_PLATFORM_UTIL_DIR) - $(UNTAR)/$(BOXMODEL_PLATFORM_UTIL_SOURCE) - $(INSTALL_EXEC) -D $(BUILD_DIR)/$(BOXMODEL_PLATFORM_UTIL_DIR)/* $(TARGET_bindir) - $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/vuplus-platform-util.init $(TARGET_sysconfdir)/init.d/vuplus-platform-util -ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k)) - $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/bp3flash.sh $(TARGET_bindir)/bp3flash.sh -endif - $(REMOVE)/$(BOXMODEL_PLATFORM_UTIL_DIR) - $(call TOUCH) diff --git a/package/vuplus-platform-util/vuplus-platform-util.mk b/package/vuplus-platform-util/vuplus-platform-util.mk new file mode 100644 index 00000000..decf17d8 --- /dev/null +++ b/package/vuplus-platform-util/vuplus-platform-util.mk @@ -0,0 +1,67 @@ +################################################################################ +# +# vuplus platform-util +# +################################################################################ + +VUSOLO4K_PLATFORM_UTIL_VERSION = $(VUSOLO4K_DRIVERS_VERSION) +VUSOLO4K_PLATFORM_UTIL_DIR = platform-util-vusolo4k +VUSOLO4K_PLATFORM_UTIL_SOURCE = platform-util-vusolo4k-17.1-$(VUSOLO4K_PLATFORM_UTIL_VERSION).r0.tar.gz +VUSOLO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +VUDUO4K_PLATFORM_UTIL_VERSION = $(VUDUO4K_DRIVERS_VERSION) +VUDUO4K_PLATFORM_UTIL_DIR = platform-util-vuduo4k +VUDUO4K_PLATFORM_UTIL_SOURCE = platform-util-vuduo4k-18.1-$(VUDUO4K_PLATFORM_UTIL_VERSION).r0.tar.gz +VUDUO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +VUDUO4KSE_PLATFORM_UTIL_VERSION = $(VUDUO4KSE_DRIVERS_VERSION) +VUDUO4KSE_PLATFORM_UTIL_DIR = platform-util-vuduo4kse +VUDUO4KSE_PLATFORM_UTIL_SOURCE = platform-util-vuduo4kse-17.1-$(VUDUO4KSE_PLATFORM_UTIL_VERSION).r0.tar.gz +VUDUO4KSE_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +VUULTIMO4K_PLATFORM_UTIL_VERSION = $(VUULTIMO4K_DRIVERS_VERSION) +VUULTIMO4K_PLATFORM_UTIL_DIR = platform-util-vuultimo4k +VUULTIMO4K_PLATFORM_UTIL_SOURCE = platform-util-vuultimo4k-17.1-$(VUULTIMO4K_PLATFORM_UTIL_VERSION).r0.tar.gz +VUULTIMO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +VUZERO4K_PLATFORM_UTIL_VERSION = $(VUZERO4K_DRIVERS_VERSION) +VUZERO4K_PLATFORM_UTIL_DIR = platform-util-vuzero4k +VUZERO4K_PLATFORM_UTIL_SOURCE = platform-util-vuzero4k-17.1-$(VUZERO4K_PLATFORM_UTIL_VERSION).r0.tar.gz +VUZERO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +VUUNO4K_PLATFORM_UTIL_VERSION = $(VUUNO4K_DRIVERS_VERSION) +VUUNO4K_PLATFORM_UTIL_DIR = platform-util-vuuno4k +VUUNO4K_PLATFORM_UTIL_SOURCE = platform-util-vuuno4k-17.1-$(VUUNO4K_PLATFORM_UTIL_VERSION).r0.tar.gz +VUUNO4K_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +VUUNO4KSE_PLATFORM_UTIL_VERSION = $(VUUNO4KSE_DRIVERS_VERSION) +VUUNO4KSE_PLATFORM_UTIL_DIR = platform-util-vuuno4kse +VUUNO4KSE_PLATFORM_UTIL_SOURCE = platform-util-vuuno4kse-17.1-$(VUUNO4KSE_PLATFORM_UTIL_VERSION).r0.tar.gz +VUUNO4KSE_PLATFORM_UTIL_SITE = http://code.vuplus.com/download/release/platform-util + +# ----------------------------------------------------------------------------- + +VUPLUS_PLATFORM_UTIL_VERSION = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_VERSION) +VUPLUS_PLATFORM_UTIL_DIR = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_DIR) +VUPLUS_PLATFORM_UTIL_SOURCE = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_SOURCE) +VUPLUS_PLATFORM_UTIL_SITE = $($(call UPPERCASE,$(BOXMODEL))_PLATFORM_UTIL_SITE) + +define VUPLUS_PLATFORM_UTIL_INSTALL_BINARIES + $(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/* $(TARGET_bindir) +endef +VUPLUS_PLATFORM_UTIL_INDIVIDUAL_HOOKS += VUPLUS_PLATFORM_UTIL_INSTALL_BINARIES + +define VUPLUS_PLATFORM_UTIL_INSTALL_INIT_SCRIPT + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/vuplus-platform-util.init $(TARGET_sysconfdir)/init.d/vuplus-platform-util +endef +VUPLUS_PLATFORM_UTIL_INDIVIDUAL_HOOKS += VUPLUS_PLATFORM_UTIL_INSTALL_INIT_SCRIPT + +ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k)) +define VUPLUS_PLATFORM_UTIL_INSTALL_BP3FLASH_SH + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/bp3flash.sh $(TARGET_bindir)/bp3flash.sh +endef +VUPLUS_PLATFORM_UTIL_INDIVIDUAL_HOOKS += VUPLUS_PLATFORM_UTIL_INSTALL_BP3FLASH_SH +endif + +vuplus-platform-util: | $(TARGET_DIR) + $(call individual-package)