[PATCH] fixup! defaultenv: generate force-built-in (zero) environment file

Masahiro YAMADA yamada.m at jp.panasonic.com
Wed Feb 4 08:09:33 PST 2015


Hi Jan,


2015-02-04 23:39 GMT+09:00 Jan Lübbe <jlu at pengutronix.de>:
> On Di, 2015-02-03 at 18:45 +0900, Masahiro Yamada wrote:
>> Without this, out-of-tree build (O=option) fails.
>>
>> diff --git a/defaultenv/Makefile b/defaultenv/Makefile
>> index 8a001ec..33e0ece 100644
>> --- a/defaultenv/Makefile
>> +++ b/defaultenv/Makefile
>> @@ -24,7 +24,7 @@ $(obj)/barebox_default_env.h: $(obj)/barebox_default_env$(DEFAULT_COMPRESSION_SU
>>       $(call if_changed,env_h)
>>
>>  quiet_cmd_env_zero = ENVZ    $@
>> -cmd_env_zero = ($(srctree)/scripts/bareboxenv -z $(CONFIG_DEFAULT_ENVIRONMENT_PATH) $@)
>> +cmd_env_zero = ($(objtree)/scripts/bareboxenv -z $(CONFIG_DEFAULT_ENVIRONMENT_PATH) $@)
>
> I adapted this from the same file a few lines above:
> quiet_cmd_env_default = ENV     $@
> cmd_env_default = ($(srctree)/scripts/genenv $(srctree) $(objtree) $@ $(CONFIG_DEFAULT_ENVIRONMENT_PATH))
>
> Why didn't this fail for your?
>

scripts/getenv is a shell script.
It resides in the source directory.


On the other hand, scripts/bareboxenv is a C program
that is compiled from bareboxenv.c.


That's the difference.



-- 
Best Regards
Masahiro Yamada



More information about the barebox mailing list