* [uml-devel] [PATCH] 2.6: mrproper and clean still broken
@ 2003-12-13 17:38 BlaisorBlade
2003-12-18 20:33 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: BlaisorBlade @ 2003-12-13 17:38 UTC (permalink / raw)
To: user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
PROBLEM:
make mrproper has problems with the SIZE var:
SIZE = (($(CONFIG_NEST_LEVEL) + $(CONFIG_KERNEL_HALF_GIGS)) * 0x20000000)
since .config is not included when doing *make clean* or *make mrproper*.
SOLUTION:
I've attached the patch to fix this. Actually someone(i.e. J.Cone) already
sent this, but the form in which it was applied didn't fix the problem(or
maybe it wasn't applied); the applied patch simply provided default config
values.
I've attached also the other part of that patch, i.e. adding -g to USER_CFLAGS
when needed.
Bye
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN
[-- Attachment #2: Fix_clean_mrproper.patch --]
[-- Type: text/x-diff, Size: 921 bytes --]
--- ./arch/um/Makefile.cleanfix 2003-12-02 17:20:42.000000000 +0100
+++ ./arch/um/Makefile 2003-12-13 18:36:36.000000000 +0100
@@ -61,7 +61,11 @@
LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
-SIZE = (($(CONFIG_NEST_LEVEL) + $(CONFIG_KERNEL_HALF_GIGS)) * 0x20000000)
+#This is needed for clean and mrproper, since in that case .config is not
+#included; but the values here are meaningless
+CONFIG_NEST_LEVEL ?= 0
+CONFIG_KERNEL_HALF_GIGS ?= 0
+SIZE := (($(CONFIG_NEST_LEVEL) + $(CONFIG_KERNEL_HALF_GIGS)) * 0x20000000)
ifeq ($(CONFIG_MODE_SKAS), y)
$(SYS_HEADERS) : $(TOPDIR)/$(ARCH_DIR)/include/skas_ptregs.h
@@ -128,6 +132,11 @@
# To get a definition of F_SETSIG
USER_CFLAGS += -D_GNU_SOURCE
+ifdef CONFIG_DEBUG_INFO
+USER_CFLAGS += -g
+endif
+
+
CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/uml.lds.s \
$(ARCH_DIR)/dyn_link.ld.s $(ARCH_DIR)/include/uml-config.h \
$(GEN_HEADERS)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-18 20:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-13 17:38 [uml-devel] [PATCH] 2.6: mrproper and clean still broken BlaisorBlade
2003-12-18 20:33 ` Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.