Thread: DIY - KeK
View Single Post
Old 07-19-2012, 03:00 PM   #98
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
M4-1.4.16-uClibc

Here is one fairly common requirement that isn't in our emulated development environment.

Note: Since only /home is writable - the dev environment is growing a /home/bin, /home/lib, /home/share, etc. sets of sub-trees.

Build notes:
Spoiler:

(armv6l:1) m4-1.4.16 # export PATH=/home/bin:/bin:/sbin

(armv6l:1) /home # cd work
(armv6l:1) work # mkdir m4
(armv6l:1) work # cd m4
(armv6l:1) m4 # wget http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz
Connecting to ftp.gnu.org (208.118.235.20:80)
(armv6l:1) m4 # tar -xf m4-1.4.16.tar.gz
(armv6l:1) m4 # cd m4-1.4.16
(armv6l:1) m4-1.4.16 # ./configure --prefix=/home
(armv6l:1) m4-1.4.16 # make
(armv6l:1) m4-1.4.16 # make install
(armv6l:1) m4-1.4.16 # mkdir /home/m4-1.4.16
(armv6l:1) m4-1.4.16 # DESTDIR=/home/m4-1.4.16 make install
(armv6l:1) m4-1.4.16 # cd /home/m4-1.4.16/home
(armv6l:1) home # tar -czf ../m4-1.4.15-armv6-uclibc.tar.gz .
(armv6l:1) home # cp -a bin/m4 ..
(armv6l:1) home # cd ..
(armv6l:1) home # strip --strip-unneeded m4
(armv6l:1) m4-1.4.16 # gzip m4


Installation:
Put archive in /home
tar -xf m4-1.4.16-armv6-uclibc.tar.gz
You are now done with that archive, toss it if you wish.
OR
Put m4.gz into /home/bin
Then gunzip it.

Once again, the file in the complete archive has not been stripped;
The single gzip'd file has been stripped of symbols.

If anyone has not been keeping track, our "dev environment supplement" count is now five items:
Code:
core2quad hdb $ ls bin
bin2c  m4  strace  tcc  xz
Attached Files
File Type: gz m4-1.4.16-armv6-uclibc.tar.gz (395.2 KB, 490 views)
File Type: gz m4.gz (92.0 KB, 197 views)

Last edited by knc1; 07-20-2012 at 04:23 PM.
knc1 is offline   Reply With Quote