From fe11d654b2bc3ef572138ded75bcc4d6937cd3dd Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 24 Jan 2012 11:48:11 -0600 Subject: documentation/dev-manual/dev-manual-kernel-appendix.xml: Fixes to examples Jim Abernathy pointed out an area where the bitbake command is run from the top-level poky directory. This is incorrect and the user should run this from the build directory. I changed the instance so that the example instructs the user to either run the environment setup script first, which would place him into the build directory. I also reinforced it by adding supporting text saying that you should run the bitbake command from the build directory. Reported-by: Jim Abernathy (From yocto-docs rev: b111e5e4faa6d4e5e99f48b886aeb72bb12e2914) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-kernel-appendix.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/dev-manual-kernel-appendix.xml b/documentation/dev-manual/dev-manual-kernel-appendix.xml index 710bab9825..b4b2087c22 100644 --- a/documentation/dev-manual/dev-manual-kernel-appendix.xml +++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml @@ -456,18 +456,21 @@ Your environment should be set up since you previously sourced the oe-init-build-env script. If it isn't, source the script again from poky. + + $ cd ~/poky + $ source oe-init-build-env + Be sure old images are cleaned out by running the - cleanall BitBake task as follows: + cleanall BitBake task as follows from your build directory: - $ cd ~/poky $ bitbake -c cleanall linux-yocto Never remove any files by hand from the tmp/deploy directory insided the local Yocto Project files build directory. Always use the BitBake cleanall task to clear out previous builds. - Build the kernel image using this command: + Next, build the kernel image using this command: $ bitbake -k core-image-minimal -- cgit v1.2.3-54-g00ecf