Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / nios2 / boot / compressed / Makefile
diff --git a/kernel/arch/nios2/boot/compressed/Makefile b/kernel/arch/nios2/boot/compressed/Makefile
new file mode 100644 (file)
index 0000000..5b0fb34
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# create a compressed vmlinux image from the original vmlinux
+#
+
+targets                := vmlinux head.o misc.o piggy.o vmlinux.lds
+asflags-y      :=
+
+OBJECTS = $(obj)/head.o $(obj)/misc.o
+
+LDFLAGS_vmlinux := -T
+
+$(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE
+       $(call if_changed,ld)
+       @:
+
+LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T
+
+$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/../vmlinux.gz FORCE
+       $(call if_changed,ld)