linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-dj patch] fix compilation with CONFIG_IKCONFIG
@ 2002-09-30  9:30 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2002-09-30  9:30 UTC (permalink / raw)
  To: Dave Jones; +Cc: linux-kernel

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-30  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30  9:30 [-dj patch] fix compilation with CONFIG_IKCONFIG Adrian Bunk

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).