aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-08-08 12:45:54 -0400
committerBrijesh Singh <brijesh.singh@amd.com>2017-08-08 12:45:54 -0400
commitab4f76b0e2409135aba7b6208b31c6ad1872ca84 (patch)
tree9d138c26645cdb19b6d5fcf5a8eeda35081c3e9c
parenteb408390e7bba39ebdd84dbc74f1952a980587b7 (diff)
downloadcachepc-amdsev-ab4f76b0e2409135aba7b6208b31c6ad1872ca84.tar.gz
cachepc-amdsev-ab4f76b0e2409135aba7b6208b31c6ad1872ca84.zip
Update the build script to clone specific branches instead of full repo.
-rw-r--r--README2
-rwxr-xr-xbuild.sh8
-rw-r--r--stable-commits5
3 files changed, 5 insertions, 10 deletions
diff --git a/README b/README
index e61717d..adf1be2 100644
--- a/README
+++ b/README
@@ -5,7 +5,7 @@ Prepare Hypervisor:
Follow the below steps to prepare the host OS (hypervisor) for SEV support:
# cd /home/user/
-# git --single-branch -b master clone https://github.com/AMDESE/AMDSEV.git
+# git clone --single-branch -b master https://github.com/AMDESE/AMDSEV.git
# cd AMDSEV
# ./build.sh (this should take a while, it will build the linux kernel, qemu and ovmf)
diff --git a/build.sh b/build.sh
index 6e6ea34..2a4bd6a 100755
--- a/build.sh
+++ b/build.sh
@@ -20,10 +20,8 @@ run_cmd()
fetch_kernel()
{
run_cmd "mkdir -p ${BUILD_DIR}/kernel"
- run_cmd "git clone ${KERNEL_GIT_URL} ${BUILD_DIR}/kernel"
+ run_cmd "git clone --single-branch -b ${KERNEL_COMMIT} ${KERNEL_GIT_URL} ${BUILD_DIR}/kernel"
cd ${BUILD_DIR}/kernel
- run_cmd "git branch build ${KERNEL_COMMIT}"
- run_cmd "git checkout build"
}
build_kernel()
@@ -75,10 +73,8 @@ build_ovmf()
fetch_qemu()
{
run_cmd "mkdir -p ${BUILD_DIR}/qemu"
- run_cmd "git clone ${QEMU_GIT_URL} ${BUILD_DIR}/qemu"
+ run_cmd "git clone --single-branch -b ${QEMU_COMMIT} ${QEMU_GIT_URL} ${BUILD_DIR}/qemu"
cd ${BUILD_DIR}/qemu
- run_cmd "git branch build ${QEMU_COMMIT}"
- run_cmd "git checkout build"
}
build_qemu()
diff --git a/stable-commits b/stable-commits
index 95a625d..118d653 100644
--- a/stable-commits
+++ b/stable-commits
@@ -3,10 +3,9 @@
#
KERNEL_GIT_URL=https://github.com/AMDESE/AMDSEV.git
-KERNEL_COMMIT=e4f36d344edfa6ad58a49b0e3f5f67ba8ba7740a # kernel-rfc-3
+KERNEL_COMMIT=kernel-rfc-3
QEMU_GIT_URL=https://github.com/AMDESE/AMDSEV.git
-QEMU_COMMIT=b6924ec6794d168ac4d4e6eb3e420d11172d1e02 # qemu-rfc-4+
+QEMU_COMMIT=qemu-sev-rfc-v4+
EDK2_GIT_URL=https://github.com/tianocore/edk2.git
-