aboriginal

changeset 1756:79e08a2f2573 1.4.1

linux 3.19
author Rob Landley <rob@landley.net>
date Tue, 14 Apr 2015 16:37:21 -0500
parents 6f81048998fe
children 9b4251fda364
files download.sh sources/baseconfig-linux sources/patches/linux-arm.patch sources/patches/linux-outoutdamnperl.patch
diffstat 4 files changed, 3 insertions(+), 144 deletions(-) [+]
line diff
     1.1 --- a/download.sh	Tue Apr 14 16:36:38 2015 -0500
     1.2 +++ b/download.sh	Tue Apr 14 16:37:21 2015 -0500
     1.3 @@ -29,8 +29,8 @@
     1.4  SHA1=1e49b4e65e071d0abdd9d8eb555fd7e84dc92838 \
     1.5  maybe_fork "download || dienow"
     1.6  
     1.7 -URL=ftp://kernel.org/pub/linux/kernel/v3.x/linux-3.18.tar.gz \
     1.8 -SHA1=65378512524be0bda9e4e87c7fd6ecb2de289673 \
     1.9 +URL=ftp://kernel.org/pub/linux/kernel/v3.x/linux-3.19.tar.gz \
    1.10 +SHA1=5e7c78faee9e8ffb4b0361b9ff459fdc066baca7 \
    1.11  maybe_fork "download || dienow"
    1.12  
    1.13  
     2.1 --- a/sources/baseconfig-linux	Tue Apr 14 16:36:38 2015 -0500
     2.2 +++ b/sources/baseconfig-linux	Tue Apr 14 16:37:21 2015 -0500
     2.3 @@ -47,6 +47,7 @@
     2.4  CONFIG_OVERLAY_FS=y
     2.5  CONFIG_DEVTMPFS=y
     2.6  CONFIG_BLK_DEV_INITRD=y
     2.7 +CONFIG_RD_GZIP=y
     2.8  CONFIG_INITRAMFS_COMPRESSION_GZIP=y
     2.9  
    2.10  CONFIG_VIRTUALIZATION=y
     3.1 --- a/sources/patches/linux-arm.patch	Tue Apr 14 16:36:38 2015 -0500
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,88 +0,0 @@
     3.4 -Make the "Arm Versatile" board even more versatile, for QEMU, which can
     3.5 -stick weird processors into things that were never rmeant to receive them.
     3.6 -
     3.7 -diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig
     3.8 -index c1f38f6..fe5738c 100644
     3.9 ---- a/arch/arm/mach-versatile/Kconfig
    3.10 -+++ b/arch/arm/mach-versatile/Kconfig
    3.11 -@@ -4,7 +4,6 @@ menu "Versatile platform type"
    3.12 - config ARCH_VERSATILE_PB
    3.13 - 	bool "Support Versatile Platform Baseboard for ARM926EJ-S"
    3.14 - 	default y
    3.15 --	select CPU_ARM926T
    3.16 - 	select MIGHT_HAVE_PCI
    3.17 - 	help
    3.18 - 	  Include support for the ARM(R) Versatile Platform Baseboard
    3.19 -@@ -12,7 +11,6 @@ config ARCH_VERSATILE_PB
    3.20 - 
    3.21 - config MACH_VERSATILE_AB
    3.22 - 	bool "Support Versatile Application Baseboard for ARM926EJ-S"
    3.23 --	select CPU_ARM926T
    3.24 - 	help
    3.25 - 	  Include support for the ARM(R) Versatile Application Baseboard
    3.26 - 	  for the ARM926EJ-S.
    3.27 -diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
    3.28 -index 101b968..70de9fd 100644
    3.29 ---- a/arch/arm/mm/Kconfig
    3.30 -+++ b/arch/arm/mm/Kconfig
    3.31 -@@ -71,7 +71,7 @@ config CPU_ARM9TDMI
    3.32 - 
    3.33 - # ARM920T
    3.34 - config CPU_ARM920T
    3.35 --	bool "Support ARM920T processor" if ARCH_INTEGRATOR
    3.36 -+	bool "Support ARM920T processor" if ARCH_INTEGRATOR || ARCH_VERSATILE_PB || ARCH_VERSATILE_AB
    3.37 - 	select CPU_32v4T
    3.38 - 	select CPU_ABRT_EV4T
    3.39 - 	select CPU_CACHE_V4WT
    3.40 -@@ -89,7 +89,7 @@ config CPU_ARM920T
    3.41 - 
    3.42 - # ARM922T
    3.43 - config CPU_ARM922T
    3.44 --	bool "Support ARM922T processor" if ARCH_INTEGRATOR
    3.45 -+	bool "Support ARM922T processor" if ARCH_INTEGRATOR || ARCH_VERSATILE_PB || ARCH_VERSATILE_AB
    3.46 - 	select CPU_32v4T
    3.47 - 	select CPU_ABRT_EV4T
    3.48 - 	select CPU_CACHE_V4WT
    3.49 -@@ -127,7 +127,7 @@ config CPU_ARM925T
    3.50 - 
    3.51 - # ARM926T
    3.52 - config CPU_ARM926T
    3.53 --	bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB
    3.54 -+	bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || ARCH_VERSATILE_PB || ARCH_VERSATILE_AB
    3.55 - 	select CPU_32v5
    3.56 - 	select CPU_ABRT_EV5TJ
    3.57 - 	select CPU_CACHE_VIVT
    3.58 -@@ -135,6 +135,7 @@ config CPU_ARM926T
    3.59 - 	select CPU_CP15_MMU
    3.60 - 	select CPU_PABRT_LEGACY
    3.61 - 	select CPU_TLB_V4WBI if MMU
    3.62 -+	select ARCH_SUPPORTS_BIG_ENDIAN
    3.63 - 	help
    3.64 - 	  This is a variant of the ARM920.  It has slightly different
    3.65 - 	  instruction sequences for cache and TLB operations.  Curiously,
    3.66 -@@ -354,7 +355,8 @@ config CPU_PJ4
    3.67 - 
    3.68 - # ARMv6
    3.69 - config CPU_V6
    3.70 --	bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
    3.71 -+	bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX || ARCH_VERSATILE_PB || ARCH_VERSATILE_AB
    3.72 -+
    3.73 - 	select CPU_32v6
    3.74 - 	select CPU_ABRT_EV6
    3.75 - 	select CPU_CACHE_V6
    3.76 -diff -ruN linux/arch/arm/mach-versatile/Kconfig linux.new/arch/arm/mach-versatile/Kconfig
    3.77 ---- linux/arch/arm/mach-versatile/Kconfig	2012-12-03 00:24:33.494770199 -0600
    3.78 -+++ linux.new/arch/arm/mach-versatile/Kconfig	2012-12-03 00:17:31.172705566 -0600
    3.79 -@@ -1,6 +1,12 @@
    3.80 - menu "Versatile platform type"
    3.81 - 	depends on ARCH_VERSATILE
    3.82 - 
    3.83 -+if ARCH_VERSATILE
    3.84 -+config ARCH_SUPPORTS_BIG_ENDIAN
    3.85 -+        bool
    3.86 -+        default y
    3.87 -+endif
    3.88 -+
    3.89 - config ARCH_VERSATILE_PB
    3.90 - 	bool "Support Versatile Platform Baseboard for ARM926EJ-S"
    3.91 - 	default y
     4.1 --- a/sources/patches/linux-outoutdamnperl.patch	Tue Apr 14 16:36:38 2015 -0500
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,59 +0,0 @@
     4.4 -Commit e6023367d779 added perl back to the kernel build. KILL IT WITH FIRE.
     4.5 -
     4.6 ---- linux/arch/x86/boot/compressed/Makefile
     4.7 -+++ linux/arch/x86/boot/compressed/Makefile
     4.8 -@@ -89,8 +76,10 @@
     4.9 - suffix-$(CONFIG_KERNEL_LZO) 	:= lzo
    4.10 - suffix-$(CONFIG_KERNEL_LZ4) 	:= lz4
    4.11 - 
    4.12 --RUN_SIZE = $(shell $(OBJDUMP) -h vmlinux | \
    4.13 --	     perl $(srctree)/arch/x86/tools/calc_run_size.pl)
    4.14 -+RUN_SIZE = $(shell NUM='\([0-9a-fA-F]*[ \t]*\)'; objdump -h vmlinux | \
    4.15 -+sed -n 's/^[ \t0-9]*.b[sr][sk][ \t]*'"$$NUM$$NUM$$NUM$$NUM"'.*/\1\4/p' | \
    4.16 -+xargs | while read a b c d; do [ "$$b" != "$$d" ] && exit 1; \
    4.17 -+expr $$(printf "%d + %d + %d" 0x$$a 0x$$b 0x$$c); done)
    4.18 - quiet_cmd_mkpiggy = MKPIGGY $@
    4.19 -       cmd_mkpiggy = $(obj)/mkpiggy $< $(RUN_SIZE) > $@ || ( rm -f $@ ; false )
    4.20 - 
    4.21 ---- linux/arch/x86/tools/calc_run_size.pl
    4.22 -+++ /dev/null
    4.23 -@@ -1,39 +0,0 @@
    4.24 --#!/usr/bin/perl
    4.25 --#
    4.26 --# Calculate the amount of space needed to run the kernel, including room for
    4.27 --# the .bss and .brk sections.
    4.28 --#
    4.29 --# Usage:
    4.30 --# objdump -h a.out | perl calc_run_size.pl
    4.31 --use strict;
    4.32 --
    4.33 --my $mem_size = 0;
    4.34 --my $file_offset = 0;
    4.35 --
    4.36 --my $sections=" *[0-9]+ \.(?:bss|brk) +";
    4.37 --while (<>) {
    4.38 --	if (/^$sections([0-9a-f]+) +(?:[0-9a-f]+ +){2}([0-9a-f]+)/) {
    4.39 --		my $size = hex($1);
    4.40 --		my $offset = hex($2);
    4.41 --		$mem_size += $size;
    4.42 --		if ($file_offset == 0) {
    4.43 --			$file_offset = $offset;
    4.44 --		} elsif ($file_offset != $offset) {
    4.45 --			# BFD linker shows the same file offset in ELF.
    4.46 --			# Gold linker shows them as consecutive.
    4.47 --			next if ($file_offset + $mem_size == $offset + $size);
    4.48 --
    4.49 --			printf STDERR "file_offset: 0x%lx\n", $file_offset;
    4.50 --			printf STDERR "mem_size: 0x%lx\n", $mem_size;
    4.51 --			printf STDERR "offset: 0x%lx\n", $offset;
    4.52 --			printf STDERR "size: 0x%lx\n", $size;
    4.53 --
    4.54 --			die ".bss and .brk are non-contiguous\n";
    4.55 --		}
    4.56 --	}
    4.57 --}
    4.58 --
    4.59 --if ($file_offset == 0) {
    4.60 --	die "Never found .bss or .brk file offset\n";
    4.61 --}
    4.62 --printf("%d\n", $mem_size + $file_offset);