summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-06-23 12:07:01 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-23 12:18:04 +0200
commitcca129e716fef156831ee26a624d2d0a0550ba8c (patch)
treef305ae175806abd30065b1f7284ec9614169db9f /scripts/Makefile.build
parentbc4840e98b94e4e78f76b761293d965edcfb094d (diff)
downloadbarebox-cca129e716fef156831ee26a624d2d0a0550ba8c.tar.gz
barebox-cca129e716fef156831ee26a624d2d0a0550ba8c.tar.xz
kbuild: add infrastructure to build userspace programs
Import Linux commit 7f3a59db274c3e3d884c785e363a054110f1c266 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 00f627791a..a3dfe261af 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -49,6 +49,12 @@ ifneq ($(hostprogs)$(hostprogs-y)$(hostprogs-m),)
include scripts/Makefile.host
endif
+# Do not include userprogs rules unless needed.
+userprogs := $(sort $(userprogs))
+ifneq ($(userprogs),)
+include scripts/Makefile.userprogs
+endif
+
ifndef obj
$(warning kbuild: Makefile.build is included improperly)
endif