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

Re: [XEN PATCH 03/15] build, x86: clean build log for boot/ targets


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 24 May 2023 16:16:54 +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=yXM7rh3xdQyaxZ56r5dLp8WFv33ZZYdit8eD2pxupCs=; b=KVVLYbVsSEqEWyxOTjm+kZ577sYMnqua2qSN8KDJaiKhyYAVXWBKFX3+AdSW7RNj6R8lkpwvLoanw+VYNNfqg5pfOiOi+7M+XeKXh/1STEdSDPt7B57clKDuOfTP64TKF/tlSXDpx3GpML07ZPIWJxQT6Eo+4CY3HGaotC5Fw8FEhbgnKD4aGUvqgM2gMYpnCazcapQfzGtSRm5PiO+Wd8NTKxk+TP/wKV1FQvOn6usbXPKiQshoqDEAmBNUBmkhOB8L8lJ+8Cuu1I7qc64ltnWbnKHEVow9gb0enAvELUnitkAQ/qxlxRwo2Nuwlbr45swriudc1Oi6muNCV8o0+A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dIBW/3Pd3m7YchDFMMFscO9NtW88uFQ7bAY04kh9oMW4bI0C7ow+HzJ1DPgpr3uXx3rC9MHVh1/0gOfw5/+1pLGvz0lTmEBy+S76llB/76HGSyKhVe4xJHadcUiCvca7140T/uwpPxL7Z+iP/jHUQk2wwpYzUuflZI1iDAJSntOnFqIAdmspKQ6daIKXpUlnGCp7zDMKuW5JUXoJzmD/xVBhWA3M7nidNj2/YyUUIYov6+0qEEDLTxMhuivH/xHBAlL4mEjBW/4OjyiQ+wCPlNBPlBGFoY32lH2nOSrBBTSmxqoaLlegsB7hVqAl941h7J+kdocCokBdGpNuAnM75g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 24 May 2023 14:17:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.05.2023 18:37, Anthony PERARD wrote:
> We are adding %.lnk to .PRECIOUS or make treat them as intermediate
> targets and remove them.

What's wrong with them getting removed? Note also that's no different from
today, so it's an orthogonal change in any event (unless I'm overlooking
something). Plus if such behavior was intended, shouldn't $(targets) be
made a prereq of .PRECIOUS in generic makefile logic?

> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> ---
>  xen/arch/x86/boot/Makefile | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile
> index 03d8ce3a9e..2693b938bd 100644
> --- a/xen/arch/x86/boot/Makefile
> +++ b/xen/arch/x86/boot/Makefile
> @@ -5,6 +5,8 @@ head-bin-objs := cmdline.o reloc.o
>  nocov-y   += $(head-bin-objs)
>  noubsan-y += $(head-bin-objs)
>  targets   += $(head-bin-objs)
> +targets   += $(head-bin-objs:.o=.bin)
> +targets   += $(head-bin-objs:.o=.lnk)

Leaving aside the question of whether .lnk really should be part
of $(targets), don't these two lines also ...

> @@ -26,10 +28,16 @@ $(head-bin-objs): XEN_CFLAGS := $(CFLAGS_x86_32) -fpic
>  LDFLAGS_DIRECT-$(call ld-option,--warn-rwx-segments) := 
> --no-warn-rwx-segments
>  LDFLAGS_DIRECT += $(LDFLAGS_DIRECT-y)
>  
> -%.bin: %.lnk
> -     $(OBJCOPY) -j .text -O binary $< $@
> +%.bin: OBJCOPYFLAGS := -j .text -O binary
> +%.bin: %.lnk FORCE
> +     $(call if_changed,objcopy)
>  
> -%.lnk: %.o $(src)/build32.lds
> -     $(LD) $(subst x86_64,i386,$(LDFLAGS_DIRECT)) -N -T $(filter %.lds,$^) 
> -o $@ $<
> +quiet_cmd_ld_lnk_o = LD      $@
> +cmd_ld_lnk_o = $(LD) $(subst x86_64,i386,$(LDFLAGS_DIRECT)) -N -T $(filter 
> %.lds,$^) -o $@ $<
> +
> +%.lnk: %.o $(src)/build32.lds FORCE
> +     $(call if_changed,ld_lnk_o)
>  
>  clean-files := *.lnk *.bin

... eliminate the need for this?

Jan

> +
> +.PRECIOUS: %.lnk




 


Rackspace

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