Skip to content

Commit e713458

Browse files
jsun26intelwenlingz
authored andcommitted
makefile: add dash support to build efi
Usually We use '==' or '=' to compare strings under sh environment, but '==' is not supported by dash which is the default sh environment on Ubuntu, this leads efi build failure with current makefile. Change the '==' to '=' to support both bash and dash. Tracked-On: #3779 Signed-off-by: Victor Sun <victor.sun@intel.com>
1 parent 9ea7a85 commit e713458

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ define build_acrn
5454
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT)-$(1)/$(2) BOARD=$(2) FIRMWARE=$(1) SCENARIO=$(4) RELEASE=$(RELEASE) oldconfig
5555
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT)-$(1)/$(2) BOARD=$(2) FIRMWARE=$(1) SCENARIO=$(4) RELEASE=$(RELEASE)
5656
echo "building hypervisor as EFI executable..."
57-
@if [ "$(1)" == "uefi" ]; then \
57+
@if [ "$(1)" = "uefi" ]; then \
5858
$(MAKE) -C $(T)/misc/efi-stub HV_OBJDIR=$(HV_OUT)-$(1)/$(2) SCENARIO=$(4) EFI_OBJDIR=$(HV_OUT)-$(1)/$(2)/$(EFI_OUT); \
5959
fi
6060
endef
6161
6262
define install_acrn
6363
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT)-$(1)/$(2) BOARD=$(2) FIRMWARE=$(1) SCENARIO=$(3) RELEASE=$(RELEASE) install
64-
@if [ "$(1)" == "uefi" ]; then \
64+
@if [ "$(1)" = "uefi" ]; then \
6565
$(MAKE) -C $(T)/misc/efi-stub HV_OBJDIR=$(HV_OUT)-$(1)/$(2) BOARD=$(2) FIRMWARE=$(1) SCENARIO=$(3) RELEASE=$(RELEASE) EFI_OBJDIR=$(HV_OUT)-$(1)/$(2)/$(EFI_OUT) install; \
6666
fi
6767
endef
6868
6969
define install_acrn_debug
7070
$(MAKE) -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT)-$(1)/$(2) BOARD=$(2) FIRMWARE=$(1) SCENARIO=$(3) RELEASE=$(RELEASE) install-debug
71-
@if [ "$(1)" == "uefi" ]; then \
71+
@if [ "$(1)" = "uefi" ]; then \
7272
$(MAKE) -C $(T)/misc/efi-stub HV_OBJDIR=$(HV_OUT)-$(1)/$(2) BOARD=$(2) FIRMWARE=$(1) SCENARIO=$(3) RELEASE=$(RELEASE) EFI_OBJDIR=$(HV_OUT)-$(1)/$(2)/$(EFI_OUT) install-debug; \
7373
fi
7474
endef

0 commit comments

Comments
 (0)