rules.mk: add TARGET_INIT_PATH toplevel variables
Add a new variable TARGET_INIT_PATH which holds the default $PATH variable value configured in menuconfig. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48676
This commit is contained in:
parent
d07d65ec30
commit
064761d1db
1 changed files with 2 additions and 0 deletions
2
rules.mk
2
rules.mk
|
@ -139,6 +139,8 @@ BUILD_DIR_HOST:=$(if $(IS_PACKAGE_BUILD),$(BUILD_DIR)/host,$(BUILD_DIR_BASE)/hos
|
||||||
STAGING_DIR_HOST:=$(TOPDIR)/staging_dir/host
|
STAGING_DIR_HOST:=$(TOPDIR)/staging_dir/host
|
||||||
|
|
||||||
TARGET_PATH:=$(subst $(space),:,$(filter-out .,$(filter-out ./,$(subst :,$(space),$(PATH)))))
|
TARGET_PATH:=$(subst $(space),:,$(filter-out .,$(filter-out ./,$(subst :,$(space),$(PATH)))))
|
||||||
|
TARGET_INIT_PATH:=$(call qstrip,$(CONFIG_TARGET_INIT_PATH))
|
||||||
|
TARGET_INIT_PATH:=$(if $(TARGET_INIT_PATH),$(TARGET_INIT_PATH),/usr/sbin:/sbin:/usr/bin:/bin)
|
||||||
TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) $(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION))
|
TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) $(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION))
|
||||||
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
||||||
TARGET_ASFLAGS_DEFAULT = $(TARGET_CFLAGS)
|
TARGET_ASFLAGS_DEFAULT = $(TARGET_CFLAGS)
|
||||||
|
|
Loading…
Reference in a new issue