Skip to content

Commit 8f6065e

Browse files
authored
Merge pull request #66 from amrathesh/remove-sie
Remove standalone SIE build support
2 parents b8776de + 0ec4277 commit 8f6065e

File tree

4 files changed

+35
-325
lines changed

4 files changed

+35
-325
lines changed

bbsr/config/BBSRStartup.nsh

Lines changed: 0 additions & 47 deletions
This file was deleted.

bbsr/patches/0001-security-extension-update-edk2-test-to-integrate-sec.patch

Lines changed: 0 additions & 229 deletions
This file was deleted.

common/scripts/build-sct.sh

Lines changed: 33 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ if [ $BUILD_PLAT = SR ]; then
7979
BUILD_PLAT=ES
8080
fi
8181

82-
if ! [[ $BUILD_PLAT = IR ]] && ! [[ $BUILD_PLAT = ES ]] && ! [[ $BUILD_PLAT = SIE ]] ; then
82+
if ! [[ $BUILD_PLAT = IR ]] && ! [[ $BUILD_PLAT = ES ]] ; then
8383
echo "Please provide a target."
84-
echo "Usage build-sct.sh <IR/ES/SIE> <BUILD_TYPE>"
84+
echo "Usage build-sct.sh <IR/ES> <BUILD_TYPE>"
8585
exit
8686
fi
8787

@@ -129,21 +129,20 @@ do_build()
129129
source $TOP_DIR/$UEFI_PATH/edksetup.sh
130130
make -C $TOP_DIR/$UEFI_PATH/BaseTools
131131
#Copy over extra files needed for SBBR tests
132-
if [[ $BUILD_PLAT != SIE ]] ; then
133-
cp -r $SBBR_TEST_DIR/SbbrBootServices uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/
134-
cp -r $SBBR_TEST_DIR/SbbrEfiSpecVerLvl $SBBR_TEST_DIR/SbbrRequiredUefiProtocols $SBBR_TEST_DIR/SbbrSysEnvConfig uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/
135-
cp -r $SBBR_TEST_DIR/SBBRRuntimeServices uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices/
136-
cp $SBBR_TEST_DIR/BBR_SCT.dsc uefi-sct/SctPkg/UEFI/
137-
cp $SBBR_TEST_DIR/build_bbr.sh uefi-sct/SctPkg/
138-
139-
# copy SIE SCT tests to edk2-test
140-
if [[ $BUILD_TYPE != S ]]; then
141-
cp -r $BBSR_TEST_DIR/BBSRVariableSizeTest uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices
142-
cp -r $BBSR_TEST_DIR/SecureBoot uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices
143-
cp -r $BBSR_TEST_DIR/TCG2Protocol uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol
144-
cp -r $BBSR_TEST_DIR/TCG2.h uefi-sct/SctPkg/UEFI/Protocol
145-
fi
132+
cp -r $SBBR_TEST_DIR/SbbrBootServices uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/
133+
cp -r $SBBR_TEST_DIR/SbbrEfiSpecVerLvl $SBBR_TEST_DIR/SbbrRequiredUefiProtocols $SBBR_TEST_DIR/SbbrSysEnvConfig uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/
134+
cp -r $SBBR_TEST_DIR/SBBRRuntimeServices uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices/
135+
cp $SBBR_TEST_DIR/BBR_SCT.dsc uefi-sct/SctPkg/UEFI/
136+
cp $SBBR_TEST_DIR/build_bbr.sh uefi-sct/SctPkg/
137+
138+
# copy SIE SCT tests to edk2-test
139+
if [[ $BUILD_TYPE != S ]]; then
140+
cp -r $BBSR_TEST_DIR/BBSRVariableSizeTest uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices
141+
cp -r $BBSR_TEST_DIR/SecureBoot uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices
142+
cp -r $BBSR_TEST_DIR/TCG2Protocol uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol
143+
cp -r $BBSR_TEST_DIR/TCG2.h uefi-sct/SctPkg/UEFI/Protocol
146144
fi
145+
147146
#Startup/runtime files.
148147
mkdir -p uefi-sct/SctPkg/BBR
149148
if [ $BUILD_PLAT = IR ]; then
@@ -167,35 +166,29 @@ do_build()
167166
cp $BBR_DIR/common/config/ScrtStartup.nsh uefi-sct/SctPkg/BBR/
168167
cp $BBR_DIR/common/config/SCRT.conf uefi-sct/SctPkg/BBR/
169168

170-
if [[ $BUILD_PLAT != SIE ]] ; then
171-
if git apply --check $BBR_DIR/common/patches/edk2-test-bbr-build.patch; then
172-
echo "Applying edk2-test BBR build patch..."
173-
git apply --ignore-whitespace --ignore-space-change $BBR_DIR/common/patches/edk2-test-bbr-build.patch
174-
else
175-
echo "Error while applying edk2-test BBR build patch..."
176-
fi
177-
if git apply --check $BBR_DIR/common/patches/edk2-test-bbr.patch; then
178-
echo "Applying edk2-test BBR patch..."
179-
git apply --ignore-whitespace --ignore-space-change $BBR_DIR/common/patches/edk2-test-bbr.patch
169+
if git apply --check $BBR_DIR/common/patches/edk2-test-bbr-build.patch; then
170+
echo "Applying edk2-test BBR build patch..."
171+
git apply --ignore-whitespace --ignore-space-change $BBR_DIR/common/patches/edk2-test-bbr-build.patch
172+
else
173+
echo "Error while applying edk2-test BBR build patch..."
174+
fi
175+
if git apply --check $BBR_DIR/common/patches/edk2-test-bbr.patch; then
176+
echo "Applying edk2-test BBR patch..."
177+
git apply --ignore-whitespace --ignore-space-change $BBR_DIR/common/patches/edk2-test-bbr.patch
178+
else
179+
echo "Error while applying edk2-test BBR patch..."
180+
fi
181+
if [[ $BUILD_TYPE != S ]]; then
182+
if git apply --check $BBR_DIR/bbsr/patches/0001-SIE-Patch-for-UEFI-SCT-Build.patch; then
183+
echo "Applying SIE SCT patch..."
184+
git apply --ignore-whitespace --ignore-space-change $BBR_DIR/bbsr/patches/0001-SIE-Patch-for-UEFI-SCT-Build.patch
180185
else
181-
echo "Error while applying edk2-test BBR patch..."
182-
fi
183-
if [[ $BUILD_TYPE != S ]]; then
184-
if git apply --check $BBR_DIR/bbsr/patches/0001-SIE-Patch-for-UEFI-SCT-Build.patch; then
185-
echo "Applying SIE SCT patch..."
186-
git apply --ignore-whitespace --ignore-space-change $BBR_DIR/bbsr/patches/0001-SIE-Patch-for-UEFI-SCT-Build.patch
187-
else
188-
echo "Error while applying SIE SCT patch..."
189-
fi
186+
echo "Error while applying SIE SCT patch..."
190187
fi
191188
fi
192189

193190
pushd uefi-sct
194-
if [[ $BUILD_PLAT = SIE ]] ; then
195-
./SctPkg/build.sh $TARGET_ARCH GCC $UEFI_BUILD_MODE -n $PARALLELISM
196-
else
197-
./SctPkg/build_bbr.sh $TARGET_ARCH GCC $UEFI_BUILD_MODE -n $PARALLELISM
198-
fi
191+
./SctPkg/build_bbr.sh $TARGET_ARCH GCC $UEFI_BUILD_MODE -n $PARALLELISM
199192
popd
200193
}
201194

@@ -275,13 +268,6 @@ do_package ()
275268
cp SctPkg/BBR/EfiCompliant_SBBR.ini ${TARGET_ARCH}_SCT/SCT/Dependency/EfiCompliantBBTest/EfiCompliant.ini
276269
cp SctPkg/BBR/SBBR_manual.seq ${TARGET_ARCH}_SCT/SCT/Sequence/SBBR_manual.seq
277270
cp SctPkg/BBR/SBBR_extd_run.seq ${TARGET_ARCH}_SCT/SCT/Sequence/SBBR_extd_run.seq
278-
279-
280-
elif [ $BUILD_PLAT = SIE ]; then
281-
cp -r Build/UefiSct/${UEFI_BUILD_MODE}_${UEFI_TOOLCHAIN}/SctPackage${TARGET_ARCH}/${TARGET_ARCH}/* ${TARGET_ARCH}_SCT/SCT/
282-
cp $BBR_DIR/bbsr/config/BBSRStartup.nsh ${TARGET_ARCH}_SCT/SctStartup.nsh
283-
cp $BBR_DIR/bbsr/config/BBSR.seq ${TARGET_ARCH}_SCT/SCT/Sequence
284-
285271
else
286272
echo "Error: unexpected platform type"
287273
exit

0 commit comments

Comments
 (0)