summaryrefslogtreecommitdiff
path: root/target/linux/patches/3.19/sparc-aout.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-16 12:42:44 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-16 12:43:53 -0600
commit3b75784a5cf83b34ba7b4ecfe2b80908cedb2982 (patch)
tree77b309c463aa8530e4a9b052f595ce8df1df5835 /target/linux/patches/3.19/sparc-aout.patch
parent5f7287e1a5de3f9dc043089e4209b7b6f291caee (diff)
prepare for Sun Voyager.
Bootloader needs a.out formatted kernel. Unfortunately I get "Illegal instruction" after loading a.out kernel via TFTP. Old gentoo 2.6 kernel boots fine.
Diffstat (limited to 'target/linux/patches/3.19/sparc-aout.patch')
-rw-r--r--target/linux/patches/3.19/sparc-aout.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/patches/3.19/sparc-aout.patch b/target/linux/patches/3.19/sparc-aout.patch
new file mode 100644
index 000000000..3360d6a6e
--- /dev/null
+++ b/target/linux/patches/3.19/sparc-aout.patch
@@ -0,0 +1,24 @@
+diff -Nur linux-3.19.orig/arch/sparc/boot/Makefile linux-3.19/arch/sparc/boot/Makefile
+--- linux-3.19.orig/arch/sparc/boot/Makefile 2015-02-08 20:54:22.000000000 -0600
++++ linux-3.19/arch/sparc/boot/Makefile 2015-02-15 22:58:57.918666227 -0600
+@@ -25,9 +25,6 @@
+ $(call if_changed,gzip)
+ @echo ' kernel: $@ is ready'
+
+-$(obj)/vmlinux.aout: vmlinux FORCE
+- $(call if_changed,elftoaout)
+- @echo ' kernel: $@ is ready'
+ else
+
+ $(obj)/zImage: $(obj)/image
+@@ -62,6 +59,10 @@
+
+ endif
+
++$(obj)/vmlinux.aout: $(obj)/image FORCE
++ $(call if_changed,elftoaout)
++ @echo ' kernel: $@ is ready'
++
+ $(obj)/image: vmlinux FORCE
+ $(call if_changed,strip)
+ @echo ' kernel: $@ is ready'