Re: [PATCH] samples: build fix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: Roland McGrath <roland@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-kernel@...>
Date: Thursday, February 14, 2008 - 5:06 pm

On Thu, Feb 14, 2008 at 03:04:04PM -0500, Mathieu Desnoyers wrote:
The simple solution is like attached.
I do not care if they are build as part of vmlinux or modules build.
So if it is generally preferred we could move it like this.

Comments?

	Sam

diff --git a/Makefile b/Makefile
index c162370..c72afa9 100644
--- a/Makefile
+++ b/Makefile
@@ -802,9 +802,6 @@ vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o $(kallsyms.o)
 ifdef CONFIG_HEADERS_CHECK
 	$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
 endif
-ifdef CONFIG_SAMPLES
-	$(Q)$(MAKE) $(build)=samples
-endif
 	$(call vmlinux-modpost)
 	$(call if_changed_rule,vmlinux__)
 	$(Q)rm -f .old_version
@@ -1036,6 +1033,9 @@ all: modules
 PHONY += modules
 modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux)
 	$(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
+ifdef CONFIG_SAMPLES
+	$(Q)$(MAKE) $(build)=samples
+endif
 	@echo '  Building modules, stage 2.';
 	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] samples: build fix, Roland McGrath, (Wed Feb 13, 11:45 pm)
Re: [PATCH] samples: build fix, Mathieu Desnoyers, (Thu Feb 14, 9:27 am)
Re: [PATCH] samples: build fix, Sam Ravnborg, (Thu Feb 14, 3:46 pm)
Re: [PATCH] samples: build fix, Mathieu Desnoyers, (Thu Feb 14, 4:04 pm)
Re: [PATCH] samples: build fix, Sam Ravnborg, (Thu Feb 14, 5:06 pm)
Re: [PATCH] samples: build fix, Roland McGrath, (Thu Feb 14, 4:02 pm)
Re: [PATCH] samples: build fix, Sam Ravnborg, (Thu Feb 14, 4:42 pm)
Re: [PATCH] samples: build fix, Randy Dunlap, (Thu Feb 14, 4:09 pm)
Re: [PATCH] samples: build fix, Roland McGrath, (Thu Feb 14, 3:26 pm)