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