summaryrefslogtreecommitdiff
path: root/tools/binman/test/u_boot_binman_embed_sm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/binman/test/u_boot_binman_embed_sm.c')
-rw-r--r--tools/binman/test/u_boot_binman_embed_sm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/binman/test/u_boot_binman_embed_sm.c b/tools/binman/test/u_boot_binman_embed_sm.c
new file mode 100644
index 0000000000..ae245d78a6
--- /dev/null
+++ b/tools/binman/test/u_boot_binman_embed_sm.c
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2021 Google LLC
+ *
+ * Simple program to embed a devicetree. This is used by binman tests.
+ */
+
+int __attribute__((section(".mydtb"))) dtb_data[16];
+
+int main(void)
+{
+ return 0;
+}