Difference between revisions of "Creating Native Build Environment"
Line 1: | Line 1: | ||
[[Category:How_to_-_general]] | [[Category:How_to_-_general]] | ||
− | + | __FORCETOC__ | |
+ | ==Starting from a clean image== | ||
+ | ===Installing build packages to MMC/SD=== | ||
− | + | Issue the following commands to download and install the necessary packages: | |
− | + | ||
− | + | $ ipkg update | |
− | + | $ ipkg -d mmc install gcc libc6-dev binutils libgcc-s-dev | |
+ | Next, we need to create links on the root filesystem to the installed packages: | ||
+ | |||
+ | $ ipkg-link mount /media/card | ||
+ | The libgcc-s-dev package does not install the proper symbolic links when installed on MMC/SD. Execute the following commands to create the proper link: | ||
− | + | $ rm /media/card/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so | |
− | + | $ ln -s /lib/libgcc_s.so.1 /media/card/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so | |
− | + | ||
− | + | ||
− | + | ===Installing build packages to CF=== | |
− | + | Issue the following commands to download and install the necessary packages: | |
− | + | $ ipkg update | |
− | + | $ ipkg -d mmc install gcc libc6-dev binutils libgcc-s-dev | |
− | + | ||
− | + | Next, we need to create links on the root filesystem to the installed packages: | |
− | + | ||
− | + | $ ipkg-link mount /media/card | |
+ | |||
+ | The libgcc-s-dev package does not install the proper symbolic links when installed on CF. Execute the following commands to create the proper link: | ||
+ | |||
+ | $ rm /media/cf/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so | ||
+ | $ ln -s /lib/libgcc_s.so.1 /media/cf/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so | ||
+ | |||
+ | ===Installing build packages to root filesystem=== | ||
+ | |||
+ | Issue the following commands to download and install the necessary packages: | ||
+ | |||
+ | $ ipkg update | ||
+ | $ ipkg install gcc libc6-dev binutils libgcc-s-dev | ||
+ | |||
+ | ==Completing setup== | ||
+ | |||
+ | All the required packages are installed to compile simpler programs. | ||
+ | |||
+ | ==Notes== | ||
+ | Please note that lib6c-dev will satisfy a few dependencies: | ||
+ | glibc-extra-nss | ||
+ | libthread-db1 | ||
+ | linux-libc-headers-dev |
Revision as of 23:17, 2 March 2008
Contents
Starting from a clean image
Installing build packages to MMC/SD
Issue the following commands to download and install the necessary packages:
$ ipkg update $ ipkg -d mmc install gcc libc6-dev binutils libgcc-s-dev
Next, we need to create links on the root filesystem to the installed packages:
$ ipkg-link mount /media/card
The libgcc-s-dev package does not install the proper symbolic links when installed on MMC/SD. Execute the following commands to create the proper link:
$ rm /media/card/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so $ ln -s /lib/libgcc_s.so.1 /media/card/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so
Installing build packages to CF
Issue the following commands to download and install the necessary packages:
$ ipkg update $ ipkg -d mmc install gcc libc6-dev binutils libgcc-s-dev
Next, we need to create links on the root filesystem to the installed packages:
$ ipkg-link mount /media/card
The libgcc-s-dev package does not install the proper symbolic links when installed on CF. Execute the following commands to create the proper link:
$ rm /media/cf/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so $ ln -s /lib/libgcc_s.so.1 /media/cf/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc_s.so
Installing build packages to root filesystem
Issue the following commands to download and install the necessary packages:
$ ipkg update $ ipkg install gcc libc6-dev binutils libgcc-s-dev
Completing setup
All the required packages are installed to compile simpler programs.
Notes
Please note that lib6c-dev will satisfy a few dependencies:
glibc-extra-nss libthread-db1 linux-libc-headers-dev