From: Hannes Reinecke <hare@suse.de>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Vegard Nossum <vegard.nossum@gmail.com>,
linux-scsi@vger.kernel.org
Subject: Re: aic7-triple x build fixed in kbuild.git
Date: Thu, 06 Dec 2007 08:44:45 +0100 [thread overview]
Message-ID: <4757A86D.4010507@suse.de> (raw)
In-Reply-To: <20071204213301.GA32214@uranus.ravnborg.org>
Sam Ravnborg wrote:
> akpm reported that:
> make mrproper
> make allmodconfig
> make drivers/scsi/aic7xxx/
>
> were broken in recent kbuild.git - and as a logical consequence
> removed kbuild.git from his -mm lineup.
>
> I have now fixed it (stupid bug I made) and pushed out
> a fresh kbuild.git tree.
>
> As previously announced I am not very active in kbuild land the next
> couple of weeks so I may be slow if there is any comments.
>
> The fixed commit is included below.
>
> Sam
>
> commit 63b7c4e77e9204407ee8a5d5243ba9c502550252
> Author: Vegard Nossum <vegard.nossum@gmail.com>
> Date: Fri Oct 26 13:31:13 2007 +0200
>
> aic7(3*x): fix firmware build
>
> This patch adds the proper $(obj) and $(src) prefixes to dependency
> rules in aic7xxx makefile. Without this patch, there is a remote
> possibility that parallel make with a different output directory can
> fail.
>
> Also changed the deprecated EXTRA_CFLAGS construct to ccflags-y syntax.
>
> Fixed up patch to survive "make drivers/scsi/ -j"
> with BUILD_FIRMWARE enable. /Sam
>
> Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Cc: linux-scsi@vger.kernel.org
>
> diff --git a/drivers/scsi/aic7xxx/Makefile b/drivers/scsi/aic7xxx/Makefile
> index 9a6ce19..e4f70c5 100644
> --- a/drivers/scsi/aic7xxx/Makefile
> +++ b/drivers/scsi/aic7xxx/Makefile
> @@ -33,11 +33,10 @@ aic79xx-y += aic79xx_osm.o \
> aic79xx_proc.o \
> aic79xx_osm_pci.o
>
> -EXTRA_CFLAGS += -Idrivers/scsi
> +ccflags-y += -Idrivers/scsi
> ifdef WARNINGS_BECOME_ERRORS
> -EXTRA_CFLAGS += -Werror
> +ccflags-y += -Werror
> endif
> -#EXTRA_CFLAGS += -g
>
> # Files generated that shall be removed upon make clean
> clean-files := aic7xxx_seq.h aic7xxx_reg.h aic7xxx_reg_print.c
> @@ -46,53 +45,45 @@ clean-files += aic79xx_seq.h aic79xx_reg.h aic79xx_reg_print.c
> # Dependencies for generated files need to be listed explicitly
>
> $(obj)/aic7xxx_core.o: $(obj)/aic7xxx_seq.h
> +$(obj)/aic7xxx_core.o: $(obj)/aic7xxx_reg.h
> $(obj)/aic79xx_core.o: $(obj)/aic79xx_seq.h
> -$(obj)/aic79xx_reg_print.c: $(src)/aic79xx_reg_print.c_shipped
> -$(obj)/aic7xxx_reg_print.c: $(src)/aic7xxx_reg_print.c_shipped
> +$(obj)/aic79xx_core.o: $(obj)/aic79xx_reg.h
>
> -$(addprefix $(obj)/,$(aic7xxx-y)): $(obj)/aic7xxx_reg.h
> -$(addprefix $(obj)/,$(aic79xx-y)): $(obj)/aic79xx_reg.h
> +$(addprefix $(obj)/,$(aic7xxx-y)): $(obj)/aic7xxx_seq.h
> +$(addprefix $(obj)/,$(aic79xx-y)): $(obj)/aic79xx_seq.h
>
> -aic7xxx-gen-$(CONFIG_AIC7XXX_BUILD_FIRMWARE) := $(obj)/aic7xxx_seq.h \
> - $(obj)/aic7xxx_reg.h
> +aic7xxx-gen-$(CONFIG_AIC7XXX_BUILD_FIRMWARE) := $(obj)/aic7xxx_reg.h
> aic7xxx-gen-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) += $(obj)/aic7xxx_reg_print.c
>
> aicasm-7xxx-opts-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) := \
> -p $(obj)/aic7xxx_reg_print.c -i aic7xxx_osm.h
>
> ifeq ($(CONFIG_AIC7XXX_BUILD_FIRMWARE),y)
> -# Create a dependency chain in generated files
> -# to avoid concurrent invocations of the single
> -# rule that builds them all.
> -aic7xxx_seq.h: aic7xxx_reg.h
> -ifeq ($(CONFIG_AIC7XXX_REG_PRETTY_PRINT),y)
> -aic7xxx_reg.h: aic7xxx_reg_print.c
> -endif
> -$(aic7xxx-gen-y): $(src)/aic7xxx.seq $(src)/aic7xxx.reg $(obj)/aicasm/aicasm
> +$(obj)/aic7xxx_seq.h: $(src)/aic7xxx.seq $(src)/aic7xxx.reg $(obj)/aicasm/aicasm
> $(obj)/aicasm/aicasm -I$(src) -r $(obj)/aic7xxx_reg.h \
> $(aicasm-7xxx-opts-y) -o $(obj)/aic7xxx_seq.h \
> $(src)/aic7xxx.seq
> +
> +$(aic7xxx-gen-y): $(obj)/aic7xxx_seq.h
> +else
> +$(obj)/aic7xxx_reg_print.c: $(src)/aic7xxx_reg_print.c_shipped
> endif
>
> -aic79xx-gen-$(CONFIG_AIC79XX_BUILD_FIRMWARE) := $(obj)/aic79xx_seq.h \
> - $(obj)/aic79xx_reg.h
> +aic79xx-gen-$(CONFIG_AIC79XX_BUILD_FIRMWARE) := $(obj)/aic79xx_reg.h
> aic79xx-gen-$(CONFIG_AIC79XX_REG_PRETTY_PRINT) += $(obj)/aic79xx_reg_print.c
>
> aicasm-79xx-opts-$(CONFIG_AIC79XX_REG_PRETTY_PRINT) := \
> -p $(obj)/aic79xx_reg_print.c -i aic79xx_osm.h
>
> ifeq ($(CONFIG_AIC79XX_BUILD_FIRMWARE),y)
> -# Create a dependency chain in generated files
> -# to avoid concurrent invocations of the single
> -# rule that builds them all.
> -aic79xx_seq.h: aic79xx_reg.h
> -ifeq ($(CONFIG_AIC79XX_REG_PRETTY_PRINT),y)
> -aic79xx_reg.h: aic79xx_reg_print.c
> -endif
> -$(aic79xx-gen-y): $(src)/aic79xx.seq $(src)/aic79xx.reg $(obj)/aicasm/aicasm
> +$(obj)/aic79xx_seq.h: $(src)/aic79xx.seq $(src)/aic79xx.reg $(obj)/aicasm/aicasm
> $(obj)/aicasm/aicasm -I$(src) -r $(obj)/aic79xx_reg.h \
> $(aicasm-79xx-opts-y) -o $(obj)/aic79xx_seq.h \
> $(src)/aic79xx.seq
> +
> +$(aic79xx-gen-y): $(obj)/aic79xx_seq.h
> +else
> +$(obj)/aic79xx_reg_print.c: $(src)/aic79xx_reg_print.c_shipped
> endif
>
> $(obj)/aicasm/aicasm: $(src)/aicasm/*.[chyl]
Acked-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2007-12-06 7:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 21:33 aic7-triple x build fixed in kbuild.git Sam Ravnborg
2007-12-06 7:44 ` Hannes Reinecke [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=4757A86D.4010507@suse.de \
--to=hare@suse.de \
--cc=akpm@linux-foundation.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=vegard.nossum@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.