aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2022-08-09 14:31:06 -0500
committerTom Lendacky <thomas.lendacky@amd.com>2022-08-09 14:31:06 -0500
commit6aa2bd0bd606c9a7525869c9599cddcd46126130 (patch)
tree38a595d0fdc10255e16f63ea6d88d3720ced1655
parent18dc34486213f66bd27cdd1caf4628c4246bc913 (diff)
downloadcachepc-amdsev-6aa2bd0bd606c9a7525869c9599cddcd46126130.tar.gz
cachepc-amdsev-6aa2bd0bd606c9a7525869c9599cddcd46126130.zip
Build updates and fixes
Updates: - Build the the SEV guest module - Disable IOMMU passthrough mode in the kernel config Fixes: - Use the build directory when moving the RPM files
-rwxr-xr-xcommon.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.sh b/common.sh
index 5e33b81..9438b62 100755
--- a/common.sh
+++ b/common.sh
@@ -73,6 +73,8 @@ build_kernel()
run_cmd ./scripts/config --module CRYPTO_DEV_CCP_DD
run_cmd ./scripts/config --disable SYSTEM_TRUSTED_KEYS
run_cmd ./scripts/config --disable SYSTEM_REVOCATION_KEYS
+ run_cmd ./scripts/config --module SEV_GUEST
+ run_cmd ./scripts/config --module IOMMU_DEFAULT_PASSTHROUGH
popd >/dev/null
yes "" | $MAKE olddefconfig
@@ -84,7 +86,7 @@ build_kernel()
run_cmd $MAKE bindeb-pkg
else
run_cmd $MAKE "RPMOPTS='--define \"_rpmdir .\"'" binrpm-pkg
- run_cmd mv ${1}/x86_64/*.rpm .
+ run_cmd mv ${V}/x86_64/*.rpm .
fi
done