[U-Boot] Compiler error with BUILD_DIR

Günter Leonhardt Guenter.Leonhardt at men.de
Wed Apr 15 09:37:33 CEST 2009


 
Hello Wolfgang,
sorry, again
it's an own board, based on MPC8315ERDB.
The tree is 
u-boot
|---build
|---u-boot-2009.03	

The makefile in u-boot which I use to build:

#----------------------------------------
export BUILD_DIR:=$(shell pwd)/build
export SRC_DIR:=$(shell pwd)/u-boot-2009.03

all:
	CROSS_COMPILE=powerpc-unknown-linux-gnu- make -C $(SRC_DIR) F302P_config
	CROSS_COMPILE=powerpc-unknown-linux-gnu- make -C $(SRC_DIR)


install: 

clean:
	rm -rf $(BUILD_DIR)

distclean: clean

#----------------------------------------

Bets regards 
Guenter


-----Ursprüngliche Nachricht-----
Von: Wolfgang Denk [mailto:wd at denx.de] 
Gesendet: Dienstag, 14. April 2009 17:48
An: Günter Leonhardt
Cc: u-boot at lists.denx.de
Betreff: Re: [U-Boot] Compiler error with BUILD_DIR

Dear Guenter,

In message <D0B748CCD5DF144CA5C56A9D860A31341DE5FB at men-exch1.intra.men.de> you wrote:
>  
> Hello,
> I'am getting an compiler error if I use a seperate BUILD_DIR:
> /home/gl/swserver/work/LINUX/ELINOS_PROJECTS/ELINOS_50/demoF302P/src/u
> -boot> /build/tools/fdt.c:81: error: conflicting types for 
> âfdt_offset_ptrâ
> /usr/include/../include/libfdt.h:125: error: previous declaration of 
> âfdt> _offset_ptrâ was here because I have installed a different version of the dtc.

Which boared configuration is this?

> If I build u-boot without a seperate BUILD_DIR, I get no error.
>
> I'am using u-boot-2009.03.

And what about the current top of tree?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Faith: not *wanting* to know what is true."    - Friedrich Nietzsche


More information about the U-Boot mailing list