summaryrefslogtreecommitdiff
path: root/make_helpers
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2016-07-04 18:05:15 +0100
committerGitHub <noreply@github.com>2016-07-04 18:05:15 +0100
commit6f511c4782f079c75928a4dae3a4e3e4f6754831 (patch)
treec57761c75cc446f9c4a7efdb822c4dbe69759e23 /make_helpers
parent10b93d79752d7818b6bc0cea97a839403f503e5b (diff)
parent7de544ac04848cacb30547d3e95db138896d73a9 (diff)
Merge pull request #651 from Xilinx/zynqmp_uart
zynqmp: Make UART selectable
Diffstat (limited to 'make_helpers')
-rw-r--r--make_helpers/build_macros.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk
index c963b7af..165e3aad 100644
--- a/make_helpers/build_macros.mk
+++ b/make_helpers/build_macros.mk
@@ -68,6 +68,13 @@ define add_define
DEFINES += -D$(1)$(if $(value $(1)),=$(value $(1)),)
endef
+# Convenience function for adding build definitions
+# $(eval $(call add_define_val,FOO,BAR)) will have:
+# -DFOO=BAR
+define add_define_val
+ DEFINES += -D$(1)=$(2)
+endef
+
# Convenience function for verifying option has a boolean value
# $(eval $(call assert_boolean,FOO)) will assert FOO is 0 or 1
define assert_boolean