-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed build functionality on non-linux platforms
Removed dependency on linux platform for builds. Signed-off-by: Jared Baumann <jared.baumann8@t-mobile.com>
- Loading branch information
Showing
7 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
git log | grep -A2 -m1 "Initial commit" | grep commit | awk NR==2'{print $2}' | ||
git log --grep "^Initial commit$" --max-count 1 --pretty="format:%H" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
git log | grep -A2 -m1 "Merge branch 'main' into tmo-main" | grep commit | awk '{print $2}' | ||
git log --grep "Merge branch 'main' into tmo-main" --max-count 1 --pretty="format:%H" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
# adds any out of tree drivers built as modules to the zephyr build path | ||
if [ "$SHELL" = "/bin/zsh" ]; then | ||
BASH_SOURCE=${(%):-%x} | ||
fi | ||
LOCATION=$(dirname $(realpath -s $BASH_SOURCE)) | ||
|
||
export ZEPHYR_EXTRA_MODULES=$ZEPHYR_EXTRA_MODULES\;$LOCATION | ||
|
||
if [ -n "$ZSH_VERSION" ]; then | ||
SCRIPT=${(%):-%x} | ||
elif [ -n "$BASH_VERSION" ]; then | ||
SCRIPT=${BASH_SOURCE[0]} | ||
elif eval '[[ -n ${.sh.file} ]]' 2>/dev/null; then | ||
eval 'SCRIPT=${.sh.file}' | ||
fi | ||
LOCATION=$(dirname "$(readlink -f -- "$SCRIPT")") | ||
if [ -n "${ZEPHYR_EXTRA_MODULES+1}" ]; then | ||
export ZEPHYR_EXTRA_MODULES="$ZEPHYR_EXTRA_MODULES\;$LOCATION" | ||
else | ||
export ZEPHYR_EXTRA_MODULES="$LOCATION" | ||
fi | ||
#add lines as needed for each driver below | ||
|
||
#export ZEPHYR_EXTRA_MODULES=$ZEPHYR_EXTRA_MODULES\;$LOCATION/drivers/(another driver here) | ||
|
||
echo $ZEPHYR_EXTRA_MODULES | ||
echo "$ZEPHYR_EXTRA_MODULES" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
|
||
rem adds any out of tree drivers built as modules to the zephyr build path | ||
set LOCATION=%~dp0 | ||
if "%ZEPHYR_EXTRA_MODULES%" == "" ( | ||
set ZEPHYR_EXTRA_MODULES=%LOCATION% | ||
) else ( | ||
set ZEPHYR_EXTRA_MODULES=%ZEPHYR_EXTRA_MODULES%;%LOCATION% | ||
) | ||
|
||
echo %ZEPHYR_EXTRA_MODULES% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if (!$env:ZEPHYR_EXTRA_MODULES) { | ||
$env:ZEPHYR_EXTRA_MODULES = $PSScriptRoot | ||
} else { | ||
$env:ZEPHYR_EXTRA_MODULES += ';' + $PSScriptRoot | ||
} |