apply mtdpslit patch only for openwrt kernel
it doesn't apply to mainline because there's no mtdsplit in mainline
This commit is contained in:
parent
d0c2b3b274
commit
abd01a7809
3 changed files with 6 additions and 1 deletions
|
@ -54,7 +54,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./cmdline-cookie.patch
|
./cmdline-cookie.patch
|
||||||
./make-mtdsplit-jffs2-endian-agnostic.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# this is here to work around what I think is a bug in nixpkgs
|
# this is here to work around what I think is a bug in nixpkgs
|
||||||
|
|
|
@ -26,6 +26,7 @@ let
|
||||||
patch --batch -p1 --reverse < ${src}/target/linux/generic/pending-5.15/330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
|
patch --batch -p1 --reverse < ${src}/target/linux/generic/pending-5.15/330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
|
||||||
patches ${src}/target/linux/generic/hack-5.15/*.patch
|
patches ${src}/target/linux/generic/hack-5.15/*.patch
|
||||||
patches ${src}/target/linux/${family}/patches-5.15/*.patch
|
patches ${src}/target/linux/${family}/patches-5.15/*.patch
|
||||||
|
patches ${./make-mtdsplit-jffs2-endian-agnostic.patch}
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
From 12345790 Tue Sep 26 18:30:44 2023
|
||||||
|
From: Daniel Barlow <dan@telent.net>
|
||||||
|
Date: Tue Sep 26 18:29:47 BST 2023
|
||||||
|
Subject: mtdsplit: find magic of little-endian JFFS2
|
||||||
|
|
||||||
On a little-endian CPU, the little-endian JFFS2 magic
|
On a little-endian CPU, the little-endian JFFS2 magic
|
||||||
appears to be word-swapped.
|
appears to be word-swapped.
|
||||||
|
|
Loading…
Reference in a new issue