From 5647682c2f1dff660657b15935fe8d56b48f85cd Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 5 Oct 2012 09:35:03 -0700 Subject: documentation: dev-manual - added OE_INIT_FILE and went to 3.4 In the Kernel example appendix I changed some remaining 3.2 kernel strings to 3.4. Also I added the OE_INIT_FILE variable from poky.ent for use instead of the "oe-init-build-env" string. (From yocto-docs rev: 1d9d8d72d197bdd81756eed7fe1529f341de6089) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-kernel-appendix.xml | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 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 810919f908..387e4fdf45 100644 --- a/documentation/dev-manual/dev-manual-kernel-appendix.xml +++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml @@ -235,7 +235,7 @@ Because a full build can take hours, you should check two variables in the build directory that is created after you source the - oe-init-build-env script. + &OE_INIT_FILE; script. You can find these variables BB_NUMBER_THREADS and PARALLEL_MAKE in the build/conf directory in the @@ -337,7 +337,7 @@ The file you change in this example is named calibrate.c - and is located in the my-linux-yocto-3.2-work Git repository + and is located in the my-linux-yocto-3.4-work Git repository (the copy of the bare clone) in init. This example simply inserts several printk statements at the beginning of the calibrate_delay function. @@ -401,7 +401,7 @@ The following command pushes the changes to the bare clone: - $ git push origin common-pc-base:standard/default/common-pc/base + $ git push origin standard-common-pc-base:standard/default/common-pc/base @@ -461,17 +461,17 @@ " Identify Your Source Files: In the - linux-yocto_3.2.bbappend file located in the + linux-yocto_3.4.bbappend file located in the poky-extras/meta-kernel-dev/recipes-kernel/linux directory, you need to identify the location of the local source code, which in this example is the bare clone named - linux-yocto-3.2.git. + linux-yocto-3.4.git. To do this, set the KSRC_linux_yocto variable to point to your - local linux-yocto-3.2.git Git repository by adding the + local linux-yocto-3.4.git Git repository by adding the following statement. Be sure to substitute your user information in the statement: - KSRC_linux_yocto_3_2 ?= "/home/scottrif/linux-yocto-3.2.git" + KSRC_linux_yocto_3_2 ?= "/home/scottrif/linux-yocto-3.4.git" @@ -484,7 +484,7 @@ comment out the COMPATIBLE_MACHINE statements in all unused .bbappend files, or simply remove (or rename) all the files except the one your are using for the build - (i.e. linux-yocto_3.2.bbappend in this example). + (i.e. linux-yocto_3.4.bbappend in this example). If you do not make one of these two adjustments, your machine will be compatible with all the kernel recipes in the meta-kernel-dev layer. When your machine is comapatible with all the kernel recipes, the build attempts @@ -501,11 +501,11 @@ Do the following: Your environment should be set up since you previously sourced - the oe-init-build-env script. + the &OE_INIT_FILE; script. If it isn't, source the script again from poky. $ cd ~/poky - $ source oe-init-build-env + $ source &OE_INIT_FILE; Be sure old images are cleaned out by running the @@ -605,7 +605,7 @@ Because a full build can take hours, you should check two variables in the build directory that is created after you source the - oe-init-build-env script. + &OE_INIT_FILE; script. You can find these variables BB_NUMBER_THREADS and PARALLEL_MAKE in the build/conf directory in the @@ -623,7 +623,7 @@ If necessary, the script creates the build directory: $ cd ~/poky - $ source oe-init-build-env + $ source &OE_INIT_FILE; ### Shell environment set up for builds. ### @@ -699,19 +699,19 @@ The menuconfig tool provides an interactive method with which to set kernel configurations. You need to run menuconfig inside the Yocto BitBake environment. - Thus, the environment must be set up using the oe-init-build-env + Thus, the environment must be set up using the &OE_INIT_FILE; script found in the build directory. If you have not sourced this script do so with the following commands: $ cd ~/poky - $ source oe-init-build-env + $ source &OE_INIT_FILE; After setting up the environment to run menuconfig, you are ready to use the tool to interactively change the kernel configuration. - In this example, we are basing our changes on the linux-yocto-3.2 + In this example, we are basing our changes on the linux-yocto-3.4 kernel. The OpenEmbedded build system recognizes this kernel as linux-yocto. @@ -742,7 +742,7 @@ You can find and examine this file in the build directory. This example uses the following: - ~/poky/build/tmp/work/qemux86-poky-linux/linux-yocto-3.2.11+git1+84f... + ~/poky/build/tmp/work/qemux86-poky-linux/linux-yocto-3.4.11+git1+84f... ...656ed30-r1/linux-qemux86-standard-build -- cgit v1.2.3-54-g00ecf