mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
pkg-download: allow relative BR2_DL_DIR
And move the BUILDROOT_DL_DIR override here as well for consistency. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
48a68499d1
commit
a77ee7fd40
11
Makefile
11
Makefile
@ -96,11 +96,6 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
|||||||
-include $(CONFIG_DIR)/.config
|
-include $(CONFIG_DIR)/.config
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Override BR2_DL_DIR if shell variable defined
|
|
||||||
ifneq ($(BUILDROOT_DL_DIR),)
|
|
||||||
BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# To put more focus on warnings, be less verbose as default
|
# To put more focus on warnings, be less verbose as default
|
||||||
# Use 'make V=1' to see the full commands
|
# Use 'make V=1' to see the full commands
|
||||||
ifdef V
|
ifdef V
|
||||||
@ -363,7 +358,7 @@ TARGETS_LEGAL_INFO:=$(patsubst %,%-legal-info,\
|
|||||||
# all targets depend on the crosscompiler and it's prerequisites
|
# all targets depend on the crosscompiler and it's prerequisites
|
||||||
$(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) %
|
$(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) %
|
||||||
|
|
||||||
dirs: $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
dirs: $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
||||||
$(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
$(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
||||||
|
|
||||||
$(BASE_TARGETS): dirs $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake
|
$(BASE_TARGETS): dirs $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake
|
||||||
@ -379,7 +374,7 @@ world: prepare dirs dependencies $(BASE_TARGETS) $(TARGETS_ALL)
|
|||||||
legal-info legal-info-prepare legal-info-clean \
|
legal-info legal-info-prepare legal-info-clean \
|
||||||
$(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
|
$(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
|
||||||
$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
|
$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
|
||||||
$(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
$(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
||||||
$(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
$(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
@ -388,7 +383,7 @@ world: prepare dirs dependencies $(BASE_TARGETS) $(TARGETS_ALL)
|
|||||||
# dependencies anywhere else
|
# dependencies anywhere else
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
$(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR) $(LEGAL_INFO_DIR) $(REDIST_SOURCES_DIR):
|
$(TOOLCHAIN_DIR) $(BUILD_DIR) $(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR) $(LEGAL_INFO_DIR) $(REDIST_SOURCES_DIR):
|
||||||
@mkdir -p $@
|
@mkdir -p $@
|
||||||
|
|
||||||
$(STAGING_DIR):
|
$(STAGING_DIR):
|
||||||
|
@ -22,11 +22,20 @@ LOCALFILES:=$(call qstrip,$(BR2_LOCALFILES))
|
|||||||
# external-deps target.
|
# external-deps target.
|
||||||
DL_MODE=DOWNLOAD
|
DL_MODE=DOWNLOAD
|
||||||
|
|
||||||
DL_DIR=$(call qstrip,$(BR2_DL_DIR))
|
# Override BR2_DL_DIR if shell variable defined
|
||||||
|
ifneq ($(BUILDROOT_DL_DIR),)
|
||||||
|
DL_DIR:=$(BUILDROOT_DL_DIR)
|
||||||
|
else
|
||||||
|
DL_DIR:=$(call qstrip,$(BR2_DL_DIR))
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(DL_DIR),)
|
ifeq ($(DL_DIR),)
|
||||||
DL_DIR:=$(TOPDIR)/dl
|
DL_DIR:=$(TOPDIR)/dl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# ensure it exists and a absolute path
|
||||||
|
DL_DIR:=$(shell mkdir -p $(DL_DIR) && cd $(DL_DIR) >/dev/null && pwd)
|
||||||
|
|
||||||
#
|
#
|
||||||
# URI scheme helper functions
|
# URI scheme helper functions
|
||||||
# Example URIs:
|
# Example URIs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user