Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
51734a3b
Unverified
Commit
51734a3b
authored
Apr 09, 2018
by
Chun Fan
Committed by
GitHub
Apr 09, 2018
Browse files
Merge pull request #81 from NordicSemiconductor/fix/patch-on-unix2
Fix patch on unix
parents
3e27f949
b4911350
Changes
1
Hide whitespace changes
Inline
Side-by-side
hex/bootstrap.sh
View file @
51734a3b
...
...
@@ -110,6 +110,20 @@ function sdk_exists () {
# Patch the downloaded SDK in order to compile the connectivity application
function
sdk_patch
()
{
# Detect which OS is running
UNAME
=
"
$(
uname
)
"
# If OS is Linux or Darwin
# Change the format of line ending to unix
if
[[
"
${
UNAME
}
"
==
"Linux"
]]
;
then
echo
"> Modifying SDK line ending format..."
find
$DL_LOCATION
/
$SDK_NAME
/
-type
f
-exec
sed
-i
$'s/
\r
//'
{}
\;
fi
if
[[
"
${
UNAME
}
"
==
"Darwin"
]]
;
then
echo
"> Modifying SDK line ending format..."
LC_CTYPE
=
C
find
$DL_LOCATION
/
$SDK_NAME
/
-type
f
-exec
sed
-i
''
$'s/
\r
//'
{}
\;
fi
echo
"> Applying SDK patch '
${
PATCH_FILE
}
'..."
# Apply the patch from the base nRF SDK folder (remove the first portion of the path)
...
...
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