From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] 2.6: mrproper and clean still broken
Date: Sat, 13 Dec 2003 18:38:31 +0100 [thread overview]
Message-ID: <200312131838.32002.blaisorblade_spam@yahoo.it> (raw)
[-- 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)
next reply other threads:[~2003-12-13 17:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-13 17:38 BlaisorBlade [this message]
2003-12-18 20:33 ` [uml-devel] [PATCH] 2.6: mrproper and clean still broken Jeff Dike
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=200312131838.32002.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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