Adding initial helper for backported kernel
This commit is contained in:
parent
161144b7f0
commit
861dcf1f18
4 changed files with 2664 additions and 0 deletions
7
helpers/DATA/linux-lts-quantal/check.sh
Normal file
7
helpers/DATA/linux-lts-quantal/check.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
files=`find -type f`
|
||||||
|
while read -r line
|
||||||
|
do
|
||||||
|
./deblob-check $line
|
||||||
|
done <<< "$files"
|
||||||
2599
helpers/DATA/linux-lts-quantal/deblob-3.5
Normal file
2599
helpers/DATA/linux-lts-quantal/deblob-3.5
Normal file
File diff suppressed because it is too large
Load diff
31
helpers/DATA/linux-lts-quantal/megaraid.patch
Normal file
31
helpers/DATA/linux-lts-quantal/megaraid.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
diff -ru linux-2.6.35.orig/drivers/scsi/megaraid.c linux-2.6.35/drivers/scsi/megaraid.c
|
||||||
|
--- linux-2.6.35.orig/drivers/scsi/megaraid.c 2010-08-01 22:11:14.000000000 +0000
|
||||||
|
+++ linux-2.6.35/drivers/scsi/megaraid.c 2011-05-02 20:30:39.000000000 +0000
|
||||||
|
@@ -4995,9 +4995,14 @@
|
||||||
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||||
|
{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||||
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||||
|
+ {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||||
|
+ HP_SUBSYS_VID, HP_NETRAID1M_SUBSYS_DID, 0, 0, 0},
|
||||||
|
+ {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID3,
|
||||||
|
+ HP_SUBSYS_VID, HP_NETRAID2M_SUBSYS_DID, 0, 0, 0},
|
||||||
|
{0,}
|
||||||
|
};
|
||||||
|
MODULE_DEVICE_TABLE(pci, megaraid_pci_tbl);
|
||||||
|
+#define HBA_SIGNATURE 0x3344
|
||||||
|
|
||||||
|
static struct pci_driver megaraid_pci_driver = {
|
||||||
|
.name = "megaraid_legacy",
|
||||||
|
diff -ru linux-2.6.35.orig/drivers/scsi/megaraid.h linux-2.6.35/drivers/scsi/megaraid.h
|
||||||
|
--- linux-2.6.35.orig/drivers/scsi/megaraid.h 2010-08-01 22:11:14.000000000 +0000
|
||||||
|
+++ linux-2.6.35/drivers/scsi/megaraid.h 2011-05-02 20:31:01.000000000 +0000
|
||||||
|
@@ -84,6 +84,9 @@
|
||||||
|
#define LSI_SUBSYS_VID 0x1000
|
||||||
|
#define INTEL_SUBSYS_VID 0x8086
|
||||||
|
|
||||||
|
+#define HP_NETRAID1M_SUBSYS_DID 0x60E7
|
||||||
|
+#define HP_NETRAID2M_SUBSYS_DID 0x60E8
|
||||||
|
+
|
||||||
|
#define HBA_SIGNATURE 0x3344
|
||||||
|
#define HBA_SIGNATURE_471 0xCCCC
|
||||||
|
#define HBA_SIGNATURE_64BIT 0x0299
|
||||||
27
helpers/make-linux-lts-quantal
Normal file
27
helpers/make-linux-lts-quantal
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
VERSION=1
|
||||||
|
|
||||||
|
. ./config
|
||||||
|
|
||||||
|
patch -p1 < $DATA/megaraid.patch
|
||||||
|
|
||||||
|
sh $DATA/deblob-3.5
|
||||||
|
|
||||||
|
# Compile with less modules and avoid abi check
|
||||||
|
echo 'skipmodule = true' >> debian.master/rules.d/0-common-vars.mk
|
||||||
|
echo 'skipabi = true' >> debian.master/rules.d/0-common-vars.mk
|
||||||
|
echo 'skipmodule = true' >> debian/rules.d/0-common-vars.mk
|
||||||
|
echo 'skipabi = true' >> debian/rules.d/0-common-vars.mk
|
||||||
|
|
||||||
|
line=$(grep -n ')-Ubuntu' debian/rules.d/0-common-vars.mk|cut -d: -f1)
|
||||||
|
sed $(expr $line - 1 ),$(expr $line + 1 )d debian/rules.d/0-common-vars.mk -i
|
||||||
|
mv debian.master/config/config.common.ubuntu debian.master/config/config.common.trisquel
|
||||||
|
sed s/family=ubuntu/family=trisquel/ -i debian/rules.d/0-common-vars.mk
|
||||||
|
sed 's/ with Ubuntu patches//; s/Linux/Linux-libre/g' debian/control debian/control.stub -i
|
||||||
|
|
||||||
|
changelog "Removed non-free bits"
|
||||||
|
|
||||||
|
cp debian/changelog debian.master/changelog
|
||||||
|
|
||||||
|
PARALLEL=true compile
|
||||||
Loading…
Add table
Add a link
Reference in a new issue