Skip to content

Commit 975f73b

Browse files
committed
build.sh: Fix integer expression expected error for non Hypervisor build
Signed-off-by: drosdi <danish.ahmad.rosdi@intel.com>
1 parent 136a4cb commit 975f73b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ build_setup() {
194194
echo 'ARCHIVER_MODE[src] = "original"' >> conf/site.conf
195195

196196
# Setting for Hypervisor build
197-
if [ "$HYP_BUILD" -eq 1 ]; then
197+
if [[ "$HYP_BUILD" -eq 1 ]]; then
198198
bitbake-layers add-layer ../meta-openembedded/meta-filesystems
199199
bitbake-layers add-layer ../meta-virtualization
200200

@@ -231,7 +231,7 @@ bitbake_image() {
231231
echo -e "\n[INFO] Start bitbake process for target config.."
232232
bitbake console-image-minimal gsrd-console-image 2>&1
233233

234-
if [ "$HYP_BUILD" -eq 1 ]; then
234+
if [[ "$HYP_BUILD" -eq 1 ]]; then
235235
bitbake xen-image-minimal console-image-minimal gsrd-console-image 2>&1
236236
fi
237237

@@ -352,7 +352,7 @@ package() {
352352
if [[ "$MACHINE" == *"agilex"* || "$MACHINE" == *"stratix10"* ]]; then
353353
cp -vL u-boot.txt $ub_cp_destination
354354
cp -vL boot.scr.* $ub_cp_destination
355-
if [ "$HYP_BUILD" -eq 1 ]; then
355+
if [[ "$HYP_BUILD" -eq 1 ]]; then
356356
cp -vL u-boot_xen.txt $STAGING_FOLDER/
357357
cp -vL xen $STAGING_FOLDER/
358358
fi

0 commit comments

Comments
 (0)