br2-vagrant

Development image based on ubuntu/trusty64

Need:

Recomeded vagrant plugins:

  • sahara - working with vm snapshot
  • vbguest - for guest addons updating
# plugin installation
vagrant plugin install sahara
vagrant plugin install vagrant-vbguest

Windows only

On windows need install git-scm.

Adjusting your PATH environment: default Use Git from Git Bash only

Configuring the line ending conversions: Need set to Checkout as-is, commit as-is

Before cloning check param core.autocrlf.

Run Git CMD:

git config --global core.autocrlf
>false

Must be False, if not then run:

git config --global core.autocrlf false

Install buildroot

install_buildroot.sh
cd /opt/buildroot
make BR2_EXTERNAL=/vagrant/buildroot-v2r-v1 menuconfig

BR2 overlay dir

add_br2_package_overlay_dir.patch

Позволяет менять параметры в стандартных пакетах buildroot без изменения исходников. В текущей конфигурации нужно менять параметры для nginx - поддержка rtsp.

cd fs/
git patch ../buildroot-v2r-v1/add_br2_package_overlay_dir.patch
...
git checkout .
git pull upstream master
git patch  ../buildroot-v2r-v1/add_br2_package_overlay_dir.patch

send patch

Provision setup git-send-email.

Configure smtp server password:

git config --global sendemail.smtppass xxxx
# make fix
git checkout -b <fix_branch_name>
# commit changes
git commit -m "<package_name>: fix info"
# generate patches
git format-patch -M -n -s -o outgoing origin/master
# correct patches in the outgoing folder ...
# send patch
git send-email --to buildroot@buildroot.org --cc "Volkov Viacheslav <sv99@inbox.ru>" outgoing/0001-fix-zbar-build.patch