* [Buildroot] [PATCH v2 0/6] PATH cleanup
@ 2014-01-18 19:41 Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH Samuel Martin
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Samuel Martin @ 2014-01-18 19:41 UTC (permalink / raw)
To: buildroot
All,
Here is the 2nd round of the PATH cleanup series.
Not that much to say about this new round (the changes are mostly due to
the rebasing onto master).
Note that I've re-posted the following patches because they are unchanged
and still apply properly on master:
* patch 1/6: http://patchwork.ozlabs.org/patch/290493/
* patch 2/6: http://patchwork.ozlabs.org/patch/290494/
* patch 4/6: http://patchwork.ozlabs.org/patch/290495/
Yours,
Samuel
Samuel Martin (6):
Makefile: introduce BR2_PATH
Makefile: add $(HOST_DIR)/sbin to BR2_PATH
*.mk: replace (TARGET|HOST)_PATH by BR2_PATH
infra: remove unused {TARGET,HOST}_PATH definition
pkg-cmake.mk: add PATH in the configure command environment
Makefile: export PATH
Makefile | 4 ++++
fs/ext2/ext2.mk | 2 +-
package/Makefile.in | 12 ++++--------
package/bustle/bustle.mk | 2 +-
package/libhid/libhid.mk | 2 +-
package/pkg-cmake.mk | 2 ++
package/pkg-python.mk | 8 ++++----
package/sdl/sdl.mk | 2 +-
8 files changed, 18 insertions(+), 16 deletions(-)
--
1.8.5.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH
2014-01-18 19:41 [Buildroot] [PATCH v2 0/6] PATH cleanup Samuel Martin
@ 2014-01-18 19:41 ` Samuel Martin
2014-01-27 20:35 ` Thomas Petazzoni
2014-01-18 19:41 ` [Buildroot] [PATCH v2 5/6] pkg-cmake.mk: add PATH in the configure command environment Samuel Martin
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Samuel Martin @ 2014-01-18 19:41 UTC (permalink / raw)
To: buildroot
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v1 -> v2:
- make substitution of new occurenrces (pkg-python.mk and sdl.mk)
---
fs/ext2/ext2.mk | 2 +-
package/Makefile.in | 8 ++++----
package/bustle/bustle.mk | 2 +-
package/libhid/libhid.mk | 2 +-
package/pkg-python.mk | 8 ++++----
package/sdl/sdl.mk | 2 +-
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 0af955f..7b96dda 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -24,7 +24,7 @@ EXT2_ENV = GEN=$(BR2_TARGET_ROOTFS_EXT2_GEN)
EXT2_ENV += REV=$(BR2_TARGET_ROOTFS_EXT2_REV)
define ROOTFS_EXT2_CMD
- PATH=$(TARGET_PATH) $(EXT2_ENV) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $@
+ PATH=$(BR2_PATH) $(EXT2_ENV) fs/ext2/genext2fs.sh -d $(TARGET_DIR) $(EXT2_OPTS) $@
endef
rootfs-ext2-symlink:
diff --git a/package/Makefile.in b/package/Makefile.in
index a940f54..bf6efe1 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -206,7 +206,7 @@ HOST_PATH = $(BR2_PATH)
HOSTCC_VERSION:=$(shell $(HOSTCC_NOCCACHE) --version | \
sed -n 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)[ ]*.*$$/\1\2\3/p')
-TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
+TARGET_CONFIGURE_OPTS=PATH=$(BR2_PATH) \
AR="$(TARGET_AR)" \
AS="$(TARGET_AS)" \
LD="$(TARGET_LD)" \
@@ -244,10 +244,10 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
PERLLIB="$(HOST_DIR)/usr/lib/perl" \
STAGING_DIR="$(STAGING_DIR)"
-TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
+TARGET_MAKE_ENV=PATH=$(BR2_PATH) \
PERLLIB="$(HOST_DIR)/usr/lib/perl"
-HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
+HOST_CONFIGURE_OPTS=PATH=$(BR2_PATH) \
AR="$(HOSTAR)" \
AS="$(HOSTAS)" \
LD="$(HOSTLD)" \
@@ -270,7 +270,7 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
PERLLIB="$(HOST_DIR)/usr/lib/perl" \
LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)"
-HOST_MAKE_ENV=PATH=$(HOST_PATH) \
+HOST_MAKE_ENV=PATH=$(BR2_PATH) \
LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
PKG_CONFIG_SYSROOT_DIR="/" \
diff --git a/package/bustle/bustle.mk b/package/bustle/bustle.mk
index 2330c08..c488dfa 100644
--- a/package/bustle/bustle.mk
+++ b/package/bustle/bustle.mk
@@ -11,7 +11,7 @@ BUSTLE_LICENSE_FILES = LICENSE
BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf
define BUSTLE_BUILD_CMDS
- PATH=$(TARGET_PATH) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+ PATH=$(BR2_PATH) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
PCAP_FLAGS='-lpcap' -C $(@D) dist/build/bustle-pcap
endef
diff --git a/package/libhid/libhid.mk b/package/libhid/libhid.mk
index 97aab5d..ba0ad6b 100644
--- a/package/libhid/libhid.mk
+++ b/package/libhid/libhid.mk
@@ -11,7 +11,7 @@ LIBHID_INSTALL_STAGING = YES
LIBHID_AUTORECONF = YES
# configure runs libusb-config for cflags/ldflags. Ensure it picks up
# the target version
-LIBHID_CONF_ENV = PATH=$(STAGING_DIR)/usr/bin:$(TARGET_PATH)
+LIBHID_CONF_ENV = PATH=$(STAGING_DIR)/usr/bin:$(BR2_PATH)
LIBHID_CONF_OPT = \
--disable-swig \
--disable-werror \
diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index 79e6bcf..357ed8d 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -22,7 +22,7 @@
# Target distutils-based packages
PKG_PYTHON_DISTUTILS_ENV = \
- PATH="$(TARGET_PATH)" \
+ PATH="$(BR2_PATH)" \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
@@ -40,14 +40,14 @@ PKG_PYTHON_DISTUTILS_INSTALL_OPT = \
# Host distutils-based packages
HOST_PKG_PYTHON_DISTUTILS_ENV = \
- PATH="$(HOST_PATH)"
+ PATH="$(BR2_PATH)"
HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPT = \
--prefix=$(HOST_DIR)/usr
# Target setuptools-based packages
PKG_PYTHON_SETUPTOOLS_ENV = \
- PATH="$(TARGET_PATH)" \
+ PATH="$(BR2_PATH)" \
PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \
PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \
CROSS_COMPILING=yes \
@@ -63,7 +63,7 @@ PKG_PYTHON_SETUPTOOLS_INSTALL_OPT = \
# Host setuptools-based packages
HOST_PKG_PYTHON_SETUPTOOLS_ENV = \
- PATH="$(HOST_PATH)" \
+ PATH="$(BR2_PATH)" \
PYTHONXCPREFIX="$(HOST_DIR)/usr/"
HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPT = \
diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk
index ba5fbca..4789ea2 100644
--- a/package/sdl/sdl.mk
+++ b/package/sdl/sdl.mk
@@ -14,7 +14,7 @@ SDL_INSTALL_STAGING = YES
# we're patching configure.in, but package cannot autoreconf with our version of
# autotools, so we have to do it manually instead of setting SD_AUTORECONF = YES
define SDL_RUN_AUTOGEN
- cd $(@D) && PATH=$(HOST_PATH) ./autogen.sh
+ cd $(@D) && PATH=$(BR2_PATH) ./autogen.sh
endef
SDL_POST_PATCH_HOOKS += SDL_RUN_AUTOGEN
--
1.8.5.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2 5/6] pkg-cmake.mk: add PATH in the configure command environment
2014-01-18 19:41 [Buildroot] [PATCH v2 0/6] PATH cleanup Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH Samuel Martin
@ 2014-01-18 19:41 ` Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 6/6] Makefile: export PATH Samuel Martin
2014-01-27 20:34 ` [Buildroot] [PATCH v2 0/6] PATH cleanup Thomas Petazzoni
3 siblings, 0 replies; 6+ messages in thread
From: Samuel Martin @ 2014-01-18 19:41 UTC (permalink / raw)
To: buildroot
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v1 -> v2:
- remove explicit PATH=... in configure commands in pkg-autotools.mk
because it is already added via *_CONFIGURE_OPTS (ThomasP), and
reword the commit message.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/pkg-cmake.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
index 463cd63..36d8648 100644
--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -61,6 +61,7 @@ ifeq ($(5),target)
define $(2)_CONFIGURE_CMDS
(cd $$($$(PKG)_BUILDDIR) && \
rm -f CMakeCache.txt && \
+ PATH=$(BR2_PATH) \
$$($$(PKG)_CONF_ENV) $(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \
-DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake" \
-DCMAKE_INSTALL_PREFIX="/usr" \
@@ -73,6 +74,7 @@ else
define $(2)_CONFIGURE_CMDS
(cd $$($$(PKG)_BUILDDIR) && \
rm -f CMakeCache.txt && \
+ PATH=$(BR2_PATH) \
$(HOST_DIR)/usr/bin/cmake $$($$(PKG)_SRCDIR) \
-DCMAKE_INSTALL_SO_NO_EXE=0 \
-DCMAKE_FIND_ROOT_PATH="$$(HOST_DIR)" \
--
1.8.5.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2 6/6] Makefile: export PATH
2014-01-18 19:41 [Buildroot] [PATCH v2 0/6] PATH cleanup Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 5/6] pkg-cmake.mk: add PATH in the configure command environment Samuel Martin
@ 2014-01-18 19:41 ` Samuel Martin
2014-01-27 20:34 ` [Buildroot] [PATCH v2 0/6] PATH cleanup Thomas Petazzoni
3 siblings, 0 replies; 6+ messages in thread
From: Samuel Martin @ 2014-01-18 19:41 UTC (permalink / raw)
To: buildroot
This can be useful for:
- package using custom build system that are not aware that the host
tree is in $(O)/host/;
- post-{build,image} scripts, in case some host-tools were specifically
built to be used by these scripts.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v1 -> v2:
- extend commit message
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index a9178aa..a8e1585 100644
--- a/Makefile
+++ b/Makefile
@@ -332,6 +332,7 @@ export STAGING_DIR
export HOST_DIR
export BINARIES_DIR
export BASE_DIR
+export PATH:=$(BR2_PATH)
################################################################################
#
--
1.8.5.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2 0/6] PATH cleanup
2014-01-18 19:41 [Buildroot] [PATCH v2 0/6] PATH cleanup Samuel Martin
` (2 preceding siblings ...)
2014-01-18 19:41 ` [Buildroot] [PATCH v2 6/6] Makefile: export PATH Samuel Martin
@ 2014-01-27 20:34 ` Thomas Petazzoni
3 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2014-01-27 20:34 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sat, 18 Jan 2014 20:41:39 +0100, Samuel Martin wrote:
> Note that I've re-posted the following patches because they are unchanged
> and still apply properly on master:
Please always post complete patch series, even if some of the patches
haven't changed. It's very confusing to receive partial patch series,
and it also makes things confusing to handle in patchwork.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH
2014-01-18 19:41 ` [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH Samuel Martin
@ 2014-01-27 20:35 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2014-01-27 20:35 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sat, 18 Jan 2014 20:41:40 +0100, Samuel Martin wrote:
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Please give a proper commit log for this patch, as well as for PATCH
5/6.
I have already asked multiple times to do this, and you continue to
send patches without a proper commit log. A good rule of thumb is that
*all* commits should always have a non-empty commit log. The commit
title is very often insufficient to explain *why* the commit is made.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-01-27 20:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18 19:41 [Buildroot] [PATCH v2 0/6] PATH cleanup Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 3/6] *.mk: replace (TARGET|HOST)_PATH by BR2_PATH Samuel Martin
2014-01-27 20:35 ` Thomas Petazzoni
2014-01-18 19:41 ` [Buildroot] [PATCH v2 5/6] pkg-cmake.mk: add PATH in the configure command environment Samuel Martin
2014-01-18 19:41 ` [Buildroot] [PATCH v2 6/6] Makefile: export PATH Samuel Martin
2014-01-27 20:34 ` [Buildroot] [PATCH v2 0/6] PATH cleanup Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox