build: fix QUILT related overrides
They need to be defined before including quilt.mk Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
c2dc7321d7
commit
4b8a7c9b48
1 changed files with 12 additions and 10 deletions
|
@ -39,6 +39,18 @@ include $(INCLUDE_DIR)/hardening.mk
|
||||||
include $(INCLUDE_DIR)/prereq.mk
|
include $(INCLUDE_DIR)/prereq.mk
|
||||||
include $(INCLUDE_DIR)/unpack.mk
|
include $(INCLUDE_DIR)/unpack.mk
|
||||||
include $(INCLUDE_DIR)/depends.mk
|
include $(INCLUDE_DIR)/depends.mk
|
||||||
|
|
||||||
|
ifneq ($(if $(CONFIG_SRC_TREE_OVERRIDE),$(wildcard ./git-src)),)
|
||||||
|
USE_GIT_TREE:=1
|
||||||
|
QUILT:=1
|
||||||
|
endif
|
||||||
|
ifdef USE_SOURCE_DIR
|
||||||
|
QUILT:=1
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard $(PKG_BUILD_DIR)/.source_dir),)
|
||||||
|
QUILT:=1
|
||||||
|
endif
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/quilt.mk
|
include $(INCLUDE_DIR)/quilt.mk
|
||||||
|
|
||||||
find_library_dependencies = $(wildcard $(patsubst %,$(STAGING_DIR)/pkginfo/%.version, \
|
find_library_dependencies = $(wildcard $(patsubst %,$(STAGING_DIR)/pkginfo/%.version, \
|
||||||
|
@ -76,16 +88,6 @@ define CleanStaging
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq ($(if $(CONFIG_SRC_TREE_OVERRIDE),$(wildcard ./git-src)),)
|
|
||||||
USE_GIT_TREE:=1
|
|
||||||
QUILT:=1
|
|
||||||
endif
|
|
||||||
ifdef USE_SOURCE_DIR
|
|
||||||
QUILT:=1
|
|
||||||
endif
|
|
||||||
ifneq ($(wildcard $(PKG_BUILD_DIR)/.source_dir),)
|
|
||||||
QUILT:=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
PKG_INSTALL_STAMP:=$(PKG_INFO_DIR)/$(PKG_DIR_NAME).$(if $(BUILD_VARIANT),$(BUILD_VARIANT),default).install
|
PKG_INSTALL_STAMP:=$(PKG_INFO_DIR)/$(PKG_DIR_NAME).$(if $(BUILD_VARIANT),$(BUILD_VARIANT),default).install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue