proxy-m / buildroot-nano-gcc4-linux26

buildroot nano example [buildroot minimalism resurrected]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1. To prepair build folder of the buildroot-nano:

```
$ git clone <buildroot_nano_repository_url> buildroot-nano-gcc4-linux26
$ cd buildroot-nano-gcc4-linux26
$ rm -rf ./output # remove old build stuff
$ mkdir -p ./dl # "dl"
$ git checkout -f ./output/dl # or make link to "dl"
```

2. To build and use the buildroot stuff, do the following:

```
$ make menuconfig
$ # select the packages you wish to compile
$ make source
$ make || make -j1 # and wait while it compiles

Use your shiny new root filesystem.  Depending on which sortof
    root filesystem you selected, you may want to loop mount it,
    chroot into it, nfs mount it on your target device, burn it
    to flash, or whatever is appropriate for your target system.

You do not need to be root to build or run buildroot.  Have fun!

 -Erik

3. To build X11 xserver_xorg-server 1.7.5 + mesa3d 7.6.1 + libdrm 2.4.19 + xproto_dri2proto + libxcb 1.5+ python 2.7 (or 2.7.12), after config do smth like this (prefer commit f47d199ff89b8757be0ab41c837848d48e114779 "xserver_xorg-server: Xvfb support"):

```
$ make source && make || { make xserver_xorg-server-dirclean xproto_dri2proto-dirclean libdrm-dirclean mesa3d-dirclean && make xcb-proto && make libxcb && make xproto_dri2proto && make libdrm && make mesa3d && make xserver_xorg-server && make; }

```

4. To avoiding conflicts and fast rebuilding after modifications of makefiles, run smth like this:

```
$ make xlib_libXext-dirclean xlib_libXfixes-dirclean xlib_libXrender-dirclean xlib_libXrandr-dirclean pixman-dirclean xproto_recordproto-dirclean xproto_inputproto-dirclean xproto_bigreqsproto-dirclean xlib_xtrans-dirclean xproto_xextproto-dirclean xproto_xcmiscproto-dirclean xproto_fixesproto-dirclean xproto_renderproto-dirclean xproto_randrproto-dirclean libxcb-dirclean  pixman-dirclean xutil_util-macros-dirclean xcb-proto-dirclean xcb-util-dirclean xlib_libX11-dirclean

```

Offline build:
==============

In order to do an offline-build (not connected to the net), fetch all
selected source by issuing a
$ make source

before you disconnect.
If your build-host is never connected, then you have to copy buildroot
and your toplevel .config to a machine that has an internet-connection
and issue "make source" there, then copy the content of your dl/ dir to
the build-host.

Building out-of-tree:
=====================

Buildroot supports building out of tree with a syntax similar
to the Linux kernel. To use it, add O=<directory> to the
make command line, E.G.:

$ make O=/tmp/build

And all the output files will be located under /tmp/build.

More finegrained configuration:
===============================

You can specify a config-file for uClibc:
$ make UCLIBC_CONFIG_FILE=/my/uClibc.config

And you can specify a config-file for busybox:
$ make BUSYBOX_CONFIG_FILE=/my/busybox.config

To use a non-standard host-compiler (if you do not have 'gcc'),
make sure that the compiler is in your PATH and that the library paths are
setup properly, if your compiler is built dynamically:
$ make HOSTCC=gcc-4.3.orig HOSTCXX=gcc-4.3-mine

Depending on your configuration, there are some targets you can use to
use menuconfig of certain packages. This includes:
$ make HOSTCC=gcc-4.3 linux26-menuconfig
$ make HOSTCC=gcc-4.3 uclibc-menuconfig
$ make HOSTCC=gcc-4.3 busybox-menuconfig

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@uclibc.org

About

buildroot nano example [buildroot minimalism resurrected]

License:GNU General Public License v2.0


Languages

Language:Makefile 56.8%Language:C 23.6%Language:Shell 9.4%Language:M4 3.3%Language:C++ 2.5%Language:Python 1.1%Language:Perl 1.1%Language:Yacc 0.7%Language:Awk 0.5%Language:Roff 0.4%Language:Lex 0.3%Language:CSS 0.2%Language:NASL 0.2%Language:HTML 0.0%Language:JavaScript 0.0%