mark-vogt / rowboat

Automatically exported from code.google.com/p/rowboat
0 stars 0 forks source link

Patch to allow building of u-boot from OS-X Lion #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm looking to help and provide input of value to the rowboat project.

Actually 2 issues here:
1. The os-x flavor of 'sed' does not recognize the \w literal inside the 
regular expressions. One must modify the rules.mk sed regex's to account for 
that, replace the \w with [[:alnum:]_]
2. After resolving that there is a conflict when building from os-x lion with a 
redefinition of getline().

What steps will reproduce the problem?
1. cd to rowboat-android/u-boot.
2. run 'make CROSS_COMPILE=arm-linux-androideabi- distclean'
3. run 'make CROSS_COMPILE=arm-linux-androideabi- omap3_beagle_config'
4. run 'make CROSS_COMPILE=arm-linux-androideabi-'

What is the expected output? What do you see instead?
Expectation is successful building of u-boot. Instead the following error 
occurs...

In file included from os_support.h:32,
                 from img2srec.c:55:
getline.h:1: error: conflicting types for ‘getline’
/usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here
make[1]: *** [img2srec.o] Error 1
make: *** [tools] Error 2

What version of the product are you using? On what operating system?
'repo sync' completed at 3/30/2012 10:30PM EST.

Please provide any additional information below.
See attachments for patch files resolving these issues.

Original issue reported on code.google.com by andrewpe...@gmail.com on 31 Mar 2012 at 2:59

Attachments: