diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-02-08 14:28:35 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-02-08 14:28:35 +0000 |
commit | 3fc744d43ee1b6e8865f0e6529dfcbc9279e1b6b (patch) | |
tree | 2c80c6ce23efd8451c6e09d941559d820efe25bc /rules.mk | |
parent | 8ce4f9bef2bedb5e00dba755da2891e865b120b1 (diff) | |
download | master-187ad058-3fc744d43ee1b6e8865f0e6529dfcbc9279e1b6b.tar.gz master-187ad058-3fc744d43ee1b6e8865f0e6529dfcbc9279e1b6b.tar.bz2 master-187ad058-3fc744d43ee1b6e8865f0e6529dfcbc9279e1b6b.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48676 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 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_CXXFLAGS = $(TARGET_CFLAGS) TARGET_ASFLAGS_DEFAULT = $(TARGET_CFLAGS) |