summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* documentation/poky-ref-manual/ref-bitbake.xml: 1.1.2 variables and updatesScott Rifenbark2012-06-291-12/+12
| | | | | | | | | | First pass at implementing the poky.ent variables. Made some obvious typo corrections as well. (From yocto-docs rev: 4773e7703d88456b272c13dc197c94bd7b09d59e) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation/poky-ref-manual/poky-ref-manual.xml: 1.1.2 variables and updatesScott Rifenbark2012-06-291-4/+5
| | | | | | | | | First pass at implementing the poky.ent variables. (From yocto-docs rev: 06eb67f5a22c5491a390c84699a81c7a70e8fccf) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation/poky-ref-manual/introduction.xml: 1.1.2 variables and updatesScott Rifenbark2012-06-291-16/+13
| | | | | | | | | | First pass at implementing the poky.ent variables. Also made any obvious typo fixes. (From yocto-docs rev: 21045c9776183bfe78f5aa3f9ca6b58900b5f30c) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation/poky-ref-manual/faq.xml: 1.1.2 variables and updatesScott Rifenbark2012-06-291-15/+16
| | | | | | | | | | First pass of implementing the poky.ent variables. Also, applied obvious type fixes. (From yocto-docs rev: 5f5d3735bea5db12847dc9b9fa01aee0f5dc2b41) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation/poky-ref-manual/development.xml: 1.1.2 variables and updatesScott Rifenbark2012-06-291-10/+11
| | | | | | | | | | First pass of implementing the poky.ent variables. Also, folded in obvious typo fixes. (From yocto-docs rev: 198bb34e21ba49fe4f858b9d00e60a9b717e06b9) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation/poky.ent: Added file for variablizationScott Rifenbark2012-06-291-0/+48
| | | | | | | (From yocto-docs rev: d242891c14741600a1b85be9d22e2d813de64514) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation/yocto-project-qs/yocto-project-qs.xml: 1.1.2 updatesScott Rifenbark2012-06-291-85/+82
| | | | | | | | | | Initial pass to variablize this file and fold in various minor corrections discovered since 1.1.1 released. (From yocto-docs rev: 163c58f7f19d769adfacc963705c2063fe47c606) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* documentation: Placeholder manual history entries addedScott Rifenbark2012-06-295-0/+25
| | | | | | | | | | Five entries added for the 1.1.2 release in the manual revision history table. No firm date but the placeholder is now there. (From yocto-docs rev: 071044ec6f9c69574c5c6db263e3293e697147cd) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky.conf: Flipping for edison point releaseElizabeth Flanagan2012-06-211-2/+2
| | | | | | | Prior to final build, we need to flip DISTRO_* and SDK_VERSION to new values. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
* apt 0.7.14: do_compile failed with gcc 4.7Robert Yang2012-06-214-2/+66
| | | | | | | | | | | | | | | | | | | | | apt do_compile failed with gcc 4.7: deb/deblistparser.cc: In member function 'virtual short unsigned int debListParser::VersionHash()': deb/deblistparser.cc:212:13: error: redeclaration of 'char* I' deb/deblistparser.cc:202:22: error: 'const char** I' previously declared here Backport the patch from the upstream would fix the problem, both target and native apt need it. [YOCTO #2488] (From OE-Core rev: 80c1ab1248ff38ba97cf5780fc05ff1321e14e10) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix parallel make raceRichard Purdie2012-06-214-2/+26
| | | | | | | | | | I was just going to turn off parallel make but ended up fixing this properly. (From OE-Core rev: 440a6d5aacf7807536feee5d09484712ba34ca80) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apt: Fix locale header and hardcoded libname issuesRichard Purdie2012-06-216-10/+104
| | | | | | | | | | | | | | | apt wasn't building on modern libc/compiler combinations due to missing header includes. The libcpp version was also being hardcoded, this patch generates it dynamically to work on different host systems which no longer have this. (From OE-Core rev: 4bcffbcd05c86903fbdf47bb46bf1a52b888dfeb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/qemuimage-testlib: fix typosYi Zhao2012-06-141-2/+2
| | | | | | | | (From OE-Core rev: 30c6ec403e1696b5fd94b92328ef9edec535a57a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ghostscript-native: Ensure the sys/time/h fix is applied for native buildsRichard Purdie2012-06-141-0/+1
| | | | | | | | | | | | On my system, the sys/time.h header is in a subdir off /usr/include which causes a build failure. Apply the target CFLAGS fix to native builds as well to address this. (From OE-Core rev: 8968db5fcc99c6580de91f9d6c55478c735ca375) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/persist_data: Reconnect when DB is lockedLianhao Lu2012-05-311-5/+7
| | | | | | | | | | | | [YOCTO #1761] Reconnect to the backend Sqlite DB in 'database is locked' exception so the timeout can be leveraged in each time retry. (Bitbake rev: b310382764367b573c84f33d847c6eb821266f9e) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com>
* runqueue.py: Add inter setscene task dependency handlingRichard Purdie2012-05-311-0/+22
| | | | | | | | | | | | | | | This is being added to resolve setscene race issues where we do have particular dependencies required between setscene tasks. This allows specific dependencies to be specified. This allows us to fix the races in sstate with the useradd class in OE-Core. Any tasks being depended upon have their reverse dependencies cleared to ensure we don't have circular references. (Bitbake rev: e1b157d26374a70e6274edcb4c0b9f3bc48f765c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com>
* runqueue.py: Fix missing setscene dependenciesRichard Purdie2012-05-311-3/+5
| | | | | | | | | | | When constructing the setscene inter-dependencies, we need to account for all task, not just the last one found. This patch corrects this oversight and ensures all dependencies are added, not just the first one found. (Bitbake rev: b9b5b5129d066e1ff7d3effda116afc3c6657beb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com>
* populate_sdk_ipk.bbclass: Ensure the correct environment is setup for ↵Richard Purdie2012-05-311-0/+5
| | | | | | | | | | | | | | | | | | | postinstalls Without this, various postinstalls get run with incorrect environments leading to various failures when building the toolchains. This adds some duplication and some variables we'd be better off removing. It does unbreak the SDK ipk code for now though. This needs revisiting. (From OE-Core rev: c5e6a533eab2f5af4a52d22f8efe5b49b77cd26c) (From OE-Core rev: ab2a4591c4c3926a960f18fa7e848f5d41255e14) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* common-licenses: Adding/updating to currentBeth 'pidge' Flanagan2012-05-3118-41/+1214
| | | | | | | | | | | | | [YOCTO #2230] 1.1+ had some incorrect license text. This corrects that text and adds licenses that didn't exist in 1.1+. (From OE-Core rev: 43bd89eb195f56afef12e52ed58a2f0cad9c73db) Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* icon-naming-utils-native: add SRC_URI checksumsJoshua Lock2012-05-311-0/+2
| | | | | | | | | | | | | | [YOCTO #1866] reported errors with fetching icon-naming-utils. This turned out to be an issue with upstream which was impaired by the recipe not containing checksums. Without a checksum failure we were trying to decompress the error page we received from upstream. (From OE-Core rev: 0af0591e25b35beb9dd10f9d5de8bc2e63f7731e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* zlib: install pc fileJoshua Lock2012-05-313-3/+11
| | | | | | | | | | | | | Joshua Immanuel reported, and provided a patch to fix, that our custom autotooling for zlib does not install the pc file. Fixes [YOCTO #1983] Patch-from: Joshua Immanuel <josh@hipro.co.in> (From OE-Core rev: 37fbe2e1a706af634f400213b9fb4c6f0670c15e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm.bbclass: ensure base-passwd and shadow get installed firstScott Garman2012-05-311-1/+8
| | | | | | | | | | | | | | | | | | | When generating images, we need to make sure that base-passwd and shadow get installed before other packages, which might need to create custom user accounts. Thanks to Richard Purdie for the initial version of this fix. This fixes [YOCTO #2127] (From OE-Core rev: 3d2d3cb379608301b17ce57787d324c2f06bf4f9) (From OE-Core rev: f35902844c5c1de06c9a1b2111abf0d8b5687a9b) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Remove possibility of file corruption and make package ↵Richard Purdie2012-05-311-2/+4
| | | | | | | | | | | | | | | | writing atomic There is currently a race window when creating sstate packages since we don't atomically write the files to SSTATE_DIR. This change ensures we do so by writing to a temporary file and then doing an atomic move. (From OE-Core rev: 52bf113e786a57123a9da98f64442afbc2f1471e) (From OE-Core rev: d527f68bdf167b4a3dcc035968da59677abb70bb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Add support for sstate preinst functionsRichard Purdie2012-05-311-0/+5
| | | | | | | | | | | (From OE-Core rev: f2b0a71b3100a0d2ceb80300d7f3823a31eb907a) (From OE-Core rev: 8ca7387ff2dd788221a16021ec98b4aee946a187) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Add SSTATE_SCAN_FILESRichard Purdie2012-05-311-1/+2
| | | | | | | | | | | | | | | | | | | | We process all files in the native/cross cases for finding and fixing relocation issues. In the target case we've only processed .la and binconfig files. Since there are other files which are in need of this processing, this change allows recipes to specify files that may be outside the normal set. This means hardcoded paths that need to be fixmepathed to work correctly are handled and addresses some sstate relocation bugs that have been seen. Based on a patch from Saul Wold <sgw@linux.intel.com> (From OE-Core rev: 6ffdcd9120b572fa41659029c3bda7bf00ebcb77) (From OE-Core rev: c6148b8dde3e0fddc4135b48fd6d01e2de662919) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* syslinux: Avoid using linux.ext2_fs.h if possibleDarren Hart2012-05-312-2/+978
| | | | | | | | | | | | | | | | | Fixes [YOCTO 2236] With recent Linux kernel headers, such as 3.3 in Fedora 16, the linux/ext2_fs.h header has been removed. This causes compile failures for syslinux-native. Backport a fix to address this from syslinux-4.06-pre3. (From OE-Core rev: d61c5fc67780b552fcf3d78ebcf9bd3888af4e0a) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Ross Burton <ross.burton@intel.com> CC: Joshua Lock <josh@linux.intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: retry useradd/groupadd commands to avoid lock race issuesScott Garman2012-05-311-2/+34
| | | | | | | | | | | | | | | | | | | | | | | A race condition can occur when adding users and groups to the passwd and group files, causing errors like the following: ERROR: Function 'useradd_sysroot' failed Tried to access "/etc/group" but this was locked. This fix will cause the useradd code to retry the useradd and groupadd commands up to 10 times (with a 1s sleep in between attempts) before failing. This fixes [YOCTO #1794] (From OE-Core rev: 68c589f1b5ee36f0aff151b728447ffdae14622c) (From OE-Core rev: fb9f5feaa49b78d03d25d96254a5ce04079ce594) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* shadow-sysroot: Fix for multilibZhai Edwin2012-05-311-1/+1
| | | | | | | | | | | | | | | | | Fix following error in multilib build: "ERROR: Task do_package_setscene depends upon nonexistant task poky/meta/recipes-extended/shadow/shadow-sysroot_4.1.4.3.bb:do_populate_sysroot_setscene" >From richard.purdie@linuxfoundation.org (From OE-Core rev: 5de2c22fb42c12783abc090a81f10db9eb39732f) (From OE-Core rev: 8a8b1a49e3c7f96d76f6457a1f9a14e1eb4d5302) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: override USERADDSETSCENEDEPS to empty when building cross ↵Otavio Salvador2012-05-311-0/+1
| | | | | | | | | | | | | packages (From OE-Core rev: 5650eb44ea28c87f2f87ea3c5a557b9f08d58775) (From OE-Core rev: fa0f0052b49b7809b9b55df6049a0dfedbc94560) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: skip processing on virtclass-cross extended packagesOtavio Salvador2012-05-311-0/+3
| | | | | | | | | | | (From OE-Core rev: 4308acbbd43e6b8b37123d95df6675233007dae4) (From OE-Core rev: 4a338c552d989d37a26eb6cc0c1da95a6928af9f) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: Fix missing quoteRichard Purdie2012-05-311-1/+1
| | | | | | | | | | (From OE-Core rev: d7b13cd42ab8d5f44f97e119b73ec2e363677d26) (From OE-Core rev: 6e21a379542ef5428d6005782f1ad4a8c764eb47) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd: Ensure dependencies are only added for target recipes, not native ↵Richard Purdie2012-05-311-1/+4
| | | | | | | | | | | | or nativesdk (From OE-Core rev: 63d006b2d3fc2223c74f81b91f70f5c841108c80) (From OE-Core rev: d6c43fdc815347a0adfee590da56f8b332540da6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: Add explict setscene dependencies to ensure correct ↵Richard Purdie2012-05-311-0/+2
| | | | | | | | | | | | ordering of setscene tasks (From OE-Core rev: ffc7bbcf0011de3f1f6e8d95f1de0b8f7164fa51) (From OE-Core rev: a9aae582a6068a946cf177ce33e54cb0aee6c6e5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: Ensure pseudo can load in the pseudo unloaded caseRichard Purdie2012-05-311-5/+11
| | | | | | | | | | | | | | | | In the do_populate_sysroot_setscene case, pseudo has been unloaded and we need to reload it. This code change ensures all the pseudo options are specified so pseudo loads correctly. It also improves some of the comments so all the different contexts are listed. (From OE-Core rev: 76345cd61c9523ce6755ef8e923dec37800b7a98) (From OE-Core rev: 6f25ede827ee469464ca2db72bf05c75fa7c11f3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd.bbclass: Execute user addition code before do_package_setscene, not ↵Richard Purdie2012-05-311-2/+2
| | | | | | | | | | | | | | | | after do_populate_sysroot_setscene The user addition needs to happen before the do_package files are extracted by do_package_setscene since those are the ones we need to preserve the file ownership information for. This patch ensures this happens. (From OE-Core rev: 34282c1b996ef008384af456735692d66ddabc13) (From OE-Core rev: b571766ffc7ec5aa78035557c25a0e8b244c17c8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd: Ensure -native recipes don't depend on target recipesRichard Purdie2012-05-311-0/+3
| | | | | | | | | | | | | | | | Without this change, dbus-native can end up depending upon base-passwd for example. This change mirrors the existing nativesdk code. Based on a patch from Henning Heinold <heinold@inf.fu-berlin.de> but with some additions from me. (From OE-Core rev: eba81d1c606ec29ffb793c1cb3cfed9562d552bc) (From OE-Core rev: b325378930655beeec03bbc5ce6ccf2b29f408fd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: Add SRC_URI Checksums for sanitySaul Wold2012-05-061-0/+3
| | | | | Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image.bbclass: add check for live and convert to ext3Saul Wold2012-05-061-0/+2
| | | | | | | | | The live image type depends on ext3 which has it's own dependencies, while the live type has none, this is a backport change to fix [YOCTO #2246] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dosfstools: Add patch to disable fat32 autoselection and behave as 2.10Richard Purdie2012-04-142-2/+30
| | | | | | | | | | | It appears msdos image population and fat32 images are incompatible. This reverts to the 2.10 behaviour of defaulting to fat16 instead of using fat32 for large images, allowing image generation to work correctly. This is a workaround and a proper fix is really needed. (From OE-Core rev: c2de8d41236cf1293db9e6c69d69e8d14f55ffd1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dosfstools: update native to 2.11Otavio Salvador2012-04-147-261/+69
| | | | | | | | | | This unify recipes for target and native builds and also drops the the already merged patches. (From OE-Core rev: 3a401ddce55e185c8ccfdc43c1440fd77daff9ae) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dosfstools: add Upstream-Status to patchesScott Garman2012-04-147-0/+44
| | | | | | | (From OE-Core rev: 735a3e5d3399e29e4d6fa82dabbdd1687eaa29e9) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dosfstools: Add SRC_URI ChecksumSaul Wold2012-04-141-1/+4
| | | | | | | (From OE-Core rev: a19bfc10e60ddc7e9317654ca7565d39acbc3987) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bootimg: Do not force FAT32 on all images, it violates the FAT specificationDarren Hart2012-04-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes [YOCTO #1940] do_bootimg was performing the FAT overhead calculations assuming FAT32 and then forcing the use of FAT32 with "-F 32" to mkdosfs. The FAT specification is clear on cluster count being the determining factor for FAT size (even if the fs string is set to FAT32, go figure). Syslinux follows this spec, and rightly so, resulting in a failure on core-image-minimal: syslinux: zero FAT sectors (FAT12/16) Drop the "-F 32" from mkdosfs to allow it to select the appropriate FAT size based on cluster count. Leave the FAT overhead calculation in FAT32. This will result in a little extra padding for really small images, but not enough extra to justify recalculating for FAT12 and FAT16. Tested with a core-image-minimal build for atom-pc. do_bootimg completed successfully, and the resulting image was FAT16. (From OE-Core rev: 634137704dd1a205e377a1131ef708f1c981f6b2) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Backported to edison by Darren Hart. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bootimg: Fix a math thinko in the block count calculationDarren Hart2012-04-141-1/+2
| | | | | | | | | | | | | | | | | | | | Fixes [YOCTO #1852] ... again. The conversion from sectors to blocks was multiplying by 2 instead of dividing by 2. Blocks are 1024 bytes, sectors are 512 bytes. The result was images being much larger than intended. Reported-by: Tom Zanussi <tom.zanussi@intel.com> (From OE-Core rev: b35384fa3ca96b31c63d764322215abced2066e4) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Backported to edison by Darren Hart. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bootimg: Account for FAT filesystem overhead in image sizeDarren Hart2012-04-141-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes [YOCTO #1852] The bootimg class wasn't accounting for non-trivial amount of space required by the directory entries and FATs for the FAT filesystem. This patch attempts to make an accurate prediction of FAT overhead and adjusts the image size accordingly. It assumes no more than 16 directory entries per directory (which fit in a single sector). It also assumes 8.3 filenames. With the ceiling functions rounding up to full sectors and tracks, these assumptions seem reasonable. In order to ensure the calculations are accurate, this patch forces the FAT size to 32, rather than allowing mkdosfs to automatically select 12, 16, or 32 depending on the image being built. Tested by setting BOOTIMG_EXTRA_SPACE=0 and building core-image-minimal and core-image-sato for fri2-noemgd from meta-intel. (From OE-Core rev: 68aa18609c10a3ae2f738930c933fa2a95ce8959) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Backported to edison by Darren Hart. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bootimg: Use mcopy to construct the hddimgDarren Hart2012-04-141-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes [YOCTO 2138] The initial directory support (-d) added to mkdosfs has proven to be incomplete and non-compliant with FAT. Rather than continue to maintain this feature and work around the various issues, we can use mcopy to construct the image. bootimg.bbclass already depends on mtools-native (although it may not have needed to previously). No new dependencies are introduced. The image created passes dosfsck cleanly. Remove the call to dosfsck. mcopy reported an error with the image we were creating: Total number of sectors (107574) not a multiple of sectors per track (32)! Add some logic to ensure the total sector count is an integral number of sectors per track, including forcing the logical sector size to 512 in the mkdosfs command. The du -bks arguments are contradictory, -b is equivalent to "--apparent-size --block-size=1" and -k is --block-size=1K. If reordered, -kbs will report the disk usage in bytes insteadk of 1k blocks. Eliminate the ambiguity by using: du --apparent-size -ks (From OE-Core rev: 92d2ea1a306354c6565a1b05b51b5719e481840f) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A. Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Backported to poky edison by Darren Hart. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky.conf: Bumping SKD_VERSIONedison-6.0.1.releaseedison-6.0.1.finalElizabeth Flanagan2012-03-141-1/+1
| | | | | | SDK_VERSION needs a bump for 1.1.1 release Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
* documentation: Updated copyright dates and release dates.Scott Rifenbark2012-03-146-11/+11
| | | | | | | | | All six manuals updated. (From yocto-docs rev: 753e3eb80b1fa6148e12f9eb93d23f4613b6be05) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* distro.conf: Bump for edison 1.1.1 release buildedison-6.0.1Beth Flanagan2012-03-051-2/+2
| | | | | | | In preparation for edison 1.1.1, we need to bump DISTRO and DISTRO_VERSION Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* gnu-config: Only apply path transformations in the non-native/non-nativesdk caseRichard Purdie2012-03-041-1/+1
| | | | | | | | | | | | | The BUILD_ARCH != TARGET_ARCH check isn't a safe one to detect native builds and doesn't cover the nativesdk case. This converts the recipe to use PN instead which is more accurate and ensures the correct entries making it into the correct packages. (From OE-Core rev: 4a601314604e8428d9dace95c32a71a57eacaaf5) (From OE-Core rev: 4066c7a3940df2740ad40b21e3ad517a9af20690) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>