[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH v4 02/32] tools/firmware/hvmloader: rework Makefile


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 12 Aug 2022 15:36:12 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Iqfl8Cj2UteeLx3kleqXE7nVyEqiykx2dL1iQ7dYTiw=; b=KOBArhckUWCncH5mRADumSB2i0Nc6Cz337RArdJLrk7FJIeIKBt17cv66vu6eq7ijoyFSHDgMeD/dDpZEibEcuTtFRjpdRkKL9Aff/n70aUjPwHCQ9+CGALJklDgfde29PVhrhB9Oo3cPMKe8s8zDXiJRmC5jo7jEMkXxT4chQosEem7GHEmQLQx4OJFOvJ4LLB98Rxrt4kXQm2OUX9KQko6G/uFE2MtUPooGJ4BYMsk9RXPaz7rJevBVEDn9A/HajsTKDFLop5sTpSWTwWR/y0K7ZeXjHl9V6rt3nubtnz1nCojgApHF7CAnGlFhN6QeO9VAHD3zw+t1sxIQPKp/g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FtEAZD/DSPhFUkpoa/BHBu9CiwHHJNU77X9RBYH2bgm7OhQ6BWPZHQ6UMgshi5Ijg5IBqhC7IRGE2H1IdK1u0NcJMLNseuRTIbQEI+JQ7lAIX/qhdCBfJimBtr2+8/+37zzKwYfIJCsPgMoaFyoIvR7zLdRl7oOIW0tNkKRghkbafT698L/eV4w/I2EE9pr4umiv1GfvO2UY+p3uuMTQG+w8YuFKP7GZ6ZsD5J1PCDlwT0eSIaRakezurQoDB0SRGUnshKOMal5iQxxbyioYNf0+G5F9LBYXf8X31thgxbvPHY51WFK6ILJfvbAlEadUEi1MseMWVEpO2rbTQEiBEA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Luca Fancellu <luca.fancellu@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 12 Aug 2022 13:36:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.08.2022 18:48, Anthony PERARD wrote:
> Setup proper dependencies with libacpi so we don't need to run "make
> hvmloader" in the "all" target. ("build.o" new prerequisite isn't
> exactly proper but a side effect of building the $(DSDT_FILES) is to
> generate the "ssdt_*.h" needed by "build.o".)
> 
> Make use if "-iquote" instead of a plain "-I".
> 
> For "roms.inc" target, use "$(SHELL)" instead of plain "sh". And use
> full path to "mkhex" instead of a relative one. Lastly, add "-f" flag
> to "mv" to avoid a prompt in case the target already exist and we
> don't have write permission.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
with one nit (which I'd be happy to take care of while committing):

> @@ -73,12 +72,18 @@ smbios.o: CFLAGS += 
> -D__SMBIOS_DATE__="\"$(SMBIOS_REL_DATE)\""
>  ACPI_PATH = ../../libacpi
>  DSDT_FILES = dsdt_anycpu.c dsdt_15cpu.c dsdt_anycpu_qemu_xen.c
>  ACPI_OBJS = $(patsubst %.c,%.o,$(DSDT_FILES)) build.o static_tables.o
> -$(ACPI_OBJS): CFLAGS += -I. -DLIBACPI_STDUTILS=\"$(CURDIR)/util.h\"
> +$(ACPI_OBJS): CFLAGS += -iquote . -DLIBACPI_STDUTILS=\"$(CURDIR)/util.h\"
>  CFLAGS += -I$(ACPI_PATH)
>  vpath build.c $(ACPI_PATH)
>  vpath static_tables.c $(ACPI_PATH)
>  OBJS += $(ACPI_OBJS)
>  
> +$(DSDT_FILES): acpi
> +
> +# Add DSDT_FILES as a prerequisite of "build.o" so that make will also
> +# generates the "ssdt_*.h" headers needed by "build.o".

s/generates/generate/ ?

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.