* [patch 2.6.16-rc2] Correct CPPFLAGS in arch/ia64/sn
@ 2006-02-06 1:34 Keith Owens
2006-02-06 19:10 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Keith Owens @ 2006-02-06 1:34 UTC (permalink / raw)
To: linux-ia64
When building a specific object or subdirectory, kbuild does not do a
recursive make, instead it starts with the Makefile for the file or
directory. Therefore flags which are set in higher level Makefiles are
missing. The only way to make kbuild work when building a specific
object/directory is not to rely on flag propagation, instead the flags
must be set in each Makefile. IA64 SN directories have this problem.
Signed-off-by: Keith Owens <kaos@sgi.com>
---
Makefile | 2 --
kernel/Makefile | 2 ++
kernel/sn2/Makefile | 2 ++
pci/Makefile | 2 ++
pci/pcibr/Makefile | 2 ++
5 files changed, 8 insertions(+), 2 deletions(-)
Index: linux/arch/ia64/sn/Makefile
=================================--- linux.orig/arch/ia64/sn/Makefile 2006-01-03 14:21:10.000000000 +1100
+++ linux/arch/ia64/sn/Makefile 2006-01-18 15:21:08.348599626 +1100
@@ -9,6 +9,4 @@
# Makefile for the sn ia64 subplatform
#
-CPPFLAGS += -I$(srctree)/arch/ia64/sn/include
-
obj-y += kernel/ pci/
Index: linux/arch/ia64/sn/kernel/Makefile
=================================--- linux.orig/arch/ia64/sn/kernel/Makefile 2006-01-03 14:21:10.000000000 +1100
+++ linux/arch/ia64/sn/kernel/Makefile 2006-01-18 15:21:29.739207327 +1100
@@ -7,6 +7,8 @@
# Copyright (C) 1999,2001-2005 Silicon Graphics, Inc. All Rights Reserved.
#
+CPPFLAGS += -I$(srctree)/arch/ia64/sn/include
+
obj-y += setup.o bte.o bte_error.o irq.o mca.o idle.o \
huberror.o io_init.o iomv.o klconflib.o sn2/
obj-$(CONFIG_IA64_GENERIC) += machvec.o
Index: linux/arch/ia64/sn/kernel/sn2/Makefile
=================================--- linux.orig/arch/ia64/sn/kernel/sn2/Makefile 2006-01-03 14:21:10.000000000 +1100
+++ linux/arch/ia64/sn/kernel/sn2/Makefile 2006-01-18 15:21:35.709087973 +1100
@@ -9,5 +9,7 @@
# sn2 specific kernel files
#
+CPPFLAGS += -I$(srctree)/arch/ia64/sn/include
+
obj-y += cache.o io.o ptc_deadlock.o sn2_smp.o sn_proc_fs.o \
prominfo_proc.o timer.o timer_interrupt.o sn_hwperf.o
Index: linux/arch/ia64/sn/pci/Makefile
=================================--- linux.orig/arch/ia64/sn/pci/Makefile 2006-01-03 14:21:10.000000000 +1100
+++ linux/arch/ia64/sn/pci/Makefile 2006-01-18 15:21:41.877183495 +1100
@@ -7,4 +7,6 @@
#
# Makefile for the sn pci general routines.
+CPPFLAGS += -I$(srctree)/arch/ia64/sn/include
+
obj-y := pci_dma.o tioca_provider.o tioce_provider.o pcibr/
Index: linux/arch/ia64/sn/pci/pcibr/Makefile
=================================--- linux.orig/arch/ia64/sn/pci/pcibr/Makefile 2006-01-03 14:21:10.000000000 +1100
+++ linux/arch/ia64/sn/pci/pcibr/Makefile 2006-01-18 15:21:46.363870041 +1100
@@ -7,5 +7,7 @@
#
# Makefile for the sn2 io routines.
+CPPFLAGS += -I$(srctree)/arch/ia64/sn/include
+
obj-y += pcibr_dma.o pcibr_reg.o \
pcibr_ate.o pcibr_provider.o
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 2.6.16-rc2] Correct CPPFLAGS in arch/ia64/sn
2006-02-06 1:34 [patch 2.6.16-rc2] Correct CPPFLAGS in arch/ia64/sn Keith Owens
@ 2006-02-06 19:10 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2006-02-06 19:10 UTC (permalink / raw)
To: linux-ia64
On Mon, Feb 06, 2006 at 12:34:42PM +1100, Keith Owens wrote:
> When building a specific object or subdirectory, kbuild does not do a
> recursive make, instead it starts with the Makefile for the file or
> directory. Therefore flags which are set in higher level Makefiles are
> missing. The only way to make kbuild work when building a specific
> object/directory is not to rely on flag propagation, instead the flags
> must be set in each Makefile. IA64 SN directories have this problem.
>
> Signed-off-by: Keith Owens <kaos@sgi.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
There is no other way to achieve this today.
sn is specific since CPPFLAGS is only used in ia64/sn and below.
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-06 19:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-06 1:34 [patch 2.6.16-rc2] Correct CPPFLAGS in arch/ia64/sn Keith Owens
2006-02-06 19:10 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox