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
1450aad7
Commit
1450aad7
authored
Jan 11, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: updated at91boot compilation
parent
24266635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
15 deletions
+26
-15
download-info
build/download-info
+6
-1
wrs_build_at91boot
build/scripts/wrs_build_at91boot
+20
-14
No files found.
build/download-info
View file @
1450aad7
...
...
@@ -6,8 +6,13 @@
# if the upstream is not valid any more, the script will get it from
# http://sources.buildroot.net/
# FIXME: barebox, at91boot and kernel are missing
# IPL
at91bootstrap-3-3.0.tar.gz 059a3e99cd93727c642ab7843c714887 \
http://repository.timesys.com/buildsources/a/at91bootstrap-3/at91bootstrap-3-3.0/at91bootstrap-3-3.0.tar.gz
# FIXME: barebox and kernel are missing
# buildroot core and packages
buildroot-2011.11.tar.bz2 7b852f4ef17c63857ca7b9388b782070 \
http://www.buildroot.org/downloads/buildroot-2011.11.tar.bz2
...
...
build/scripts/wrs_build_at91boot
View file @
1450aad7
...
...
@@ -11,28 +11,34 @@ fi
wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR CROSS_COMPILE
wrs_echo
"--- AT91Boot"
zipname
=
"AT91Bootstrap1.11.zip"
wrs_download
$zipname
dirname
=
"at91bootstrap-3-3.0"
tarname
=
"
$dirname
.tar.gz"
wrs_download
$tarname
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
=
"Bootstrap-v1.11"
;
#stupid zip: content doesn't match the container
rm
-rf
$dirname
unzip
-q
${
WRS_DOWNLOAD_DIR
}
/
$zipname
||
wrs_die
"unzip
$zip
name
"
tar
xzf
$WRS_DOWNLOAD_DIR
/
$tarname
||
wrs_die
"untar
$tar
name
"
wrs_echo
"Patching AT91Boot"
patch
-t
-p2
-d
$dirname
<
\
"
$WRS_BASE_DIR
/../patches/at91boot/AT91Bootstrap1.11-patch-wr"
\
||
wrs_die
"patching at91boot"
wrs_echo
"Building AT91Boot"
;
# stupid makefiles, I must force CROSS_COMPILE
make
-C
$dirname
/board/whiterabbit-mch/dataflash
CROSS_COMPILE
=
$CROSS_COMPILE
\
||
wrs_die
"compiling at91boot"
cp
$dirname
/board/whiterabbit-mch/dataflash/dataflash_whiterabbit-mch.bin
\
$WRS_OUTPUT_DIR
/images
\
cd
$dirname
for
n
in
$WRS_BASE_DIR
/../patches/at91boot/
*
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 AT91Boot"
yes
""
| make at91sam9g45ek_defconfig
>
/dev/null
# the above command fails miserably for memory corruption...
test
-f
.config
||
wrs_die
"configuring at91boot"
make
||
wrs_die
"building at91boot"
cp
./binaries/at91sam9g45ek-dataflashcardboot-3.0.bin
\
$WRS_OUTPUT_DIR
/images/at91bootstrap.bin
\
||
wrs_die
"copying at91boot image"
exit
0
\ No newline at end of file
exit
0
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