[PATCH 08/17] uml: prepare fixing compilation output

From: Paolo 'Blaisorblade' Giarrusso
Date: Fri Apr 07 2006 - 10:36:17 EST


From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>

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@xxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/