Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
82a3cce0
Commit
82a3cce0
authored
Sep 27, 2013
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched patching from creating links
parent
7c4c0761
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
15 deletions
+28
-15
install_uboot.sh
install_uboot.sh
+28
-15
No files found.
install_uboot.sh
View file @
82a3cce0
...
...
@@ -33,7 +33,8 @@ SCRIPTPATH=$(dirname "$SCRIPT")
UBOOT_TREE
=
"
$SCRIPTPATH
/u-boot-tree"
CONFIGS
=
"include/configs"
EZYNQ
=
"ezynq"
REPO_DIR_NAME
=
u-boot-xlnx
REPO_DIR_NAME
=
"u-boot-xlnx"
PATCH_NAME
=
"u-boot-xlnx.patch"
SUFFIX
=
".orig"
...
...
@@ -49,9 +50,9 @@ else
echo
" Already there"
fi
echo
"Step 2: Checking out u-boot version with the hash '
e1808144fdbc79159b72318e6eb8bcab03fd9bf4
'"
echo
"Step 2: Checking out u-boot version with the hash '
bbd91fc9ae290c31dc52fd8322f43f67ddd39247
'"
cd
"
$REPO_DIR_NAME
"
git checkout
e1808144fdbc79159b72318e6eb8bcab03fd9bf4
git checkout
bbd91fc9ae290c31dc52fd8322f43f67ddd39247
echo
"Step 3: Merging ezynq with u-boot"
...
...
@@ -60,20 +61,32 @@ if [ ! -h $EZYNQ ]; then
ln
-s
$SCRIPTPATH
$EZYNQ
fi
echo
"Step 3b: Creating symbolic link for the 'ezynq' folder"
if
[
!
-h
"
$CONFIGS
/
$EZYNQ
"
]
;
then
ln
-s
"
$UBOOT_TREE
/
$CONFIGS
/
$EZYNQ
"
$CONFIGS
#
# echo "Step 3b: Creating symbolic link for the 'ezynq' folder"
# if [ ! -h "$CONFIGS/$EZYNQ" ]; then
# ln -s "$UBOOT_TREE/$CONFIGS/$EZYNQ" $CONFIGS
# fi
#
# echo "Step 3c: Creating symbolic links for separate files (a suffix is added to the originals)"
# for SRC in $(find $UBOOT_TREE -type f -not -path "$UBOOT_TREE/$CONFIGS/$EZYNQ/*")
# do
# LINK=$(echo $SRC | sed "s:^$UBOOT_TREE/::")
# #echo "$SRC | $LINK"
# if [ ! -h $LINK ]; then
# ln -s -S $SUFFIX $SRC $LINK
# fi
# done
echo
"Step 3b: Creating a patch file"
cd
..
if
[
!
-f
$PATCH_NAME
]
;
then
diff
-rubPB
"
$REPO_DIR_NAME
"
"
$UBOOT_TREE
"
>
"
$PATCH_NAME
"
fi
echo
"Step 3c: Creating symbolic links for separate files (a suffix is added to the originals)"
for
SRC
in
$(
find
$UBOOT_TREE
-type
f
-not
-path
"
$UBOOT_TREE
/
$CONFIGS
/
$EZYNQ
/*"
)
do
LINK
=
$(
echo
$SRC
|
sed
"s:^
$UBOOT_TREE
/::"
)
#echo "$SRC | $LINK"
if
[
!
-h
$LINK
]
;
then
ln
-s
-S
$SUFFIX
$SRC
$LINK
fi
done
echo
"Step 3c: Applying the patch"
cd
"
$REPO_DIR_NAME
"
patch
-r
-
-Np1
<
"../
$PATCH_NAME
"
chmod
+x makeuboot
echo
"Step 4: Creating initenv script"
if
[
-f
$INITENV
]
;
then
...
...
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