make/devkit/Makefile
changeset 49204 564802b01ded
parent 48839 042834d56fbf
child 50472 ee1a0ddb2590
--- a/make/devkit/Makefile	Mon Mar 12 10:04:12 2018 -0400
+++ b/make/devkit/Makefile	Mon Mar 12 17:00:54 2018 +0100
@@ -41,7 +41,7 @@
 # To build the full set of crosstools for additional platforms, use a command
 # line looking like this:
 #
-# make tars platforms="x86_64-unknown-linux-gnu sparc64-unknown-linux-gnu"
+# make cross_compile_target="aarch64-linux-gnu" BASE_OS=Fedora27
 #
 # This is the makefile which iterates over all host and target platforms.
 #
@@ -57,8 +57,13 @@
 #
 # By default just build for the current platform, which is assumed to be Linux
 #
-platforms := $(me)
-host_platforms := $(platforms)
+ifeq ($(cross_compile_target), )
+  platforms := $(me)
+  host_platforms := $(platforms)
+else
+  platforms := $(cross_compile_target)
+  host_platforms := $(me)
+endif
 target_platforms := $(platforms)
 $(info host_platforms $(host_platforms))
 $(info target_platforms $(target_platforms))