50880d9399581f4b7d2d73158e8290cf7212888d
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / doc / buildroot-upgrade.txt
1 This documents what I did to change from
2   buildroot version 2012.05 to 2014.08
3
4 - update README and bin/build-release
5   README: change 'br_ver'
6   bin/build-release: BR_VER="2012.05"
7 - update patches to make sure they apply
8    ( cd buildroot && QUILT_PATCHES=$PWD/../patches-buildroot quilt push -a )
9    remove obsolete patches from series and delete .patch files.
10 - update default config for all arches
11   there has to be a better way to do this, but for now:
12    arches=$(for f in conf/buildr*.config; do a=${f##*-}; echo ${a%.*}; done)
13    for arch in $arches; do
14      make br-config ARCH=$arch
15    done
16 - update path to uclibc config referenced in buildroot-*.conf
17    f=".*/uClibc-.*.config"; t="package/uclibc/uClibc-0.9.33.config"
18    sed -i -e "s,$f,$t" conf/buildroot-*.config
19 - update path to busybox config
20   Hopefully this was only a one time thing, as i took out the version
21   in the path.
22   # manually changed to package/busybox/busybox-cirros.config
23   vi conf/buildroot-*.config
24
25   Also changed Makefile to address this
26 - update Makefile for change in location of 'skeleton' in buildroot tree
27   Hopefully one time
28 - update path to device_table.txt
29   Hopefully one time.
30   f="target/generic/device_table.txt"; t="system/device_table.txt"
31   sed -i -e "s,$f,$t,p" conf/buildroot-*.config
32
33 - update Makefile for determining busybox version
34   Hopefully one time
35   now this works: make ARCH=i386 br-busybox-menuconfig
36
37 - update busybox config
38   make ARCH=i386 br-busybox-menuconfig
39   save