summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch')
-rw-r--r--meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch15
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch b/meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch
index 47a8dac10e..1a4a4e3755 100644
--- a/meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch
+++ b/meta/recipes-devtools/syslinux/syslinux/0001-linux-syslinux-support-ext2-3-4-device.patch
@@ -1,7 +1,7 @@
1From 60f3833ab2b5899771b4eab654e88f9888b99501 Mon Sep 17 00:00:00 2001 1From a469ce05055c44fdca1ca094ff3a735cc059480d Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com> 2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Wed, 31 Dec 2014 16:01:55 +0800 3Date: Wed, 31 Dec 2014 16:01:55 +0800
4Subject: [PATCH 1/9] linux/syslinux: support ext2/3/4 device 4Subject: [PATCH] linux/syslinux: support ext2/3/4 device
5 5
6* Support ext2/3/4 deivce. 6* Support ext2/3/4 deivce.
7* The open_ext2_fs() checks whether it is an ext2/3/4 device, 7* The open_ext2_fs() checks whether it is an ext2/3/4 device,
@@ -19,10 +19,10 @@ Tested-by: Du Dolpher <dolpher.du@intel.com>
19 1 file changed, 36 insertions(+) 19 1 file changed, 36 insertions(+)
20 20
21diff --git a/linux/syslinux.c b/linux/syslinux.c 21diff --git a/linux/syslinux.c b/linux/syslinux.c
22index 912de71..36fc202 100755 22index 46d5624..1cc276b 100755
23--- a/linux/syslinux.c 23--- a/linux/syslinux.c
24+++ b/linux/syslinux.c 24+++ b/linux/syslinux.c
25@@ -256,6 +256,23 @@ int do_open_file(char *name) 25@@ -257,6 +257,23 @@ int do_open_file(char *name)
26 return fd; 26 return fd;
27 } 27 }
28 28
@@ -46,7 +46,7 @@ index 912de71..36fc202 100755
46 int main(int argc, char *argv[]) 46 int main(int argc, char *argv[])
47 { 47 {
48 static unsigned char sectbuf[SECTOR_SIZE]; 48 static unsigned char sectbuf[SECTOR_SIZE];
49@@ -313,6 +330,24 @@ int main(int argc, char *argv[]) 49@@ -314,6 +331,24 @@ int main(int argc, char *argv[])
50 die("can't combine an offset with a block device"); 50 die("can't combine an offset with a block device");
51 } 51 }
52 52
@@ -71,7 +71,7 @@ index 912de71..36fc202 100755
71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
72 fsync(dev_fd); 72 fsync(dev_fd);
73 73
74@@ -322,6 +357,7 @@ int main(int argc, char *argv[]) 74@@ -323,6 +358,7 @@ int main(int argc, char *argv[])
75 */ 75 */
76 if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) { 76 if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) {
77 fprintf(stderr, "%s: %s\n", opt.device, errmsg); 77 fprintf(stderr, "%s: %s\n", opt.device, errmsg);
@@ -79,6 +79,3 @@ index 912de71..36fc202 100755
79 exit(1); 79 exit(1);
80 } 80 }
81 81
82--
831.9.1
84