@@ -79,9 +79,9 @@ if [ $BUILD_PLAT = SR ]; then
79
79
BUILD_PLAT=ES
80
80
fi
81
81
82
- if ! [[ $BUILD_PLAT = IR ]] && ! [[ $BUILD_PLAT = ES ]] && ! [[ $BUILD_PLAT = SIE ]] ; then
82
+ if ! [[ $BUILD_PLAT = IR ]] && ! [[ $BUILD_PLAT = ES ]] ; then
83
83
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>"
85
85
exit
86
86
fi
87
87
@@ -129,21 +129,20 @@ do_build()
129
129
source $TOP_DIR /$UEFI_PATH /edksetup.sh
130
130
make -C $TOP_DIR /$UEFI_PATH /BaseTools
131
131
# 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
146
144
fi
145
+
147
146
# Startup/runtime files.
148
147
mkdir -p uefi-sct/SctPkg/BBR
149
148
if [ $BUILD_PLAT = IR ]; then
@@ -167,35 +166,29 @@ do_build()
167
166
cp $BBR_DIR /common/config/ScrtStartup.nsh uefi-sct/SctPkg/BBR/
168
167
cp $BBR_DIR /common/config/SCRT.conf uefi-sct/SctPkg/BBR/
169
168
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
180
185
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..."
190
187
fi
191
188
fi
192
189
193
190
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
199
192
popd
200
193
}
201
194
@@ -275,13 +268,6 @@ do_package ()
275
268
cp SctPkg/BBR/EfiCompliant_SBBR.ini ${TARGET_ARCH} _SCT/SCT/Dependency/EfiCompliantBBTest/EfiCompliant.ini
276
269
cp SctPkg/BBR/SBBR_manual.seq ${TARGET_ARCH} _SCT/SCT/Sequence/SBBR_manual.seq
277
270
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
-
285
271
else
286
272
echo " Error: unexpected platform type"
287
273
exit
0 commit comments