-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel-build: handle downloaded .kernel correctly for cached build
Signed-off-by: Ihor Solodrai <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ source $(cd $(dirname $0) && pwd)/../helpers.sh | |
|
||
CWD=$(pwd) | ||
|
||
FORCE_GIT_FETCH=${FORCE_GIT_FETCH:-} | ||
|
||
echo KERNEL_ORIGIN = ${KERNEL_ORIGIN} | ||
echo KERNEL_BRANCH = ${KERNEL_BRANCH} | ||
echo REPO_PATH = ${REPO_PATH} | ||
|
@@ -29,7 +31,7 @@ if [ ! -d "${REPO_PATH}" ]; then | |
mkdir -p $(dirname "${REPO_PATH}") | ||
cd $(dirname "${REPO_PATH}") | ||
# attempt to fetch desired bpf-next repo snapshot | ||
if [ -n "${SNAPSHOT_URL}" ] && \ | ||
if [ -n "${SNAPSHOT_URL}" ] && [ -z "${FORCE_GIT_FETCH}" ] && \ | ||
wget -U 'BPFCIBot/1.0 ([email protected])' -nv ${SNAPSHOT_URL} && \ | ||
tar xf bpf-next-${LINUX_SHA}.tar.gz --totals ; then | ||
mv bpf-next-${LINUX_SHA} $(basename ${REPO_PATH}) | ||
|