summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/bootfs-image.bbclass1
-rw-r--r--classes/consistent_timestamps.bbclass4
-rw-r--r--classes/image-hdd.bbclass15
-rw-r--r--classes/populate_b2qt_sdk.bbclass5
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
30BOOTFS_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}-${DATETIME}" 30BOOTFS_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}-${DATETIME}"
31BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}" 31BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}"
32BOOTFS_NAME[vardepsexclude] += "DATETIME"
32 33
33BOOTFS_DEPENDS ?= "" 34BOOTFS_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
30update_file_timestaps() { 30update_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
35ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; " 35ROOTFS_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 30VM_ROOTFS_TYPE = "ext3"
31do_bootdirectdisk[depends] += "${PN}:do_rootfs" 31ROOT_VM = "root=/dev/hda2"
32ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" 32LABELS_VM = "boot"
33 33AUTO_SYSLINUXMENU = "0"
34SYSLINUX_ROOT = "root=/dev/hda2 "
35SYSLINUX_PROMPT = "0"
36SYSLINUX_TIMEOUT = "1"
37SYSLINUX_LABELS = "boot"
38LABELS_append = " ${SYSLINUX_LABELS} "
39SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200" 34SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200"
40 35
41inherit image_types boot-directdisk 36inherit image_types image-vm
42 37
43create_hdd_image () { 38create_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}"