From: Sam Ravnborg <sam@ravnborg.org>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>,
Sam Ravnborg <sam@ravnborg.org>
Subject: Re: kbuild: Separate output directory - include patch
Date: Tue, 19 Aug 2003 23:54:30 +0200 [thread overview]
Message-ID: <20030819215430.GD1791@mars.ravnborg.org> (raw)
In-Reply-To: <20030819215157.GA1791@mars.ravnborg.org>
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1272 -> 1.1273
# kernel/Makefile 1.32 -> 1.33
# scripts/genksyms/Makefile 1.3 -> 1.4
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/08/19 sam@mars.ravnborg.org 1.1273
# kbuild: Fix build with seperate output directory
#
# Build rule for ikconfig updated.
# Include directive for genksyms updated
# --------------------------------------------
#
diff -Nru a/kernel/Makefile b/kernel/Makefile
--- a/kernel/Makefile Tue Aug 19 23:41:31 2003
+++ b/kernel/Makefile Tue Aug 19 23:41:31 2003
@@ -20,8 +20,6 @@
obj-$(CONFIG_COMPAT) += compat.o
obj-$(CONFIG_IKCONFIG) += configs.o
-# files to be removed upon make clean
-clean-files := ikconfig.h
ifneq ($(CONFIG_IA64),y)
# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
@@ -32,8 +30,13 @@
CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
endif
-$(obj)/ikconfig.h: scripts/mkconfigs .config Makefile
- $(CONFIG_SHELL) scripts/mkconfigs .config Makefile > $(obj)/ikconfig.h
+quiet_cmd_ikconfig = IKCFG $@
+ cmd_ikconfig = $(CONFIG_SHELL) $< .config $(srctree)/Makefile > $@
+
+targets := ikconfig.h
+
+$(obj)/ikconfig.h: scripts/mkconfigs .config Makefile FORCE
+ $(call if_changed,ikconfig)
$(obj)/configs.o: $(obj)/ikconfig.h $(obj)/configs.c \
include/linux/version.h include/linux/compile.h
diff -Nru a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile
--- a/scripts/genksyms/Makefile Tue Aug 19 23:41:31 2003
+++ b/scripts/genksyms/Makefile Tue Aug 19 23:41:31 2003
@@ -3,13 +3,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$(obj)
# 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$(obj)
ifdef GENERATE_PARSER
prev parent reply other threads:[~2003-08-19 21:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 21:51 kbuild: Separate output directory - core patch Sam Ravnborg
2003-08-19 21:52 ` kbuild: Separate output directory - ieee patch Sam Ravnborg
2003-08-19 21:53 ` kbuild: Separate output directory - i386+always patch Sam Ravnborg
2003-08-19 21:54 ` 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=20030819215430.GD1791@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@osdl.org \
--cc=kai@tp1.ruhr-uni-bochum.de \
--cc=torvalds@osdl.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;
as well as URLs for NNTP newsgroup(s).