diff options
| author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-12-23 12:22:15 +0000 |
|---|---|---|
| committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-12-23 12:22:15 +0000 |
| commit | 17a572144f53d6f1abf1fee46d8e41c38e561b01 (patch) | |
| tree | 1cd5dcd8bb3853c623e8e1e70366f0c66cfecaa2 /packages/apex/files/find-apex-partition.patch | |
| parent | 4983c4ad1a5ca5d9d1089197b57ce58f7078ffef (diff) | |
| parent | 3c39da0a0121f07f33d1acbfd6e93184f26d987e (diff) | |
merge of '192c54c4e5509fc0ef517826f454b807c6af7658'
and 'ec60010395d1ec561cf9377a93140bd2f2f31df4'
Diffstat (limited to 'packages/apex/files/find-apex-partition.patch')
| -rw-r--r-- | packages/apex/files/find-apex-partition.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/apex/files/find-apex-partition.patch b/packages/apex/files/find-apex-partition.patch new file mode 100644 index 0000000000..3aa62a186a --- /dev/null +++ b/packages/apex/files/find-apex-partition.patch @@ -0,0 +1,34 @@ +*** usr/link.cc.orig Sun Dec 23 20:31:49 2007 +--- usr/link.cc Sun Dec 23 20:32:46 2007 +*************** +*** 278,285 **** + fixed-up env_link structure, scanning for the environment variables + and their defaults, and opening the flash instance of the + environment. It first looks for the "Loader" partition. If there +! is none, it uses the first partition with the assumption that APEX +! may be the primary boot loader. + + */ + +--- 278,286 ---- + fixed-up env_link structure, scanning for the environment variables + and their defaults, and opening the flash instance of the + environment. It first looks for the "Loader" partition. If there +! is none, it then looks for the "apex" partition. If there is none, +! it uses the first partition with the assumption that APEX may be +! the primary boot loader. + + */ + +*************** +*** 289,294 **** +--- 290,298 ---- + MTDPartition mtd = MTDPartition::find ("Loader"); + + if (!mtd.is ()) ++ mtd = MTDPartition::find ("apex"); ++ ++ if (!mtd.is ()) + mtd = MTDPartition::first (); + + bool fFound = mtd.is () && open_apex (mtd); |
