X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=Makefile;h=9bdb03a443ff857497c1961937b4812aa57d3890;hb=4825defe449883cb287bc46a93048473878003f0;hp=bfb52c5ddd63ee2c38d4639c5fd7226e9103667f;hpb=22b7bd6b1355baf7220136b6bd8277a321b70c39;p=openwrt%2Fstaging%2Fhauke.git diff --git a/Makefile b/Makefile index bfb52c5ddd..9bdb03a443 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,10 @@ $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir world: -DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -E '\/usr' -m 1) -export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) +DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -e '/usr' -e '/nix/store' -m 1) + +export ORIG_PATH:=$(if $(ORIG_PATH),$(ORIG_PATH),$(PATH)) +export PATH:=$(if $(STAGING_DIR),$(abspath $(STAGING_DIR)/../host/bin),$(TOPDIR)/staging_dir/host/bin):$(PATH) ifneq ($(OPENWRT_BUILD),1) _SINGLE=export MAKEFLAGS=$(space);