jadonk / jadonk/rowboat

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

Open
#158 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
No language data
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
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:
- [rules.mk.patch](https://storage.googleapis.com/google-code-attachments/rowboat/issue-158/comment-0/rules.mk.patch)
- [getline.c.patch](https://storage.googleapis.com/google-code-attachments/rowboat/issue-158/comment-0/getline.c.patch)
- [getline.h.patch](https://storage.googleapis.com/google-code-attachments/rowboat/issue-158/comment-0/getline.h.patch)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the u-boot rules.mk, getline.c, and getline.h files, then review the attached patches for the OS X-specific changes. Reproduce with the listed distclean, omap3_beagle_config, and build commands; done means u-boot builds successfully on OS X Lion without the sed or getline errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.