Skip to contentSkip to conversation

svn commit: trunk/buildroot/package

Buildroot tpetazzoni at uclibc.org 3 participants 3 messages Dec 15, 2008 – Dec 16, 2008

lore
Share & tools
lore
#0 lore raw

Author: tpetazzoni
Date: 2008-12-15 14:07:38 -0800 (Mon, 15 Dec 2008) New Revision: 24426

Log:
Fix TARGET_PATH for external toolchain builds

TARGET_PATH didn't contain $(STAGING_DIR)/usr/bin, which means that programs installed in $(STAGING_DIR)/usr/bin were not considered for execution during Buildroot build process. This was a problem with host automake/autoconf/libtool, which could not be found.

Modified:
trunk/buildroot/package/Makefile.in

Changeset:
Modified: trunk/buildroot/package/Makefile.in
===================================================================

buildroot/package/Makefile.in +1 -1
@@ -126,7 +126,7 @@
 #"))
 #TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)toolchain_build_$(TOOLCHAIN_EXTERNAL_PREFIX)
 TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)toolchain_build_$(ARCH)$(COND_ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
-TARGET_PATH="$(STAGING_DIR)/bin:$(TOOL_BUILD_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)"
+TARGET_PATH="$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(TOOL_BUILD_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)"
 #IMAGE:=$(BINARIES_DIR)/$(BR2_ROOTFS_PREFIX).$(TOOLCHAIN_EXTERNAL_PREFIX)$(ROOTFS_SUFFIX)
 IMAGE:=$(BINARIES_DIR)/$(BR2_ROOTFS_PREFIX).$(ARCH)$(COND_ARCH_FPU_SUFFIX)$(ROOTFS_SUFFIX)
 
#1 lore raw

Le Mon, 15 Dec 2008 14:07:38 -0800 (PST),
tpetazzoni at uclibc.org a ?crit :

Quoted 4 lines

TARGET_PATH didn't contain $(STAGING_DIR)/usr/bin, which means that programs installed in $(STAGING_DIR)/usr/bin were not considered for execution during Buildroot build process. This was a problem with host automake/autoconf/libtool, which could not be found.

BTW, I'm quite confused by the fact that we install host binaries and target binaries in $(STAGING_DIR). It means that during the build, we have target binaries considered for execution because they are in $(STAGING_DIR)/usr/bin, which is the the PATH during Buildroot execution.

Is there any reason for this ?

I would really find it cleaner to have a separate installation directory for host tools (like toolchain_build_ARCH/bin which contains a symlink to sed).

What do you think ?

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
#2 lore raw
Quoted 14 lines · Thomas Petazzoni

Le Mon, 15 Dec 2008 14:07:38 -0800 (PST),
tpetazzoni at uclibc.org a ?crit :

Quoted 4 lines

TARGET_PATH didn't contain $(STAGING_DIR)/usr/bin, which means that programs installed in $(STAGING_DIR)/usr/bin were not considered for execution during Buildroot build process. This was a problem with host automake/autoconf/libtool, which could not be found.

BTW, I'm quite confused by the fact that we install host binaries and target binaries in $(STAGING_DIR). It means that during the build, we have target binaries considered for execution because they are in $(STAGING_DIR)/usr/bin, which is the the PATH during Buildroot execution.

Quoted 5 lines

Is there any reason for this ?

I would really find it cleaner to have a separate installation directory for host tools (like toolchain_build_ARCH/bin which contains a symlink to sed).

Yes it's a mess. There's host binaries like the compiler etc, and some target binaries provided by various library packages eg openssl, libjpeg..

We need to clean up the Python build situation too (eg build a proper host Python for use in building target Python), but installing all of that into the existing $(STAGING_DIR) will just make it worse.

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>