kobolabs / Kobo-Reader

http://www.koboereader.com/
598 stars 126 forks source link

Build script enhancements for newer tools, x64 host, out-of-tree, error handling #2

Closed ringerc closed 13 years ago

ringerc commented 13 years ago

Hi

I've now done a full build of the Kobo userspace, or those parts of it released here. I had to make some changes to your build scripts to fix issues related to the build host I'm using, a Fedora 14 x64 box with a very new `make' . In the process I landed up significantly reworking the build scripts so they aborted on error, didn't rebuild already-built libraries, kept logs, etc. The detailed change list is in the commit header for that change (0deffc84).

There are also two other very safe patches here. The first is an update config.sub from a more recent autotools so that jpeg6b doesn't spit the dummy when compiled on an x64 host (still for arm target, of course). The second is the busybox make compatibility patch that lets it compile with make 3.82.

All three patches are independent of each other and may be applied (or not applied) in any combination and in any order.

If you want to test my changes to the build scripts before pulling them - and I do suggest that you test them - just clone my fork of the repo and build using that. Assuming your current working tree is "KoboReader":

git clone --reference KoboReader -b pushupstream git@github.com:ringerc/Kobo-Reader.git koboreader-ringerc

that'll do a fast clone, sharing (read-only) most of the repo contents, into koboreader-ringerc. If you don't want the sharing, just remove the "--reference KoboReader" argument.

You can then do a test build, either in-tree like before or out of tree:

mkdir -p ~/kobo/tmp ~/kobo/fs cd ~/kobo/tmp /path/to/koboreader-ringerc/build/build-all.sh

If you do try it and have any issues, please let me know and provide the output from the shell.

gtalusan commented 13 years ago

Good stuff. Committed.