1// -*- mode:doc; -*- 2// vim: set syntax=asciidoc: 3 4[[download-location]] 5 6==== Location of downloaded packages 7 8The various tarballs that are downloaded by Buildroot are all stored 9in +BR2_DL_DIR+, which by default is the +dl+ directory. If you want 10to keep a complete version of Buildroot which is known to be working 11with the associated tarballs, you can make a copy of this directory. 12This will allow you to regenerate the toolchain and the target 13filesystem with exactly the same versions. 14 15If you maintain several Buildroot trees, it might be better to have a 16shared download location. This can be achieved by pointing the 17+BR2_DL_DIR+ environment variable to a directory. If this is 18set, then the value of +BR2_DL_DIR+ in the Buildroot configuration is 19overridden. The following line should be added to +<~/.bashrc>+. 20 21----------------- 22 export BR2_DL_DIR=<shared download location> 23----------------- 24 25The download location can also be set in the +.config+ file, with the 26+BR2_DL_DIR+ option. Unlike most options in the .config file, this value 27is overridden by the +BR2_DL_DIR+ environment variable. 28