samples: zephyr: add hello-world
This is a minimal example application that works on various boards,
without target-specific definitions, device tree overlay files, etc.
It's been tested on frdm_k64f, 96b_carbon, and 96b_nitrogen.
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
diff --git a/samples/zephyr/hello-world/src/main.c b/samples/zephyr/hello-world/src/main.c
new file mode 100644
index 0000000..189b1fb
--- /dev/null
+++ b/samples/zephyr/hello-world/src/main.c
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2017 Linaro, Ltd.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include <zephyr.h>
+#include <misc/printk.h>
+
+void main(void)
+{
+ printk("Hello World from %s on %s!\n",
+ MCUBOOT_HELLO_WORLD_FROM, CONFIG_BOARD);
+}