mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* re-generate the builtin environment
@ 2018-02-16  9:09 Giorgio Dal Molin
  2018-02-19  6:27 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Giorgio Dal Molin @ 2018-02-16  9:09 UTC (permalink / raw)
  To: barebox

Hi,

I want to build a default environment in the barebox for my
board.


For this I defined the following vars in the .config file:

...
CONFIG_DEFAULT_ENVIRONMENT=y
CONFIG_DEFAULT_COMPRESSION_LZ4=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_DFU=y
CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/am335x-evm/defaultenv-am335x_evm"
...

What I observe is that the first time I build barebox the default env is also built;
but after that, if I modify something under CONFIG_DEFAULT_ENVIRONMENT_PATH and
just rebuild the barebox dir. without a 'make clean' then the changes are missed.

It this correct or do I do something wrong.

The second question is: I noticed that in the board Makefile:

 arch/arm/boards/am335x-evm/Makefile

one can add the definition:

bbenv-y += defaultenv-am335x_evm

Isn't it a duplicate of the CONFIG_DEFAULT_ENVIRONMENT_PATH make var. ?

giorgio

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: re-generate the builtin environment
  2018-02-16  9:09 re-generate the builtin environment Giorgio Dal Molin
@ 2018-02-19  6:27 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-02-19  6:27 UTC (permalink / raw)
  To: Giorgio Dal Molin; +Cc: barebox

Hi Giorgio,

On Fri, Feb 16, 2018 at 10:09:00AM +0100, Giorgio Dal Molin wrote:
> Hi,
> 
> I want to build a default environment in the barebox for my
> board.
> 
> 
> For this I defined the following vars in the .config file:
> 
> ...
> CONFIG_DEFAULT_ENVIRONMENT=y
> CONFIG_DEFAULT_COMPRESSION_LZ4=y
> CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
> CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_DFU=y
> CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/am335x-evm/defaultenv-am335x_evm"
> ...
> 
> What I observe is that the first time I build barebox the default env is also built;
> but after that, if I modify something under CONFIG_DEFAULT_ENVIRONMENT_PATH and
> just rebuild the barebox dir. without a 'make clean' then the changes are missed.
> 
> It this correct or do I do something wrong.
> 
> The second question is: I noticed that in the board Makefile:
> 
>  arch/arm/boards/am335x-evm/Makefile
> 
> one can add the definition:
> 
> bbenv-y += defaultenv-am335x_evm

Try this one instead. Traditionally there has only been
CONFIG_DEFAULT_ENVIRONMENT_PATH. bbenv-y is for compiling different
separate environment snippets into the binary and to activate them
later in the code. Adding bbenv-y like above doesn't change anything,
the snippet needs to be loaded using:

defaultenv_append_directory(defaultenv_am335x_evm);

This is used for compiling barebox for multiple boards and decide during
runtime which board specific env should be used.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-19  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16  9:09 re-generate the builtin environment Giorgio Dal Molin
2018-02-19  6:27 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox