Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
8ced741b
Commit
8ced741b
authored
Jan 12, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: new script for barebox
parent
1b807b7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
wrs_build_barebox
build/scripts/wrs_build_barebox
+20
-16
No files found.
build/scripts/wrs_build_barebox
View file @
8ced741b
...
...
@@ -10,29 +10,33 @@ fi
wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR CROSS_COMPILE
wrs_echo
"---
U-Boot
"
zipname
=
"u-boot-1.3.4
.tar.bz2"
wrs_download
$
zip
name
wrs_echo
"---
Barebox
"
tarname
=
"barebox-2011.09.0
.tar.bz2"
wrs_download
$
tar
name
mkdir
-p
$WRS_OUTPUT_DIR
/build
||
wrs_die
"mkdir build"
mkdir
-p
$WRS_OUTPUT_DIR
/images
||
wrs_die
"mkdir images"
# go to the build dir and compile it
cd
$WRS_OUTPUT_DIR
/build
dirname
=
"
u-boot-1.3.4
"
dirname
=
"
barebox-2011.09.0
"
rm
-rf
$dirname
tar
xjf
${
WRS_DOWNLOAD_DIR
}
/
$zipname
||
wrs_die
"untar
$zipname
"
wrs_echo
"Patching U-Boot"
patch
-t
-p2
-d
$dirname
<
\
"
$WRS_BASE_DIR
/../patches/u-boot/u-boot-1.3.4-wr-patch"
\
||
wrs_die
"patching u-boot"
wrs_echo
"Building U-Boot"
tar
xjf
${
WRS_DOWNLOAD_DIR
}
/
$tarname
||
wrs_die
"untar
$tarname
"
cd
$dirname
make whiterabbit_mch
||
wrs_die
"configure u-boot"
make
-s
$WRS_MAKE_J
||
wrs_die
"compile u-boot"
cp
u-boot u-boot.bin
$WRS_OUTPUT_DIR
/images
\
||
wrs_die
"copying u-boot image"
wrs_echo
"Patching Barebox"
for
n
in
$WRS_BASE_DIR
/../patches/barebox/
*
patch
;
do
# the shell passes the "*" over if no matches are there, so check
if
test
-f
"
$n
"
;
then
patch
-p1
<
$n
||
wrs_die
"Apply
$n
"
fi
done
wrs_echo
"Building Barebox"
export
ARCH
=
arm
make wrs3_defconfig
||
wrs_die
"configure barebox"
make
-s
$WRS_MAKE_J
||
wrs_die
"compile barebox"
cp
barebox barebox.bin
$WRS_OUTPUT_DIR
/images
\
||
wrs_die
"copying barebox image"
exit
0
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment