diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/bootfs-image.bbclass | 1 | ||||
-rw-r--r-- | classes/consistent_timestamps.bbclass | 4 | ||||
-rw-r--r-- | classes/image-hdd.bbclass | 15 | ||||
-rw-r--r-- | classes/populate_b2qt_sdk.bbclass | 5 |
4 files changed, 9 insertions, 16 deletions
diff --git a/classes/bootfs-image.bbclass b/classes/bootfs-image.bbclass index 2104b50..a0563ce 100644 --- a/classes/bootfs-image.bbclass +++ b/classes/bootfs-image.bbclass | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | BOOTFS_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}-${DATETIME}" | 30 | BOOTFS_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}-${DATETIME}" |
31 | BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}" | 31 | BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}" |
32 | BOOTFS_NAME[vardepsexclude] += "DATETIME" | ||
32 | 33 | ||
33 | BOOTFS_DEPENDS ?= "" | 34 | BOOTFS_DEPENDS ?= "" |
34 | 35 | ||
diff --git a/classes/consistent_timestamps.bbclass b/classes/consistent_timestamps.bbclass index 08cc401..1f560c2 100644 --- a/classes/consistent_timestamps.bbclass +++ b/classes/consistent_timestamps.bbclass | |||
@@ -28,8 +28,8 @@ | |||
28 | ############################################################################ | 28 | ############################################################################ |
29 | 29 | ||
30 | update_file_timestaps() { | 30 | update_file_timestaps() { |
31 | # Update file timestamp to 0 seconds since Epoch time. | 31 | # Update file timestamp to 1 second since Epoch time. |
32 | TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000' {} \; | 32 | TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000.01' {} \; |
33 | } | 33 | } |
34 | 34 | ||
35 | ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; " | 35 | ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; " |
diff --git a/classes/image-hdd.bbclass b/classes/image-hdd.bbclass index 05fd847..1391be1 100644 --- a/classes/image-hdd.bbclass +++ b/classes/image-hdd.bbclass | |||
@@ -27,18 +27,13 @@ | |||
27 | ## | 27 | ## |
28 | ############################################################################ | 28 | ############################################################################ |
29 | 29 | ||
30 | # need to define the dependency and the ROOTFS for directdisk | 30 | VM_ROOTFS_TYPE = "ext3" |
31 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" | 31 | ROOT_VM = "root=/dev/hda2" |
32 | ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" | 32 | LABELS_VM = "boot" |
33 | 33 | AUTO_SYSLINUXMENU = "0" | |
34 | SYSLINUX_ROOT = "root=/dev/hda2 " | ||
35 | SYSLINUX_PROMPT = "0" | ||
36 | SYSLINUX_TIMEOUT = "1" | ||
37 | SYSLINUX_LABELS = "boot" | ||
38 | LABELS_append = " ${SYSLINUX_LABELS} " | ||
39 | SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200" | 34 | SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200" |
40 | 35 | ||
41 | inherit image_types boot-directdisk | 36 | inherit image_types image-vm |
42 | 37 | ||
43 | create_hdd_image () { | 38 | create_hdd_image () { |
44 | cd ${DEPLOY_DIR_IMAGE} | 39 | cd ${DEPLOY_DIR_IMAGE} |
diff --git a/classes/populate_b2qt_sdk.bbclass b/classes/populate_b2qt_sdk.bbclass index 75c6e55..2902f96 100644 --- a/classes/populate_b2qt_sdk.bbclass +++ b/classes/populate_b2qt_sdk.bbclass | |||
@@ -38,10 +38,7 @@ replace_sysroot_symlink() { | |||
38 | #check whether TARGET is inside the sysroot when not prepend the sysroot | 38 | #check whether TARGET is inside the sysroot when not prepend the sysroot |
39 | TARGET=`echo ${TARGET} | grep "^${SYMLINK_SYSROOT}" || echo ${SYMLINK_SYSROOT}${TARGET}` | 39 | TARGET=`echo ${TARGET} | grep "^${SYMLINK_SYSROOT}" || echo ${SYMLINK_SYSROOT}${TARGET}` |
40 | rm "${SOURCE}" | 40 | rm "${SOURCE}" |
41 | if [ -d "${TARGET}" ]; then | 41 | if [ -f "${TARGET}" ]; then |
42 | cp -r "${TARGET}" "${SOURCE}" | ||
43 | replace_sysroot_symlink ${SYMLINK_SYSROOT} ${SOURCE} | ||
44 | elif [ -f "${TARGET}" ]; then | ||
45 | cp "${TARGET}" "${SOURCE}" | 42 | cp "${TARGET}" "${SOURCE}" |
46 | elif [ -e "${TARGET}" ]; then | 43 | elif [ -e "${TARGET}" ]; then |
47 | touch "${SOURCE}" | 44 | touch "${SOURCE}" |