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
84
Issues
84
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
f3e9587b
Commit
f3e9587b
authored
Nov 25, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: unify ppsi and ptp-noposix build scripts
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ff867c60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
wrs_build_ptp
build/scripts/wrs_build_ptp
+50
-0
wrs_build-all
build/wrs_build-all
+1
-2
No files found.
build/scripts/wrs_build_ptp
_noposix
→
build/scripts/wrs_build_ptp
View file @
f3e9587b
...
...
@@ -7,20 +7,25 @@ if [ -z "$WRS_BASE_DIR" ]; then
fi
.
${
WRS_BASE_DIR
}
/scripts/wrs_functions
wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR CROSS_COMPILE
# This step is controlled by Kconfig: skip it if not selected
if
[
"x
$CONFIG_PTP_NOPOSIX
"
=
"x"
]
;
then
exit
0
if
[
"x
$CONFIG_PTP_NOPOSIX
"
!=
"x"
]
;
then
old_ptp
=
true
;
new_ptp
=
false
ptpname
=
"ptp-noposix"
fi
if
[
"x
$CONFIG_PPSI
"
!=
"x"
]
;
then
old_ptp
=
false
;
new_ptp
=
true
ptpname
=
"ppsi"
fi
wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR CROSS_COMPILE
wrs_echo
"--- PTP daemon (noposix repository as a submodule)"
wrs_echo
"--- PTP daemon (
$ptpname
repository as a submodule)"
# checkout, in case the user didn't do that
cd
${
WRS_BASE_DIR
}
/..
git submodule init
-q
git submodule update
-q
cd
userspace/
ptp-noposix
cd
userspace/
$ptpname
make clean
# we need LINUX and CROSS_COMPILE. The latter is there for sure
...
...
@@ -28,14 +33,18 @@ if [ "x$LINUX" == "x" ]; then
export
LINUX
=
"
$WRS_OUTPUT_DIR
/build/linux-2.6.39"
fi
make ptpd
||
wrs_die
"cannot build ptp-noposix"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/bin"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/lib"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/include"
install
ptpd
"
$WRS_OUTPUT_DIR
/images/wr/bin"
install
libptpnetif.a
"
$WRS_OUTPUT_DIR
/images/wr/lib"
install
libptpnetif/ptpd_netif.h
"
$WRS_OUTPUT_DIR
/images/wr/include"
install
libptpnetif/hal_client.h
"
$WRS_OUTPUT_DIR
/images/wr/include"
#make $WRS_MAKE_J uImage modules || wrs_die "kernel compilation"
#cp arch/$ARCH/boot/uImage $(find . -name '*.ko') $WRS_OUTPUT_DIR/images
if
[
$ptpname
=
ppsi
]
;
then
make
ARCH
=
wrs
PROTO_EXT
=
whiterabbit
||
wrs_die
"Failure building PPSi"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/bin"
install
ppsi
"
$WRS_OUTPUT_DIR
/images/wr/bin"
else
make
||
wrs_die
"Failure building
$ptpname
"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/bin"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/lib"
install
-d
"
$WRS_OUTPUT_DIR
/images/wr/include"
install
ptpd
"
$WRS_OUTPUT_DIR
/images/wr/bin"
install
libptpnetif.a
"
$WRS_OUTPUT_DIR
/images/wr/lib"
install
libptpnetif/ptpd_netif.h
"
$WRS_OUTPUT_DIR
/images/wr/include"
install
libptpnetif/hal_client.h
"
$WRS_OUTPUT_DIR
/images/wr/include"
fi
build/wrs_build-all
View file @
f3e9587b
...
...
@@ -155,8 +155,7 @@ wrs_build_step 02-at91boot wrs_build_at91boot
wrs_build_step 03-barebox wrs_build_barebox
wrs_build_step 04-kernel wrs_build_kernel
wrs_build_step 05-modules wrs_build_modules
wrs_build_step 06-ptp-noposix wrs_build_ptp_noposix
wrs_build_step 06-ppsi wrs_build_ppsi
wrs_build_step 06-ptp wrs_build_ptp
wrs_build_step 07-wrs-userspace wrs_build_userspace
wrs_build_step 08-wrs-gateware wrs_build_gateware
wrs_build_step 09-wrap-rootfs wrs_build_wraprootfs
...
...
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