mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
linux: add linux-AMLm3-2.6.34
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fc3524a345
commit
b48ec5d82a
@ -21,6 +21,10 @@
|
||||
PKG_NAME="linux"
|
||||
|
||||
case "$LINUX" in
|
||||
AMLm3)
|
||||
PKG_VERSION="AMLm3-2.6.34-7fe1265"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
;;
|
||||
ti-omap4)
|
||||
PKG_VERSION="2.6.38-ti-omap4"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
|
@ -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
|
@ -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"
|
@ -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);
|
@ -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;
|
@ -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>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,12 @@
|
||||
diff -Naur linux-AMLm3-2.6.34-7fe1265/drivers/amlogic/ump/Makefile.common linux-AMLm3-2.6.34-7fe1265.patch/drivers/amlogic/ump/Makefile.common
|
||||
--- linux-AMLm3-2.6.34-7fe1265/drivers/amlogic/ump/Makefile.common 2013-05-20 16:41:01.000000000 +0200
|
||||
+++ linux-AMLm3-2.6.34-7fe1265.patch/drivers/amlogic/ump/Makefile.common 2013-05-20 17:56:59.152997553 +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)\"
|
@ -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
|
43
tools/mkpkg/mkpkg_linux-AMLm3-2.6.34
Executable file
43
tools/mkpkg/mkpkg_linux-AMLm3-2.6.34
Executable 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-AMLm3-2.6.34.git ]; then
|
||||
git clone git://github.com/Pivosgroup/buildroot-linux-kernel-m3.git linux-AMLm3-2.6.34.git
|
||||
fi
|
||||
|
||||
cd linux-AMLm3-2.6.34.git
|
||||
git pull
|
||||
GIT_REV=`git log -n1 --format=%h`
|
||||
cd ..
|
||||
|
||||
echo "copying sources..."
|
||||
rm -rf linux-AMLm3-2.6.34-$GIT_REV
|
||||
cp -R linux-AMLm3-2.6.34.git linux-AMLm3-2.6.34-$GIT_REV
|
||||
|
||||
echo "cleaning sources..."
|
||||
rm -rf linux-AMLm3-2.6.34-$GIT_REV/.git
|
||||
|
||||
echo "packing sources..."
|
||||
tar cvJf linux-AMLm3-2.6.34-$GIT_REV.tar.xz linux-AMLm3-2.6.34-$GIT_REV
|
||||
|
||||
echo "remove temporary sourcedir..."
|
||||
rm -rf linux-AMLm3-2.6.34-$GIT_REV
|
Loading…
x
Reference in New Issue
Block a user