summaryrefslogtreecommitdiff
path: root/arch/riscv32/soc/pulpino/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv32/soc/pulpino/Makefile')
-rw-r--r--arch/riscv32/soc/pulpino/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/riscv32/soc/pulpino/Makefile b/arch/riscv32/soc/pulpino/Makefile
new file mode 100644
index 000000000..4dda17816
--- /dev/null
+++ b/arch/riscv32/soc/pulpino/Makefile
@@ -0,0 +1,20 @@
+soc-cflags := -I/$(srctree)/arch/$(ARCH)/soc/$(SOC_PATH)/
+
+ifndef CONFIG_RISCV_GENERIC_TOOLCHAIN
+soc-cflags += -march=IMXpulpv2
+endif
+
+KERNEL_S19_NAME = $(KERNEL_NAME).s19
+
+quiet_cmd_gen_s19 = S19 $@
+ cmd_gen_s19 = \
+( \
+ $(OBJCOPY) --srec-len 1 --output-target=srec $< $@; \
+)
+
+$(KERNEL_S19_NAME): $(KERNEL_ELF_NAME)
+ $(call cmd,gen_s19)
+
+zephyr: $(KERNEL_S19_NAME)
+all: $(KERNEL_S19_NAME)
+export KERNEL_S19_NAME