linux: add linux-AMLm1-2.6.34

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-05-26 16:09:18 +02:00
parent 747cc2ffbc
commit e1b62b3bf0
10 changed files with 17559 additions and 0 deletions

View File

@ -21,6 +21,10 @@
PKG_NAME="linux"
case "$LINUX" in
AMLm1)
PKG_VERSION="AMLm1-2.6.34-1405682"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
;;
AMLm3)
PKG_VERSION="AMLm3-2.6.34-7fe1265"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"

View File

@ -0,0 +1,22 @@
--- linux-2.6.24-rc2.orig/arch/x86/boot/tools/build.c 2007-10-06 12:26:14.000000000 +0200
+++ linux-2.6.24-rc2/arch/x86/boot/tools/build.c 2007-10-06 12:27:36.000000000 +0200
@@ -29,7 +29,6 @@
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/sysmacros.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
@@ -42,6 +41,11 @@
#define DEFAULT_MAJOR_ROOT 0
#define DEFAULT_MINOR_ROOT 0
+#undef major
+#define major(dev) ((int)(((dev) >> 8) & 0xff))
+#undef minor
+#define minor(dev) ((int)((dev) & 0xff))
+
/* Minimal number of setup sectors */
#define SETUP_SECT_MIN 5
#define SETUP_SECT_MAX 64

View File

@ -0,0 +1,15 @@
Index: linux-2.6.16/scripts/gen_initramfs_list.sh
===================================================================
--- linux-2.6.16.orig/scripts/gen_initramfs_list.sh 2006-03-20 18:41:34.000000000 +0100
+++ linux-2.6.16/scripts/gen_initramfs_list.sh 2006-03-20 18:42:40.000000000 +0100
@@ -56,9 +56,7 @@
parse() {
local location="$1"
- local name="${location/${srcdir}//}"
- # change '//' into '/'
- name="${name//\/\///}"
+ local name="$(echo "$location" | sed -e 's%$srcdir%%' -e 's%//*%/%g')"
local mode="$2"
local uid="$3"
local gid="$4"

View File

@ -0,0 +1,27 @@
diff -Naur linux-AMLm3-2.6.34-7fe1265/init/main.c linux-AMLm3-2.6.34-7fe1265.patch/init/main.c
--- linux-AMLm3-2.6.34-7fe1265/init/main.c 2013-05-20 16:40:52.000000000 +0200
+++ linux-AMLm3-2.6.34-7fe1265.patch/init/main.c 2013-05-24 19:23:24.658367744 +0200
@@ -896,15 +896,14 @@
do_basic_setup();
/* Open the /dev/console on the rootfs, this should never fail */
- if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
- {
- build_console();
- if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
- {
- printk(KERN_WARNING "Warning: unable to open an initial console.\n");
- }
- //printk(KERN_WARNING "Warning: unable to open an initial console.\n");
- }
+ char *console = "/dev_console";
+
+ if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) {
+ sys_mknod(console, S_IFCHR|0600, (TTYAUX_MAJOR<<8)|1);
+ if (sys_open(console, O_RDWR, 0) < 0)
+ printk(KERN_WARNING "Warning: unable to open an initial console.\n");
+ sys_unlink(console);
+ }
(void) sys_dup(0);
(void) sys_dup(0);

View File

@ -0,0 +1,13 @@
Index: linux-2.6.16/scripts/kconfig/confdata.c
===================================================================
--- linux-2.6.16.orig/scripts/kconfig/confdata.c 2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6.16/scripts/kconfig/confdata.c 2006-03-20 18:47:06.000000000 +0100
@@ -340,7 +340,7 @@
int type, l;
const char *str;
time_t now;
- int use_timestamp = 1;
+ int use_timestamp = 0;
char *env;
dirname[0] = 0;

View File

@ -0,0 +1,11 @@
diff -Naur linux-3.2.44/tools/perf/builtin-sched.c linux-3.2.44.patch/tools/perf/builtin-sched.c
--- linux-3.2.44/tools/perf/builtin-sched.c 2013-04-25 21:25:51.000000000 +0200
+++ linux-3.2.44.patch/tools/perf/builtin-sched.c 2013-05-06 03:29:10.327408347 +0200
@@ -14,6 +14,7 @@
#include "util/debug.h"
#include <sys/prctl.h>
+#include <sys/resource.h>
#include <semaphore.h>
#include <pthread.h>

View File

@ -0,0 +1,24 @@
diff -Naur linux-AMLm1-2.6.34-1405682/drivers/amlogic/mali/Makefile.common linux-AMLm1-2.6.34-1405682.patch/drivers/amlogic/mali/Makefile.common
--- linux-AMLm1-2.6.34-1405682/drivers/amlogic/mali/Makefile.common 2013-05-26 01:19:02.000000000 +0200
+++ linux-AMLm1-2.6.34-1405682.patch/drivers/amlogic/mali/Makefile.common 2013-05-26 04:27:11.982074443 +0200
@@ -40,7 +40,7 @@
endif
# Get subversion revision number, fall back to only ${MALI_RELEASE_NAME} if no svn info is available
-SVN_REV := $(shell (cd $(DRIVER_DIR); (svnversion | grep -Eqv "exported|Unversioned directory" && svnversion) || git svn info | grep '^Revision: '| sed -e 's/^Revision: //' ) 2>/dev/null )
+SVN_REV := ${PKG_VERSION}
ifeq ($(SVN_REV),)
SVN_REV := $(MALI_RELEASE_NAME)
else
diff -Naur linux-AMLm1-2.6.34-1405682/drivers/amlogic/ump/Makefile.common linux-AMLm1-2.6.34-1405682.patch/drivers/amlogic/ump/Makefile.common
--- linux-AMLm1-2.6.34-1405682/drivers/amlogic/ump/Makefile.common 2013-05-26 01:18:57.000000000 +0200
+++ linux-AMLm1-2.6.34-1405682.patch/drivers/amlogic/ump/Makefile.common 2013-05-26 04:28:31.050824923 +0200
@@ -14,7 +14,7 @@
$(UMP_FILE_PREFIX)common/ump_kernel_ref_drv.c
# Get subversion revision number, fall back to 0000 if no svn info is available
-SVN_REV:=$(shell ((svnversion | grep -qv exported && echo -n 'Revision: ' && svnversion) || git svn info | sed -e 's/$$$$/M/' | grep '^Revision: ' || echo ${MALI_RELEASE_NAME}) 2>/dev/null | sed -e 's/^Revision: //')
+SVN_REV:=${PKG_VERSION}
EXTRA_CFLAGS += -DSVN_REV=$(SVN_REV)
EXTRA_CFLAGS += -DSVN_REV_STRING=\"$(SVN_REV)\"

View File

@ -0,0 +1,65 @@
diff -Naur linux-AMLm3-2.6.34-7fe1265/include/linux/amports/Kbuild linux-AMLm3-2.6.34-7fe1265.patch/include/linux/amports/Kbuild
--- linux-AMLm3-2.6.34-7fe1265/include/linux/amports/Kbuild 2013-05-20 16:40:53.000000000 +0200
+++ linux-AMLm3-2.6.34-7fe1265.patch/include/linux/amports/Kbuild 1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-unifdef-y += aformat.h
-unifdef-y += vformat.h
-unifdef-y += amstream.h
-unifdef-y += jpegdec.h
diff -Naur linux-AMLm3-2.6.34-7fe1265/include/linux/fs.h linux-AMLm3-2.6.34-7fe1265.patch/include/linux/fs.h
--- linux-AMLm3-2.6.34-7fe1265/include/linux/fs.h 2013-05-20 16:40:54.000000000 +0200
+++ linux-AMLm3-2.6.34-7fe1265.patch/include/linux/fs.h 2013-05-23 02:22:44.230613223 +0200
@@ -45,11 +45,13 @@
int dummy[5]; /* padding for sysctl ABI compatibility */
};
+#ifdef __KERNEL__
struct fat_sectors
{
sector_t start;
sector_t sectors;
};
+#endif
#define NR_FILE 8192 /* this can well be larger on a larger system */
@@ -315,8 +317,11 @@
#define BLKALIGNOFF _IO(0x12,122)
#define BLKPBSZGET _IO(0x12,123)
#define BLKDISCARDZEROES _IO(0x12,124)
+
+#ifdef __KERNEL__
#define BLKGETSECTS _IOW(0x12,125,struct fat_sectors)
#define BLKFREESECTS _IOW(0x12,126,struct fat_sectors)
+#endif
#define BMAP_IOCTL 1 /* obsolete - kept for compatibility */
#define FIBMAP _IO(0x00,1) /* bmap access */
diff -Naur linux-AMLm3-2.6.34-7fe1265/include/linux/Kbuild linux-AMLm3-2.6.34-7fe1265.patch/include/linux/Kbuild
--- linux-AMLm3-2.6.34-7fe1265/include/linux/Kbuild 2013-05-20 16:40:54.000000000 +0200
+++ linux-AMLm3-2.6.34-7fe1265.patch/include/linux/Kbuild 2013-05-23 02:24:25.655308030 +0200
@@ -1,4 +1,3 @@
-header-y += amports/
header-y += byteorder/
header-y += can/
header-y += dvb/
@@ -93,6 +92,10 @@
header-y += if_packet.h
header-y += if_plip.h
header-y += if_ppp.h
+header-y += if_pppol2tp.h
+header-y += if_pppox.h
+header-y += if_pppolac.h
+header-y += if_pppopns.h
header-y += if_slip.h
header-y += if_strip.h
header-y += if_tun.h
@@ -241,8 +244,6 @@
unifdef-y += if_ltalk.h
unifdef-y += if_link.h
unifdef-y += if_phonet.h
-unifdef-y += if_pppol2tp.h
-unifdef-y += if_pppox.h
unifdef-y += if_tr.h
unifdef-y += if_tunnel.h
unifdef-y += if_vlan.h

View File

@ -0,0 +1,43 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
echo "getting sources..."
if [ ! -d linux-AMLm1-2.6.34.git ]; then
git clone git://github.com/Pivosgroup/buildroot-linux-kernel.git linux-AMLm1-2.6.34.git
fi
cd linux-AMLm1-2.6.34.git
git pull
GIT_REV=`git log -n1 --format=%h`
cd ..
echo "copying sources..."
rm -rf linux-AMLm1-2.6.34-$GIT_REV
cp -R linux-AMLm1-2.6.34.git linux-AMLm1-2.6.34-$GIT_REV
echo "cleaning sources..."
rm -rf linux-AMLm1-2.6.34-$GIT_REV/.git
echo "packing sources..."
tar cvJf linux-AMLm1-2.6.34-$GIT_REV.tar.xz linux-AMLm1-2.6.34-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf linux-AMLm1-2.6.34-$GIT_REV