This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem building redboot
- From: "Mikhail Matusov" <matusov at squarepeg dot ca>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 14 Apr 2010 18:21:54 -0400
- Subject: Re: [ECOS] Problem building redboot
OK, I found a few configurations which build cleanly, so my toolchain is
basically working.
I believe my problem has to do with how the HW_DESIGN environment variable
is being exported and/or how it is interpreted. First, I moved the export
sentence to the .bashrc file to make sure that the variable is available in
all child processes. However, the make or compiler still doesn't see it...
Here is an excerpt from the hal_powerpc_virtex4.cdl showing where $HW_DESIGN
is introduced
cdl_option CYGBLD_GLOBAL_CFLAGS {
display "Global compiler flags"
flavor data
no_define
default_value {
"-I$HW_DESIGN -I$HW_DESIGN/ppc405_0/include -I$ECOS_EXTRA -DVIRTEX4 -msoft-float
-mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual
-g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc"
}
description "
This option controls the global compiler flags which
are used to compile all packages by
default. Individual packages may define
options which override these global flags."
}
I can see that these CFLAGS are shown correctly under the Build/Options in
the configuration tool, however when compiler is called the variable seems
to be empty:
powerpc-eabi-gcc -finline-limit=7000 -I -I/ppc405_0/include -I -DVIRTEX4 -msoft-float
-mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual
-g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -I/opt/ML403-misc/ml403-minimal_install/include
-I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src
-I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/tests -I. -Wp,-MD,ppc_offsets.tmp
-o hal_mk_defs.tmp -S
/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c
Some of the compiler flags (e.g. fvtable-gc) seem to have disappeared as
well...
Running bash from Tools/Shell I can see that it is set and visible:
bash-3.2$ echo $HW_DESIGN
/opt/ML403-redboot/bsp/
So, what's going on here?..
Thanks,
/Mikhail
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss