Ticket #2054 (new enhancement)

Opened 11 years ago

Toolchain does not support --prefix switch of configure

Reported by: kempelen Owned by: openmoko-devel
Priority: normal Milestone:
Component: host utilities Version: Om2008.9-dev
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

Toolchain's "om-conf" defines all output directories for ./configure, e.g. --bindir and such things. It points all those to the Om Linux root filesystem or /usr of it.

This is not optimal for simple tests, or basic development tasks, because that will copy a lot of test files to the phone's / root. I don't want non-finished programs going there.

Extra problem that I cannot run "make install" on the host OS, because that would copy the ARM programs to my x86_64 host OS's / or /usr directories!

Expected behavior:

om-conf --prefix=/media/card/prog

and then I could

host$ make
host$ sudo mkdir /media/card
host$ chown myuser:mygroup /media/card
host$ make install
host$ tar -czvf myprogram.tar.gz /media/card/prog
host$ scp
host$ ssh
om$ cd /media/card
om$ tar -xzvf myprogram.tar.gz
om$ prog/bin/myprogram

Easy testing of programs on the phone, without populating development files to "/" in porting tests.

Note: See TracTickets for help on using tickets.