public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Yet another SN update
Date: Thu, 06 Mar 2003 21:39:36 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590709805989@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590709805981@msgid-missing>

On Wed, Mar 05, 2003 at 04:12:49PM -0800, Jesse Barnes wrote:

Hi Jesse.
From a Makefile perspective it looks like you have made a really good job.
A few comments - see below.

	Sam

> +fakeprom := arch/ia64/sn/fakeprom

> +fakeprom:
> +	$(Q)$(MAKE) $(build)=$(fakeprom) $@
Usually I use the rule to convert to full path in arch/$(ARCH)/Makefile

The following is preferred assuming you generate file named fakeprom.
> +	$(Q)$(MAKE) $(build)=$(fakeprom) $(fakeprom)/$@


> diff -Naru linux-2.5.60-ia64-sn/arch/ia64/sn/fakeprom/Makefile work-sn2/arch/ia64/sn/fakeprom/Makefile
> --- linux-2.5.60-ia64-sn/arch/ia64/sn/fakeprom/Makefile	Mon Feb 10 10:38:53 2003
> +++ work-sn2/arch/ia64/sn/fakeprom/Makefile	Mon Mar  3 13:30:10 2003
>  
> -obj-y=fpromasm.o main.o fw-emu.o fpmem.o klgraph_init.o
> +targets-$(CONFIG_IA64_SGI_SN) := fakeprom
Cannot (from the patch) see the purpose of this assignment.

> -fprom: $(OBJ)
> -	$(LD) -static -Tfprom.lds -o fprom $(OBJ) $(LIB)
> +OBJS := $(obj)/fpromasm.o $(obj)/main.o $(obj)/fw-emu.o $(obj)/fpmem.o \
> +	$(obj)/klgraph_init.o
>  
> -.S.o:
> -	$(CC)  -D__ASSEMBLY__ $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
> -.c.o:
> -	$(CC)  $(CFLAGS) $(CFLAGS_KERNEL) -c -o $*.o $<
> +fakeprom: $(obj)/fakeprom $(obj)/vmlinux.sym
> +	cp $(obj)/fakeprom $(obj)/fprom
$(obj)/fprom is a target here.


> +
> +$(obj)/fakeprom: $(src)/fprom.lds $(OBJS) arch/ia64/lib/lib.a
> +	$(call if_changed,ld)
You must add FORCE as prerequisite, otherwise it will not work as expected.
All targets used must be listed in: EXTRA_TARGETS
EXTRA_TARGETS := fprom fakeprom vmlinux.sym



      reply	other threads:[~2003-03-06 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-06  0:12 [Linux-ia64] Yet another SN update Jesse Barnes
2003-03-06 21:39 ` Sam Ravnborg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590709805989@msgid-missing \
    --to=sam@ravnborg.org \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox