Patchwork toolchain-scripts.bbclass: Export M4

login
register
mail settings
Submitter Khem Raj
Date Oct. 4, 2012, 11:47 p.m.
Message ID <1349394459-26860-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/37791/
State Accepted
Commit 679d76e8656422355f4ce5eef63e93d1d1fd843e
Headers show

Comments

Khem Raj - Oct. 4, 2012, 11:47 p.m.
some packages use M4 variable from environment and sometimes
its hardcoded to /usr/bin/m4 if not found in environment. Lets
define it such that it is picked from path

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/toolchain-scripts.bbclass |    1 +
 1 file changed, 1 insertion(+)
Saul Wold - Oct. 5, 2012, 4:02 p.m.
On 10/04/2012 04:47 PM, Khem Raj wrote:
> some packages use M4 variable from environment and sometimes
> its hardcoded to /usr/bin/m4 if not found in environment. Lets
> define it such that it is picked from path
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>   meta/classes/toolchain-scripts.bbclass |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
> index 44284c3..6d8623c 100644
> --- a/meta/classes/toolchain-scripts.bbclass
> +++ b/meta/classes/toolchain-scripts.bbclass
> @@ -26,6 +26,7 @@ toolchain_create_sdk_env_script () {
>   	echo 'export OBJDUMP=${TARGET_PREFIX}objdump' >> $script
>   	echo 'export AR=${TARGET_PREFIX}ar' >> $script
>   	echo 'export NM=${TARGET_PREFIX}nm' >> $script
> +	echo 'export M4=m4' >> $script
>   	echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script
>   	echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux --with-libtool-sysroot=${SDKTARGETSYSROOT}"' >> $script
>   	if [ "${TARGET_OS}" = "darwin8" ]; then
>

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 44284c3..6d8623c 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -26,6 +26,7 @@  toolchain_create_sdk_env_script () {
 	echo 'export OBJDUMP=${TARGET_PREFIX}objdump' >> $script
 	echo 'export AR=${TARGET_PREFIX}ar' >> $script
 	echo 'export NM=${TARGET_PREFIX}nm' >> $script
+	echo 'export M4=m4' >> $script
 	echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script
 	echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux --with-libtool-sysroot=${SDKTARGETSYSROOT}"' >> $script
 	if [ "${TARGET_OS}" = "darwin8" ]; then