Skip to content

Commit

Permalink
build: fix QUILT related overrides
Browse files Browse the repository at this point in the history
They need to be defined before including quilt.mk

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed May 25, 2017
1 parent c2dc732 commit 4b8a7c9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions include/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ include $(INCLUDE_DIR)/hardening.mk
include $(INCLUDE_DIR)/prereq.mk
include $(INCLUDE_DIR)/unpack.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

find_library_dependencies = $(wildcard $(patsubst %,$(STAGING_DIR)/pkginfo/%.version, \
Expand Down Expand Up @@ -76,16 +88,6 @@ define CleanStaging
)
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

Expand Down

0 comments on commit 4b8a7c9

Please sign in to comment.