diff options
-rw-r--r-- | meta-boot2qt-distro/conf/distro/include/intel-corei7-64.conf | 3 | ||||
-rw-r--r-- | meta-boot2qt/classes/image_dd.bbclass | 87 | ||||
-rw-r--r-- | meta-intel-extras/classes/image_dd_efi.bbclass | 49 | ||||
-rw-r--r-- | meta-intel-extras/recipes/grub/grub-efi_%.bbappend (renamed from meta-intel-extras/recipes/grub/grub-efi_2.00.bbappend) | 0 | ||||
-rw-r--r-- | meta-intel-extras/recipes/mesa/files/0001-Use-wayland-scanner-in-the-path.patch | 37 | ||||
-rw-r--r-- | meta-intel-extras/recipes/mesa/files/disable-asm-on-non-gcc.patch | 29 | ||||
-rw-r--r-- | meta-intel-extras/recipes/mesa/files/replace_glibc_check_with_linux.patch | 26 | ||||
-rw-r--r-- | meta-intel-extras/recipes/mesa/mesa_17.0.2.bb | 18 | ||||
-rw-r--r-- | scripts/manifest.xml | 2 |
9 files changed, 2 insertions, 249 deletions
diff --git a/meta-boot2qt-distro/conf/distro/include/intel-corei7-64.conf b/meta-boot2qt-distro/conf/distro/include/intel-corei7-64.conf index 0c8200a..64432d3 100644 --- a/meta-boot2qt-distro/conf/distro/include/intel-corei7-64.conf +++ b/meta-boot2qt-distro/conf/distro/include/intel-corei7-64.conf | |||
@@ -31,8 +31,7 @@ DEPLOY_CONF_NAME = "Intel NUC" | |||
31 | 31 | ||
32 | DISTRO_FEATURES_remove = "usbgadget" | 32 | DISTRO_FEATURES_remove = "usbgadget" |
33 | 33 | ||
34 | IMAGE_CLASSES += "image_dd_efi" | 34 | IMAGE_FSTYPES += "wic" |
35 | IMAGE_FSTYPES += "ext3 dd" | ||
36 | 35 | ||
37 | QBSP_IMAGE_CONTENT ?= "\ | 36 | QBSP_IMAGE_CONTENT ?= "\ |
38 | ${IMAGE_LINK_NAME}.img \ | 37 | ${IMAGE_LINK_NAME}.img \ |
diff --git a/meta-boot2qt/classes/image_dd.bbclass b/meta-boot2qt/classes/image_dd.bbclass deleted file mode 100644 index e05536b..0000000 --- a/meta-boot2qt/classes/image_dd.bbclass +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | # This class is based on meta-freescale/classes/image_types_fsl.bbclass::generate_imx_sdcard() | ||
31 | DESCRIPTION = "The base class for building images that can be deployed with GNU coreutils dd tool." | ||
32 | inherit image_types | ||
33 | |||
34 | IMAGE="${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.img" | ||
35 | |||
36 | # Boot partition size [in KiB] | ||
37 | BOOT_SPACE ?= "8192" | ||
38 | |||
39 | # Set alignment to 4MB [in KiB] | ||
40 | IMAGE_ROOTFS_ALIGNMENT = "4096" | ||
41 | |||
42 | # Boot partition volume id | ||
43 | BOOTDD_VOLUME_ID = "boot" | ||
44 | |||
45 | IMAGE_TYPEDEP_dd = "ext3" | ||
46 | IMAGE_DEPENDS_dd = "parted-native:do_populate_sysroot \ | ||
47 | dosfstools-native:do_populate_sysroot \ | ||
48 | mtools-native:do_populate_sysroot" | ||
49 | |||
50 | image_dd_do_populate_boot() { | ||
51 | } | ||
52 | EXPORT_FUNCTIONS do_populate_boot | ||
53 | |||
54 | IMAGE_CMD_dd() { | ||
55 | |||
56 | ROOTFS="${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.ext3" | ||
57 | |||
58 | # Align boot partition and calculate total binary image size | ||
59 | BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1) | ||
60 | BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT}) | ||
61 | IMAGE_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT}) | ||
62 | |||
63 | # Initialize a sparse file | ||
64 | dd if=/dev/zero of=${IMAGE} bs=1 count=0 seek=$(expr 1024 \* ${IMAGE_SIZE}) | ||
65 | |||
66 | # Create partition table | ||
67 | parted -s ${IMAGE} mklabel msdos | ||
68 | parted -s ${IMAGE} unit KiB mkpart primary fat32 ${IMAGE_ROOTFS_ALIGNMENT} $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED}) | ||
69 | parted -s ${IMAGE} unit KiB mkpart primary $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED}) $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED} \+ $ROOTFS_SIZE) | ||
70 | parted -s ${IMAGE} set 1 boot on | ||
71 | parted ${IMAGE} print | ||
72 | |||
73 | # Create boot partition image | ||
74 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${IMAGE} unit b print \ | ||
75 | | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') | ||
76 | rm -f ${WORKDIR}/boot.img | ||
77 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | ||
78 | do_populate_boot | ||
79 | |||
80 | # Burn Partitions | ||
81 | dd if=${WORKDIR}/boot.img of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | ||
82 | dd if=${ROOTFS} of=${IMAGE} conv=notrunc seek=1 bs=$(expr ${BOOT_SPACE_ALIGNED} \* 1024 + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | ||
83 | |||
84 | rm -f ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img | ||
85 | ln -s ${IMAGE_NAME}.rootfs.img ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.img | ||
86 | } | ||
87 | |||
diff --git a/meta-intel-extras/classes/image_dd_efi.bbclass b/meta-intel-extras/classes/image_dd_efi.bbclass deleted file mode 100644 index 4454051..0000000 --- a/meta-intel-extras/classes/image_dd_efi.bbclass +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | ############################################################################ | ||
2 | ## | ||
3 | ## Copyright (C) 2016 The Qt Company Ltd. | ||
4 | ## Contact: https://www.qt.io/licensing/ | ||
5 | ## | ||
6 | ## This file is part of the Boot to Qt meta layer. | ||
7 | ## | ||
8 | ## $QT_BEGIN_LICENSE:GPL$ | ||
9 | ## Commercial License Usage | ||
10 | ## Licensees holding valid commercial Qt licenses may use this file in | ||
11 | ## accordance with the commercial license agreement provided with the | ||
12 | ## Software or, alternatively, in accordance with the terms contained in | ||
13 | ## a written agreement between you and The Qt Company. For licensing terms | ||
14 | ## and conditions see https://www.qt.io/terms-conditions. For further | ||
15 | ## information use the contact form at https://www.qt.io/contact-us. | ||
16 | ## | ||
17 | ## GNU General Public License Usage | ||
18 | ## Alternatively, this file may be used under the terms of the GNU | ||
19 | ## General Public License version 3 or (at your option) any later version | ||
20 | ## approved by the KDE Free Qt Foundation. The licenses are as published by | ||
21 | ## the Free Software Foundation and appearing in the file LICENSE.GPL3 | ||
22 | ## included in the packaging of this file. Please review the following | ||
23 | ## information to ensure the GNU General Public License requirements will | ||
24 | ## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
25 | ## | ||
26 | ## $QT_END_LICENSE$ | ||
27 | ## | ||
28 | ############################################################################ | ||
29 | |||
30 | DESCRIPTION = "Extends image_dd class to boot via GRUB-EFI and initramfs." | ||
31 | LICENSE = "CLOSED" | ||
32 | |||
33 | inherit image_dd | ||
34 | |||
35 | EXTRA_IMAGECMD_ext3 += "-L rootfs" | ||
36 | |||
37 | do_populate_boot() { | ||
38 | GRUB_IMAGE="grub-efi-bootia32.efi" | ||
39 | DEST_IMAGE="bootia32.efi" | ||
40 | if [ "${TARGET_ARCH}" = "x86_64" ]; then | ||
41 | GRUB_IMAGE="grub-efi-bootx64.efi" | ||
42 | DEST_IMAGE="bootx64.efi" | ||
43 | fi | ||
44 | |||
45 | mkdir -p ${WORKDIR}/EFI/BOOT/ | ||
46 | # Path where EFI firmware searches for EFI executable | ||
47 | cp ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${WORKDIR}/EFI/BOOT/${DEST_IMAGE} | ||
48 | mcopy -s -i ${WORKDIR}/boot.img ${WORKDIR}/EFI ::/EFI | ||
49 | } | ||
diff --git a/meta-intel-extras/recipes/grub/grub-efi_2.00.bbappend b/meta-intel-extras/recipes/grub/grub-efi_%.bbappend index f3a95f2..f3a95f2 100644 --- a/meta-intel-extras/recipes/grub/grub-efi_2.00.bbappend +++ b/meta-intel-extras/recipes/grub/grub-efi_%.bbappend | |||
diff --git a/meta-intel-extras/recipes/mesa/files/0001-Use-wayland-scanner-in-the-path.patch b/meta-intel-extras/recipes/mesa/files/0001-Use-wayland-scanner-in-the-path.patch deleted file mode 100644 index e49695b..0000000 --- a/meta-intel-extras/recipes/mesa/files/0001-Use-wayland-scanner-in-the-path.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From 2f68fcaaf4964e7feeb383f5c26851965cda037c Mon Sep 17 00:00:00 2001 | ||
2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
3 | Date: Tue, 15 Nov 2016 15:20:49 +0200 | ||
4 | Subject: [PATCH] Simplify wayland-scanner lookup | ||
5 | |||
6 | Don't use pkg-config to lookup the path of a binary that's in the path. | ||
7 | |||
8 | Alternatively we'd have to prefix the path returned by pkg-config with | ||
9 | PKG_CONFIG_SYSROOT_DIR. | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
13 | --- | ||
14 | configure.ac | 7 +------ | ||
15 | 1 file changed, 1 insertion(+), 6 deletions(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index e56e35a..a92005a 100644 | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -2020,12 +2020,7 @@ if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then | ||
22 | AC_MSG_ERROR([cannot build egl state tracker without EGL library]) | ||
23 | fi | ||
24 | |||
25 | -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner], | ||
26 | - WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`, | ||
27 | - WAYLAND_SCANNER='') | ||
28 | -if test "x$WAYLAND_SCANNER" = x; then | ||
29 | - AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner]) | ||
30 | -fi | ||
31 | +AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner]) | ||
32 | |||
33 | # Do per-EGL platform setups and checks | ||
34 | egl_platforms=`IFS=', '; echo $with_egl_platforms` | ||
35 | -- | ||
36 | 2.1.4 | ||
37 | |||
diff --git a/meta-intel-extras/recipes/mesa/files/disable-asm-on-non-gcc.patch b/meta-intel-extras/recipes/mesa/files/disable-asm-on-non-gcc.patch deleted file mode 100644 index d2d6755..0000000 --- a/meta-intel-extras/recipes/mesa/files/disable-asm-on-non-gcc.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | Configure checks for compiler to be gcc and then it enables asm_offsets | ||
2 | generation. see | ||
3 | |||
4 | https://cgit.freedesktop.org/mesa/mesa/commit/?id=73c9b4b0e05fc66629ba250846948dc55c0e7a0d | ||
5 | |||
6 | However, we missed the check when enabling this on cross compilation | ||
7 | when architecture for both host and target is x86 | ||
8 | |||
9 | Fixes errors like | ||
10 | ./gen_matypes > matypes.h | ||
11 | /bin/bash: ./gen_matypes: No such file or directory | ||
12 | |||
13 | -Khem | ||
14 | |||
15 | Upstream-Status: Submitted | ||
16 | |||
17 | Index: mesa-12.0.1/configure.ac | ||
18 | =================================================================== | ||
19 | --- mesa-12.0.1.orig/configure.ac | ||
20 | +++ mesa-12.0.1/configure.ac | ||
21 | @@ -732,7 +732,7 @@ test "x$enable_asm" = xno && AC_MSG_RESU | ||
22 | if test "x$enable_asm" = xyes -a "x$cross_compiling" = xyes; then | ||
23 | case "$host_cpu" in | ||
24 | i?86 | x86_64 | amd64) | ||
25 | - if test "x$host_cpu" != "x$target_cpu"; then | ||
26 | + if test "x$host_cpu" != "x$target_cpu" -o "x$acv_mesa_CLANG" = xyes; then | ||
27 | enable_asm=no | ||
28 | AC_MSG_RESULT([no, cross compiling]) | ||
29 | fi | ||
diff --git a/meta-intel-extras/recipes/mesa/files/replace_glibc_check_with_linux.patch b/meta-intel-extras/recipes/mesa/files/replace_glibc_check_with_linux.patch deleted file mode 100644 index 0280ee8..0000000 --- a/meta-intel-extras/recipes/mesa/files/replace_glibc_check_with_linux.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | endianness check is OS wide and not specific to libc | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
7 | --- | ||
8 | src/util/u_endian.h | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/src/util/u_endian.h b/src/util/u_endian.h | ||
12 | index b9d563d..2d5eab9 100644 | ||
13 | --- a/src/util/u_endian.h | ||
14 | +++ b/src/util/u_endian.h | ||
15 | @@ -27,7 +27,7 @@ | ||
16 | #ifndef U_ENDIAN_H | ||
17 | #define U_ENDIAN_H | ||
18 | |||
19 | -#if defined(__GLIBC__) || defined(ANDROID) | ||
20 | +#if defined(__linux__) | ||
21 | #include <endian.h> | ||
22 | |||
23 | #if __BYTE_ORDER == __LITTLE_ENDIAN | ||
24 | -- | ||
25 | 2.1.4 | ||
26 | |||
diff --git a/meta-intel-extras/recipes/mesa/mesa_17.0.2.bb b/meta-intel-extras/recipes/mesa/mesa_17.0.2.bb deleted file mode 100644 index b95f301..0000000 --- a/meta-intel-extras/recipes/mesa/mesa_17.0.2.bb +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | require recipes-graphics/mesa/${BPN}.inc | ||
2 | |||
3 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/mesa-${PV}.tar.xz \ | ||
4 | file://replace_glibc_check_with_linux.patch \ | ||
5 | file://disable-asm-on-non-gcc.patch \ | ||
6 | file://0001-Use-wayland-scanner-in-the-path.patch \ | ||
7 | " | ||
8 | |||
9 | SRC_URI[md5sum] = "8f808e92b893d412fbd6510e1d16f5c5" | ||
10 | SRC_URI[sha256sum] = "f8f191f909e01e65de38d5bdea5fb057f21649a3aed20948be02348e77a689d4" | ||
11 | |||
12 | #because we cannot rely on the fact that all apps will use pkgconfig, | ||
13 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER | ||
14 | do_install_append() { | ||
15 | if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then | ||
16 | sed -i -e 's/^#if defined(MESA_EGL_NO_X11_HEADERS)$/#if defined(MESA_EGL_NO_X11_HEADERS) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h | ||
17 | fi | ||
18 | } | ||
diff --git a/scripts/manifest.xml b/scripts/manifest.xml index f6b291d..0798d8a 100644 --- a/scripts/manifest.xml +++ b/scripts/manifest.xml | |||
@@ -50,7 +50,7 @@ | |||
50 | groups="notdefault,external,rpi"/> | 50 | groups="notdefault,external,rpi"/> |
51 | <project name="meta-intel" | 51 | <project name="meta-intel" |
52 | remote="intel" | 52 | remote="intel" |
53 | revision="9b37952d6af36358b6397cedf3dd53ec8962b6bf" | 53 | revision="b736eed4746899e76a84545471bf06da09a8b64a" |
54 | path="sources/meta-intel" | 54 | path="sources/meta-intel" |
55 | groups="notdefault,external,intel"/> | 55 | groups="notdefault,external,intel"/> |
56 | <project name="meta-tegra" | 56 | <project name="meta-tegra" |