summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-09-06 23:45:13 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-09-06 23:45:13 -0700
commit778d5af7a543c4a16dafab0dfa9346baa40dd30a (patch)
treebfda1d7bedf568613d875f87ec3871ee32a0e7a3
parentff1fbc22d221ae87fa24b80eaf1996421e936955 (diff)
parent0292ae9d3cb57a685f00d0acdac70900ccac0a16 (diff)
Merge bk://linux-sam.bkbits.net/kbuild
into home.osdl.org:/home/torvalds/v2.5/linux
-rw-r--r--Makefile4
-rw-r--r--arch/i386/boot/Makefile3
-rw-r--r--arch/i386/boot98/Makefile3
-rw-r--r--drivers/eisa/Makefile12
-rw-r--r--drivers/ieee1394/Makefile7
-rw-r--r--drivers/isdn/hisax/Makefile4
-rw-r--r--scripts/genksyms/Makefile6
7 files changed, 19 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 8de47cdd3772..ea83721623e8 100644
--- a/Makefile
+++ b/Makefile
@@ -344,8 +344,8 @@ endif
include arch/$(ARCH)/Makefile
# Let architecture Makefiles change CPPFLAGS if needed
-CFLAGS += $(CPPFLAGS) $(CFLAGS)
-AFLAGS += $(CPPFLAGS) $(AFLAGS)
+CFLAGS := $(CPPFLAGS) $(CFLAGS)
+AFLAGS := $(CPPFLAGS) $(AFLAGS)
core-y += kernel/ mm/ fs/ ipc/ security/ crypto/
diff --git a/arch/i386/boot/Makefile b/arch/i386/boot/Makefile
index e52670075477..ccedae2773e7 100644
--- a/arch/i386/boot/Makefile
+++ b/arch/i386/boot/Makefile
@@ -58,8 +58,7 @@ $(obj)/setup $(obj)/bootsect: %: %.o FORCE
$(call if_changed,ld)
$(obj)/compressed/vmlinux: FORCE
- $(Q)$(MAKE) -f scripts/Makefile.build obj=$(obj)/compressed \
- IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+ $(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@
# Set this if you want to pass append arguments to the zdisk/fdimage kernel
FDARGS =
diff --git a/arch/i386/boot98/Makefile b/arch/i386/boot98/Makefile
index e52670075477..ccedae2773e7 100644
--- a/arch/i386/boot98/Makefile
+++ b/arch/i386/boot98/Makefile
@@ -58,8 +58,7 @@ $(obj)/setup $(obj)/bootsect: %: %.o FORCE
$(call if_changed,ld)
$(obj)/compressed/vmlinux: FORCE
- $(Q)$(MAKE) -f scripts/Makefile.build obj=$(obj)/compressed \
- IMAGE_OFFSET=$(IMAGE_OFFSET) $@
+ $(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@
# Set this if you want to pass append arguments to the zdisk/fdimage kernel
FDARGS =
diff --git a/drivers/eisa/Makefile b/drivers/eisa/Makefile
index 23b60ce0812a..f24512dd150b 100644
--- a/drivers/eisa/Makefile
+++ b/drivers/eisa/Makefile
@@ -10,15 +10,15 @@ obj-${CONFIG_EISA_PCI_EISA} += pci_eisa.o
# so leave it at the end of the list.
obj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o
-clean-files:= devlist.h
# Ugly hack to get DEVICE_NAME_SIZE value...
-DEVICE_NAME_SIZE:=$(shell awk '$$1=="\#define" && $$2=="DEVICE_NAME_SIZE" {print $$3-1}' $(srctree)/include/linux/device.h)
+DEVICE_NAME_SIZE =$(shell awk '$$1=="\#define" && $$2=="DEVICE_NAME_SIZE" {print $$3-1}' $(srctree)/include/linux/device.h)
$(obj)/eisa-bus.o: $(obj)/devlist.h
-$(obj)/devlist.h: $(src)/eisa.ids $(srctree)/include/linux/device.h
- sed -e '/^#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@
+quiet_cmd_eisaid = GEN $@
+ cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@
-$(src)/eisa.ids:
- touch $@
+clean-files := devlist.h
+$(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h
+ $(call cmd,eisaid)
diff --git a/drivers/ieee1394/Makefile b/drivers/ieee1394/Makefile
index 1036138ce945..c39b298cbce6 100644
--- a/drivers/ieee1394/Makefile
+++ b/drivers/ieee1394/Makefile
@@ -16,11 +16,10 @@ obj-$(CONFIG_IEEE1394_ETH1394) += eth1394.o
obj-$(CONFIG_IEEE1394_AMDTP) += amdtp.o
obj-$(CONFIG_IEEE1394_CMP) += cmp.o
-clean-files := oui.c
-
quiet_cmd_oui2c = OUI2C $@
- cmd_oui2c = $(CONFIG_SHELL) $(obj)/oui2c.sh < $(obj)/oui.db > $@
+ cmd_oui2c = $(CONFIG_SHELL) $(srctree)/$(src)/oui2c.sh < $< > $@
+targets := oui.c
$(obj)/oui.o: $(obj)/oui.c
-$(obj)/oui.c: $(obj)/oui.db $(obj)/oui2c.sh
+$(obj)/oui.c: $(src)/oui.db $(src)/oui2c.sh FORCE
$(call if_changed,oui2c)
diff --git a/drivers/isdn/hisax/Makefile b/drivers/isdn/hisax/Makefile
index 8c384dffc5e6..b917eef0e54b 100644
--- a/drivers/isdn/hisax/Makefile
+++ b/drivers/isdn/hisax/Makefile
@@ -57,5 +57,5 @@ hisax-$(CONFIG_HISAX_W6692) += w6692.o
hisax-$(CONFIG_HISAX_ENTERNOW_PCI) += enternow_pci.o amd7930_fn.o
#hisax-$(CONFIG_HISAX_TESTEMU) += testemu.o
-CERT := $(shell cd $(src); md5sum -c md5sums.asc > /dev/null 2> /dev/null ;echo $$?)
-CFLAGS_cert.o := -DCERTIFICATION=$(CERT)
+CERT = $(shell cd $(src); md5sum -c md5sums.asc > /dev/null 2> /dev/null ;echo $$?)
+CFLAGS_cert.o = -DCERTIFICATION=$(CERT)
diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile
index ed8b9635e137..76f1fd10e16f 100644
--- a/scripts/genksyms/Makefile
+++ b/scripts/genksyms/Makefile
@@ -4,12 +4,14 @@ always := $(host-progs)
genksyms-objs := genksyms.o parse.o lex.o
-HOSTCFLAGS_parse.o := -Wno-uninitialized
+# -I needed for generated C source (shipped source)
+HOSTCFLAGS_parse.o := -Wno-uninitialized -I$(src)
# dependencies on generated files need to be listed explicitly
-
$(obj)/lex.o: $(obj)/parse.h $(obj)/keywords.c
+# -I needed for generated C source (shipped source)
+HOSTCFLAGS_lex.o := -I$(src)
ifdef GENERATE_PARSER