openwrt

openwrt buildroot build_dir and staging_dir


I am confused about build_dir and staging_dir in openwrt buildroot. What are they used for?

There are feeds in openwrt. I would imagine to build an image. You will select the packages you want in menuconfig and use make to build it.

The packages are fetched from feeds and then compiled into build_dir?

Then what is staging_dir used for?


Solution

  • The directory build_dir is used to unpack all the source archives and to compile them in.

    The directory staging_dir is used to "install" all the compiled programs into, ready either for use in building further packages, or for preparing the firmware image.

    There are three areas under build_dir:

    Under staging, there are also three areas:

    Sorry its a bit verbose, this is hard to describe more succinctly.