summaryrefslogtreecommitdiff
path: root/meta/classes/boot-directdisk.bbclass
AgeCommit message (Collapse)AuthorFiles
2013-07-23boot-directdisk: use awk instead of echo -ne for dash compatibilityJonathan Liu1
The echo command is a dash shell built-in and does not support the -n and -e options so use awk instead. This fixes the partition table being corrupted when writing the MBR disk signature into the image. [YOCTO #4859] Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-11boot-directdisk: allow specifying custom MBR disk signatureJonathan Liu1
This introduces a DISK_SIGNATURE variable that allows controlling the 32-bit MBR disk signature. By default it is set to an automatically generated disk signature but it may by overridden in the image recipe by setting DISK_SIGNATURE to a 8 digit hex string. This DISK_SIGNATURE variable can also be used in the image recipe to specify the root by UUID using: SYSLINUX_ROOT = "root=PARTUUID=${DISK_SIGNATURE}-02" Specifying the root by UUID allows the kernel to locate the root filesystem even if the device name changes (e.g. /dev/hda2, /dev/hdb2 or /dev/sdb2 instead of /dev/sda2) due to differences in hardware configuration. Signed-off-by: Jonathan Liu <net147@gmail.com> Acked-by: Darren hart <dvhart@linux.intel.com>
2013-05-16boot-directdisk: Scope HDDDIR and HDDIMG variables to avoid conflictsJonathan Liu1
These variables should not be shared with other image classes. The bootimg class also has an HDDDIR variable that could be overwritten if executing concurrently in the same image recipe. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-16syslinux: Update to 4.06Jonathan Liu1
Patches are now part of upstream or no longer needed. Added new util-linux dependency for isohybrid. Paths updated to reflect directory structure changes. Add CFLAGS and LDFLAGS overrides. [YOCTO #4438] Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-10boot-directdisk/bootimg/image-vmdk: remove more nostamps for image generationRobert Yang1
We have removed the nostamps for do_rootfs and do_build, so it seems reasonable to remove the stamps for do_bootimg, do_bootdirectdisk and do_vmdkimg. The current problem is that the do_vmdkimg always re-run, but the do_rootfs may not, so the code like below in the do_rootfs function doesn't re-run and cause problems (the symlink exists when the do_vmdkimg creates the symlink again): if d.getVar('IMAGE_LINK_NAME', True): cmds += "\trm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*" Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-19Convert tab indentation in python functions into four-spaceRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-18boot-directdisk: Fix kernel location after STAGING_KERNEL_DIR changeRichard Purdie1
This catches up with the STAGING_KERNEL_DIR location change and uses the correct variable to future proof this issue. [YOCTO #2783] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-11boot-directdisk: remove the default setting of SYSLINUXCFG and SYSLINUXMENUSaul Wold1
These two should get setup in {S} and installed into {HDDDIR}, by having them defined with {HDDDIR} they try to get created when the directory does not exist yet. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-27boot-directdisk: Fix Block CalcuationSaul Wold1
This also changes the timeout to be settable The block calcuation was not correctly rounding, see comment Thanks to Darren Hart for fixing this. Cc: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-23boot-directdisk: Use correct SYSLINUX_TIMEOUT and SYSLINUX_ROOT instead of ↵Saul Wold1
APPEND Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-05-05boot-directdisk: fix bzImage source locationTom Zanussi1
Fixes yocto [BUGID #876] boot-directdisk.class looks in the wrong location for the bzImage to install. Make it look in the right place. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
2010-03-25bootimg/boot-directdisk.bbclass: Update afer syslinux changes, fix mbr.bin ↵Richard Purdie1
location and fix dependencies Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-25boot-directdisk.bbclass: Add direct disk image creation classRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>