URL
                    https://opencores.org/ocsvn/or1k/or1k/trunk
                
            Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [uClibc/] [INSTALL] - Rev 1765
Compare with Previous | Blame | View Log
SOFTWARE REQUIREMENTSCompiling uClibc requires Linux kernel header files. uClibc willbe compiled to match the interfaces available in the providedversion of the Linux kernel headers. Linux kernel version 2.0,version 2.2, version 2.4 and version 2.6 are known to work. Otherkernel versions may work but havn't been tested. Its also helpfulto have a working version of GNU binutils, and GNU gcc -- usingexcessively old versions of these packages can cause very strangeerrors that are difficult to find and fix.CONFIGURING uClibc:- Use must have a valid configuration file to compile uClibc. Do notskip this step. New configuration options are added in eachrelease, and odd configuration options are sometimes removed.To configure uClibc, you can run:make menuconfigormake configIf you have an existing .config file, you can update this fileusing themake oldconfigcommand, which will only ask you about new configuration options.Available configuration commands are:"make config" Text based configuration, no menus or colors."make menuconfig" Text based color menus, radiolists & dialogs."make oldconfig" Default all questions based on the contents ofyour existing ./.config file."make defconfig" Use defaults for all options."make randconfig" Use random values for all options."make allyesconfig" Set all values to "yes" for all options."make allnoconfig" Set all values to "no" for all options.COMPILING uClibc:- uClibc does not have proper dependancy checking (yet) so if youchange your uClibc configuration, you must current rebuild theentire library, by first runningmake clean- Once you have a valid configuration file, just runmaketo compile uClibc. or if you are cross compiling, you wouldinstead run something like:make CROSS=arm-linux-INSTALLING the uClibc development environment:- As root, if necessary, run something like:make PREFIX=<some path> installThis will install the uClibc runtime and development system (i.e.all the header files, libraries, etc) into the directories definedwithin your .config file.USING uClibc:- To compile programs with uClibc you will need a complete toolchain(i.e. binutils, gcc, and uClibc) that was built expressly for usewith uClibc.- Native and cross compiling toolchains, as well as makefiles for creatinguClibc toolchains, are available from the uClibc website. You may wantto check out "buildroot", which is available from the uClibc download area,which provides examples of how to build your own uClibc based system.

