linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Dave Jones <davej@codemonkey.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: [-dj patch] fix compilation with CONFIG_IKCONFIG
Date: Mon, 30 Sep 2002 11:30:23 +0200 (CEST)	[thread overview]
Message-ID: <Pine.NEB.4.44.0209301121400.12605-100000@mimas.fachschaften.tu-muenchen.de> (raw)

Hi Dave,

compilation of CONFIG_IKCONFIG is broken in 2.5.39-dj2:

<--  snip  -->

...
  gcc -Wp,-MD,./.suspend.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.39-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6
-I/home/bunk/linux/kernel-2.5/linux-2.5.39-full/arch/i386/mach-generic
-nostdinc -iwithprefix include    -DKBUILD_BASENAME=suspend   -c -o
suspend.o suspend.c
suspend.c:293: warning: #warning This might be broken. We need to somehow
wait for data to reach the disk
suspend.c: In function `bdev_write_page':
suspend.c:1040: warning: control reaches end of non-void function
make[1]: *** No rule to make target `configs.o', needed by `built-in.o'.
Stop.
make[1]: Leaving directory `/home/bunk/linux/kernel-2.5/linux-2.5.39-full/kernel'

<--  snip  -->


It seems the following part of 2.5.30-dj1 got lost (it applies with a few
lines offset):


--- linux-2.5.30/kernel/Makefile	2002-08-01 22:16:13.000000000 +0100
+++ linux-2.5/kernel/Makefile	2002-08-02 15:51:08.000000000 +0100
@@ -34,3 +36,14 @@ CFLAGS_sched.o := $(PROFILING) -fno-omit
 endif

 include $(TOPDIR)/Rules.make
+
+configs.o: $(TOPDIR)/scripts/mkconfigs configs.c
+	echo obj-y == $(obj-y)
+	$(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DEXPORT_SYMTAB -c -o configs.o configs.c
+
+$(TOPDIR)/scripts/mkconfigs: $(TOPDIR)/scripts/mkconfigs.c
+	$(HOSTCC) $(HOSTCFLAGS) -o $(TOPDIR)/scripts/mkconfigs $(TOPDIR)/scripts/mkconfigs.c
+
+configs.c: $(TOPDIR)/.config $(TOPDIR)/scripts/mkconfigs
+	$(TOPDIR)/scripts/mkconfigs $(TOPDIR)/.config configs.c
+


cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
								Alan Cox





                 reply	other threads:[~2002-09-30  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=Pine.NEB.4.44.0209301121400.12605-100000@mimas.fachschaften.tu-muenchen.de \
    --to=bunk@fs.tum.de \
    --cc=davej@codemonkey.org.uk \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).