mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 05:06:39 +00:00
Makefile: introduce BR_PATH
Since the HOST_PATH and TARGET_PATH variables almost contain the same things, let's factorize this in a single BR_PATH. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
f98721c2ab
commit
caa329bffd
3
Makefile
3
Makefile
@ -330,6 +330,9 @@ TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
|
|||||||
# packages compiled for the host go here
|
# packages compiled for the host go here
|
||||||
HOST_DIR:=$(call qstrip,$(BR2_HOST_DIR))
|
HOST_DIR:=$(call qstrip,$(BR2_HOST_DIR))
|
||||||
|
|
||||||
|
# Quotes are needed for spaces and all in the original PATH content.
|
||||||
|
BR_PATH = "$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin:$(PATH)"
|
||||||
|
|
||||||
# locales to generate
|
# locales to generate
|
||||||
GENERATE_LOCALE=$(call qstrip,$(BR2_GENERATE_LOCALE))
|
GENERATE_LOCALE=$(call qstrip,$(BR2_GENERATE_LOCALE))
|
||||||
|
|
||||||
|
@ -168,8 +168,7 @@ else
|
|||||||
TARGET_CROSS=$(HOST_DIR)/usr/bin/$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))-
|
TARGET_CROSS=$(HOST_DIR)/usr/bin/$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))-
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Quotes are needed for spaces et al in path components.
|
TARGET_PATH = $(BR_PATH)
|
||||||
TARGET_PATH="$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(PATH)"
|
|
||||||
|
|
||||||
# Define TARGET_xx variables for all common binutils/gcc
|
# Define TARGET_xx variables for all common binutils/gcc
|
||||||
TARGET_AR = $(TARGET_CROSS)ar
|
TARGET_AR = $(TARGET_CROSS)ar
|
||||||
@ -224,7 +223,7 @@ HOST_CFLAGS ?= -O2
|
|||||||
HOST_CFLAGS += $(HOST_CPPFLAGS)
|
HOST_CFLAGS += $(HOST_CPPFLAGS)
|
||||||
HOST_CXXFLAGS += $(HOST_CFLAGS)
|
HOST_CXXFLAGS += $(HOST_CFLAGS)
|
||||||
HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib
|
HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib
|
||||||
HOST_PATH=$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(PATH)
|
HOST_PATH = $(BR_PATH)
|
||||||
|
|
||||||
# hostcc version as an integer - E.G. 4.3.2 => 432
|
# hostcc version as an integer - E.G. 4.3.2 => 432
|
||||||
HOSTCC_VERSION:=$(shell $(HOSTCC_NOCCACHE) --version | \
|
HOSTCC_VERSION:=$(shell $(HOSTCC_NOCCACHE) --version | \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user