Re: [U-Boot] [Almost solved] M5282EVB undefined reference to `environment'

2011-11-30 Thread James Steward
On 30/11/11 17:58, Igor Grinberg wrote: On 11/30/11 00:58, James Steward wrote: On 25/11/11 14:52, James Steward wrote: So it compiles env_embedded.c, but doesn't include it in libcommon.o? vim common/Makefile XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o becomes COBJS-$(CONFIG_ENV_I

Re: [U-Boot] [Almost solved] M5282EVB undefined reference to `environment'

2011-11-29 Thread Igor Grinberg
On 11/30/11 00:58, James Steward wrote: > On 25/11/11 14:52, James Steward wrote: > >> So it compiles env_embedded.c, but doesn't include it in libcommon.o? >> >> >> vim common/Makefile >> >> XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o >> >> becomes >> >> COBJS-$(CONFIG_ENV_IS_IN_FLASH) +=

Re: [U-Boot] [Almost solved] M5282EVB undefined reference to `environment'

2011-11-29 Thread James Steward
On 25/11/11 14:52, James Steward wrote: So it compiles env_embedded.c, but doesn't include it in libcommon.o? vim common/Makefile XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o becomes COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o :q make all Hey, presto, build now completes! S

Re: [U-Boot] [Almost solved] M5282EVB undefined reference to `environment'

2011-11-24 Thread James Steward
On 24/11/11 17:36, Igor Grinberg wrote: On 11/24/11 01:58, James Steward wrote: A search with grep CONFIG_ENV_IS_EMBEDDED `find . -name "*.h"` indicates the answer is no. Should it be set? AFAIK, environment variable is used only when you have ENV_IS_EMBEDDED set. Also, there is some logic in