aboutsummaryrefslogtreecommitdiffstats
path: root/meta-intel-extras/classes
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2016-03-16 09:27:00 +0200
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2016-04-08 12:51:37 +0000
commit2f745904ddf909956d325594d99840891735556b (patch)
treeddbc3ce72247e2c09738d7c71ba2aed16f0f12a3 /meta-intel-extras/classes
parent9a46c8174a1814a628b63b795b31cf4e181b72a3 (diff)
NUC: use the common intel-corei7-64 BSP
meta-intel no longer has specific BSPs for each machine, but they share a common BSP based on the architecture. Change-Id: Ibbb7b8b2153103367168ea37d904ce23bc245108 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'meta-intel-extras/classes')
-rw-r--r--meta-intel-extras/classes/image_dd_efi.bbclass45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-intel-extras/classes/image_dd_efi.bbclass b/meta-intel-extras/classes/image_dd_efi.bbclass
new file mode 100644
index 00000000..7bbff625
--- /dev/null
+++ b/meta-intel-extras/classes/image_dd_efi.bbclass
@@ -0,0 +1,45 @@
+##############################################################################
+##
+## Copyright (C) 2016 The Qt Company Ltd.
+## Contact: http://www.qt.io/licensing/
+##
+## This file is part of the Boot to Qt meta layer.
+##
+## $QT_BEGIN_LICENSE:COMM$
+##
+## Commercial License Usage
+## Licensees holding valid commercial Qt licenses may use this file in
+## accordance with the commercial license agreement provided with the
+## Software or, alternatively, in accordance with the terms contained in
+## a written agreement between you and The Qt Company. For licensing terms
+## and conditions see http://www.qt.io/terms-conditions. For further
+## information use the contact form at http://www.qt.io/contact-us.
+##
+## $QT_END_LICENSE$
+##
+##############################################################################
+
+DESCRIPTION = "Extends image_dd class to boot via GRUB-EFI and initramfs."
+LICENSE = "CLOSED"
+
+inherit image_dd
+
+EXTRA_IMAGECMD_ext3 += "-L rootfs"
+IMAGE_DEPENDS_ext3 += "initramfs-basic:do_rootfs"
+
+IMAGE_CMD_ext3_prepend() {
+
+ # https://www.kernel.org/doc/Documentation/x86/early-microcode.txt
+ microcode="${@bb.utils.contains('MACHINE_FEATURES', 'intel-ucode', '${DEPLOY_DIR_IMAGE}/microcode.cpio ', '', d)}"
+ cat ${microcode} ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.cpio.gz > ${IMAGE_ROOTFS}/boot/initramfs
+ chmod 0644 ${IMAGE_ROOTFS}/boot/initramfs
+}
+
+do_populate_boot() {
+
+ mkdir -p ${WORKDIR}/EFI/BOOT/
+ # Path where EFI firmware searches for EFI executable
+ cp ${DEPLOY_DIR_IMAGE}/bootx64.efi ${WORKDIR}/EFI/BOOT/
+ mcopy -s -i ${WORKDIR}/boot.img ${WORKDIR}/EFI ::/EFI
+}
+