Commit a4853b1d authored by Alessandro Rubini's avatar Alessandro Rubini

build: move barebox patches into a version-specific directory

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 89be2973
......@@ -19,11 +19,12 @@ mkdir -p $WRS_OUTPUT_DIR/images || wrs_die "mkdir images"
# go to the build dir and compile it
cd $WRS_OUTPUT_DIR/build
version="v2012.05"
dirname="barebox-2012.05.0"
rm -rf $dirname
tar xjf ${WRS_DOWNLOAD_DIR}/$tarname || wrs_die "untar $tarname"
cd $dirname
patchdir="$WRS_BASE_DIR/../patches/barebox/"
patchdir="$WRS_BASE_DIR/../patches/barebox/$version"
wrs_echo "Patching Barebox"
for n in $patchdir/*patch; do
# the shell passes the "*" over if no matches are there, so check
......
......@@ -1054,7 +1054,7 @@ The switch uses @i{barebox} as a boot loader. We are running version
file. Note that we are piggy-backing on the Ronetix PM9G45 board, out
of laziness.
The patches are part of this package in @i{patches/barebox} and
The patches are part of this package in @i{patches/barebox/v2012.05/} and
the set is made up of the following ones:
@smallexample
......@@ -1076,14 +1076,14 @@ environment, and its own configuration and scripts live in a small
filesystem. To ease modification of such configuration and boot steps
the build script copies over the configuration instead of patching it
in the sources. You can thus edit the files you find in
@file{patches/barebox/env} and rebuild your customized bootloader.
@file{patches/barebox/v2012.05/env} and rebuild your customized bootloader.
The script that is executed at boot time is @file{env/bin/init} and as
you see it calls the other ones. The menus included in the shipped
configuration are described in @ref{Booting with Barebox}.
Building @i{barebox} relies on a @i{Kconfig} setup, and the
configuration file we use is
@file{patches/barebox/@-wrs3_defconfig}. Again, this is copied over and
@file{patches/barebox/v2012.05/@-wrs3_defconfig}. Again, this is copied over and
not patched in (see the simple @file{build/scripts/@-wrs_build_barebox}
for details).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment