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
a0b2c31f
Commit
a0b2c31f
authored
Jan 24, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: updated build_ptp_noposix (uses v3 branch)
parent
33f4c20c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
wrs_build_ptp_noposix
build/scripts/wrs_build_ptp_noposix
+12
-5
No files found.
build/scripts/wrs_build_ptp_noposix
View file @
a0b2c31f
...
...
@@ -15,14 +15,21 @@ mkdir -p $WRS_DOWNLOAD_DIR/ptp || wrs_die "mkdir downloads/ptp"
cd
$WRS_DOWNLOAD_DIR
/ptp
# checkout repository
if
[
!
-d
.git
]
;
then
if
[
-d
.git
]
;
then
git checkout v3
||
(
cd
$WRS_DOWNLOAD_DIR
&&
rm
-rf
ptp
)
fi
# check again, as the above step may have removed stuff
mkdir
-p
$WRS_DOWNLOAD_DIR
/ptp
||
wrs_die
"mkdir downloads/ptp"
cd
$WRS_DOWNLOAD_DIR
/ptp
if
[
-d
.git
]
;
then
wrs_echo
"Using local git repository (previous clone)"
else
wrs_echo
"Checking out git repository"
git init
git remote add gnudd git://gnudd.com/ptp-noposix.git
git fetch gnudd
git checkout
-b
master gnudd/master
else
wrs_echo
"Using local git repository"
git checkout
-b
v3 gnudd/v3
fi
# to avoid building in the "download" place, copy it to the build place
...
...
@@ -33,7 +40,7 @@ cp -a "$WRS_DOWNLOAD_DIR/ptp" "$dirname"
cd
"
$dirname
"
# we need LINUX and CROSS_COMPILE. The latter is there for sure
if
[
"x
$LINUX
"
==
"x"
]
;
then
export
LINUX
=
"
$WRS_OUTPUT_DIR
/build/linux-2.6.3
5
"
export
LINUX
=
"
$WRS_OUTPUT_DIR
/build/linux-2.6.3
9
"
fi
make ptpd
||
wrs_die
"cannot build ptp-noposix"
...
...
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