[PATCH] scripts: Makefile: do not use obj-* variables for userspace tools
Jan Luebbe
jlu at pengutronix.de
Tue May 28 05:39:44 EDT 2013
When using obj-?, it erroneously tries to link a built-in.o. Instead
use the extra-? variable.
Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
---
scripts/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Makefile b/scripts/Makefile
index f062fc0..e375530 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -30,7 +30,7 @@ subdir- += basic kconfig setupmbr
quiet_cmd_csingle = CC $@
cmd_csingle = $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
-obj-$(CONFIG_BAREBOXENV_TARGET) += bareboxenv-target
+extra-$(CONFIG_BAREBOXENV_TARGET) += bareboxenv-target
scripts/bareboxenv-target: scripts/bareboxenv.c FORCE
$(call if_changed_dep,csingle)
--
1.8.2.rc2
More information about the barebox
mailing list