diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-25 11:36:40 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-25 11:36:40 +0000 |
commit | f30bf93e14868e405999335d3db5af9e23a55425 (patch) | |
tree | 2b70f4dce64a0fe57207910e85ef9c725db9c0d5 /meta | |
parent | 589df80ca1b825afd138531bb796aa8617ed0991 (diff) | |
download | poky-f30bf93e14868e405999335d3db5af9e23a55425.tar.gz |
bootimg.bbclass: Improve documentation
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/bootimg.bbclass | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 5e838db56c..2de8d50934 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
@@ -1,12 +1,25 @@ | |||
1 | # bootimg.oeclass | ||
2 | # Copyright (C) 2004, Advanced Micro Devices, Inc. All Rights Reserved | 1 | # Copyright (C) 2004, Advanced Micro Devices, Inc. All Rights Reserved |
3 | # Released under the MIT license (see packages/COPYING) | 2 | # Released under the MIT license (see packages/COPYING) |
4 | 3 | ||
5 | # This creates a bootable image using syslinux, your kernel and an optional | 4 | # Creates a bootable image using syslinux, your kernel and an optional |
6 | # initrd | 5 | # initrd |
7 | 6 | ||
8 | # External variables needed | 7 | # |
8 | # End result is two things: | ||
9 | # | ||
10 | # 1. A .hddimage file which is an msdos filesystem containing syslinux, a kernel, | ||
11 | # an initrd and a rootfs image. These can be written to harddisks directly and | ||
12 | # also booted on USB flash disks (write them there with dd). | ||
13 | # | ||
14 | # 2. A CD .iso image | ||
15 | |||
16 | # Boot process is that the initrd will boot and process which label was selected | ||
17 | # in syslinux. Actions based on the label are then performed (e.g. installing to | ||
18 | # an hdd) | ||
19 | |||
20 | # External variables | ||
9 | # ${INITRD} - indicates a filesystem image to use as an initrd (optional) | 21 | # ${INITRD} - indicates a filesystem image to use as an initrd (optional) |
22 | # ${ROOTFS} - indicates a filesystem image to include as the root filesystem (optional) | ||
10 | # ${AUTO_SYSLINUXCFG} - set this to 1 to enable creating an automatic config | 23 | # ${AUTO_SYSLINUXCFG} - set this to 1 to enable creating an automatic config |
11 | # ${LABELS} - a list of targets for the automatic config | 24 | # ${LABELS} - a list of targets for the automatic config |
12 | # ${APPEND} - an override list of append strings for each label | 25 | # ${APPEND} - an override list of append strings for each label |
@@ -19,11 +32,12 @@ do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \ | |||
19 | cdrtools-native:do_populate_sysroot" | 32 | cdrtools-native:do_populate_sysroot" |
20 | 33 | ||
21 | PACKAGES = " " | 34 | PACKAGES = " " |
35 | EXCLUDE_FROM_WORLD = "1" | ||
22 | 36 | ||
23 | HDDDIR = "${S}/hdd/boot" | 37 | HDDDIR = "${S}/hdd/boot" |
24 | ISODIR = "${S}/cd/isolinux" | 38 | ISODIR = "${S}/cd/isolinux" |
25 | 39 | ||
26 | BOOTIMG_VOLUME_ID ?= "oe" | 40 | BOOTIMG_VOLUME_ID ?= "boot" |
27 | BOOTIMG_EXTRA_SPACE ?= "512" | 41 | BOOTIMG_EXTRA_SPACE ?= "512" |
28 | 42 | ||
29 | # Get the build_syslinux_cfg() function from the syslinux class | 43 | # Get the build_syslinux_cfg() function from the syslinux class |