lkml.org 
[lkml]   [2006]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 08/17] uml: prepare fixing compilation output
Date
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Move the build of user-offsets to arch/um/Kbuild, this will allow using the
normal user-objs machinery. I had written this to fixup for a Kbuild change, but
another fix was merged. This is still useful however.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

arch/um/Kbuild | 4 ++++
arch/um/Makefile | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/um/Kbuild b/arch/um/Kbuild
new file mode 100644
index 0000000..ae2a254
--- /dev/null
+++ b/arch/um/Kbuild
@@ -0,0 +1,4 @@
+ARCH_DIR := arch/um
+
+$(ARCH_DIR)/user-offsets.s: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.c
+ $(CC) $(USER_CFLAGS) -S -o $@ $<
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 24790be..ef8d71d 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -202,8 +202,8 @@ endef
$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
$(call filechk,umlconfig)

-$(ARCH_DIR)/user-offsets.s: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.c
- $(CC) $(USER_CFLAGS) -S -o $@ $<
+$(ARCH_DIR)/user-offsets.s: FORCE
+ $(Q)$(MAKE) $(build)=$(ARCH_DIR) $@

define filechk_gen-asm-offsets
(set -e; \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-04-07 16:38    [W:0.084 / U:0.032 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site