aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-07-14selftest: fixed 5 wic test casesed/wic/wipEd Bartosh
Added core-image-minimal -> syslinux dependency to ensure syslinux artifacts are available from core-image-minimal build. This should fix test_iso_image, test_bootloader_config and test_default_output_dir test cases. Used --native-sysroot in test_image_vars_dir_long and test_image_vars_dir_short test cases to point out to wic-tools native sysrtoot. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14wic: isoimage-isohybrid: use grub-efi from deploy dirEd Bartosh
isoimage-isohybrid plugin tries to build grub-efi in its working directory if it can't find efi binary. Wic should avoid doing anything in working directories of other recipes. It should use artifacts from the image deployment directory instead. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14image_types_wic: set default WKS_FILE_DEPENDSEd Bartosh
The default set of dependencies used via wic-tools is not used anymore as wic images don't depend on wic-tools. Set of packages required to produce wic image depends on the content of the .wks file, so WKS_FILE_DEPENDS variable should be used to provide correct list of dependencies when WKS_FILE variable is set. As WKS_FILE_DEPENDS is not used in many existing recipes yet we need to provide default value for it to ensure that removal of wic-tool dependency doesn't cause image build failures. Initialized WKS_FILE_DEPENDS with the set of dependencies previously brought by wic-tool. This is done to provide compatibility and to avoid breakages of existing image recipes that rely on current set of dependencies. Note: This is a temporary solution for transition period. After some time the list will be either reduced or removed. Recommended solution is to use WKS_FILE_DEPENDS in image recipes together with WKS_FILE to specify dependencies. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14wic-tools: don't create wic-tools.envEd Bartosh
wic-tools.env was uses only when wic is run from bitbake. As wic doesn't use wic-tools anymore in this mode there is no need for this file. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14wic: isoimage-isohybrid: check result of glob()Ed Bartosh
isoimage-isohybrid plugin uses result of glob call to get path to initrd image. When glob returns empty list the plugin crashes with IndexError. Checking if result of glob call is not empty should fix the breakage. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14wic: build wic-tools only if wic is run manuallyEd Bartosh
When wic can't find native sysroot it tries to build wic-tools However, it's not possible when wic is run from bitbake. Moreover, it's not even feasible anymore as wic-tools should be used only when wic is run manually. Checked if wic is run manually before building wic-tools. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14wic: isoimage: do not remove temp directoryEd Bartosh
Removed isodir subrdirectory instead of removing temporary working directory as working directory can contain copy of rootfs partition and shouldn't be removed by any plugin. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-14wic: get rid of using wic-toolsEd Bartosh
At the moment, when building images with IMAGE_FSTYPES=wic one ends up depending on wic-tools and thus syslinux and grub-efi even when not using those at all. Ideally, building an image with wic should only build the tools and components really needed. The problem is that "wic-tools" is needed also for the manual invocations of wic, in which case everything that might be needed has to be built in advance. Replaced dependency on wic-tools with dependency to a much shorter set of tools that wic uses almost for any image: 'parted', 'gptfdisk', 'dosfstools' and 'mtools'. [YOCTO #11552] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12oe-selftest: wic: fix test_quemuEd Bartosh
This test case boots the image in qemu and checks for mounted partitions. As /boot is mounted automatically the test case fails. Fixed this by adding /boot to the list of mounted partitions. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12wic: add /boot mount point to fstab by defaultEd Bartosh
wic avoided adding /boot to fstab for no reason. This exception was hardcoded in the wic code. There is no need for this as mountpoint in .wks file is an optional field. It can be used only if user wants to have partitions automatically mounted on system boot. [YOCTO #11662] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12wic: rootfs: make copied rootfs uniqueEd Bartosh
Used unique suffix (line number from .wks file) for the copied rootfs directory to avoid possible conflicts. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12wic: rootfs: fix rootfs path reportingEd Bartosh
wic gets rootfs paths from partition object property 'rootfs_dir' and shows them in final report. rootfs plugin sets this property to the temporary path, which causes temporary paths appearing in the report. Changed the code to prevent storing temporary rootfs path in part.rootfs_dir. This should fix the report. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12wic: use absolute paths in rootfs pluginEd Bartosh
Using relative paths can cause copyhardlinktree API to fail as it changes current directory when working. Converted all paths to absolute paths using os.path.realpath. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12wic: copy rootfs directory before changing fstabEd Bartosh
wic updates /etc/fstab on root partition if there are valid mount points in .wks When wic runs from bitbake this can cause incorrect results or even breakage of other tasks working with rootfs directory in parallel with do_image_wic. Implemented copying rootfs directory to a temporary location using copyhardlinktree before updating fstab to avoid conflicts with other tasks working with rootfs. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2017-07-12yocto-project-qs: Updated Next Steps listKristi Rifenbark
Updated manual descriptions to fit current manual structures. (From yocto-docs rev: 81d8add49fd09deef432d9a0cc08c9f380c671ed) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Fixed Flash the Device exampleKristi Rifenbark
Fixes [YOCTO #11774] Updated bmaptool instructions in Flashing Images Using bmaptool section by changing the sudo command. Fixed the oe-run-native line. (From yocto-docs rev: c3a1e2882abbb7b682ce101a8b038f89c4e2261c) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12yocto-project-qs: Updated Welcome and example boardKristi Rifenbark
Fixes [YOCTO #11715] Replaced all instances of MinnowBoard MAX with MinnowBoard Turbot. Updated Welcome section to include links to key sections of quick start. (From yocto-docs rev: ed55dcd80ef5edddacb2d288e0a6cbe85dccf964) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Updated the section on initramfsScott Rifenbark
I did a rewrite of the section to get it into a procedural form. Missing some technical information and needs a review but it is the best that can be done at this time. The code for initrd is not settled. (From yocto-docs rev: 0fdef8c5fed6ac510d1604a677e6546494b4c96b) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12ref-manual: Cleaned up the description of INITRAMFS_IMAGE variable.Scott Rifenbark
(From yocto-docs rev: a85647193c202fcd36c70122240b54aa5672c895) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12ref-manual: Updated INITRAMFS_IMAGE variable description.Scott Rifenbark
The description suggested the reader see the meta/poky/conf/local.conf.sample.extended file for more understanding on INITRAMFS_IMAGE. The actual file is meta-poky/conf/local.conf.sample.extended. (From yocto-docs rev: 80b474d3417e88a47d1317b2af6552698e907b80) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Updated "Performing a Simple Build" section.Scott Rifenbark
I added a figure for this simple build workflow that uses BitBake from a Linux host. Also did a bit of re-writing. A new figure was introduced so the Makefile had to be adjusted to include that figure. The figure resides in the figures directory of both the dev-manual and the mega-manual. (From yocto-docs rev: c3b0b1d53f551c02202cef80a8a48dd24576b975) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12ref-manual: Added "Toaster" to the list of terms.Scott Rifenbark
(From yocto-docs rev: d6325a02c252c241e544f55f1d436dcf784de4db) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Updated cover information to remove IntelScott Rifenbark
The author of the book was still Intel Corporation. This needs removed. I replaced it with "Scotty's Documentation Services, Inc.". (From yocto-docs rev: 14f1df18210a3dcb4b7174ddcad551aa9141696d) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12yocto-project-qs: Updated exit QEMU instructions.Kristi Rifenbark
Removed "poweroff" command to exit and replaced with "Ctrl-C". (From yocto-docs rev: f08bc3b8c7009039da1bf90629a628ff6bbdac64) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12kernel-dev: Added the "writernotes" style.Scott Rifenbark
(From yocto-docs rev: 5ba749bf7a169ba1eb5440f93a00a093a07641a9) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12documentation: Moved devtool workflow to sdk manualScott Rifenbark
Fixes [YOCTO #11630] The section on the devtool workflow in the dev-manual was 99% identical to what was in the sdk-manual. I have moved the workflow procedure from the old "Model" chapter of the dev-manual to be merged with what was in the sdk-manual. In truth, the only things added were a note about devtool not being exclusive to SDK development. The result of moving (deleting) this section was that the "model" chapter of the dev-manual went away. The devtool stuff, Quilt, devshell, and python shell are all out now and there is no chapter left. So, mega-manual had to be adjusted to not pull that chapter in when building the dev-manual. I had to delete three figures that were used in the flow. The figures were already replicated in the sdk-manual. The figures were deleted from the figures folder of both the dev-manual and the mega-manual. I had to make sure all references to the old devtool stuf in the YP doc set were adjusted. (From yocto-docs rev: 5dbd643d31ab502df53a22229e457a03da7772b7) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Moved devshell and python shell workflow sections.Scott Rifenbark
Fixes [YOCTO #11630] These two sections can stand alone as tasks. I moved them to the "Common Tasks" chapter. (From yocto-docs rev: 60c810a9682f8a110fe7c7e4d0d40583a7d72735) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Moved "Using Quilt in Your Workflow" to tasksScott Rifenbark
Fixes [YOCTO #11630] The section on useing Quilt can be a stand-alone task. I moved it to the "Common Tasks" chapter. (From yocto-docs rev: bb84b88fc8fc7f82e7bbe580d408ae7880f38d8b) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Moved "Finding Temporary Source Code"Scott Rifenbark
Fixes [YOCTO #11630] This section can stand as a separate task. I have moved it to the Common Tasks chapter. (From yocto-docs rev: e4fb1ce8b160528aae0f192add614a595b2560a3) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12kernel-dev: Formatting and cleanup for "Other Resources"Scott Rifenbark
Some general cleanup and formatting. (From yocto-docs rev: 8d4458f8fbe02cb8bfa78cbf18726cdd8126850a) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12kernel-dev, dev-manual: Moved Kernel workflow section to kernel-devScott Rifenbark
Fixes [YOCTO #11630] The overview section of modifying the kernel needed to be in the kernel-dev manual and not in the dev-manual. I moved it and took care of all the links and external references throughout the YP doc set. One figure was involved that had to be moved to the figures folder in kernel-dev from dev-manual. That is why the Makefile had to be edited. (From yocto-docs rev: 3a704b64544678785b883f82d6e82aedac6790c5) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12yocto-project-qs: Updated poky and meta-intel examples.Kristi Rifenbark
Fixes [YOCTO #11731] Updated examples to so they checkout by tag rather than by branch name. (From yocto-docs rev: 9dca9fdc315998612f4cd5c9c69e2b3e045562ad) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12poky.ent: Added three new variablesKristi Rifenbark
New variable: METAINTELVERSION and META_INTEL_REL_TAG and DISTRO_REL_TAG (From yocto-docs rev: f8be6ea137df9b5964e2cc3fed43cda39a3d27ec) Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual, kernel-dev: Moved the kernel build hierarchy sectionScott Rifenbark
Fixes [YOCTO #11630] The section that presented the Yocto Linux kernel file structure resulting from a build using BitBake needed to be in the kernel-dev manual. I moved it over. This required transferring over a figure as well. (From yocto-docs rev: 0abc6c7d87a6aa10dac28fefbb280eb51fea61a7) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12kernel-dev: Re-write of Yocto Linux Architecture and Branch StrategiesScott Rifenbark
This section in Appepndix A was full of redundancies used to explain how the Yocto Project kernel development team has set up branching and kernel architecture. I consolidated a couple sub-sections into just the necessary single section. (From yocto-docs rev: e42efe28aec6bad3779c4b9ea58941272fb01651) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12kernel-dev: Inserted section on Git as a relavent noteScott Rifenbark
Appendix A of the kernel-dev had a subsection dedicated to just saying Git was the SCM used by the YP team for development. Having this information in a dedicated section was overkill. The information is better as an "aside". I put the stuff in a note. (From yocto-docs rev: 7e28686f946188daaf0480d4cd68e0e8ff854d37) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual, kernel-dev: Moved kernel branch concepts to kernel-devScott Rifenbark
Fixes [YOCTO #11630] The information in the dev-manual kernel overview area really neeeds to be in the Appendix on kernel structure in the kernel-dev manual. I moved that informtaion to the appendix. Removal of one redundant image was necessary from the dev-manual. The figure was literally repeated in the kernel manual already under a different file name. (From yocto-docs rev: 00ca68e760e41448c225fb1ca4a77f5201434b93) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12kernel-dev, dev-manual: Moved Yocto Linux kernel overviewScott Rifenbark
Fixes [YOCTO #11630] I took the Yocto Linux kernel overview list of kernels out of the dev-manual and moved them to the "Yocto Project Kernel Development and Maintenance" section in Appendix A of the kernel-dev manual. This is a much more logical area to introduce this type of Yocto Linux kernel information. (From yocto-docs rev: 0a5154cb4c23697f2b8e2341c8e1dc07362443d2) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Removed Toaster development flowScott Rifenbark
Fixes [YOCTO #11630] Took the small reference section out for developing an image using toaster. This was just a pointer to the toaster manual. (From yocto-docs rev: 8dcce4411aaa5d1d8fe2c809166a947d0e38a97b) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Removed SDK workflow sectionScott Rifenbark
Fixes [YOCTO #11630] This section simply pointed to the SDK manual. Does not need to be in the new "how-to" form of the dev-manual. (From yocto-docs rev: 1cd842a323ba09ef69e14f56dca1c2a5576252ee) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Clarifications for files in checkout out by tagScott Rifenbark
I put in some edits to be very clear on the state of the files for the user when they check out by tag. (From yocto-docs rev: 622d324e7f167f55a5de86ec7af65d7554f2aec8) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Added branch clarification to checking out pokyScott Rifenbark
Re-wordings to be clear about what the user is getting when they check out a development branch of an upstream repository. (From yocto-docs rev: deb6ecfd35a76760bc2270bbbc69aa232b0c8cc7) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Wording updates "Cloning the poky Repository"Scott Rifenbark
Clarified wording so reader understands they are checking out the master branch by default. (From yocto-docs rev: d1e77fff752d9960120340601bc2520c51c4f073) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Lead-ins for "Using the Downloads Page" procedureScott Rifenbark
Manual style dictates use of bold lead-ins for a numbered list. (From yocto-docs rev: 32469dc0d61d755d0119a0374070221b0bd4bdfb) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Bold lead-ins for "Accessing Index of Releases"Scott Rifenbark
Manual list style requires steps to have bold lead-ins. (From yocto-docs rev: 2d226cf6710853f7be8f0c3bd8b1eea72cb4eb7f) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Added bold lead-ins for "Accessing Source Repositories"Scott Rifenbark
Formatting style need bold lead-ins for steps. (From yocto-docs rev: b75337188e2346dd40004e22b45a2975f1d4cff3) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12bsp-guide: Minor introduction rewrite and formatting BSP workflow.Scott Rifenbark
(From yocto-docs rev: 697d8ce39a122a33faebf1ab66b6bb16bfab5986) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual, bsp-guide: Moved BSP development workflow sectionScott Rifenbark
Fixes [YOCTO #11630] Moved the section on BSP Development workflow from the dev-manual into the bsp-guide. This procedure needs to live in the BSP guide. Many links had to be fixed. (From yocto-docs rev: fbf06240f83221929aea237660146e0076207f6a) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Moved the "Flashing Images using bmaptool" section.Scott Rifenbark
Fixes [YOCTO #11630] Moved this section from the "Getting Started with the Yocto Project" section. The topic is not really a getting started topic. It is better suited in the "Common Tasks" chapter. (From yocto-docs rev: d6cdade9066bdbce0596672978c178d2ec82c9a4) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-12dev-manual: Updated "Building Images" sectionScott Rifenbark
Fixes [YOCTO #11630] I re-wrote the "Building Images" section into a "Performing a Simple Build" section. A single link in the common tasks chapter was affected by the section name change. (From yocto-docs rev: de5a4cfa4f63538fe0a5ec0c2aacfb9222b70c4b) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>