diff options
287 files changed, 6543 insertions, 3752 deletions
diff --git a/classes/fsl-eula-unpack.bbclass b/classes/fsl-eula-unpack.bbclass index 498d7826..5690898c 100644 --- a/classes/fsl-eula-unpack.bbclass +++ b/classes/fsl-eula-unpack.bbclass | |||
@@ -79,11 +79,11 @@ FSL_EULA_FILE_MD5SUM ?= \ | |||
79 | 79 | ||
80 | LIC_FILES_CHKSUM_LAYER ?= "file://${FSL_EULA_FILE};md5=${FSL_EULA_FILE_MD5SUM}" | 80 | LIC_FILES_CHKSUM_LAYER ?= "file://${FSL_EULA_FILE};md5=${FSL_EULA_FILE_MD5SUM}" |
81 | LIC_FILES_CHKSUM_LAYER[vardepsexclude] += "FSL_EULA_FILE" | 81 | LIC_FILES_CHKSUM_LAYER[vardepsexclude] += "FSL_EULA_FILE" |
82 | LIC_FILES_CHKSUM_append = " ${LIC_FILES_CHKSUM_LAYER}" | 82 | LIC_FILES_CHKSUM:append = " ${LIC_FILES_CHKSUM_LAYER}" |
83 | 83 | ||
84 | LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE" | 84 | LIC_FILES_CHKSUM[vardepsexclude] += "FSL_EULA_FILE" |
85 | 85 | ||
86 | do_fetch_prepend() { | 86 | do_fetch:prepend() { |
87 | if "Proprietary" not in d.getVar("LICENSE"): | 87 | if "Proprietary" not in d.getVar("LICENSE"): |
88 | bb.fatal("The recipe LICENSE should include Proprietary but is " + d.getVar("LICENSE") + ".") | 88 | bb.fatal("The recipe LICENSE should include Proprietary but is " + d.getVar("LICENSE") + ".") |
89 | } | 89 | } |
diff --git a/classes/fsl-u-boot-localversion.bbclass b/classes/fsl-u-boot-localversion.bbclass index 617aae1d..ebde8ea7 100644 --- a/classes/fsl-u-boot-localversion.bbclass +++ b/classes/fsl-u-boot-localversion.bbclass | |||
@@ -14,7 +14,7 @@ LOCALVERSION ??= "+fslc" | |||
14 | 14 | ||
15 | UBOOT_LOCALVERSION = "${LOCALVERSION}" | 15 | UBOOT_LOCALVERSION = "${LOCALVERSION}" |
16 | 16 | ||
17 | do_compile_prepend() { | 17 | do_compile:prepend() { |
18 | if [ "${SCMVERSION}" = "y" ]; then | 18 | if [ "${SCMVERSION}" = "y" ]; then |
19 | # Add GIT revision to the local version | 19 | # Add GIT revision to the local version |
20 | head=`cd ${S} ; git rev-parse --verify --short HEAD 2> /dev/null` | 20 | head=`cd ${S} ; git rev-parse --verify --short HEAD 2> /dev/null` |
diff --git a/classes/fsl-vivante-kernel-driver-handler.bbclass b/classes/fsl-vivante-kernel-driver-handler.bbclass index 8ac8a334..54954aab 100644 --- a/classes/fsl-vivante-kernel-driver-handler.bbclass +++ b/classes/fsl-vivante-kernel-driver-handler.bbclass | |||
@@ -41,15 +41,15 @@ python fsl_vivante_kernel_driver_handler () { | |||
41 | return | 41 | return |
42 | 42 | ||
43 | if use_vivante_kernel_driver_module != "1": | 43 | if use_vivante_kernel_driver_module != "1": |
44 | e.data.appendVar('RPROVIDES_${KERNEL_PACKAGE_NAME}-base', ' kernel-module-imx-gpu-viv') | 44 | e.data.appendVar('RPROVIDES:${KERNEL_PACKAGE_NAME}-base', ' kernel-module-imx-gpu-viv') |
45 | e.data.appendVar('RREPLACES_${KERNEL_PACKAGE_NAME}-base', ' kernel-module-imx-gpu-viv') | 45 | e.data.appendVar('RREPLACES:${KERNEL_PACKAGE_NAME}-base', ' kernel-module-imx-gpu-viv') |
46 | e.data.appendVar('RCONFLICTS_${KERNEL_PACKAGE_NAME}-base', ' kernel-module-imx-gpu-viv') | 46 | e.data.appendVar('RCONFLICTS:${KERNEL_PACKAGE_NAME}-base', ' kernel-module-imx-gpu-viv') |
47 | } | 47 | } |
48 | 48 | ||
49 | addhandler fsl_vivante_kernel_driver_handler | 49 | addhandler fsl_vivante_kernel_driver_handler |
50 | fsl_vivante_kernel_driver_handler[eventmask] = "bb.event.RecipePreFinalise" | 50 | fsl_vivante_kernel_driver_handler[eventmask] = "bb.event.RecipePreFinalise" |
51 | 51 | ||
52 | do_configure_append () { | 52 | do_configure:append () { |
53 | if [ "${MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT}" = "1" ]; then | 53 | if [ "${MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT}" = "1" ]; then |
54 | config="${B}/.config" | 54 | config="${B}/.config" |
55 | 55 | ||
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index c49c51b7..cdd16a66 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass | |||
@@ -11,7 +11,7 @@ MXSBOOT_NAND_ARGS ?= "" | |||
11 | # U-Boot mxsboot generation for uSD | 11 | # U-Boot mxsboot generation for uSD |
12 | do_image_uboot_mxsboot_sdcard[depends] += "u-boot-mxsboot-native:do_populate_sysroot \ | 12 | do_image_uboot_mxsboot_sdcard[depends] += "u-boot-mxsboot-native:do_populate_sysroot \ |
13 | u-boot:do_deploy" | 13 | u-boot:do_deploy" |
14 | IMAGE_CMD_uboot-mxsboot-sdcard() { | 14 | IMAGE_CMD:uboot-mxsboot-sdcard() { |
15 | mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \ | 15 | mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \ |
16 | ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard | 16 | ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard |
17 | ln -sf ${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard \ | 17 | ln -sf ${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard \ |
@@ -21,7 +21,7 @@ IMAGE_CMD_uboot-mxsboot-sdcard() { | |||
21 | # U-Boot mxsboot generation for NAND | 21 | # U-Boot mxsboot generation for NAND |
22 | do_image_uboot_mxsboot_nand[depends] += "u-boot-mxsboot-native:do_populate_sysroot \ | 22 | do_image_uboot_mxsboot_nand[depends] += "u-boot-mxsboot-native:do_populate_sysroot \ |
23 | u-boot:do_deploy" | 23 | u-boot:do_deploy" |
24 | IMAGE_CMD_uboot-mxsboot-nand() { | 24 | IMAGE_CMD:uboot-mxsboot-nand() { |
25 | mxsboot ${MXSBOOT_NAND_ARGS} nand \ | 25 | mxsboot ${MXSBOOT_NAND_ARGS} nand \ |
26 | ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \ | 26 | ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.${UBOOT_SUFFIX} \ |
27 | ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot-mxsboot-nand | 27 | ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot-mxsboot-nand |
@@ -37,7 +37,7 @@ do_image_wic[depends] += " \ | |||
37 | " | 37 | " |
38 | 38 | ||
39 | # We need to apply a fixup inside of the partition table | 39 | # We need to apply a fixup inside of the partition table |
40 | IMAGE_CMD_wic_append_mxs() { | 40 | IMAGE_CMD:wic:append:mxs() { |
41 | # Change partition type for mxs processor family | 41 | # Change partition type for mxs processor family |
42 | bbnote "Setting partition type to 0x53 as required for mxs' SoC family." | 42 | bbnote "Setting partition type to 0x53 as required for mxs' SoC family." |
43 | echo -n S | dd of=$out${IMAGE_NAME_SUFFIX}.wic bs=1 count=1 seek=450 conv=notrunc | 43 | echo -n S | dd of=$out${IMAGE_NAME_SUFFIX}.wic bs=1 count=1 seek=450 conv=notrunc |
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass index 3f788900..3ffa7cbd 100644 --- a/classes/imx-boot-container.bbclass +++ b/classes/imx-boot-container.bbclass | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | # Define ATF binary file to be deployed to the U-Boot build folder | 24 | # Define ATF binary file to be deployed to the U-Boot build folder |
25 | ATF_MACHINE_NAME = "bl31-${ATF_PLATFORM}.bin" | 25 | ATF_MACHINE_NAME = "bl31-${ATF_PLATFORM}.bin" |
26 | ATF_MACHINE_NAME_append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" | 26 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" |
27 | 27 | ||
28 | # This package aggregates output deployed by other packages, so set the | 28 | # This package aggregates output deployed by other packages, so set the |
29 | # appropriate dependencies for populate binaries task | 29 | # appropriate dependencies for populate binaries task |
@@ -76,7 +76,7 @@ addtask do_resolve_and_populate_binaries before do_compile after do_configure | |||
76 | # This effectively would allow the usage of the same WKS file for those | 76 | # This effectively would allow the usage of the same WKS file for those |
77 | # derivatives that are using the boot container from U-Boot and those | 77 | # derivatives that are using the boot container from U-Boot and those |
78 | # that are not yet have support for it enabled. | 78 | # that are not yet have support for it enabled. |
79 | do_deploy_append() { | 79 | do_deploy:append() { |
80 | # Deploy the resulted flash.bin for WIC to pick it up | 80 | # Deploy the resulted flash.bin for WIC to pick it up |
81 | if [ -n "${UBOOT_CONFIG}" ]; then | 81 | if [ -n "${UBOOT_CONFIG}" ]; then |
82 | for config in ${UBOOT_MACHINE}; do | 82 | for config in ${UBOOT_MACHINE}; do |
diff --git a/classes/kernel-imximage.bbclass b/classes/kernel-imximage.bbclass index 234cc00d..ccf7ec53 100644 --- a/classes/kernel-imximage.bbclass +++ b/classes/kernel-imximage.bbclass | |||
@@ -17,7 +17,7 @@ | |||
17 | # | 17 | # |
18 | # Copyright 2017 (C) O.S. Systems Software LTDA. | 18 | # Copyright 2017 (C) O.S. Systems Software LTDA. |
19 | 19 | ||
20 | DEPENDS_append = ' u-boot-mkimage-native' | 20 | DEPENDS:append = ' u-boot-mkimage-native' |
21 | 21 | ||
22 | IMXIMAGE_ENTRYPOINT ?= "${UBOOT_ENTRYPOINT}" | 22 | IMXIMAGE_ENTRYPOINT ?= "${UBOOT_ENTRYPOINT}" |
23 | 23 | ||
@@ -55,6 +55,6 @@ gen_imximage() { | |||
55 | done | 55 | done |
56 | } | 56 | } |
57 | 57 | ||
58 | do_deploy_append() { | 58 | do_deploy:append() { |
59 | gen_imximage | 59 | gen_imximage |
60 | } | 60 | } |
diff --git a/classes/kernel-itbimage.bbclass b/classes/kernel-itbimage.bbclass index 84262879..51a87319 100644 --- a/classes/kernel-itbimage.bbclass +++ b/classes/kernel-itbimage.bbclass | |||
@@ -459,7 +459,7 @@ addtask assemble_fitimage_initramfs before do_deploy after do_install | |||
459 | 459 | ||
460 | 460 | ||
461 | kernel_do_deploy[vardepsexclude] = "DATETIME" | 461 | kernel_do_deploy[vardepsexclude] = "DATETIME" |
462 | kernel_do_deploy_append() { | 462 | kernel_do_deploy:append() { |
463 | # Update deploy directory | 463 | # Update deploy directory |
464 | if echo ${KERNEL_IMAGETYPES} | grep -wq "itbImage"; then | 464 | if echo ${KERNEL_IMAGETYPES} | grep -wq "itbImage"; then |
465 | cd ${B} | 465 | cd ${B} |
diff --git a/classes/machine-overrides-extender.bbclass b/classes/machine-overrides-extender.bbclass index 4b7d66d5..876ddd10 100644 --- a/classes/machine-overrides-extender.bbclass +++ b/classes/machine-overrides-extender.bbclass | |||
@@ -5,12 +5,12 @@ | |||
5 | # | 5 | # |
6 | # To indicate that a SoC contains following set of overrides, you can use: | 6 | # To indicate that a SoC contains following set of overrides, you can use: |
7 | # | 7 | # |
8 | # MACHINEOVERRIDES_EXTENDER_soc = "group1:group2" | 8 | # MACHINEOVERRIDES_EXTENDER:soc = "group1:group2" |
9 | # | 9 | # |
10 | # However to indicate that an override replaces a set of other | 10 | # However to indicate that an override replaces a set of other |
11 | # overrides, you can use: | 11 | # overrides, you can use: |
12 | # | 12 | # |
13 | # MACHINEOVERRIDES_EXTENDER_FILTER_OUT_override = "group1 group2" | 13 | # MACHINEOVERRIDES_EXTENDER_FILTER_OUT:override = "group1 group2" |
14 | # | 14 | # |
15 | # Copyright 2016-2018 (C) O.S. Systems Software LTDA. | 15 | # Copyright 2016-2018 (C) O.S. Systems Software LTDA. |
16 | 16 | ||
@@ -20,13 +20,13 @@ def machine_overrides_extender(d): | |||
20 | # Gather the list of overrides to filter out | 20 | # Gather the list of overrides to filter out |
21 | machine_overrides_filter_out = [] | 21 | machine_overrides_filter_out = [] |
22 | for override in machine_overrides: | 22 | for override in machine_overrides: |
23 | machine_overrides_filter_out += (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT_%s' % override) or '').split() | 23 | machine_overrides_filter_out += (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT:%s' % override) or '').split() |
24 | 24 | ||
25 | # Drop any overrides of filter_out prior extending | 25 | # Drop any overrides of filter_out prior extending |
26 | machine_overrides = [o for o in machine_overrides if o not in machine_overrides_filter_out] | 26 | machine_overrides = [o for o in machine_overrides if o not in machine_overrides_filter_out] |
27 | 27 | ||
28 | for override in machine_overrides: | 28 | for override in machine_overrides: |
29 | extender = d.getVar('MACHINEOVERRIDES_EXTENDER_%s' % override) | 29 | extender = d.getVar('MACHINEOVERRIDES_EXTENDER:%s' % override) |
30 | 30 | ||
31 | if extender: | 31 | if extender: |
32 | extender = extender.split(':') | 32 | extender = extender.split(':') |
diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass index 65028b8f..1d4c5513 100644 --- a/classes/mfgtool-initramfs-image.bbclass +++ b/classes/mfgtool-initramfs-image.bbclass | |||
@@ -13,7 +13,7 @@ FEATURE_PACKAGES_extfs = "packagegroup-fsl-mfgtool-extfs" | |||
13 | FEATURE_PACKAGES_f2fs = "packagegroup-fsl-mfgtool-f2fs" | 13 | FEATURE_PACKAGES_f2fs = "packagegroup-fsl-mfgtool-f2fs" |
14 | 14 | ||
15 | IMAGE_FSTYPES = "cpio.gz.u-boot" | 15 | IMAGE_FSTYPES = "cpio.gz.u-boot" |
16 | IMAGE_FSTYPES_mxs = "cpio.gz.u-boot" | 16 | IMAGE_FSTYPES:mxs = "cpio.gz.u-boot" |
17 | IMAGE_ROOTFS_SIZE ?= "8192" | 17 | IMAGE_ROOTFS_SIZE ?= "8192" |
18 | 18 | ||
19 | # Filesystems enabled by default | 19 | # Filesystems enabled by default |
diff --git a/classes/qoriq_build_64bit_kernel.bbclass b/classes/qoriq_build_64bit_kernel.bbclass index 93b4d412..5186c2a4 100644 --- a/classes/qoriq_build_64bit_kernel.bbclass +++ b/classes/qoriq_build_64bit_kernel.bbclass | |||
@@ -1,13 +1,13 @@ | |||
1 | inherit features_check | 1 | inherit features_check |
2 | REQUIRED_DISTRO_FEATURES_e6500 += "multiarch" | 2 | REQUIRED_DISTRO_FEATURES:e6500 += "multiarch" |
3 | 3 | ||
4 | python () { | 4 | python () { |
5 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL', False) | 5 | promote_kernel = d.getVar('BUILD_64BIT_KERNEL', False) |
6 | if promote_kernel == "1": | 6 | if promote_kernel == "1": |
7 | sys_multilib = 'powerpc64' + d.getVar('TARGET_VENDOR', False) + 'mllib64-' + d.getVar('HOST_OS', False) | 7 | sys_multilib = 'powerpc64' + d.getVar('TARGET_VENDOR', False) + 'mllib64-' + d.getVar('HOST_OS', False) |
8 | tc_options = d.getVar('TOOLCHAIN_OPTIONS', False) + '/../lib64-' + d.getVar("MACHINE", False) | 8 | tc_options = d.getVar('TOOLCHAIN_OPTIONS', False) + '/../lib64-' + d.getVar("MACHINE", False) |
9 | d.setVar('DEPENDS_append', ' lib64-gcc-cross-powerpc64 lib64-libgcc') | 9 | d.setVar('DEPENDS:append', ' lib64-gcc-cross-powerpc64 lib64-libgcc') |
10 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib) | 10 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib) |
11 | d.setVar('KERNEL_CC', d.getVar('CCACHE', False) + sys_multilib + '-' + 'gcc' + d.getVar('HOST_CC_KERNEL_ARCH', False) + tc_options) | 11 | d.setVar('KERNEL_CC', d.getVar('CCACHE', False) + sys_multilib + '-' + 'gcc' + d.getVar('HOST_CC_KERNEL_ARCH', False) + tc_options) |
12 | d.setVar('KERNEL_LD', d.getVar('CCACHE', False) + sys_multilib + '-' + 'ld.bfd' + d.getVar('HOST_LD_KERNEL_ARCH', False) + tc_options) | 12 | d.setVar('KERNEL_LD', d.getVar('CCACHE', False) + sys_multilib + '-' + 'ld.bfd' + d.getVar('HOST_LD_KERNEL_ARCH', False) + tc_options) |
13 | d.setVar('KERNEL_AR', d.getVar('CCACHE', False) + sys_multilib + '-' + 'ar' + d.getVar('HOST_AR_KERNEL_ARCH', False)) | 13 | d.setVar('KERNEL_AR', d.getVar('CCACHE', False) + sys_multilib + '-' + 'ar' + d.getVar('HOST_AR_KERNEL_ARCH', False)) |
diff --git a/classes/use-imx-headers.bbclass b/classes/use-imx-headers.bbclass index fcec68c8..c6c7f043 100644 --- a/classes/use-imx-headers.bbclass +++ b/classes/use-imx-headers.bbclass | |||
@@ -13,14 +13,14 @@ | |||
13 | # | 13 | # |
14 | # Copyright 2018 (C) O.S. Systems Software LTDA. | 14 | # Copyright 2018 (C) O.S. Systems Software LTDA. |
15 | 15 | ||
16 | DEPENDS_append_imx = " linux-imx-headers" | 16 | DEPENDS:append:imx = " linux-imx-headers" |
17 | 17 | ||
18 | # Set runtime dependency of -dev for package inheriting this class to | 18 | # Set runtime dependency of -dev for package inheriting this class to |
19 | # linux-imx-headers-dev package. This is required in order to propagate | 19 | # linux-imx-headers-dev package. This is required in order to propagate |
20 | # headers into the SDK | 20 | # headers into the SDK |
21 | RDEPENDS_${PN}-dev += "linux-imx-headers-dev" | 21 | RDEPENDS:${PN}-dev += "linux-imx-headers-dev" |
22 | 22 | ||
23 | PACKAGE_ARCH_imx ?= "${MACHINE_SOCARCH}" | 23 | PACKAGE_ARCH:imx ?= "${MACHINE_SOCARCH}" |
24 | 24 | ||
25 | STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx" | 25 | STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx" |
26 | 26 | ||
@@ -34,4 +34,4 @@ STAGING_INCDIR_IMX = "${STAGING_INCDIR}/imx" | |||
34 | # Typical example here would be imx-vpu-hantro recipe, which requires NXP | 34 | # Typical example here would be imx-vpu-hantro recipe, which requires NXP |
35 | # BSP and is not compatible with mainline. | 35 | # BSP and is not compatible with mainline. |
36 | COMPATIBLE_HOST = '(null)' | 36 | COMPATIBLE_HOST = '(null)' |
37 | COMPATIBLE_HOST_use-nxp-bsp = '.*' | 37 | COMPATIBLE_HOST:use-nxp-bsp = '.*' |
diff --git a/classes/use-imx-security-controller-firmware.bbclass b/classes/use-imx-security-controller-firmware.bbclass index 7c79fc62..9650059b 100644 --- a/classes/use-imx-security-controller-firmware.bbclass +++ b/classes/use-imx-security-controller-firmware.bbclass | |||
@@ -18,11 +18,11 @@ | |||
18 | 18 | ||
19 | SECO_FIRMWARE_NAME ?= "" | 19 | SECO_FIRMWARE_NAME ?= "" |
20 | 20 | ||
21 | SECO_FIRMWARE_NAME_mx8qm = "mx8qmb0-ahab-container.img" | 21 | SECO_FIRMWARE_NAME:mx8qm = "mx8qmb0-ahab-container.img" |
22 | SECO_FIRMWARE_NAME_mx8qxp = \ | 22 | SECO_FIRMWARE_NAME:mx8qxp = \ |
23 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', 'mx8qxb0-ahab-container.img', \ | 23 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', 'mx8qxb0-ahab-container.img', \ |
24 | 'mx8qxc0-ahab-container.img', d)}" | 24 | 'mx8qxc0-ahab-container.img', d)}" |
25 | SECO_FIRMWARE_NAME_mx8dxl = "mx8dxla1-ahab-container.img" | 25 | SECO_FIRMWARE_NAME:mx8dxl = "mx8dxla1-ahab-container.img" |
26 | 26 | ||
27 | python () { | 27 | python () { |
28 | if "mx8m" in d.getVar('MACHINEOVERRIDES').split(":"): | 28 | if "mx8m" in d.getVar('MACHINEOVERRIDES').split(":"): |
diff --git a/conf/layer.conf b/conf/layer.conf index e07b65ab..77e704ed 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
@@ -8,7 +8,7 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | |||
8 | BBFILE_COLLECTIONS += "freescale-layer" | 8 | BBFILE_COLLECTIONS += "freescale-layer" |
9 | BBFILE_PATTERN_freescale-layer := "^${LAYERDIR}/" | 9 | BBFILE_PATTERN_freescale-layer := "^${LAYERDIR}/" |
10 | BBFILE_PRIORITY_freescale-layer = "5" | 10 | BBFILE_PRIORITY_freescale-layer = "5" |
11 | LAYERSERIES_COMPAT_freescale-layer = "gatesgarth hardknott" | 11 | LAYERSERIES_COMPAT_freescale-layer = "honister" |
12 | 12 | ||
13 | # Add the Freescale-specific licenses into the metadata | 13 | # Add the Freescale-specific licenses into the metadata |
14 | LICENSE_PATH += "${LAYERDIR}/custom-licenses" | 14 | LICENSE_PATH += "${LAYERDIR}/custom-licenses" |
diff --git a/conf/machine/imx23evk.conf b/conf/machine/imx23evk.conf index 8abc5a95..5e8be1e9 100644 --- a/conf/machine/imx23evk.conf +++ b/conf/machine/imx23evk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mxs:mx23:" | 7 | MACHINEOVERRIDES =. "mxs:mx23:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-arm926ejs.inc | 10 | include conf/machine/include/arm/armv5/tune-arm926ejs.inc |
11 | 11 | ||
12 | # This machine is not supported by u-boot-imx as it is not tested by NXP on this | 12 | # This machine is not supported by u-boot-imx as it is not tested by NXP on this |
13 | # board. So we force it to use u-boot-fslc which is based on mainline here. | 13 | # board. So we force it to use u-boot-fslc which is based on mainline here. |
diff --git a/conf/machine/imx25pdk.conf b/conf/machine/imx25pdk.conf index 5721e845..2abadb25 100644 --- a/conf/machine/imx25pdk.conf +++ b/conf/machine/imx25pdk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx25:" | 7 | MACHINEOVERRIDES =. "mx25:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-arm926ejs.inc | 10 | include conf/machine/include/arm/armv5/tune-arm926ejs.inc |
11 | 11 | ||
12 | # This machine is not supported by u-boot-imx as it is not tested by NXP on this | 12 | # This machine is not supported by u-boot-imx as it is not tested by NXP on this |
13 | # board. So we force it to use u-boot-fslc which is based on mainline here. | 13 | # board. So we force it to use u-boot-fslc which is based on mainline here. |
diff --git a/conf/machine/imx28evk.conf b/conf/machine/imx28evk.conf index 4f69dae4..9763a396 100644 --- a/conf/machine/imx28evk.conf +++ b/conf/machine/imx28evk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mxs:mx28:" | 7 | MACHINEOVERRIDES =. "mxs:mx28:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-arm926ejs.inc | 10 | include conf/machine/include/arm/armv5/tune-arm926ejs.inc |
11 | 11 | ||
12 | # This machine is not supported by u-boot-imx as it is not tested by NXP on this | 12 | # This machine is not supported by u-boot-imx as it is not tested by NXP on this |
13 | # board. So we force it to use u-boot-fslc which is based on mainline here. | 13 | # board. So we force it to use u-boot-fslc which is based on mainline here. |
diff --git a/conf/machine/imx51evk.conf b/conf/machine/imx51evk.conf index 80d7b386..7c66435d 100644 --- a/conf/machine/imx51evk.conf +++ b/conf/machine/imx51evk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx5:mx51:" | 7 | MACHINEOVERRIDES =. "mx5:mx51:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa8.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa8.inc |
11 | 11 | ||
12 | KERNEL_DEVICETREE = "imx51-babbage.dtb" | 12 | KERNEL_DEVICETREE = "imx51-babbage.dtb" |
13 | 13 | ||
diff --git a/conf/machine/imx53ard.conf b/conf/machine/imx53ard.conf index af5aeb3b..b2c65b84 100644 --- a/conf/machine/imx53ard.conf +++ b/conf/machine/imx53ard.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx5:mx53:" | 7 | MACHINEOVERRIDES =. "mx5:mx53:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa8.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa8.inc |
11 | 11 | ||
12 | # Disable perf features as 2.6.35.3 fails to build otherwise | 12 | # Disable perf features as 2.6.35.3 fails to build otherwise |
13 | PERF_FEATURES_ENABLE = "" | 13 | PERF_FEATURES_ENABLE = "" |
diff --git a/conf/machine/imx53qsb.conf b/conf/machine/imx53qsb.conf index 06d4a756..0d6a7b22 100644 --- a/conf/machine/imx53qsb.conf +++ b/conf/machine/imx53qsb.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx5:mx53:" | 7 | MACHINEOVERRIDES =. "mx5:mx53:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa8.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa8.inc |
11 | 11 | ||
12 | KERNEL_DEVICETREE = "imx53-qsb.dtb imx53-qsrb.dtb" | 12 | KERNEL_DEVICETREE = "imx53-qsb.dtb imx53-qsrb.dtb" |
13 | 13 | ||
diff --git a/conf/machine/imx6qdlsabreauto.conf b/conf/machine/imx6qdlsabreauto.conf index b7aec8c2..171b9f00 100644 --- a/conf/machine/imx6qdlsabreauto.conf +++ b/conf/machine/imx6qdlsabreauto.conf | |||
@@ -14,7 +14,7 @@ | |||
14 | MACHINEOVERRIDES =. "mx6:mx6q:mx6dl:" | 14 | MACHINEOVERRIDES =. "mx6:mx6q:mx6dl:" |
15 | 15 | ||
16 | require conf/machine/include/imx-base.inc | 16 | require conf/machine/include/imx-base.inc |
17 | require conf/machine/include/tune-cortexa9.inc | 17 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
18 | 18 | ||
19 | KERNEL_DEVICETREE = " \ | 19 | KERNEL_DEVICETREE = " \ |
20 | imx6qp-sabreauto.dtb imx6qp-sabreauto-ecspi.dtb imx6qp-sabreauto-flexcan1.dtb \ | 20 | imx6qp-sabreauto.dtb imx6qp-sabreauto-ecspi.dtb imx6qp-sabreauto-flexcan1.dtb \ |
@@ -26,34 +26,46 @@ KERNEL_DEVICETREE = " \ | |||
26 | imx6dl-sabreauto.dtb imx6dl-sabreauto-gpmi-weim.dtb imx6dl-sabreauto-ecspi.dtb \ | 26 | imx6dl-sabreauto.dtb imx6dl-sabreauto-gpmi-weim.dtb imx6dl-sabreauto-ecspi.dtb \ |
27 | imx6dl-sabreauto-flexcan1.dtb imx6dl-sabreauto-enetirq.dtb \ | 27 | imx6dl-sabreauto-flexcan1.dtb imx6dl-sabreauto-enetirq.dtb \ |
28 | " | 28 | " |
29 | KERNEL_DEVICETREE_use-mainline-bsp = " \ | 29 | KERNEL_DEVICETREE:use-mainline-bsp = " \ |
30 | imx6qp-sabreauto.dtb \ | 30 | imx6qp-sabreauto.dtb \ |
31 | imx6q-sabreauto.dtb \ | 31 | imx6q-sabreauto.dtb \ |
32 | imx6dl-sabreauto.dtb \ | 32 | imx6dl-sabreauto.dtb \ |
33 | " | 33 | " |
34 | 34 | ||
35 | ### u-boot-fslc settings ### | 35 | ### u-boot-fslc settings ### |
36 | 36 | SPL_BINARY:pn-u-boot-fslc = "SPL" | |
37 | SPL_BINARY_pn-u-boot-fslc = "SPL" | 37 | UBOOT_CONFIG:pn-u-boot-fslc ??= "sd-fslc" |
38 | UBOOT_MACHINE_pn-u-boot-fslc ?= "mx6sabreauto_defconfig" | 38 | UBOOT_SUFFIX:pn-u-boot-fslc = "img" |
39 | UBOOT_SUFFIX_pn-u-boot-fslc = "img" | ||
40 | 39 | ||
41 | ### u-boot-imx settings ### | 40 | ### u-boot-imx settings ### |
41 | SPL_BINARY:pn-u-boot-imx = "" | ||
42 | UBOOT_CONFIG:pn-u-boot-imx ??= " \ | ||
43 | sd-imx \ | ||
44 | ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'sd-optee-imx', '', d)} \ | ||
45 | " | ||
46 | UBOOT_MAKE_TARGET:pn-u-boot-imx = "u-boot.imx" | ||
47 | UBOOT_SUFFIX:pn-u-boot-imx = "imx" | ||
42 | 48 | ||
43 | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC | 49 | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC |
44 | # variants. Change the defconfig to the targeted SoC variant. | 50 | # variants. Change the defconfig to the targeted SoC variant. |
45 | SPL_BINARY_pn-u-boot-imx = "" | 51 | UBOOT_CONFIG[sd-fslc] = "mx6sabreauto_defconfig,sdcard" |
46 | UBOOT_MACHINE_pn-u-boot-imx = "mx6qsabreauto_defconfig" | 52 | UBOOT_CONFIG[sd-imx] = "mx6qpsabreauto_defconfig,sdcard" |
47 | UBOOT_MAKE_TARGET_pn-u-boot-imx = "u-boot.imx" | 53 | UBOOT_CONFIG[sd-optee-imx] = "mx6qpsabreauto_optee_defconfig,sdcard" |
48 | UBOOT_SUFFIX_pn-u-boot-imx = "imx" | 54 | UBOOT_CONFIG[eimnor-imx] = "mx6qpsabreauto_eimnor_defconfig" |
55 | UBOOT_CONFIG[nand-imx] = "mx6qpsabreauto_nand_defconfig,ubifs" | ||
56 | UBOOT_CONFIG[spinor-imx] = "mx6qpsabreauto_spinor_defconfig" | ||
57 | UBOOT_CONFIG[sata-imx] = "mx6qpsabreauto_sata_defconfig" | ||
58 | UBOOT_CONFIG[mfgtool-imx] = "mx6qpsabreauto_defconfig" | ||
49 | 59 | ||
50 | WKS_FILE = " \ | 60 | WKS_FILE = " \ |
51 | ${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', \ | 61 | ${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', \ |
52 | 'u-boot-fslc', 'imx-uboot-spl-bootpart.wks.in', \ | 62 | 'u-boot-fslc', 'imx-uboot-spl-bootpart.wks.in', \ |
53 | 'imx-uboot-bootpart.wks.in', d)}" | 63 | 'imx-uboot-bootpart.wks.in', d)}" |
54 | 64 | ||
65 | OPTEE_BIN_EXT = "6qpauto" | ||
66 | |||
55 | SERIAL_CONSOLES = "115200;ttymxc3" | 67 | SERIAL_CONSOLES = "115200;ttymxc3" |
56 | 68 | ||
57 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" | 69 | MACHINE_FIRMWARE:append:mx6 = " linux-firmware-ath6k" |
58 | 70 | ||
59 | MACHINE_FEATURES += " pci wifi bluetooth" | 71 | MACHINE_FEATURES += " pci wifi bluetooth" |
diff --git a/conf/machine/imx6qdlsabresd.conf b/conf/machine/imx6qdlsabresd.conf index b3d09e93..a5133625 100644 --- a/conf/machine/imx6qdlsabresd.conf +++ b/conf/machine/imx6qdlsabresd.conf | |||
@@ -14,7 +14,7 @@ | |||
14 | MACHINEOVERRIDES =. "mx6:mx6q:mx6dl:" | 14 | MACHINEOVERRIDES =. "mx6:mx6q:mx6dl:" |
15 | 15 | ||
16 | require conf/machine/include/imx-base.inc | 16 | require conf/machine/include/imx-base.inc |
17 | require conf/machine/include/tune-cortexa9.inc | 17 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
18 | 18 | ||
19 | KERNEL_DEVICETREE = " \ | 19 | KERNEL_DEVICETREE = " \ |
20 | imx6qp-sabresd-btwifi.dtb \ | 20 | imx6qp-sabresd-btwifi.dtb \ |
@@ -35,34 +35,43 @@ KERNEL_DEVICETREE = " \ | |||
35 | imx6dl-sabresd-hdcp.dtb \ | 35 | imx6dl-sabresd-hdcp.dtb \ |
36 | imx6dl-sabresd-ldo.dtb \ | 36 | imx6dl-sabresd-ldo.dtb \ |
37 | " | 37 | " |
38 | KERNEL_DEVICETREE_use-mainline-bsp = " \ | 38 | KERNEL_DEVICETREE:use-mainline-bsp = " \ |
39 | imx6qp-sabresd.dtb \ | 39 | imx6qp-sabresd.dtb \ |
40 | imx6q-sabresd.dtb \ | 40 | imx6q-sabresd.dtb \ |
41 | imx6dl-sabresd.dtb \ | 41 | imx6dl-sabresd.dtb \ |
42 | " | 42 | " |
43 | 43 | ||
44 | ### u-boot-fslc settings ### | 44 | ### u-boot-fslc settings ### |
45 | 45 | SPL_BINARY:pn-u-boot-fslc = "SPL" | |
46 | SPL_BINARY_pn-u-boot-fslc = "SPL" | 46 | UBOOT_CONFIG:pn-u-boot-fslc ??= "sd-fslc" |
47 | UBOOT_MACHINE_pn-u-boot-fslc ?= "mx6sabresd_defconfig" | 47 | UBOOT_SUFFIX:pn-u-boot-fslc = "img" |
48 | UBOOT_SUFFIX_pn-u-boot-fslc = "img" | ||
49 | 48 | ||
50 | ### u-boot-imx settings ### | 49 | ### u-boot-imx settings ### |
50 | SPL_BINARY:pn-u-boot-imx = "" | ||
51 | UBOOT_CONFIG:pn-u-boot-imx ??= " \ | ||
52 | sd-imx \ | ||
53 | ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'sd-optee-imx', '', d)} \ | ||
54 | " | ||
55 | UBOOT_MAKE_TARGET:pn-u-boot-imx = "u-boot.imx" | ||
56 | UBOOT_SUFFIX:pn-u-boot-imx = "imx" | ||
51 | 57 | ||
52 | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC | 58 | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC |
53 | # variants. Change the defconfig to the targeted SoC variant. | 59 | # variants. Change the defconfig to the targeted SoC variant. |
54 | SPL_BINARY_pn-u-boot-imx = "" | 60 | UBOOT_CONFIG[sd-fslc] = "mx6sabresd_defconfig,sdcard" |
55 | UBOOT_MACHINE_pn-u-boot-imx ?= "mx6qsabresd_defconfig" | 61 | UBOOT_CONFIG[sd-imx] = "mx6qsabresd_defconfig,sdcard" |
56 | UBOOT_MAKE_TARGET_pn-u-boot-imx = "u-boot.imx" | 62 | UBOOT_CONFIG[sd-optee-imx] = "mx6qsabresd_optee_defconfig,sdcard" |
57 | UBOOT_SUFFIX_pn-u-boot-imx = "imx" | 63 | UBOOT_CONFIG[sata-imx] = "mx6qsabresd_sata_defconfig" |
64 | UBOOT_CONFIG[mfgtool-imx] = "mx6qsabresd_defconfig" | ||
58 | 65 | ||
59 | WKS_FILE = " \ | 66 | WKS_FILE = " \ |
60 | ${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', \ | 67 | ${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', \ |
61 | 'u-boot-fslc', 'imx-uboot-spl-bootpart.wks.in', \ | 68 | 'u-boot-fslc', 'imx-uboot-spl-bootpart.wks.in', \ |
62 | 'imx-uboot-bootpart.wks.in', d)}" | 69 | 'imx-uboot-bootpart.wks.in', d)}" |
63 | 70 | ||
71 | OPTEE_BIN_EXT = "6qsdb" | ||
72 | |||
64 | SERIAL_CONSOLES = "115200;ttymxc0" | 73 | SERIAL_CONSOLES = "115200;ttymxc0" |
65 | 74 | ||
66 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" | 75 | MACHINE_FIRMWARE:append:mx6 = " linux-firmware-ath6k" |
67 | 76 | ||
68 | MACHINE_FEATURES += " pci wifi bluetooth" | 77 | MACHINE_FEATURES += " pci wifi bluetooth" |
diff --git a/conf/machine/imx6slevk.conf b/conf/machine/imx6slevk.conf index 1e8c403b..b25182ba 100644 --- a/conf/machine/imx6slevk.conf +++ b/conf/machine/imx6slevk.conf | |||
@@ -7,10 +7,10 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6sl:" | 7 | MACHINEOVERRIDES =. "mx6:mx6sl:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa9.inc | 10 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
11 | 11 | ||
12 | KERNEL_DEVICETREE = "imx6sl-evk.dtb" | 12 | KERNEL_DEVICETREE = "imx6sl-evk.dtb" |
13 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 13 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
14 | imx6sl-evk-btwifi.dtb \ | 14 | imx6sl-evk-btwifi.dtb \ |
15 | imx6sl-evk-csi.dtb \ | 15 | imx6sl-evk-csi.dtb \ |
16 | imx6sl-evk-ldo.dtb \ | 16 | imx6sl-evk-ldo.dtb \ |
diff --git a/conf/machine/imx6sllevk.conf b/conf/machine/imx6sllevk.conf index 30b537f1..ea525845 100644 --- a/conf/machine/imx6sllevk.conf +++ b/conf/machine/imx6sllevk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6sll:" | 7 | MACHINEOVERRIDES =. "mx6:mx6sll:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa9.inc | 10 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
11 | 11 | ||
12 | KERNEL_DEVICETREE = "imx6sll-evk.dtb" | 12 | KERNEL_DEVICETREE = "imx6sll-evk.dtb" |
13 | 13 | ||
@@ -23,7 +23,7 @@ UBOOT_CONFIG[sd-optee] = "mx6sllevk_optee_config,sdcard" | |||
23 | UBOOT_CONFIG[epdc] = "mx6sllevk_epdc_config" | 23 | UBOOT_CONFIG[epdc] = "mx6sllevk_epdc_config" |
24 | UBOOT_CONFIG[mfgtool] = "mx6sllevk_config" | 24 | UBOOT_CONFIG[mfgtool] = "mx6sllevk_config" |
25 | 25 | ||
26 | OPTEE_BIN_EXT_imx6sllevk = "6sllevk" | 26 | OPTEE_BIN_EXT:imx6sllevk = "6sllevk" |
27 | 27 | ||
28 | SERIAL_CONSOLES = "115200;ttymxc0" | 28 | SERIAL_CONSOLES = "115200;ttymxc0" |
29 | 29 | ||
diff --git a/conf/machine/imx6sxsabreauto.conf b/conf/machine/imx6sxsabreauto.conf index f7031ccb..9e83c458 100644 --- a/conf/machine/imx6sxsabreauto.conf +++ b/conf/machine/imx6sxsabreauto.conf | |||
@@ -7,10 +7,10 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6sx:" | 7 | MACHINEOVERRIDES =. "mx6:mx6sx:" |
8 | 8 | ||
9 | require conf/machine/include/imx-base.inc | 9 | require conf/machine/include/imx-base.inc |
10 | require conf/machine/include/tune-cortexa9.inc | 10 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
11 | 11 | ||
12 | KERNEL_DEVICETREE = "imx6sx-sabreauto.dtb" | 12 | KERNEL_DEVICETREE = "imx6sx-sabreauto.dtb" |
13 | KERNEL_DEVICETREE_use-mainline-bsp = "imx6sx-sabreauto.dtb" | 13 | KERNEL_DEVICETREE:use-mainline-bsp = "imx6sx-sabreauto.dtb" |
14 | 14 | ||
15 | UBOOT_MAKE_TARGET = "u-boot.imx" | 15 | UBOOT_MAKE_TARGET = "u-boot.imx" |
16 | UBOOT_SUFFIX = "imx" | 16 | UBOOT_SUFFIX = "imx" |
@@ -29,6 +29,6 @@ OPTEE_BIN_EXT = "6sxauto" | |||
29 | 29 | ||
30 | SERIAL_CONSOLES = "115200;ttymxc3" | 30 | SERIAL_CONSOLES = "115200;ttymxc3" |
31 | 31 | ||
32 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" | 32 | MACHINE_FIRMWARE:append:mx6 = " linux-firmware-ath6k" |
33 | 33 | ||
34 | MACHINE_FEATURES += " pci wifi bluetooth" | 34 | MACHINE_FEATURES += " pci wifi bluetooth" |
diff --git a/conf/machine/imx6sxsabresd.conf b/conf/machine/imx6sxsabresd.conf index ff7d6ae6..d0a89596 100644 --- a/conf/machine/imx6sxsabresd.conf +++ b/conf/machine/imx6sxsabresd.conf | |||
@@ -7,14 +7,14 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6sx:" | 7 | MACHINEOVERRIDES =. "mx6:mx6sx:" |
8 | 8 | ||
9 | require conf/machine/include/imx-base.inc | 9 | require conf/machine/include/imx-base.inc |
10 | require conf/machine/include/tune-cortexa9.inc | 10 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
11 | 11 | ||
12 | KERNEL_DEVICETREE = " \ | 12 | KERNEL_DEVICETREE = " \ |
13 | imx6sx-sdb.dtb \ | 13 | imx6sx-sdb.dtb \ |
14 | imx6sx-sdb-reva.dtb \ | 14 | imx6sx-sdb-reva.dtb \ |
15 | imx6sx-sdb-sai.dtb \ | 15 | imx6sx-sdb-sai.dtb \ |
16 | " | 16 | " |
17 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 17 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
18 | imx6sx-sdb-btwifi.dtb \ | 18 | imx6sx-sdb-btwifi.dtb \ |
19 | imx6sx-sdb-emmc.dtb \ | 19 | imx6sx-sdb-emmc.dtb \ |
20 | imx6sx-sdb-lcdif1.dtb \ | 20 | imx6sx-sdb-lcdif1.dtb \ |
@@ -43,6 +43,6 @@ OPTEE_BIN_EXT = "6sxsdb" | |||
43 | 43 | ||
44 | SERIAL_CONSOLES = "115200;ttymxc0" | 44 | SERIAL_CONSOLES = "115200;ttymxc0" |
45 | 45 | ||
46 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-ath6k" | 46 | MACHINE_FIRMWARE:append:mx6 = " linux-firmware-ath6k" |
47 | 47 | ||
48 | MACHINE_FEATURES += "pci wifi bluetooth bcm4339 bcm43455" | 48 | MACHINE_FEATURES += "pci wifi bluetooth bcm4339 bcm43455" |
diff --git a/conf/machine/imx6ulevk.conf b/conf/machine/imx6ulevk.conf index f7c5d8ae..09d64b4e 100644 --- a/conf/machine/imx6ulevk.conf +++ b/conf/machine/imx6ulevk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6ul:" | 7 | MACHINEOVERRIDES =. "mx6:mx6ul:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa7.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa7.inc |
11 | 11 | ||
12 | MACHINE_FEATURES += "wifi bluetooth bcm4339 bcm43455" | 12 | MACHINE_FEATURES += "wifi bluetooth bcm4339 bcm43455" |
13 | 13 | ||
@@ -21,19 +21,19 @@ KERNEL_DEVICETREE = " \ | |||
21 | imx6ul-14x14-evk-emmc.dtb \ | 21 | imx6ul-14x14-evk-emmc.dtb \ |
22 | imx6ul-14x14-evk-gpmi-weim.dtb \ | 22 | imx6ul-14x14-evk-gpmi-weim.dtb \ |
23 | " | 23 | " |
24 | KERNEL_DEVICETREE_use-mainline-bsp = "imx6ul-14x14-evk.dtb" | 24 | KERNEL_DEVICETREE:use-mainline-bsp = "imx6ul-14x14-evk.dtb" |
25 | 25 | ||
26 | ### u-boot-fslc settings ### | 26 | ### u-boot-fslc settings ### |
27 | 27 | ||
28 | SPL_BINARY_pn-u-boot-fslc = "SPL" | 28 | SPL_BINARY:pn-u-boot-fslc = "SPL" |
29 | UBOOT_SUFFIX_pn-u-boot-fslc = "img" | 29 | UBOOT_SUFFIX:pn-u-boot-fslc = "img" |
30 | 30 | ||
31 | ### u-boot-imx settings ### | 31 | ### u-boot-imx settings ### |
32 | 32 | ||
33 | # The u-boot-imx does not provide SPL support | 33 | # The u-boot-imx does not provide SPL support |
34 | SPL_BINARY_pn-u-boot-imx = "" | 34 | SPL_BINARY:pn-u-boot-imx = "" |
35 | UBOOT_MAKE_TARGET_pn-u-boot-imx = "u-boot.imx" | 35 | UBOOT_MAKE_TARGET:pn-u-boot-imx = "u-boot.imx" |
36 | UBOOT_SUFFIX_pn-u-boot-imx = "imx" | 36 | UBOOT_SUFFIX:pn-u-boot-imx = "imx" |
37 | 37 | ||
38 | WKS_FILE = " \ | 38 | WKS_FILE = " \ |
39 | ${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', \ | 39 | ${@bb.utils.contains('IMX_DEFAULT_BOOTLOADER', \ |
diff --git a/conf/machine/imx6ullevk.conf b/conf/machine/imx6ullevk.conf index bd592a20..e71e34e4 100644 --- a/conf/machine/imx6ullevk.conf +++ b/conf/machine/imx6ullevk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6ull:" | 7 | MACHINEOVERRIDES =. "mx6:mx6ull:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa7.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa7.inc |
11 | 11 | ||
12 | MACHINE_FEATURES += "wifi bluetooth bcm4339 bcm43455" | 12 | MACHINE_FEATURES += "wifi bluetooth bcm4339 bcm43455" |
13 | 13 | ||
@@ -15,7 +15,7 @@ KERNEL_DEVICETREE = " \ | |||
15 | imx6ull-14x14-evk.dtb \ | 15 | imx6ull-14x14-evk.dtb \ |
16 | " | 16 | " |
17 | 17 | ||
18 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 18 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
19 | imx6ull-14x14-evk-btwifi.dtb \ | 19 | imx6ull-14x14-evk-btwifi.dtb \ |
20 | imx6ull-14x14-evk-btwifi-oob.dtb \ | 20 | imx6ull-14x14-evk-btwifi-oob.dtb \ |
21 | imx6ull-14x14-evk-emmc.dtb \ | 21 | imx6ull-14x14-evk-emmc.dtb \ |
diff --git a/conf/machine/imx6ulz-14x14-evk.conf b/conf/machine/imx6ulz-14x14-evk.conf index 7b794e7c..a47c08f8 100644 --- a/conf/machine/imx6ulz-14x14-evk.conf +++ b/conf/machine/imx6ulz-14x14-evk.conf | |||
@@ -7,14 +7,14 @@ | |||
7 | MACHINEOVERRIDES =. "mx6:mx6ul:mx6ull:mx6ulz:" | 7 | MACHINEOVERRIDES =. "mx6:mx6ul:mx6ull:mx6ulz:" |
8 | 8 | ||
9 | include conf/machine/include/imx-base.inc | 9 | include conf/machine/include/imx-base.inc |
10 | include conf/machine/include/tune-cortexa7.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa7.inc |
11 | 11 | ||
12 | MACHINE_FEATURES += "wifi bluetooth bcm4339 bcm43455" | 12 | MACHINE_FEATURES += "wifi bluetooth bcm4339 bcm43455" |
13 | 13 | ||
14 | KERNEL_DEVICETREE = " \ | 14 | KERNEL_DEVICETREE = " \ |
15 | imx6ulz-14x14-evk.dtb \ | 15 | imx6ulz-14x14-evk.dtb \ |
16 | " | 16 | " |
17 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 17 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
18 | imx6ulz-14x14-evk-btwifi.dtb \ | 18 | imx6ulz-14x14-evk-btwifi.dtb \ |
19 | imx6ulz-14x14-evk-emmc.dtb \ | 19 | imx6ulz-14x14-evk-emmc.dtb \ |
20 | imx6ulz-14x14-evk-gpmi-weim.dtb \ | 20 | imx6ulz-14x14-evk-gpmi-weim.dtb \ |
diff --git a/conf/machine/imx7dsabresd.conf b/conf/machine/imx7dsabresd.conf index e848f294..7183d6f9 100644 --- a/conf/machine/imx7dsabresd.conf +++ b/conf/machine/imx7dsabresd.conf | |||
@@ -7,12 +7,12 @@ | |||
7 | MACHINEOVERRIDES =. "mx7:mx7d:" | 7 | MACHINEOVERRIDES =. "mx7:mx7d:" |
8 | 8 | ||
9 | require conf/machine/include/imx-base.inc | 9 | require conf/machine/include/imx-base.inc |
10 | require conf/machine/include/tune-cortexa7.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa7.inc |
11 | 11 | ||
12 | MACHINE_FEATURES += "pci wifi bluetooth bcm4339 bcm43455" | 12 | MACHINE_FEATURES += "pci wifi bluetooth bcm4339 bcm43455" |
13 | 13 | ||
14 | KERNEL_DEVICETREE = "imx7d-sdb.dtb" | 14 | KERNEL_DEVICETREE = "imx7d-sdb.dtb" |
15 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 15 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
16 | imx7d-sdb-epdc.dtb \ | 16 | imx7d-sdb-epdc.dtb \ |
17 | imx7d-sdb-gpmi-weim.dtb \ | 17 | imx7d-sdb-gpmi-weim.dtb \ |
18 | imx7d-sdb-m4.dtb \ | 18 | imx7d-sdb-m4.dtb \ |
diff --git a/conf/machine/imx7ulpevk.conf b/conf/machine/imx7ulpevk.conf index a587f44b..e0961240 100644 --- a/conf/machine/imx7ulpevk.conf +++ b/conf/machine/imx7ulpevk.conf | |||
@@ -7,17 +7,17 @@ | |||
7 | MACHINEOVERRIDES =. "mx7:mx7ulp:" | 7 | MACHINEOVERRIDES =. "mx7:mx7ulp:" |
8 | 8 | ||
9 | require conf/machine/include/imx-base.inc | 9 | require conf/machine/include/imx-base.inc |
10 | require conf/machine/include/tune-cortexa7.inc | 10 | include conf/machine/include/arm/armv7a/tune-cortexa7.inc |
11 | 11 | ||
12 | MACHINE_FEATURES += "pci wifi bluetooth bcm43430" | 12 | MACHINE_FEATURES += "pci wifi bluetooth bcm43430" |
13 | 13 | ||
14 | KERNEL_DEVICETREE = " \ | 14 | KERNEL_DEVICETREE = " \ |
15 | imx7ulp-evk.dtb \ | 15 | imx7ulp-evk.dtb \ |
16 | " | 16 | " |
17 | KERNEL_DEVICETREE_append_use-mainline-bsp = " \ | 17 | KERNEL_DEVICETREE:append:use-mainline-bsp = " \ |
18 | imx7ulp-com.dtb \ | 18 | imx7ulp-com.dtb \ |
19 | " | 19 | " |
20 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 20 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
21 | imx7ulp-evk-ft5416.dtb \ | 21 | imx7ulp-evk-ft5416.dtb \ |
22 | imx7ulp-evk-mipi.dtb \ | 22 | imx7ulp-evk-mipi.dtb \ |
23 | imx7ulp-evkb.dtb \ | 23 | imx7ulp-evkb.dtb \ |
diff --git a/conf/machine/imx8dxl-lpddr4-evk.conf b/conf/machine/imx8dxl-lpddr4-evk.conf index 1ea5260b..d44a4732 100644 --- a/conf/machine/imx8dxl-lpddr4-evk.conf +++ b/conf/machine/imx8dxl-lpddr4-evk.conf | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | require conf/machine/include/imx8dxl-evk.inc | 6 | require conf/machine/include/imx8dxl-evk.inc |
7 | KERNEL_DEVICETREE_BASENAME = "imx8dxl-evk" | 7 | KERNEL_DEVICETREE_BASENAME = "imx8dxl-evk" |
8 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 8 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
9 | freescale/${KERNEL_DEVICETREE_BASENAME}-enet0.dtb \ | 9 | freescale/${KERNEL_DEVICETREE_BASENAME}-enet0.dtb \ |
10 | freescale/${KERNEL_DEVICETREE_BASENAME}-enet0-tja1100.dtb \ | 10 | freescale/${KERNEL_DEVICETREE_BASENAME}-enet0-tja1100.dtb \ |
11 | freescale/${KERNEL_DEVICETREE_BASENAME}-inmate.dtb \ | 11 | freescale/${KERNEL_DEVICETREE_BASENAME}-inmate.dtb \ |
diff --git a/conf/machine/imx8mm-ddr4-evk.conf b/conf/machine/imx8mm-ddr4-evk.conf index 3901bb92..f21cc381 100644 --- a/conf/machine/imx8mm-ddr4-evk.conf +++ b/conf/machine/imx8mm-ddr4-evk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | require include/imx8mm-evk.inc | 7 | require include/imx8mm-evk.inc |
8 | 8 | ||
9 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" | 9 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" |
10 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 10 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
11 | freescale/${KERNEL_DEVICETREE_BASENAME}-revb-rm67191.dtb \ | 11 | freescale/${KERNEL_DEVICETREE_BASENAME}-revb-rm67191.dtb \ |
12 | freescale/${KERNEL_DEVICETREE_BASENAME}-revb.dtb \ | 12 | freescale/${KERNEL_DEVICETREE_BASENAME}-revb.dtb \ |
13 | " | 13 | " |
diff --git a/conf/machine/imx8mm-lpddr4-evk.conf b/conf/machine/imx8mm-lpddr4-evk.conf index 6007c540..0a85ed20 100644 --- a/conf/machine/imx8mm-lpddr4-evk.conf +++ b/conf/machine/imx8mm-lpddr4-evk.conf | |||
@@ -8,7 +8,7 @@ require include/imx8mm-evk.inc | |||
8 | 8 | ||
9 | # The device tree name is implicit for LPDDR4, so can't use MACHINE here | 9 | # The device tree name is implicit for LPDDR4, so can't use MACHINE here |
10 | KERNEL_DEVICETREE_BASENAME = "imx8mm-evk" | 10 | KERNEL_DEVICETREE_BASENAME = "imx8mm-evk" |
11 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 11 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
12 | freescale/${KERNEL_DEVICETREE_BASENAME}-8mic-revE.dtb \ | 12 | freescale/${KERNEL_DEVICETREE_BASENAME}-8mic-revE.dtb \ |
13 | freescale/${KERNEL_DEVICETREE_BASENAME}-8mic-swpdm.dtb \ | 13 | freescale/${KERNEL_DEVICETREE_BASENAME}-8mic-swpdm.dtb \ |
14 | freescale/${KERNEL_DEVICETREE_BASENAME}-ak4497.dtb \ | 14 | freescale/${KERNEL_DEVICETREE_BASENAME}-ak4497.dtb \ |
diff --git a/conf/machine/imx8mn-ddr4-evk.conf b/conf/machine/imx8mn-ddr4-evk.conf index 442afdbd..d004d2ae 100644 --- a/conf/machine/imx8mn-ddr4-evk.conf +++ b/conf/machine/imx8mn-ddr4-evk.conf | |||
@@ -7,7 +7,7 @@ | |||
7 | require include/imx8mn-evk.inc | 7 | require include/imx8mn-evk.inc |
8 | 8 | ||
9 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" | 9 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" |
10 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 10 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
11 | freescale/${KERNEL_DEVICETREE_BASENAME}-usd-wifi.dtb \ | 11 | freescale/${KERNEL_DEVICETREE_BASENAME}-usd-wifi.dtb \ |
12 | " | 12 | " |
13 | UBOOT_CONFIG_BASENAME = "imx8mn_ddr4_evk" | 13 | UBOOT_CONFIG_BASENAME = "imx8mn_ddr4_evk" |
diff --git a/conf/machine/imx8mn-lpddr4-evk.conf b/conf/machine/imx8mn-lpddr4-evk.conf index 7c58bc19..2e5e6be9 100644 --- a/conf/machine/imx8mn-lpddr4-evk.conf +++ b/conf/machine/imx8mn-lpddr4-evk.conf | |||
@@ -8,7 +8,7 @@ require include/imx8mn-evk.inc | |||
8 | 8 | ||
9 | # The device tree name is implicit for LPDDR4, so can't use MACHINE here | 9 | # The device tree name is implicit for LPDDR4, so can't use MACHINE here |
10 | KERNEL_DEVICETREE_BASENAME = "imx8mn-evk" | 10 | KERNEL_DEVICETREE_BASENAME = "imx8mn-evk" |
11 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 11 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
12 | freescale/${KERNEL_DEVICETREE_BASENAME}-8mic-revE.dtb \ | 12 | freescale/${KERNEL_DEVICETREE_BASENAME}-8mic-revE.dtb \ |
13 | " | 13 | " |
14 | UBOOT_CONFIG_BASENAME = "imx8mn_evk" | 14 | UBOOT_CONFIG_BASENAME = "imx8mn_evk" |
diff --git a/conf/machine/imx8mp-ddr4-evk.conf b/conf/machine/imx8mp-ddr4-evk.conf index 09517769..78e0c160 100644 --- a/conf/machine/imx8mp-ddr4-evk.conf +++ b/conf/machine/imx8mp-ddr4-evk.conf | |||
@@ -8,7 +8,7 @@ require include/imx8mp-evk.inc | |||
8 | 8 | ||
9 | # FIXME: This machine is not yet supported by u-boot-fslc, so for now | 9 | # FIXME: This machine is not yet supported by u-boot-fslc, so for now |
10 | # use u-boot-imx for mainline. | 10 | # use u-boot-imx for mainline. |
11 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-imx" | 11 | IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-imx" |
12 | 12 | ||
13 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" | 13 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" |
14 | 14 | ||
diff --git a/conf/machine/imx8mp-lpddr4-evk.conf b/conf/machine/imx8mp-lpddr4-evk.conf index cf926c08..0b7c6801 100644 --- a/conf/machine/imx8mp-lpddr4-evk.conf +++ b/conf/machine/imx8mp-lpddr4-evk.conf | |||
@@ -11,27 +11,32 @@ KERNEL_DEVICETREE_BASENAME = "imx8mp-evk" | |||
11 | 11 | ||
12 | # NXP kernel has additional DTB files for various board configuration and | 12 | # NXP kernel has additional DTB files for various board configuration and |
13 | # derivates. Include them here for NXP BSP only | 13 | # derivates. Include them here for NXP BSP only |
14 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 14 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
15 | freescale/imx8mp-ab2.dtb \ | 15 | freescale/imx8mp-ab2.dtb \ |
16 | freescale/imx8mp-evk-basler.dtb \ | 16 | freescale/imx8mp-evk-basler.dtb \ |
17 | freescale/imx8mp-evk-basler-ov2775.dtb \ | 17 | freescale/imx8mp-evk-basler-ov2775.dtb \ |
18 | freescale/imx8mp-evk-basler-ov5640.dtb \ | 18 | freescale/imx8mp-evk-basler-ov5640.dtb \ |
19 | freescale/imx8mp-evk-dsp.dtb \ | ||
20 | freescale/imx8mp-evk-dsp-lpa.dtb \ | ||
21 | freescale/imx8mp-evk-dual-basler.dtb \ | 19 | freescale/imx8mp-evk-dual-basler.dtb \ |
22 | freescale/imx8mp-evk-dual-ov2775.dtb \ | 20 | freescale/imx8mp-evk-dual-ov2775.dtb \ |
21 | freescale/imx8mp-evk-ecspi-slave.dtb \ | ||
23 | freescale/imx8mp-evk-flexcan2.dtb \ | 22 | freescale/imx8mp-evk-flexcan2.dtb \ |
23 | freescale/imx8mp-evk-hifiberry-dacplus.dtb \ | ||
24 | freescale/imx8mp-evk-inmate.dtb \ | 24 | freescale/imx8mp-evk-inmate.dtb \ |
25 | freescale/imx8mp-evk-iqaudio-dacplus.dtb \ | ||
26 | freescale/imx8mp-evk-iqaudio-dacpro.dtb \ | ||
25 | freescale/imx8mp-evk-it6263-lvds-dual-channel.dtb \ | 27 | freescale/imx8mp-evk-it6263-lvds-dual-channel.dtb \ |
26 | freescale/imx8mp-evk-jdi-wuxga-lvds-panel.dtb \ | 28 | freescale/imx8mp-evk-jdi-wuxga-lvds-panel.dtb \ |
29 | freescale/imx8mp-evk-ndm.dtb \ | ||
27 | freescale/imx8mp-evk-ov2775.dtb \ | 30 | freescale/imx8mp-evk-ov2775.dtb \ |
28 | freescale/imx8mp-evk-ov2775-ov5640.dtb \ | 31 | freescale/imx8mp-evk-ov2775-ov5640.dtb \ |
29 | freescale/imx8mp-evk-pcie-ep.dtb \ | 32 | freescale/imx8mp-evk-pcie-ep.dtb \ |
30 | freescale/imx8mp-evk-rm67191.dtb \ | 33 | freescale/imx8mp-evk-rm67191.dtb \ |
34 | freescale/imx8mp-evk-rm67199.dtb \ | ||
31 | freescale/imx8mp-evk-root.dtb \ | 35 | freescale/imx8mp-evk-root.dtb \ |
32 | freescale/imx8mp-evk-rpmsg.dtb \ | 36 | freescale/imx8mp-evk-rpmsg.dtb \ |
33 | freescale/imx8mp-evk-sof-wm8960.dtb \ | 37 | freescale/imx8mp-evk-sof-wm8960.dtb \ |
34 | freescale/imx8mp-evk-spdif-lb.dtb \ | 38 | freescale/imx8mp-evk-spdif-lb.dtb \ |
39 | freescale/imx8mp-evk-usdhc1-m2.dtb \ | ||
35 | " | 40 | " |
36 | 41 | ||
37 | UBOOT_CONFIG_BASENAME = "imx8mp_evk" | 42 | UBOOT_CONFIG_BASENAME = "imx8mp_evk" |
diff --git a/conf/machine/imx8mq-evk.conf b/conf/machine/imx8mq-evk.conf index 9907ef4b..cea44ed1 100644 --- a/conf/machine/imx8mq-evk.conf +++ b/conf/machine/imx8mq-evk.conf | |||
@@ -7,19 +7,19 @@ | |||
7 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mq:" | 7 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mq:" |
8 | 8 | ||
9 | require conf/machine/include/imx-base.inc | 9 | require conf/machine/include/imx-base.inc |
10 | require conf/machine/include/tune-cortexa53.inc | 10 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
11 | 11 | ||
12 | IMX_DEFAULT_BSP = "nxp" | 12 | IMX_DEFAULT_BSP = "nxp" |
13 | 13 | ||
14 | MACHINE_FEATURES += "pci wifi bluetooth optee bcm43455 bcm4356" | 14 | MACHINE_FEATURES += "pci wifi bluetooth optee bcm43455 bcm4356" |
15 | MACHINE_FEATURES_append_use-nxp-bsp = " bcm4359" | 15 | MACHINE_FEATURES:append:use-nxp-bsp = " bcm4359" |
16 | 16 | ||
17 | MACHINE_SOCARCH_FILTER_append_mx8mq = " virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d" | 17 | MACHINE_SOCARCH_FILTER:append:mx8mq = " virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d" |
18 | 18 | ||
19 | KERNEL_DEVICETREE = " \ | 19 | KERNEL_DEVICETREE = " \ |
20 | freescale/imx8mq-evk.dtb \ | 20 | freescale/imx8mq-evk.dtb \ |
21 | " | 21 | " |
22 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 22 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
23 | freescale/imx8mq-evk-ak4497.dtb \ | 23 | freescale/imx8mq-evk-ak4497.dtb \ |
24 | freescale/imx8mq-evk-audio-tdm.dtb \ | 24 | freescale/imx8mq-evk-audio-tdm.dtb \ |
25 | freescale/imx8mq-evk-dcss-adv7535.dtb \ | 25 | freescale/imx8mq-evk-dcss-adv7535.dtb \ |
@@ -40,8 +40,8 @@ KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | |||
40 | freescale/imx8mq-evk-usdhc2-m2.dtb \ | 40 | freescale/imx8mq-evk-usdhc2-m2.dtb \ |
41 | " | 41 | " |
42 | 42 | ||
43 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | 43 | IMX_DEFAULT_BOOTLOADER:use-nxp-bsp = "u-boot-imx" |
44 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | 44 | IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-fslc" |
45 | 45 | ||
46 | UBOOT_SUFFIX = "bin" | 46 | UBOOT_SUFFIX = "bin" |
47 | 47 | ||
@@ -77,11 +77,4 @@ IMX_BOOT_SEEK = "33" | |||
77 | OPTEE_BIN_EXT = "8mq" | 77 | OPTEE_BIN_EXT = "8mq" |
78 | 78 | ||
79 | # Add additional firmware | 79 | # Add additional firmware |
80 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 80 | MACHINE_FIRMWARE:append = " linux-firmware-ath10k" |
81 | |||
82 | # Use gstreamer 1.16 from meta-freescale | ||
83 | PREFERRED_VERSION_gstreamer1.0 ?= "1.16.imx" | ||
84 | PREFERRED_VERSION_gstreamer1.0-plugins-base ?= "1.16.imx" | ||
85 | PREFERRED_VERSION_gstreamer1.0-plugins-good ?= "1.16.imx" | ||
86 | PREFERRED_VERSION_gstreamer1.0-plugins-bad ?= "1.16.imx" | ||
87 | PREFERRED_VERSION_gstreamer1.0-libav ?= "1.16.0" | ||
diff --git a/conf/machine/imx8qm-mek.conf b/conf/machine/imx8qm-mek.conf index 5ceb6b8b..c2e450ce 100644 --- a/conf/machine/imx8qm-mek.conf +++ b/conf/machine/imx8qm-mek.conf | |||
@@ -6,15 +6,15 @@ | |||
6 | MACHINEOVERRIDES =. "mx8:mx8qm:" | 6 | MACHINEOVERRIDES =. "mx8:mx8qm:" |
7 | 7 | ||
8 | require conf/machine/include/imx-base.inc | 8 | require conf/machine/include/imx-base.inc |
9 | require conf/machine/include/tune-cortexa72-cortexa53.inc | 9 | require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc |
10 | 10 | ||
11 | IMX_DEFAULT_BSP = "nxp" | 11 | IMX_DEFAULT_BSP = "nxp" |
12 | 12 | ||
13 | MACHINE_FEATURES += "pci optee bcm43455 bcm4356" | 13 | MACHINE_FEATURES += "pci optee bcm43455 bcm4356" |
14 | MACHINE_FEATURES_append_use-nxp-bsp = " bcm4359" | 14 | MACHINE_FEATURES:append:use-nxp-bsp = " bcm4359" |
15 | 15 | ||
16 | # Don't include kernels in standard images | 16 | # Don't include kernels in standard images |
17 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" | 17 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" |
18 | 18 | ||
19 | LOADADDR = "" | 19 | LOADADDR = "" |
20 | 20 | ||
@@ -55,8 +55,8 @@ UBOOT_MAKE_TARGET = \ | |||
55 | SPL_BINARY = \ | 55 | SPL_BINARY = \ |
56 | "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'spl/u-boot-spl.bin', \ | 56 | "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'spl/u-boot-spl.bin', \ |
57 | '', d)}" | 57 | '', d)}" |
58 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | 58 | IMX_DEFAULT_BOOTLOADER:use-nxp-bsp = "u-boot-imx" |
59 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | 59 | IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-fslc" |
60 | 60 | ||
61 | UBOOT_SUFFIX = "bin" | 61 | UBOOT_SUFFIX = "bin" |
62 | 62 | ||
@@ -86,4 +86,4 @@ IMX_BOOT_SOC_TARGET = "iMX8QM" | |||
86 | BOARD_TYPE = "mek" | 86 | BOARD_TYPE = "mek" |
87 | 87 | ||
88 | # Add additional firmware | 88 | # Add additional firmware |
89 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 89 | MACHINE_FIRMWARE:append = " linux-firmware-ath10k" |
diff --git a/conf/machine/imx8qxp-mek.conf b/conf/machine/imx8qxp-mek.conf index 5b29138f..29412cc3 100644 --- a/conf/machine/imx8qxp-mek.conf +++ b/conf/machine/imx8qxp-mek.conf | |||
@@ -8,7 +8,7 @@ MACHINEOVERRIDES =. "mx8qxp:" | |||
8 | require include/imx8x-mek.inc | 8 | require include/imx8x-mek.inc |
9 | 9 | ||
10 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" | 10 | KERNEL_DEVICETREE_BASENAME = "${MACHINE}" |
11 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 11 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
12 | freescale/${KERNEL_DEVICETREE_BASENAME}-a0.dtb \ | 12 | freescale/${KERNEL_DEVICETREE_BASENAME}-a0.dtb \ |
13 | freescale/${KERNEL_DEVICETREE_BASENAME}-dom0.dtb \ | 13 | freescale/${KERNEL_DEVICETREE_BASENAME}-dom0.dtb \ |
14 | freescale/${KERNEL_DEVICETREE_BASENAME}-dpu-lcdif.dtb \ | 14 | freescale/${KERNEL_DEVICETREE_BASENAME}-dpu-lcdif.dtb \ |
diff --git a/conf/machine/include/e500mc.inc b/conf/machine/include/e500mc.inc index a33485be..aa60d95e 100644 --- a/conf/machine/include/e500mc.inc +++ b/conf/machine/include/e500mc.inc | |||
@@ -1,6 +1,6 @@ | |||
1 | TARGET_FPU = "hard" | 1 | TARGET_FPU = "hard" |
2 | 2 | ||
3 | require conf/machine/include/tune-ppce500mc.inc | 3 | require conf/machine/include/powerpc/tune-ppce500mc.inc |
4 | require conf/machine/include/qoriq-ppc.inc | 4 | require conf/machine/include/qoriq-ppc.inc |
5 | 5 | ||
6 | MACHINEOVERRIDES =. "e500mc:" | 6 | MACHINEOVERRIDES =. "e500mc:" |
diff --git a/conf/machine/include/e500v2.inc b/conf/machine/include/e500v2.inc index 420f0343..a9af67cd 100644 --- a/conf/machine/include/e500v2.inc +++ b/conf/machine/include/e500v2.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | require conf/machine/include/tune-ppce500v2.inc | 1 | require conf/machine/include/powerpc/tune-ppce500v2.inc |
2 | 2 | ||
3 | MACHINEOVERRIDES =. "e500v2:" | 3 | MACHINEOVERRIDES =. "e500v2:" |
4 | require conf/machine/include/qoriq-ppc.inc | 4 | require conf/machine/include/qoriq-ppc.inc |
diff --git a/conf/machine/include/e5500-64b.inc b/conf/machine/include/e5500-64b.inc index 72b958cd..42acb2f2 100644 --- a/conf/machine/include/e5500-64b.inc +++ b/conf/machine/include/e5500-64b.inc | |||
@@ -1,11 +1,11 @@ | |||
1 | TARGET_FPU = "hard" | 1 | TARGET_FPU = "hard" |
2 | DEFAULTTUNE ?= "ppc64e5500" | 2 | DEFAULTTUNE ?= "ppc64e5500" |
3 | 3 | ||
4 | require conf/machine/include/tune-ppce5500.inc | 4 | require conf/machine/include/powerpc/tune-ppce5500.inc |
5 | require conf/machine/include/qoriq-ppc.inc | 5 | require conf/machine/include/qoriq-ppc.inc |
6 | 6 | ||
7 | MACHINEOVERRIDES =. "e5500-64b:" | 7 | MACHINEOVERRIDES =. "e5500-64b:" |
8 | 8 | ||
9 | require conf/multilib.conf | 9 | require conf/multilib.conf |
10 | MULTILIBS ?= "multilib:lib32" | 10 | MULTILIBS ?= "multilib:lib32" |
11 | DEFAULTTUNE_virtclass-multilib-lib32 ?= "ppce5500" | 11 | DEFAULTTUNE:virtclass-multilib-lib32 ?= "ppce5500" |
diff --git a/conf/machine/include/e5500.inc b/conf/machine/include/e5500.inc index 364ffac4..c6709c16 100644 --- a/conf/machine/include/e5500.inc +++ b/conf/machine/include/e5500.inc | |||
@@ -1,6 +1,6 @@ | |||
1 | TARGET_FPU = "hard" | 1 | TARGET_FPU = "hard" |
2 | 2 | ||
3 | require conf/machine/include/tune-ppce5500.inc | 3 | require conf/machine/include/powerpc/tune-ppce5500.inc |
4 | require conf/machine/include/qoriq-ppc.inc | 4 | require conf/machine/include/qoriq-ppc.inc |
5 | 5 | ||
6 | MACHINEOVERRIDES =. "e5500:" | 6 | MACHINEOVERRIDES =. "e5500:" |
diff --git a/conf/machine/include/e6500-64b.inc b/conf/machine/include/e6500-64b.inc index e0e04dbc..3611d51a 100644 --- a/conf/machine/include/e6500-64b.inc +++ b/conf/machine/include/e6500-64b.inc | |||
@@ -1,11 +1,11 @@ | |||
1 | TARGET_FPU = "hard" | 1 | TARGET_FPU = "hard" |
2 | DEFAULTTUNE ?= "ppc64e6500" | 2 | DEFAULTTUNE ?= "ppc64e6500" |
3 | 3 | ||
4 | require conf/machine/include/tune-ppce6500.inc | 4 | require conf/machine/include/powerpc/tune-ppce6500.inc |
5 | require conf/machine/include/qoriq-ppc.inc | 5 | require conf/machine/include/qoriq-ppc.inc |
6 | 6 | ||
7 | MACHINEOVERRIDES =. "e6500-64b:" | 7 | MACHINEOVERRIDES =. "e6500-64b:" |
8 | 8 | ||
9 | require conf/multilib.conf | 9 | require conf/multilib.conf |
10 | MULTILIBS ?= "multilib:lib32" | 10 | MULTILIBS ?= "multilib:lib32" |
11 | DEFAULTTUNE_virtclass-multilib-lib32 ?= "ppce6500" | 11 | DEFAULTTUNE:virtclass-multilib-lib32 ?= "ppce6500" |
diff --git a/conf/machine/include/e6500.inc b/conf/machine/include/e6500.inc index 8d773b6e..565b75ee 100644 --- a/conf/machine/include/e6500.inc +++ b/conf/machine/include/e6500.inc | |||
@@ -1,6 +1,6 @@ | |||
1 | TARGET_FPU = "hard" | 1 | TARGET_FPU = "hard" |
2 | 2 | ||
3 | require conf/machine/include/tune-ppce6500.inc | 3 | require conf/machine/include/powerpc/tune-ppce6500.inc |
4 | require conf/machine/include/qoriq-ppc.inc | 4 | require conf/machine/include/qoriq-ppc.inc |
5 | 5 | ||
6 | MACHINEOVERRIDES =. "e6500:" | 6 | MACHINEOVERRIDES =. "e6500:" |
@@ -9,4 +9,4 @@ BUILD_64BIT_KERNEL = "1" | |||
9 | 9 | ||
10 | require conf/multilib.conf | 10 | require conf/multilib.conf |
11 | MULTILIBS ?= "multilib:lib64" | 11 | MULTILIBS ?= "multilib:lib64" |
12 | DEFAULTTUNE_virtclass-multilib-lib64 ?= "ppc64e6500" | 12 | DEFAULTTUNE:virtclass-multilib-lib64 ?= "ppc64e6500" |
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index f92a08af..217415f5 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
@@ -13,8 +13,8 @@ require conf/machine/include/utilities.inc | |||
13 | IMX_DEFAULT_BSP ?= "mainline" | 13 | IMX_DEFAULT_BSP ?= "mainline" |
14 | 14 | ||
15 | # Those are SoC families we'd like to force the use of mainline BSP. | 15 | # Those are SoC families we'd like to force the use of mainline BSP. |
16 | IMX_DEFAULT_BSP_mxs ?= "mainline" | 16 | IMX_DEFAULT_BSP:mxs ?= "mainline" |
17 | IMX_DEFAULT_BSP_mx5 ?= "mainline" | 17 | IMX_DEFAULT_BSP:mx5 ?= "mainline" |
18 | 18 | ||
19 | MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:" | 19 | MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:" |
20 | 20 | ||
@@ -32,16 +32,16 @@ UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" | |||
32 | # ,----[ imx6qdlsabresd.conf ] | 32 | # ,----[ imx6qdlsabresd.conf ] |
33 | # | ### u-boot-fslc settings ### | 33 | # | ### u-boot-fslc settings ### |
34 | # | | 34 | # | |
35 | # | SPL_BINARY_pn-u-boot-fslc = "SPL" | 35 | # | SPL_BINARY:pn-u-boot-fslc = "SPL" |
36 | # | UBOOT_MACHINE_pn-u-boot-fslc ?= "mx6sabresd_defconfig" | 36 | # | UBOOT_MACHINE:pn-u-boot-fslc ?= "mx6sabresd_defconfig" |
37 | # | UBOOT_SUFFIX_pn-u-boot-fslc = "img" | 37 | # | UBOOT_SUFFIX:pn-u-boot-fslc = "img" |
38 | # | | 38 | # | |
39 | # | ### u-boot-imx settings ### | 39 | # | ### u-boot-imx settings ### |
40 | # | | 40 | # | |
41 | # | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC | 41 | # | # The u-boot-imx does not provide unified functionality for DL/Q/QP SoC |
42 | # | # variants. Change the defconfig to the targeted SoC variant. | 42 | # | # variants. Change the defconfig to the targeted SoC variant. |
43 | # | UBOOT_MACHINE_pn-u-boot-imx ?= "mx6qsabresd_defconfig" | 43 | # | UBOOT_MACHINE:pn-u-boot-imx ?= "mx6qsabresd_defconfig" |
44 | # | UBOOT_SUFFIX_pn-u-boot-imx = "imx" | 44 | # | UBOOT_SUFFIX:pn-u-boot-imx = "imx" |
45 | # `---- | 45 | # `---- |
46 | # | 46 | # |
47 | # As result, the 'UBOOT_SUFFIX' is dynamically set based on the preferred U-Boot | 47 | # As result, the 'UBOOT_SUFFIX' is dynamically set based on the preferred U-Boot |
@@ -61,7 +61,7 @@ UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" | |||
61 | # | UBOOT_MACHINE = "mx53loco_config" | 61 | # | UBOOT_MACHINE = "mx53loco_config" |
62 | # `---- | 62 | # `---- |
63 | IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc" | 63 | IMX_DEFAULT_BOOTLOADER ??= "u-boot-fslc" |
64 | UBOOT_SUFFIX ?= "${UBOOT_SUFFIX_pn-${IMX_DEFAULT_BOOTLOADER}}" | 64 | UBOOT_SUFFIX ?= "${UBOOT_SUFFIX:pn-${IMX_DEFAULT_BOOTLOADER}}" |
65 | 65 | ||
66 | # We need to export the original variable to allow it to be used when generating | 66 | # We need to export the original variable to allow it to be used when generating |
67 | # wic based images. | 67 | # wic based images. |
@@ -75,33 +75,33 @@ PREFERRED_PROVIDER_virtual/bootloader ??= "${IMX_DEFAULT_BOOTLOADER}" | |||
75 | 75 | ||
76 | PREFERRED_PROVIDER_u-boot-mxsboot-native ??= "u-boot-fslc-mxsboot-native" | 76 | PREFERRED_PROVIDER_u-boot-mxsboot-native ??= "u-boot-fslc-mxsboot-native" |
77 | 77 | ||
78 | UBOOT_ENTRYPOINT_mxs = "0x40008000" | 78 | UBOOT_ENTRYPOINT:mxs = "0x40008000" |
79 | UBOOT_ENTRYPOINT_mx51 = "0x90008000" | 79 | UBOOT_ENTRYPOINT:mx51 = "0x90008000" |
80 | UBOOT_ENTRYPOINT_mx53 = "0x70008000" | 80 | UBOOT_ENTRYPOINT:mx53 = "0x70008000" |
81 | UBOOT_ENTRYPOINT_mx6 = "0x10008000" | 81 | UBOOT_ENTRYPOINT:mx6 = "0x10008000" |
82 | UBOOT_ENTRYPOINT_mx6sl = "0x80008000" | 82 | UBOOT_ENTRYPOINT:mx6sl = "0x80008000" |
83 | UBOOT_ENTRYPOINT_mx6sll = "0x80008000" | 83 | UBOOT_ENTRYPOINT:mx6sll = "0x80008000" |
84 | UBOOT_ENTRYPOINT_mx6sx = "0x80008000" | 84 | UBOOT_ENTRYPOINT:mx6sx = "0x80008000" |
85 | UBOOT_ENTRYPOINT_mx6ul = "0x80008000" | 85 | UBOOT_ENTRYPOINT:mx6ul = "0x80008000" |
86 | UBOOT_ENTRYPOINT_mx6ull = "0x80008000" | 86 | UBOOT_ENTRYPOINT:mx6ull = "0x80008000" |
87 | UBOOT_ENTRYPOINT_mx6ulz = "0x80008000" | 87 | UBOOT_ENTRYPOINT:mx6ulz = "0x80008000" |
88 | UBOOT_ENTRYPOINT_mx7 = "0x80008000" | 88 | UBOOT_ENTRYPOINT:mx7 = "0x80008000" |
89 | UBOOT_ENTRYPOINT_mx7ulp = "0x60008000" | 89 | UBOOT_ENTRYPOINT:mx7ulp = "0x60008000" |
90 | UBOOT_ENTRYPOINT_mx8m = "0x40480000" | 90 | UBOOT_ENTRYPOINT:mx8m = "0x40480000" |
91 | UBOOT_ENTRYPOINT_vf = "0x80008000" | 91 | UBOOT_ENTRYPOINT:vf = "0x80008000" |
92 | 92 | ||
93 | # Some derivates can utilize the boot container provided by U-Boot, | 93 | # Some derivates can utilize the boot container provided by U-Boot, |
94 | # below variable sets that those machines which have a imx-boot-container | 94 | # below variable sets that those machines which have a imx-boot-container |
95 | # in their MACHINEOVERRIDES can inherit a imx-boot-container class | 95 | # in their MACHINEOVERRIDES can inherit a imx-boot-container class |
96 | UBOOT_PROVIDES_BOOT_CONTAINER = "0" | 96 | UBOOT_PROVIDES_BOOT_CONTAINER = "0" |
97 | UBOOT_PROVIDES_BOOT_CONTAINER_imx-boot-container = "1" | 97 | UBOOT_PROVIDES_BOOT_CONTAINER:imx-boot-container = "1" |
98 | 98 | ||
99 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 99 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" |
100 | XSERVER_DRIVER = "xf86-video-fbdev" | 100 | XSERVER_DRIVER = "xf86-video-fbdev" |
101 | XSERVER_DRIVER_imxgpu2d = "xf86-video-imx-vivante" | 101 | XSERVER_DRIVER:imxgpu2d = "xf86-video-imx-vivante" |
102 | XSERVER_DRIVER_vf = "xf86-video-modesetting" | 102 | XSERVER_DRIVER:vf = "xf86-video-modesetting" |
103 | XSERVER_DRIVER_append_mx8 = " xf86-video-modesetting" | 103 | XSERVER_DRIVER:append:mx8 = " xf86-video-modesetting" |
104 | XSERVER_DRIVER_use-mainline-bsp = " \ | 104 | XSERVER_DRIVER:use-mainline-bsp = " \ |
105 | xf86-video-fbdev \ | 105 | xf86-video-fbdev \ |
106 | xf86-video-modesetting \ | 106 | xf86-video-modesetting \ |
107 | xserver-xorg-extension-glx \ | 107 | xserver-xorg-extension-glx \ |
@@ -118,41 +118,41 @@ MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" | |||
118 | # ARM_INSTRUCTION_SET = "thumb" | 118 | # ARM_INSTRUCTION_SET = "thumb" |
119 | # | 119 | # |
120 | # handled by software | 120 | # handled by software |
121 | # DEFAULTTUNE_mx6 ?= "cortexa9t-neon" | 121 | # DEFAULTTUNE:mx6 ?= "cortexa9t-neon" |
122 | # handled by hardware | 122 | # handled by hardware |
123 | DEFAULTTUNE_mx6 ?= "cortexa9thf-neon" | 123 | DEFAULTTUNE:mx6 ?= "cortexa9thf-neon" |
124 | DEFAULTTUNE_mx6ul ?= "cortexa7thf-neon" | 124 | DEFAULTTUNE:mx6ul ?= "cortexa7thf-neon" |
125 | DEFAULTTUNE_mx6ull ?= "cortexa7thf-neon" | 125 | DEFAULTTUNE:mx6ull ?= "cortexa7thf-neon" |
126 | DEFAULTTUNE_mx6ulz ?= "cortexa7thf-neon" | 126 | DEFAULTTUNE:mx6ulz ?= "cortexa7thf-neon" |
127 | DEFAULTTUNE_mx7 ?= "cortexa7thf-neon" | 127 | DEFAULTTUNE:mx7 ?= "cortexa7thf-neon" |
128 | DEFAULTTUNE_vf ?= "cortexa5thf-neon" | 128 | DEFAULTTUNE:vf ?= "cortexa5thf-neon" |
129 | 129 | ||
130 | DEFAULTTUNE_mx8m ?= "cortexa53-crypto" | 130 | DEFAULTTUNE:mx8m ?= "cortexa53-crypto" |
131 | DEFAULTTUNE_mx8qm ?= "cortexa72-cortexa53-crypto" | 131 | DEFAULTTUNE:mx8qm ?= "cortexa72-cortexa53-crypto" |
132 | DEFAULTTUNE_mx8qxp ?= "cortexa35-crypto" | 132 | DEFAULTTUNE:mx8qxp ?= "cortexa35-crypto" |
133 | 133 | ||
134 | INHERIT += "machine-overrides-extender" | 134 | INHERIT += "machine-overrides-extender" |
135 | 135 | ||
136 | MACHINEOVERRIDES_EXTENDER_mx25 = "use-mainline-bsp" | 136 | MACHINEOVERRIDES_EXTENDER:mx25 = "use-mainline-bsp" |
137 | MACHINEOVERRIDES_EXTENDER_mx6q = "imxfbdev:imxipu:imxvpu:imxgpu:imxgpu2d:imxgpu3d" | 137 | MACHINEOVERRIDES_EXTENDER:mx6q = "imxfbdev:imxipu:imxvpu:imxgpu:imxgpu2d:imxgpu3d" |
138 | MACHINEOVERRIDES_EXTENDER_mx6dl = "imxfbdev:imxpxp:imxipu:imxvpu:imxgpu:imxgpu2d:imxgpu3d:imxepdc" | 138 | MACHINEOVERRIDES_EXTENDER:mx6dl = "imxfbdev:imxpxp:imxipu:imxvpu:imxgpu:imxgpu2d:imxgpu3d:imxepdc" |
139 | MACHINEOVERRIDES_EXTENDER_mx6sx = "imxfbdev:imxpxp:imxgpu:imxgpu2d:imxgpu3d" | 139 | MACHINEOVERRIDES_EXTENDER:mx6sx = "imxfbdev:imxpxp:imxgpu:imxgpu2d:imxgpu3d" |
140 | MACHINEOVERRIDES_EXTENDER_mx6sl = "imxfbdev:imxpxp:imxgpu:imxgpu2d:imxepdc" | 140 | MACHINEOVERRIDES_EXTENDER:mx6sl = "imxfbdev:imxpxp:imxgpu:imxgpu2d:imxepdc" |
141 | MACHINEOVERRIDES_EXTENDER_mx6sll = "imxfbdev:imxpxp:imxepdc" | 141 | MACHINEOVERRIDES_EXTENDER:mx6sll = "imxfbdev:imxpxp:imxepdc" |
142 | MACHINEOVERRIDES_EXTENDER_mx6ul = "imxfbdev:imxpxp" | 142 | MACHINEOVERRIDES_EXTENDER:mx6ul = "imxfbdev:imxpxp" |
143 | MACHINEOVERRIDES_EXTENDER_mx6ull = "imxfbdev:imxpxp:imxepdc" | 143 | MACHINEOVERRIDES_EXTENDER:mx6ull = "imxfbdev:imxpxp:imxepdc" |
144 | MACHINEOVERRIDES_EXTENDER_mx6ulz = "imxfbdev:imxpxp:imxepdc" | 144 | MACHINEOVERRIDES_EXTENDER:mx6ulz = "imxfbdev:imxpxp:imxepdc" |
145 | MACHINEOVERRIDES_EXTENDER_mx7d = "imxfbdev:imxpxp:imxepdc" | 145 | MACHINEOVERRIDES_EXTENDER:mx7d = "imxfbdev:imxpxp:imxepdc" |
146 | MACHINEOVERRIDES_EXTENDER_mx7ulp = "imxfbdev:imxpxp:imxgpu:imxgpu2d:imxgpu3d" | 146 | MACHINEOVERRIDES_EXTENDER:mx7ulp = "imxfbdev:imxpxp:imxgpu:imxgpu2d:imxgpu3d" |
147 | MACHINEOVERRIDES_EXTENDER_mx8qm = "imxdrm:imxdpu:imxgpu:imxgpu2d:imxgpu3d" | 147 | MACHINEOVERRIDES_EXTENDER:mx8qm = "imxdrm:imxdpu:imxgpu:imxgpu2d:imxgpu3d" |
148 | MACHINEOVERRIDES_EXTENDER_mx8mm = "imxdrm:imxvpu:imxgpu:imxgpu2d:imxgpu3d" | 148 | MACHINEOVERRIDES_EXTENDER:mx8mm = "imxdrm:imxvpu:imxgpu:imxgpu2d:imxgpu3d" |
149 | MACHINEOVERRIDES_EXTENDER_mx8mn = "imxdrm:imxgpu:imxgpu3d" | 149 | MACHINEOVERRIDES_EXTENDER:mx8mn = "imxdrm:imxgpu:imxgpu3d" |
150 | MACHINEOVERRIDES_EXTENDER_mx8mp = "imxdrm:imxvpu:imxgpu:imxgpu2d:imxgpu3d" | 150 | MACHINEOVERRIDES_EXTENDER:mx8mp = "imxdrm:imxvpu:imxgpu:imxgpu2d:imxgpu3d" |
151 | MACHINEOVERRIDES_EXTENDER_mx8mq = "imxdrm:imxvpu:imxgpu:imxgpu3d" | 151 | MACHINEOVERRIDES_EXTENDER:mx8mq = "imxdrm:imxvpu:imxgpu:imxgpu3d" |
152 | MACHINEOVERRIDES_EXTENDER_mx8qxp = "imxdrm:imxdpu:imxgpu:imxgpu2d:imxgpu3d" | 152 | MACHINEOVERRIDES_EXTENDER:mx8qxp = "imxdrm:imxdpu:imxgpu:imxgpu2d:imxgpu3d" |
153 | MACHINEOVERRIDES_EXTENDER_mx8dxl = "imxfbdev" | 153 | MACHINEOVERRIDES_EXTENDER:mx8dxl = "imxfbdev" |
154 | 154 | ||
155 | MACHINEOVERRIDES_EXTENDER_FILTER_OUT_use-mainline-bsp = " \ | 155 | MACHINEOVERRIDES_EXTENDER_FILTER_OUT:use-mainline-bsp = " \ |
156 | imx \ | 156 | imx \ |
157 | \ | 157 | \ |
158 | mx6 \ | 158 | mx6 \ |
@@ -182,40 +182,40 @@ MACHINEOVERRIDES_EXTENDER_FILTER_OUT_use-mainline-bsp = " \ | |||
182 | 182 | ||
183 | # Sub-architecture support | 183 | # Sub-architecture support |
184 | MACHINE_SOCARCH_SUFFIX ?= "" | 184 | MACHINE_SOCARCH_SUFFIX ?= "" |
185 | MACHINE_SOCARCH_SUFFIX_mx6q = "-mx6qdl" | 185 | MACHINE_SOCARCH_SUFFIX:mx6q = "-mx6qdl" |
186 | MACHINE_SOCARCH_SUFFIX_mx6dl = "-mx6qdl" | 186 | MACHINE_SOCARCH_SUFFIX:mx6dl = "-mx6qdl" |
187 | MACHINE_SOCARCH_SUFFIX_mx6sx = "-mx6sx" | 187 | MACHINE_SOCARCH_SUFFIX:mx6sx = "-mx6sx" |
188 | MACHINE_SOCARCH_SUFFIX_mx6sl = "-mx6sl" | 188 | MACHINE_SOCARCH_SUFFIX:mx6sl = "-mx6sl" |
189 | MACHINE_SOCARCH_SUFFIX_mx6sll= "-mx6sll" | 189 | MACHINE_SOCARCH_SUFFIX:mx6sll= "-mx6sll" |
190 | MACHINE_SOCARCH_SUFFIX_mx7d = "-mx7d" | 190 | MACHINE_SOCARCH_SUFFIX:mx7d = "-mx7d" |
191 | MACHINE_SOCARCH_SUFFIX_mx7ulp = "-mx7ulp" | 191 | MACHINE_SOCARCH_SUFFIX:mx7ulp = "-mx7ulp" |
192 | MACHINE_SOCARCH_SUFFIX_vf60 = "-vf60" | 192 | MACHINE_SOCARCH_SUFFIX:vf60 = "-vf60" |
193 | MACHINE_SOCARCH_SUFFIX_vf50 = "-vf50" | 193 | MACHINE_SOCARCH_SUFFIX:vf50 = "-vf50" |
194 | MACHINE_SOCARCH_SUFFIX_mx6ul = "-mx6ul" | 194 | MACHINE_SOCARCH_SUFFIX:mx6ul = "-mx6ul" |
195 | MACHINE_SOCARCH_SUFFIX_mx6ull = "-mx6ul" | 195 | MACHINE_SOCARCH_SUFFIX:mx6ull = "-mx6ul" |
196 | MACHINE_SOCARCH_SUFFIX_mx6ulz = "-mx6ul" | 196 | MACHINE_SOCARCH_SUFFIX:mx6ulz = "-mx6ul" |
197 | MACHINE_SOCARCH_SUFFIX_mx8qm = "-mx8" | 197 | MACHINE_SOCARCH_SUFFIX:mx8qm = "-mx8" |
198 | MACHINE_SOCARCH_SUFFIX_mx8mm = "-mx8mm" | 198 | MACHINE_SOCARCH_SUFFIX:mx8mm = "-mx8mm" |
199 | MACHINE_SOCARCH_SUFFIX_mx8mn = "-mx8mn" | 199 | MACHINE_SOCARCH_SUFFIX:mx8mn = "-mx8mn" |
200 | MACHINE_SOCARCH_SUFFIX_mx8mp = "-mx8mp" | 200 | MACHINE_SOCARCH_SUFFIX:mx8mp = "-mx8mp" |
201 | MACHINE_SOCARCH_SUFFIX_mx8mq = "-mx8m" | 201 | MACHINE_SOCARCH_SUFFIX:mx8mq = "-mx8m" |
202 | MACHINE_SOCARCH_SUFFIX_mx8qxp = "-mx8" | 202 | MACHINE_SOCARCH_SUFFIX:mx8qxp = "-mx8" |
203 | MACHINE_SOCARCH_SUFFIX_mx8dxl = "-mx8dxl" | 203 | MACHINE_SOCARCH_SUFFIX:mx8dxl = "-mx8dxl" |
204 | MACHINE_SOCARCH_SUFFIX_use-mainline-bsp = "-imx" | 204 | MACHINE_SOCARCH_SUFFIX:use-mainline-bsp = "-imx" |
205 | 205 | ||
206 | MACHINE_ARCH_FILTER = "virtual/kernel" | 206 | MACHINE_ARCH_FILTER = "virtual/kernel" |
207 | MACHINE_SOCARCH_FILTER_append_imx = " \ | 207 | MACHINE_SOCARCH_FILTER:append:imx = " \ |
208 | alsa-lib \ | 208 | alsa-lib \ |
209 | gstreamer1.0 \ | 209 | gstreamer1.0 \ |
210 | weston \ | 210 | weston \ |
211 | " | 211 | " |
212 | MACHINE_SOCARCH_FILTER_append_imxvpu = " \ | 212 | MACHINE_SOCARCH_FILTER:append:imxvpu = " \ |
213 | imx-codec \ | 213 | imx-codec \ |
214 | imx-vpuwrap \ | 214 | imx-vpuwrap \ |
215 | libimxvpuapi \ | 215 | libimxvpuapi \ |
216 | virtual/imxvpu \ | 216 | virtual/imxvpu \ |
217 | " | 217 | " |
218 | MACHINE_SOCARCH_FILTER_append_imxgpu = " \ | 218 | MACHINE_SOCARCH_FILTER:append:imxgpu = " \ |
219 | virtual/egl \ | 219 | virtual/egl \ |
220 | virtual/mesa \ | 220 | virtual/mesa \ |
221 | virtual/libopenvg \ | 221 | virtual/libopenvg \ |
@@ -225,15 +225,15 @@ MACHINE_SOCARCH_FILTER_append_imxgpu = " \ | |||
225 | opencv \ | 225 | opencv \ |
226 | pango \ | 226 | pango \ |
227 | " | 227 | " |
228 | MACHINE_SOCARCH_FILTER_append_imxgpu2d = " \ | 228 | MACHINE_SOCARCH_FILTER:append:imxgpu2d = " \ |
229 | virtual/libg2d \ | 229 | virtual/libg2d \ |
230 | " | 230 | " |
231 | MACHINE_SOCARCH_FILTER_append_imxgpu3d = " \ | 231 | MACHINE_SOCARCH_FILTER:append:imxgpu3d = " \ |
232 | virtual/libgl \ | 232 | virtual/libgl \ |
233 | virtual/libgles1 \ | 233 | virtual/libgles1 \ |
234 | virtual/libgles2 \ | 234 | virtual/libgles2 \ |
235 | " | 235 | " |
236 | MACHINE_SOCARCH_FILTER_append_use-mainline-bsp = " \ | 236 | MACHINE_SOCARCH_FILTER:append:use-mainline-bsp = " \ |
237 | virtual/egl \ | 237 | virtual/egl \ |
238 | virtual/libopenvg \ | 238 | virtual/libopenvg \ |
239 | virtual/libg2d \ | 239 | virtual/libg2d \ |
@@ -245,23 +245,23 @@ MACHINE_SOCARCH_FILTER_append_use-mainline-bsp = " \ | |||
245 | pango \ | 245 | pango \ |
246 | qtbase \ | 246 | qtbase \ |
247 | " | 247 | " |
248 | MACHINE_SOCARCH_FILTER_append_mx6q = " \ | 248 | MACHINE_SOCARCH_FILTER:append:mx6q = " \ |
249 | opencl-icd-loader \ | 249 | opencl-icd-loader \ |
250 | opencl-clhpp \ | 250 | opencl-clhpp \ |
251 | opencl-headers \ | 251 | opencl-headers \ |
252 | " | 252 | " |
253 | MACHINE_SOCARCH_FILTER_append_mx8 = " \ | 253 | MACHINE_SOCARCH_FILTER:append:mx8 = " \ |
254 | opencl-icd-loader \ | 254 | opencl-icd-loader \ |
255 | opencl-clhpp \ | 255 | opencl-clhpp \ |
256 | opencl-headers \ | 256 | opencl-headers \ |
257 | " | 257 | " |
258 | MACHINE_SOCARCH_FILTER_append_mx8qm = " \ | 258 | MACHINE_SOCARCH_FILTER:append:mx8qm = " \ |
259 | virtual/libopenvx \ | 259 | virtual/libopenvx \ |
260 | " | 260 | " |
261 | 261 | ||
262 | INHERIT += "fsl-dynamic-packagearch" | 262 | INHERIT += "fsl-dynamic-packagearch" |
263 | 263 | ||
264 | SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS_append = " \ | 264 | SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS:append = " \ |
265 | imx-gpu-viv->kernel-module-imx-gpu-viv \ | 265 | imx-gpu-viv->kernel-module-imx-gpu-viv \ |
266 | libimxvpuapi->virtual/imxvpu \ | 266 | libimxvpuapi->virtual/imxvpu \ |
267 | imx-vpuwrap->virtual/imxvpu \ | 267 | imx-vpuwrap->virtual/imxvpu \ |
@@ -271,44 +271,44 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS_append = " \ | |||
271 | 271 | ||
272 | # Firmware | 272 | # Firmware |
273 | MACHINE_FIRMWARE ?= "" | 273 | MACHINE_FIRMWARE ?= "" |
274 | MACHINE_FIRMWARE_append_mx25 = " firmware-imx-sdma-imx25" | 274 | MACHINE_FIRMWARE:append:mx25 = " firmware-imx-sdma-imx25" |
275 | MACHINE_FIRMWARE_append_mx27 = " firmware-imx-vpu-imx27" | 275 | MACHINE_FIRMWARE:append:mx27 = " firmware-imx-vpu-imx27" |
276 | MACHINE_FIRMWARE_append_mx7d = " linux-firmware-imx-sdma-imx7d firmware-imx-epdc" | 276 | MACHINE_FIRMWARE:append:mx7d = " linux-firmware-imx-sdma-imx7d firmware-imx-epdc" |
277 | MACHINE_FIRMWARE_append_mx6 = " linux-firmware-imx-sdma-imx6q" | 277 | MACHINE_FIRMWARE:append:mx6 = " linux-firmware-imx-sdma-imx6q" |
278 | MACHINE_FIRMWARE_append_mx6q = " firmware-imx-vpu-imx6q" | 278 | MACHINE_FIRMWARE:append:mx6q = " firmware-imx-vpu-imx6q" |
279 | MACHINE_FIRMWARE_append_mx6dl = " firmware-imx-vpu-imx6d firmware-imx-epdc" | 279 | MACHINE_FIRMWARE:append:mx6dl = " firmware-imx-vpu-imx6d firmware-imx-epdc" |
280 | MACHINE_FIRMWARE_append_mx6sl = " firmware-imx-epdc" | 280 | MACHINE_FIRMWARE:append:mx6sl = " firmware-imx-epdc" |
281 | MACHINE_FIRMWARE_append_mx6sll = " firmware-imx-epdc" | 281 | MACHINE_FIRMWARE:append:mx6sll = " firmware-imx-epdc" |
282 | MACHINE_FIRMWARE_append_mx6ull = " firmware-imx-epdc" | 282 | MACHINE_FIRMWARE:append:mx6ull = " firmware-imx-epdc" |
283 | MACHINE_FIRMWARE_append_mx53 = " firmware-imx-vpu-imx53 firmware-imx-sdma-imx53" | 283 | MACHINE_FIRMWARE:append:mx53 = " firmware-imx-vpu-imx53 firmware-imx-sdma-imx53" |
284 | MACHINE_FIRMWARE_append_mx51 = " firmware-imx-vpu-imx51 firmware-imx-sdma-imx51" | 284 | MACHINE_FIRMWARE:append:mx51 = " firmware-imx-vpu-imx51 firmware-imx-sdma-imx51" |
285 | MACHINE_FIRMWARE_append_mx8mm = " linux-firmware-imx-sdma-imx7d" | 285 | MACHINE_FIRMWARE:append:mx8mm = " linux-firmware-imx-sdma-imx7d" |
286 | MACHINE_FIRMWARE_append_mx8mn = " linux-firmware-imx-sdma-imx7d" | 286 | MACHINE_FIRMWARE:append:mx8mn = " linux-firmware-imx-sdma-imx7d" |
287 | MACHINE_FIRMWARE_append_mx8mp = " linux-firmware-imx-sdma-imx7d firmware-imx-easrc-imx8mn firmware-imx-xcvr-imx8mp firmware-sof-imx" | 287 | MACHINE_FIRMWARE:append:mx8mp = " linux-firmware-imx-sdma-imx7d firmware-imx-easrc-imx8mn firmware-imx-xcvr-imx8mp firmware-sof-imx" |
288 | MACHINE_FIRMWARE_append_mx8mq = " linux-firmware-imx-sdma-imx7d" | 288 | MACHINE_FIRMWARE:append:mx8mq = " linux-firmware-imx-sdma-imx7d" |
289 | MACHINE_FIRMWARE_append_mx8qm = " firmware-imx-vpu-imx8" | 289 | MACHINE_FIRMWARE:append:mx8qm = " firmware-imx-vpu-imx8" |
290 | MACHINE_FIRMWARE_append_mx8qxp = " firmware-imx-vpu-imx8" | 290 | MACHINE_FIRMWARE:append:mx8qxp = " firmware-imx-vpu-imx8" |
291 | MACHINE_FIRMWARE_append_use-mainline-bsp = " linux-firmware-imx-sdma-imx6q linux-firmware-imx-sdma-imx7d firmware-imx-vpu-imx6q firmware-imx-vpu-imx6d" | 291 | MACHINE_FIRMWARE:append:use-mainline-bsp = " linux-firmware-imx-sdma-imx6q linux-firmware-imx-sdma-imx7d firmware-imx-vpu-imx6q firmware-imx-vpu-imx6d" |
292 | 292 | ||
293 | MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}" | 293 | MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}" |
294 | 294 | ||
295 | # Extra audio support | 295 | # Extra audio support |
296 | IMX_ALSA_EXTRA = "" | 296 | IMX_ALSA_EXTRA = "" |
297 | IMX_ALSA_EXTRA_use-nxp-bsp = "imx-alsa-plugins" | 297 | IMX_ALSA_EXTRA:use-nxp-bsp = "imx-alsa-plugins" |
298 | MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | 298 | MACHINE_EXTRA_RRECOMMENDS:append:mx6 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" |
299 | MACHINE_EXTRA_RRECOMMENDS_append_mx7 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | 299 | MACHINE_EXTRA_RRECOMMENDS:append:mx7 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" |
300 | MACHINE_EXTRA_RRECOMMENDS_append_mx8 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | 300 | MACHINE_EXTRA_RRECOMMENDS:append:mx8 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" |
301 | 301 | ||
302 | # Extra Cypress Wi-Fi and BTW firmware (Murata) | 302 | # Extra Cypress Wi-Fi and BTW firmware (Murata) |
303 | MACHINE_FIRMWARE_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4339', 'linux-firmware-bcm4339', '', d)}" | 303 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4339', 'linux-firmware-bcm4339', '', d)}" |
304 | MACHINE_FIRMWARE_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm43430', 'linux-firmware-bcm43430', '', d)}" | 304 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm43430', 'linux-firmware-bcm43430', '', d)}" |
305 | MACHINE_FIRMWARE_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm43455', 'linux-firmware-bcm43455', '', d)}" | 305 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm43455', 'linux-firmware-bcm43455', '', d)}" |
306 | MACHINE_FIRMWARE_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4356', 'linux-firmware-bcm4356-pcie', '', d)}" | 306 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4356', 'linux-firmware-bcm4356-pcie', '', d)}" |
307 | MACHINE_FIRMWARE_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4359', 'linux-firmware-bcm4359-pcie', '', d)}" | 307 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4359', 'linux-firmware-bcm4359-pcie', '', d)}" |
308 | 308 | ||
309 | # Extra QCA Wi-Fi & BTE driver and firmware | 309 | # Extra QCA Wi-Fi & BTE driver and firmware |
310 | MACHINE_EXTRA_RRECOMMENDS_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'qca6174', 'packagegroup-fsl-qca6174', '', d)}" | 310 | MACHINE_EXTRA_RRECOMMENDS:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'qca6174', 'packagegroup-fsl-qca6174', '', d)}" |
311 | MACHINE_EXTRA_RRECOMMENDS_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'qca9377', 'packagegroup-fsl-qca9377', '', d)}" | 311 | MACHINE_EXTRA_RRECOMMENDS:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'qca9377', 'packagegroup-fsl-qca9377', '', d)}" |
312 | 312 | ||
313 | # Extra udev rules | 313 | # Extra udev rules |
314 | MACHINE_EXTRA_RRECOMMENDS += "udev-rules-imx" | 314 | MACHINE_EXTRA_RRECOMMENDS += "udev-rules-imx" |
@@ -320,29 +320,31 @@ MACHINE_EXTRA_RRECOMMENDS += " \ | |||
320 | 320 | ||
321 | # GStreamer 1.0 plugins | 321 | # GStreamer 1.0 plugins |
322 | MACHINE_GSTREAMER_1_0_PLUGIN ?= "" | 322 | MACHINE_GSTREAMER_1_0_PLUGIN ?= "" |
323 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6dl ?= "gstreamer1.0-plugins-imx-meta" | 323 | MACHINE_GSTREAMER_1_0_PLUGIN:mx6dl ?= "gstreamer1.0-plugins-imx-meta" |
324 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6q ?= "gstreamer1.0-plugins-imx-meta" | 324 | MACHINE_GSTREAMER_1_0_PLUGIN:mx6q ?= "gstreamer1.0-plugins-imx-meta" |
325 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6sl ?= "gstreamer1.0-plugins-imx-meta" | 325 | MACHINE_GSTREAMER_1_0_PLUGIN:mx6sl ?= "gstreamer1.0-plugins-imx-meta" |
326 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6sx ?= "gstreamer1.0-plugins-imx-meta" | 326 | MACHINE_GSTREAMER_1_0_PLUGIN:mx6sx ?= "gstreamer1.0-plugins-imx-meta" |
327 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6ul ?= "gstreamer1.0-plugins-imx-meta" | 327 | MACHINE_GSTREAMER_1_0_PLUGIN:mx6ul ?= "gstreamer1.0-plugins-imx-meta" |
328 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6ull ?= "gstreamer1.0-plugins-imx-meta" | 328 | MACHINE_GSTREAMER_1_0_PLUGIN:mx6ull ?= "gstreamer1.0-plugins-imx-meta" |
329 | MACHINE_GSTREAMER_1_0_PLUGIN_mx7d ?= "gstreamer1.0-plugins-imx-meta" | 329 | MACHINE_GSTREAMER_1_0_PLUGIN:mx7d ?= "gstreamer1.0-plugins-imx-meta" |
330 | MACHINE_GSTREAMER_1_0_PLUGIN_mx8mm ?= "imx-gst1.0-plugin" | 330 | MACHINE_GSTREAMER_1_0_PLUGIN:mx8mm ?= "imx-gst1.0-plugin" |
331 | MACHINE_GSTREAMER_1_0_PLUGIN_mx8mn ?= "imx-gst1.0-plugin" | 331 | MACHINE_GSTREAMER_1_0_PLUGIN:mx8mn ?= "imx-gst1.0-plugin" |
332 | MACHINE_GSTREAMER_1_0_PLUGIN_mx8mp ?= "imx-gst1.0-plugin" | 332 | MACHINE_GSTREAMER_1_0_PLUGIN:mx8mp ?= "imx-gst1.0-plugin" |
333 | MACHINE_GSTREAMER_1_0_PLUGIN_mx8mq ?= "imx-gst1.0-plugin" | 333 | MACHINE_GSTREAMER_1_0_PLUGIN:mx8mq ?= "imx-gst1.0-plugin" |
334 | MACHINE_GSTREAMER_1_0_PLUGIN_mx8qm ?= "imx-gst1.0-plugin" | 334 | MACHINE_GSTREAMER_1_0_PLUGIN:mx8qm ?= "imx-gst1.0-plugin" |
335 | MACHINE_GSTREAMER_1_0_PLUGIN_mx8qxp ?= "imx-gst1.0-plugin" | 335 | MACHINE_GSTREAMER_1_0_PLUGIN:mx8qxp ?= "imx-gst1.0-plugin" |
336 | 336 | ||
337 | PREFERRED_VERSION_gstreamer1.0_mx8 ?= "1.16.2.imx" | 337 | PREFERRED_VERSION_gstreamer1.0:mx8 ?= "1.18.0.imx" |
338 | PREFERRED_VERSION_gstreamer1.0-plugins-base_mx8 ?= "1.16.2.imx" | 338 | PREFERRED_VERSION_gstreamer1.0-plugins-base:mx8 ?= "1.18.0.imx" |
339 | PREFERRED_VERSION_gstreamer1.0-plugins-good_mx8 ?= "1.16.3.imx" | 339 | PREFERRED_VERSION_gstreamer1.0-plugins-good:mx8 ?= "1.18.0.imx" |
340 | PREFERRED_VERSION_gstreamer1.0-plugins-bad_mx8 ?= "1.16.3.imx" | 340 | PREFERRED_VERSION_gstreamer1.0-plugins-bad:mx8 ?= "1.18.0.imx" |
341 | PREFERRED_VERSION_gstreamer1.0-libav_mx8 ?= "1.16.0" | 341 | PREFERRED_VERSION_gstreamer1.0-plugins-ugly:mx8 ?= "1.18.0" |
342 | PREFERRED_VERSION_gstreamer1.0-libav:mx8 ?= "1.18.0" | ||
343 | PREFERRED_VERSION_gstreamer1.0-rtsp-server:mx8 ?= "1.18.0" | ||
342 | 344 | ||
343 | # Determines if the SoC has support for Vivante kernel driver | 345 | # Determines if the SoC has support for Vivante kernel driver |
344 | SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "0" | 346 | SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "0" |
345 | SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT_imxgpu = "1" | 347 | SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT:imxgpu = "1" |
346 | 348 | ||
347 | # Handle Vivante kernel driver setting: | 349 | # Handle Vivante kernel driver setting: |
348 | # 0 - machine does not have Vivante GPU driver support | 350 | # 0 - machine does not have Vivante GPU driver support |
@@ -355,59 +357,60 @@ PREFERRED_PROVIDER_virtual/libgl ?= "mesa" | |||
355 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" | 357 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" |
356 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" | 358 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" |
357 | 359 | ||
358 | PREFERRED_PROVIDER_virtual/egl_imxgpu ?= "imx-gpu-viv" | 360 | PREFERRED_PROVIDER_virtual/egl:imxgpu ?= "imx-gpu-viv" |
359 | PREFERRED_PROVIDER_virtual/libgl_imxgpu3d ?= "imx-gpu-viv" | 361 | PREFERRED_PROVIDER_virtual/libgl:imxgpu3d ?= "imx-gpu-viv" |
360 | PREFERRED_PROVIDER_virtual/libgles1_imxgpu3d ?= "imx-gpu-viv" | 362 | PREFERRED_PROVIDER_virtual/libgles1:imxgpu3d ?= "imx-gpu-viv" |
361 | PREFERRED_PROVIDER_virtual/libgles2_imxgpu3d ?= "imx-gpu-viv" | 363 | PREFERRED_PROVIDER_virtual/libgles2:imxgpu3d ?= "imx-gpu-viv" |
362 | PREFERRED_PROVIDER_virtual/libg2d ?= "imx-gpu-g2d" | 364 | PREFERRED_PROVIDER_virtual/libg2d ?= "imx-gpu-g2d" |
363 | PREFERRED_PROVIDER_virtual/libg2d_imxdpu ?= "imx-dpu-g2d" | 365 | PREFERRED_PROVIDER_virtual/libg2d:imxdpu ?= "imx-dpu-g2d" |
364 | PREFERRED_PROVIDER_opencl-clhpp_imxgpu ?= "imx-gpu-viv" | 366 | PREFERRED_PROVIDER_opencl-clhpp:imxgpu ?= "imx-gpu-viv" |
365 | PREFERRED_PROVIDER_opencl-headers_imxgpu ?= "imx-gpu-viv" | 367 | PREFERRED_PROVIDER_opencl-headers:imxgpu ?= "imx-gpu-viv" |
366 | PREFERRED_PROVIDER_opencl-icd-loader_imxgpu ?= "imx-gpu-viv" | 368 | PREFERRED_PROVIDER_opencl-icd-loader:imxgpu ?= "imx-gpu-viv" |
367 | 369 | ||
368 | PREFERRED_VERSION_weston_imx ?= "9.0.0.imx" | 370 | PREFERRED_VERSION_weston:imx ?= "9.0.0.imx" |
369 | PREFERRED_VERSION_weston_use-mainline-bsp = "" | 371 | PREFERRED_VERSION_weston:use-mainline-bsp = "" |
370 | 372 | ||
371 | PREFERRED_VERSION_wayland-protocols_mx6 ?= "1.20.imx" | 373 | PREFERRED_VERSION_wayland-protocols:mx6 ?= "1.20.imx" |
372 | PREFERRED_VERSION_wayland-protocols_mx7 ?= "1.20.imx" | 374 | PREFERRED_VERSION_wayland-protocols:mx7 ?= "1.20.imx" |
373 | PREFERRED_VERSION_wayland-protocols_mx8 ?= "1.20.imx" | 375 | PREFERRED_VERSION_wayland-protocols:mx8 ?= "1.20.imx" |
374 | 376 | ||
375 | # Use i.MX libdrm Version | 377 | # Use i.MX libdrm Version |
376 | PREFERRED_VERSION_libdrm_mx6 ?= "2.4.102.imx" | 378 | PREFERRED_VERSION_libdrm:mx6 ?= "2.4.102.imx" |
377 | PREFERRED_VERSION_libdrm_mx7 ?= "2.4.102.imx" | 379 | PREFERRED_VERSION_libdrm:mx7 ?= "2.4.102.imx" |
378 | PREFERRED_VERSION_libdrm_mx8 ?= "2.4.102.imx" | 380 | PREFERRED_VERSION_libdrm:mx8 ?= "2.4.102.imx" |
379 | 381 | ||
380 | # Use i.MX optee Version | 382 | # Use i.MX optee Version |
381 | PREFERRED_VERSION_optee-os_mx8 ?= "3.10.0.imx" | 383 | PREFERRED_VERSION_optee-os:mx8 ?= "3.10.0.imx" |
382 | PREFERRED_VERSION_optee-client_mx8 ?= "3.10.0.imx" | 384 | PREFERRED_VERSION_optee-client:mx8 ?= "3.10.0.imx" |
383 | PREFERRED_VERSION_optee-test_mx8 ?= "3.10.0.imx" | 385 | PREFERRED_VERSION_optee-test:mx8 ?= "3.10.0.imx" |
384 | 386 | ||
385 | #Use i.MX opencv Version for mx8 | 387 | #Use i.MX opencv Version for mx8 |
386 | PREFERRED_VERSION_opencv_mx8 ?= "4.5.2.imx" | 388 | PREFERRED_VERSION_opencv:mx8 ?= "4.5.2.imx" |
387 | 389 | ||
388 | # Handle default kernel | 390 | # Handle default kernel |
389 | IMX_DEFAULT_KERNEL = "linux-fslc-imx" | 391 | IMX_DEFAULT_KERNEL = "linux-fslc-imx" |
390 | IMX_DEFAULT_KERNEL_mxs = "linux-fslc" | 392 | IMX_DEFAULT_KERNEL:mxs = "linux-fslc" |
391 | IMX_DEFAULT_KERNEL_mx5 = "linux-fslc" | 393 | IMX_DEFAULT_KERNEL:mx5 = "linux-fslc" |
392 | IMX_DEFAULT_KERNEL_mx6 = "linux-fslc-imx" | 394 | IMX_DEFAULT_KERNEL:mx6 = "linux-fslc-imx" |
393 | IMX_DEFAULT_KERNEL_mx7 = "linux-fslc-imx" | 395 | IMX_DEFAULT_KERNEL:mx7 = "linux-fslc-imx" |
394 | IMX_DEFAULT_KERNEL_mx8 = "linux-fslc-imx" | 396 | IMX_DEFAULT_KERNEL:mx8 = "linux-fslc-imx" |
395 | IMX_DEFAULT_KERNEL_mx7ulp = "linux-fslc-imx" | 397 | IMX_DEFAULT_KERNEL:mx7ulp = "linux-fslc-imx" |
396 | IMX_DEFAULT_KERNEL_mx6sll = "linux-fslc-imx" | 398 | IMX_DEFAULT_KERNEL:mx6sll = "linux-fslc-imx" |
397 | IMX_DEFAULT_KERNEL_mx6ul = "linux-fslc-imx" | 399 | IMX_DEFAULT_KERNEL:mx6ul = "linux-fslc-imx" |
398 | IMX_DEFAULT_KERNEL_mx6ull = "linux-fslc-imx" | 400 | IMX_DEFAULT_KERNEL:mx6ull = "linux-fslc-imx" |
399 | IMX_DEFAULT_KERNEL_use-mainline-bsp = "linux-fslc" | 401 | IMX_DEFAULT_KERNEL:use-mainline-bsp = "linux-fslc" |
400 | 402 | ||
401 | PREFERRED_PROVIDER_virtual/kernel ??= "${IMX_DEFAULT_KERNEL}" | 403 | PREFERRED_PROVIDER_virtual/kernel ??= "${IMX_DEFAULT_KERNEL}" |
402 | 404 | ||
403 | SOC_DEFAULT_IMAGE_FSTYPES = "wic.bmap wic.gz" | 405 | SOC_DEFAULT_IMAGE_FSTYPES = "wic.bmap wic.gz" |
404 | SOC_DEFAULT_IMAGE_FSTYPES_mxs = "uboot-mxsboot-sdcard wic.bmap wic.gz" | 406 | SOC_DEFAULT_IMAGE_FSTYPES:mxs = "uboot-mxsboot-sdcard wic.bmap wic.gz" |
405 | 407 | ||
406 | # Do not update fstab file when using wic images | 408 | # Do not update fstab file when using wic images |
407 | WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" | 409 | WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" |
408 | 410 | ||
409 | OPTEE_BOOT_IMAGE = "uTee" | 411 | OPTEE_BIN_EXT ??= "" |
410 | OPTEE_BOOT_IMAGE_aarch64 = "" | 412 | OPTEE_BOOT_IMAGE = "tee.bin uTee-${OPTEE_BIN_EXT}" |
413 | OPTEE_BOOT_IMAGE:aarch64 = "tee.bin" | ||
411 | 414 | ||
412 | IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" | 415 | IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" |
413 | 416 | ||
@@ -419,7 +422,7 @@ IMAGE_BOOT_FILES ?= " \ | |||
419 | 422 | ||
420 | ### wic default support | 423 | ### wic default support |
421 | OPTEE_WKS_FILE_DEPENDS = "optee-os" | 424 | OPTEE_WKS_FILE_DEPENDS = "optee-os" |
422 | OPTEE_WKS_FILE_DEPENDS_aarch64 = "" | 425 | OPTEE_WKS_FILE_DEPENDS:aarch64 = "" |
423 | 426 | ||
424 | WKS_FILE_DEPENDS ?= " \ | 427 | WKS_FILE_DEPENDS ?= " \ |
425 | virtual/bootloader \ | 428 | virtual/bootloader \ |
@@ -429,8 +432,8 @@ WKS_FILE_DEPENDS ?= " \ | |||
429 | ${@bb.utils.contains('MACHINE_FEATURES', 'optee', '${OPTEE_WKS_FILE_DEPENDS}', '', d)} \ | 432 | ${@bb.utils.contains('MACHINE_FEATURES', 'optee', '${OPTEE_WKS_FILE_DEPENDS}', '', d)} \ |
430 | " | 433 | " |
431 | 434 | ||
432 | WKS_FILE_DEPENDS_append_mx8 = " imx-boot" | 435 | WKS_FILE_DEPENDS:append:mx8 = " imx-boot" |
433 | WKS_FILE_DEPENDS_append_mx8m = " imx-boot" | 436 | WKS_FILE_DEPENDS:append:mx8m = " imx-boot" |
434 | 437 | ||
435 | # We need to restrict the append so we don't add this for other i.MX SoC's. | 438 | # We need to restrict the append so we don't add this for other i.MX SoC's. |
436 | # Derivatives that are not yet adopted the usage of boot container provided | 439 | # Derivatives that are not yet adopted the usage of boot container provided |
@@ -444,15 +447,15 @@ WKS_FILE_DEPENDS_append_mx8m = " imx-boot" | |||
444 | # deployment task extesion execution defined in imx-boot-container class. | 447 | # deployment task extesion execution defined in imx-boot-container class. |
445 | # For NXP BSP: rename is done in 'imx-boot' recipe at the execution of compile | 448 | # For NXP BSP: rename is done in 'imx-boot' recipe at the execution of compile |
446 | # task. | 449 | # task. |
447 | WKS_FILE_DEPENDS_append_use-mainline-bsp_aarch64 = " \ | 450 | WKS_FILE_DEPENDS:append:use-mainline-bsp:aarch64 = " \ |
448 | ${@oe.utils.ifelse(d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '0', 'imx-boot', '')} \ | 451 | ${@oe.utils.ifelse(d.getVar('UBOOT_PROVIDES_BOOT_CONTAINER') == '0', 'imx-boot', '')} \ |
449 | " | 452 | " |
450 | 453 | ||
451 | SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks.in" | 454 | SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks.in" |
452 | SOC_DEFAULT_WKS_FILE_mx8m ?= "imx-imx-boot-bootpart.wks.in" | 455 | SOC_DEFAULT_WKS_FILE:mx8m ?= "imx-imx-boot-bootpart.wks.in" |
453 | 456 | ||
454 | SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks.in" | 457 | SOC_DEFAULT_WKS_FILE:mx8 ?= "imx-imx-boot-bootpart.wks.in" |
455 | SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" | 458 | SOC_DEFAULT_WKS_FILE:mxs ?= "imx-uboot-mxs-bootpart.wks.in" |
456 | 459 | ||
457 | # Boot container built as a part of mainline U-Boot uses different WKS | 460 | # Boot container built as a part of mainline U-Boot uses different WKS |
458 | # file as the entire mx8m series, as U-Boot versions later than 2021.04 are | 461 | # file as the entire mx8m series, as U-Boot versions later than 2021.04 are |
@@ -462,19 +465,19 @@ SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" | |||
462 | # replacement of imx-boot from NXP. | 465 | # replacement of imx-boot from NXP. |
463 | # Creation of those binary files is controlled by UBOOT_PROVIDES_BOOT_CONTAINER | 466 | # Creation of those binary files is controlled by UBOOT_PROVIDES_BOOT_CONTAINER |
464 | # variable defined above. | 467 | # variable defined above. |
465 | SOC_DEFAULT_WKS_FILE_imx-boot-container ?= "imx-boot-container-bootpart.wks.in" | 468 | SOC_DEFAULT_WKS_FILE:imx-boot-container ?= "imx-boot-container-bootpart.wks.in" |
466 | 469 | ||
467 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" | 470 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" |
468 | 471 | ||
469 | SERIAL_CONSOLES = "115200;ttymxc0" | 472 | SERIAL_CONSOLES = "115200;ttymxc0" |
470 | SERIAL_CONSOLES_mxs = "115200;ttyAMA0" | 473 | SERIAL_CONSOLES:mxs = "115200;ttyAMA0" |
471 | 474 | ||
472 | KERNEL_IMAGETYPE = "zImage" | 475 | KERNEL_IMAGETYPE = "zImage" |
473 | KERNEL_IMAGETYPE_aarch64 = "Image" | 476 | KERNEL_IMAGETYPE:aarch64 = "Image" |
474 | 477 | ||
475 | MACHINE_FEATURES = "usbgadget usbhost vfat alsa touchscreen" | 478 | MACHINE_FEATURES = "usbgadget usbhost vfat alsa touchscreen" |
476 | 479 | ||
477 | # Add the ability to specify _imx machines | 480 | # Add the ability to specify imx machines |
478 | MACHINEOVERRIDES =. "imx:" | 481 | MACHINEOVERRIDES =. "imx:" |
479 | 482 | ||
480 | HOSTTOOLS_NONFATAL_append_mx8 = " sha384sum" | 483 | HOSTTOOLS_NONFATAL:append:mx8 = " sha384sum" |
diff --git a/conf/machine/include/imx8dxl-evk.inc b/conf/machine/include/imx8dxl-evk.inc index 2868b4d6..a0006399 100644 --- a/conf/machine/include/imx8dxl-evk.inc +++ b/conf/machine/include/imx8dxl-evk.inc | |||
@@ -1,15 +1,15 @@ | |||
1 | MACHINEOVERRIDES =. "mx8:mx8x:mx8dxl:" | 1 | MACHINEOVERRIDES =. "mx8:mx8x:mx8dxl:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa35.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
5 | 5 | ||
6 | IMX_DEFAULT_BSP = "nxp" | 6 | IMX_DEFAULT_BSP = "nxp" |
7 | 7 | ||
8 | MACHINE_FEATURES += "pci bcm43455 bcm4356" | 8 | MACHINE_FEATURES += "pci bcm43455 bcm4356" |
9 | MACHINE_FEATURES_append_use-nxp-bsp = " bcm4359" | 9 | MACHINE_FEATURES:append:use-nxp-bsp = " bcm4359" |
10 | 10 | ||
11 | # Don't include kernels in standard images | 11 | # Don't include kernels in standard images |
12 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" | 12 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" |
13 | 13 | ||
14 | LOADADDR = "" | 14 | LOADADDR = "" |
15 | 15 | ||
@@ -23,7 +23,7 @@ USE_VT = "0" | |||
23 | KERNEL_DEVICETREE = " \ | 23 | KERNEL_DEVICETREE = " \ |
24 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ | 24 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ |
25 | " | 25 | " |
26 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 26 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
27 | freescale/${KERNEL_DEVICETREE_BASENAME}-rpmsg.dtb \ | 27 | freescale/${KERNEL_DEVICETREE_BASENAME}-rpmsg.dtb \ |
28 | " | 28 | " |
29 | 29 | ||
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc index f458c56d..85419a45 100644 --- a/conf/machine/include/imx8mm-evk.inc +++ b/conf/machine/include/imx8mm-evk.inc | |||
@@ -1,29 +1,34 @@ | |||
1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mm:" | 1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mm:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa53.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
5 | |||
6 | # Mainline BSP defaults to "generic" cortexa53 configuration, | ||
7 | # adjust it here to include crypto extension which enables | ||
8 | # inline NEON and FPU code generation | ||
9 | DEFAULTTUNE:use-mainline-bsp = "cortexa53-crypto" | ||
5 | 10 | ||
6 | MACHINE_FEATURES += "pci wifi bluetooth bcm43455 bcm4356" | 11 | MACHINE_FEATURES += "pci wifi bluetooth bcm43455 bcm4356" |
7 | 12 | ||
8 | # NXP BSP can consume proprietary jailhouse, BCM4359, and QCA9377 driver and firmware | 13 | # NXP BSP can consume proprietary jailhouse and BCM4359 firmware |
9 | # Since the firmware is not available publicly, and rather distributed | 14 | # Since the firmware is not available publicly, and rather distributed |
10 | # under "Proprietary" license - we opt-out from using it in all BSPs | 15 | # under "Proprietary" license - we opt-out from using it in all BSPs |
11 | # and pin it to NXP BSP only | 16 | # and pin it to NXP BSP only |
12 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have | 17 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have |
13 | # a full support for it yet. | 18 | # a full support for it yet. |
14 | MACHINE_FEATURES_append_use-nxp-bsp = " optee jailhouse bcm4359 qca9377" | 19 | MACHINE_FEATURES:append:use-nxp-bsp = " optee jailhouse bcm4359" |
15 | 20 | ||
16 | KERNEL_DEVICETREE = " \ | 21 | KERNEL_DEVICETREE = " \ |
17 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ | 22 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ |
18 | " | 23 | " |
19 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 24 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
20 | freescale/${KERNEL_DEVICETREE_BASENAME}-pcie-ep.dtb \ | 25 | freescale/${KERNEL_DEVICETREE_BASENAME}-pcie-ep.dtb \ |
21 | freescale/${KERNEL_DEVICETREE_BASENAME}-rm67191.dtb \ | 26 | freescale/${KERNEL_DEVICETREE_BASENAME}-rm67191.dtb \ |
22 | " | 27 | " |
23 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" | 28 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" |
24 | 29 | ||
25 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | 30 | IMX_DEFAULT_BOOTLOADER:use-nxp-bsp = "u-boot-imx" |
26 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | 31 | IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-fslc" |
27 | 32 | ||
28 | UBOOT_SUFFIX = "bin" | 33 | UBOOT_SUFFIX = "bin" |
29 | 34 | ||
@@ -51,18 +56,18 @@ SERIAL_CONSOLES = "115200;ttymxc1" | |||
51 | # to be used to define the boot process. | 56 | # to be used to define the boot process. |
52 | # We opt-in for Syslinux, since it is designated as a preferred | 57 | # We opt-in for Syslinux, since it is designated as a preferred |
53 | # distro boot mode according to the U-Boot documentation. | 58 | # distro boot mode according to the U-Boot documentation. |
54 | UBOOT_EXTLINUX_use-mainline-bsp = "1" | 59 | UBOOT_EXTLINUX:use-mainline-bsp = "1" |
55 | UBOOT_EXTLINUX_LABELS_use-mainline-bsp = "default" | 60 | UBOOT_EXTLINUX_LABELS:use-mainline-bsp = "default" |
56 | UBOOT_EXTLINUX_DEFAULT_LABEL_use-mainline-bsp = "i.MX8M Mini EVK" | 61 | UBOOT_EXTLINUX_DEFAULT_LABEL:use-mainline-bsp = "i.MX8M Mini EVK" |
57 | 62 | ||
58 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default_use-mainline-bsp = "i.MX8M Mini EVK" | 63 | UBOOT_EXTLINUX_MENU_DESCRIPTION:default:use-mainline-bsp = "i.MX8M Mini EVK" |
59 | UBOOT_EXTLINUX_FDT_default_use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" | 64 | UBOOT_EXTLINUX_FDT:default:use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" |
60 | UBOOT_EXTLINUX_CONSOLE_default_use-mainline-bsp = "console=${console}" | 65 | UBOOT_EXTLINUX_CONSOLE:default:use-mainline-bsp = "console=${console}" |
61 | UBOOT_EXTLINUX_ROOT_default_use-mainline-bsp = "root=/dev/mmcblk1p2" | 66 | UBOOT_EXTLINUX_ROOT:default:use-mainline-bsp = "root=/dev/mmcblk1p2" |
62 | 67 | ||
63 | # Add extlinux.conf to the lis of files, which are deployed onto the | 68 | # Add extlinux.conf to the lis of files, which are deployed onto the |
64 | # boot partition | 69 | # boot partition |
65 | IMAGE_BOOT_FILES_append_use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" | 70 | IMAGE_BOOT_FILES:append:use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" |
66 | 71 | ||
67 | LOADADDR = "" | 72 | LOADADDR = "" |
68 | UBOOT_SUFFIX = "bin" | 73 | UBOOT_SUFFIX = "bin" |
@@ -73,4 +78,4 @@ OPTEE_BIN_EXT = "8mm" | |||
73 | TEE_LOAD_ADDR = "0xbe000000" | 78 | TEE_LOAD_ADDR = "0xbe000000" |
74 | 79 | ||
75 | # Add additional firmware | 80 | # Add additional firmware |
76 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 81 | MACHINE_FIRMWARE:append = " linux-firmware-ath10k" |
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc index a0e39857..4f897349 100644 --- a/conf/machine/include/imx8mn-evk.inc +++ b/conf/machine/include/imx8mn-evk.inc | |||
@@ -1,19 +1,24 @@ | |||
1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mn:" | 1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mn:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa53.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
5 | |||
6 | # Mainline BSP defaults to "generic" cortexa53 configuration, | ||
7 | # adjust it here to include crypto extension which enables | ||
8 | # inline NEON and FPU code generation | ||
9 | DEFAULTTUNE:use-mainline-bsp = "cortexa53-crypto" | ||
5 | 10 | ||
6 | MACHINE_FEATURES += "wifi bluetooth bcm43455 bcm4356" | 11 | MACHINE_FEATURES += "wifi bluetooth bcm43455 bcm4356" |
7 | 12 | ||
8 | # NXP BSP can consume proprietary jailhouse and Broadcom drivers | 13 | # NXP BSP can consume proprietary jailhouse and Broadcom drivers |
9 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have | 14 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have |
10 | # a full support for it yet. | 15 | # a full support for it yet. |
11 | MACHINE_FEATURES_append_use-nxp-bsp = " optee jailhouse bcm4359" | 16 | MACHINE_FEATURES:append:use-nxp-bsp = " optee jailhouse bcm4359" |
12 | 17 | ||
13 | KERNEL_DEVICETREE = " \ | 18 | KERNEL_DEVICETREE = " \ |
14 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ | 19 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ |
15 | " | 20 | " |
16 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 21 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
17 | freescale/${KERNEL_DEVICETREE_BASENAME}-ak5558.dtb \ | 22 | freescale/${KERNEL_DEVICETREE_BASENAME}-ak5558.dtb \ |
18 | freescale/${KERNEL_DEVICETREE_BASENAME}-inmate.dtb \ | 23 | freescale/${KERNEL_DEVICETREE_BASENAME}-inmate.dtb \ |
19 | freescale/${KERNEL_DEVICETREE_BASENAME}-rm67191.dtb \ | 24 | freescale/${KERNEL_DEVICETREE_BASENAME}-rm67191.dtb \ |
@@ -22,8 +27,8 @@ KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | |||
22 | " | 27 | " |
23 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" | 28 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" |
24 | 29 | ||
25 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | 30 | IMX_DEFAULT_BOOTLOADER:use-nxp-bsp = "u-boot-imx" |
26 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | 31 | IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-fslc" |
27 | 32 | ||
28 | UBOOT_SUFFIX = "bin" | 33 | UBOOT_SUFFIX = "bin" |
29 | 34 | ||
@@ -52,18 +57,18 @@ SERIAL_CONSOLES = "115200;ttymxc1" | |||
52 | # to be used to define the boot process. | 57 | # to be used to define the boot process. |
53 | # We opt-in for Syslinux, since it is designated as a preferred | 58 | # We opt-in for Syslinux, since it is designated as a preferred |
54 | # distro boot mode according to the U-Boot documentation. | 59 | # distro boot mode according to the U-Boot documentation. |
55 | UBOOT_EXTLINUX_use-mainline-bsp = "1" | 60 | UBOOT_EXTLINUX:use-mainline-bsp = "1" |
56 | UBOOT_EXTLINUX_LABELS_use-mainline-bsp = "default" | 61 | UBOOT_EXTLINUX_LABELS:use-mainline-bsp = "default" |
57 | UBOOT_EXTLINUX_DEFAULT_LABEL_use-mainline-bsp = "i.MX8M Nano EVK" | 62 | UBOOT_EXTLINUX_DEFAULT_LABEL:use-mainline-bsp = "i.MX8M Nano EVK" |
58 | 63 | ||
59 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default_use-mainline-bsp = "i.MX8M Nano EVK" | 64 | UBOOT_EXTLINUX_MENU_DESCRIPTION:default:use-mainline-bsp = "i.MX8M Nano EVK" |
60 | UBOOT_EXTLINUX_FDT_default_use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" | 65 | UBOOT_EXTLINUX_FDT:default:use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" |
61 | UBOOT_EXTLINUX_CONSOLE_default_use-mainline-bsp = "console=${console}" | 66 | UBOOT_EXTLINUX_CONSOLE:default:use-mainline-bsp = "console=${console}" |
62 | UBOOT_EXTLINUX_ROOT_default_use-mainline-bsp = "root=/dev/mmcblk1p2" | 67 | UBOOT_EXTLINUX_ROOT:default:use-mainline-bsp = "root=/dev/mmcblk1p2" |
63 | 68 | ||
64 | # Add extlinux.conf to the lis of files, which are deployed onto the | 69 | # Add extlinux.conf to the lis of files, which are deployed onto the |
65 | # boot partition | 70 | # boot partition |
66 | IMAGE_BOOT_FILES_append_use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" | 71 | IMAGE_BOOT_FILES:append:use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" |
67 | 72 | ||
68 | BOOT_SPACE = "65536" | 73 | BOOT_SPACE = "65536" |
69 | LOADADDR = "" | 74 | LOADADDR = "" |
@@ -79,4 +84,4 @@ OPTEE_BIN_EXT = "8mn" | |||
79 | TEE_LOAD_ADDR = "0x56000000" | 84 | TEE_LOAD_ADDR = "0x56000000" |
80 | 85 | ||
81 | # Add additional firmware | 86 | # Add additional firmware |
82 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 87 | MACHINE_FIRMWARE:append = " linux-firmware-ath10k" |
diff --git a/conf/machine/include/imx8mp-evk.inc b/conf/machine/include/imx8mp-evk.inc index d070831f..7635d08c 100644 --- a/conf/machine/include/imx8mp-evk.inc +++ b/conf/machine/include/imx8mp-evk.inc | |||
@@ -1,14 +1,19 @@ | |||
1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mp:" | 1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mp:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa53.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
5 | |||
6 | # Mainline BSP defaults to "generic" cortexa53 configuration, | ||
7 | # adjust it here to include crypto extension which enables | ||
8 | # inline NEON and FPU code generation | ||
9 | DEFAULTTUNE:use-mainline-bsp = "cortexa53-crypto" | ||
5 | 10 | ||
6 | MACHINE_FEATURES += "pci wifi bluetooth" | 11 | MACHINE_FEATURES += "pci wifi bluetooth" |
7 | 12 | ||
8 | # NXP BSP can consume proprietary jailhouse and Marvell drivers | 13 | # NXP BSP can consume proprietary jailhouse and Marvell drivers |
9 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have | 14 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have |
10 | # a full support for it yet. | 15 | # a full support for it yet. |
11 | MACHINE_FEATURES_append_use-nxp-bsp = " optee jailhouse mrvl8997" | 16 | MACHINE_FEATURES:append:use-nxp-bsp = " optee jailhouse mrvl8997" |
12 | 17 | ||
13 | # Mainline kernel contains only one DTB file for | 18 | # Mainline kernel contains only one DTB file for |
14 | # imx8mpevk machine | 19 | # imx8mpevk machine |
@@ -18,8 +23,8 @@ KERNEL_DEVICETREE = " \ | |||
18 | 23 | ||
19 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" | 24 | UBOOT_DTB_NAME = "${KERNEL_DEVICETREE_BASENAME}.dtb" |
20 | 25 | ||
21 | IMX_DEFAULT_BOOTLOADER_use-nxp-bsp = "u-boot-imx" | 26 | IMX_DEFAULT_BOOTLOADER:use-nxp-bsp = "u-boot-imx" |
22 | IMX_DEFAULT_BOOTLOADER_use-mainline-bsp = "u-boot-fslc" | 27 | IMX_DEFAULT_BOOTLOADER:use-mainline-bsp = "u-boot-fslc" |
23 | 28 | ||
24 | UBOOT_SUFFIX = "bin" | 29 | UBOOT_SUFFIX = "bin" |
25 | 30 | ||
@@ -50,18 +55,18 @@ SERIAL_CONSOLES = "115200;ttymxc1" | |||
50 | # to be used to define the boot process. | 55 | # to be used to define the boot process. |
51 | # We opt-in for Syslinux, since it is designated as a preferred | 56 | # We opt-in for Syslinux, since it is designated as a preferred |
52 | # distro boot mode according to the U-Boot documentation. | 57 | # distro boot mode according to the U-Boot documentation. |
53 | UBOOT_EXTLINUX_use-mainline-bsp = "1" | 58 | UBOOT_EXTLINUX:use-mainline-bsp = "1" |
54 | UBOOT_EXTLINUX_LABELS_use-mainline-bsp = "default" | 59 | UBOOT_EXTLINUX_LABELS:use-mainline-bsp = "default" |
55 | UBOOT_EXTLINUX_DEFAULT_LABEL_use-mainline-bsp = "i.MX8M Plus EVK" | 60 | UBOOT_EXTLINUX_DEFAULT_LABEL:use-mainline-bsp = "i.MX8M Plus EVK" |
56 | 61 | ||
57 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default_use-mainline-bsp = "i.MX8M Plus EVK" | 62 | UBOOT_EXTLINUX_MENU_DESCRIPTION:default:use-mainline-bsp = "i.MX8M Plus EVK" |
58 | UBOOT_EXTLINUX_FDT_default_use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" | 63 | UBOOT_EXTLINUX_FDT:default:use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" |
59 | UBOOT_EXTLINUX_CONSOLE_default_use-mainline-bsp = "console=${console}" | 64 | UBOOT_EXTLINUX_CONSOLE:default:use-mainline-bsp = "console=${console}" |
60 | UBOOT_EXTLINUX_ROOT_default_use-mainline-bsp = "root=/dev/mmcblk1p2" | 65 | UBOOT_EXTLINUX_ROOT:default:use-mainline-bsp = "root=/dev/mmcblk1p2" |
61 | 66 | ||
62 | # Add extlinux.conf to the lis of files, which are deployed onto the | 67 | # Add extlinux.conf to the lis of files, which are deployed onto the |
63 | # boot partition | 68 | # boot partition |
64 | IMAGE_BOOT_FILES_append_use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" | 69 | IMAGE_BOOT_FILES:append:use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" |
65 | 70 | ||
66 | LOADADDR = "" | 71 | LOADADDR = "" |
67 | UBOOT_SUFFIX = "bin" | 72 | UBOOT_SUFFIX = "bin" |
@@ -72,4 +77,4 @@ OPTEE_BIN_EXT = "8mp" | |||
72 | TEE_LOAD_ADDR = "0x56000000" | 77 | TEE_LOAD_ADDR = "0x56000000" |
73 | 78 | ||
74 | # Add additional firmware | 79 | # Add additional firmware |
75 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 80 | MACHINE_FIRMWARE:append = " linux-firmware-ath10k" |
diff --git a/conf/machine/include/imx8x-mek.inc b/conf/machine/include/imx8x-mek.inc index 55a28c87..e6f4f058 100644 --- a/conf/machine/include/imx8x-mek.inc +++ b/conf/machine/include/imx8x-mek.inc | |||
@@ -1,15 +1,15 @@ | |||
1 | MACHINEOVERRIDES =. "mx8:mx8x:" | 1 | MACHINEOVERRIDES =. "mx8:mx8x:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa35.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
5 | 5 | ||
6 | IMX_DEFAULT_BSP = "nxp" | 6 | IMX_DEFAULT_BSP = "nxp" |
7 | 7 | ||
8 | MACHINE_FEATURES += "pci optee bcm43455 bcm4356" | 8 | MACHINE_FEATURES += "pci optee bcm43455 bcm4356" |
9 | MACHINE_FEATURES_append_use-nxp-bsp = " bcm4359" | 9 | MACHINE_FEATURES:append:use-nxp-bsp = " bcm4359" |
10 | 10 | ||
11 | # Don't include kernels in standard images | 11 | # Don't include kernels in standard images |
12 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" | 12 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" |
13 | 13 | ||
14 | LOADADDR = "" | 14 | LOADADDR = "" |
15 | 15 | ||
@@ -23,7 +23,7 @@ USE_VT = "0" | |||
23 | KERNEL_DEVICETREE = " \ | 23 | KERNEL_DEVICETREE = " \ |
24 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ | 24 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ |
25 | " | 25 | " |
26 | KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | 26 | KERNEL_DEVICETREE:append:use-nxp-bsp = " \ |
27 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsi-rm67191.dtb \ | 27 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsi-rm67191.dtb \ |
28 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsi-rm67191-rpmsg.dtb \ | 28 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsi-rm67191-rpmsg.dtb \ |
29 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsp.dtb \ | 29 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsp.dtb \ |
@@ -71,4 +71,4 @@ IMXBOOT_TARGETS = \ | |||
71 | BOARD_TYPE = "mek" | 71 | BOARD_TYPE = "mek" |
72 | 72 | ||
73 | # Add additional firmware | 73 | # Add additional firmware |
74 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 74 | MACHINE_FIRMWARE:append = " linux-firmware-ath10k" |
diff --git a/conf/machine/include/qoriq-base.inc b/conf/machine/include/qoriq-base.inc index 0a42160f..0d8978e3 100644 --- a/conf/machine/include/qoriq-base.inc +++ b/conf/machine/include/qoriq-base.inc | |||
@@ -9,8 +9,8 @@ PREFERRED_PROVIDER_nativesdk-u-boot-mkimage ??= "nativesdk-u-boot-tools" | |||
9 | PREFERRED_VERSION_testfloat = "2a" | 9 | PREFERRED_VERSION_testfloat = "2a" |
10 | 10 | ||
11 | SOC_DEFAULT_IMAGE_FSTYPES = "tar.gz" | 11 | SOC_DEFAULT_IMAGE_FSTYPES = "tar.gz" |
12 | SOC_DEFAULT_IMAGE_FSTYPES_append_ls1043a = " wic.bz2" | 12 | SOC_DEFAULT_IMAGE_FSTYPES:append:ls1043a = " wic.bz2" |
13 | SOC_DEFAULT_IMAGE_FSTYPES_append_ls1046a = " wic.bz2" | 13 | SOC_DEFAULT_IMAGE_FSTYPES:append:ls1046a = " wic.bz2" |
14 | IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" | 14 | IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" |
15 | 15 | ||
16 | # Composite Image Layout (in KBytes) | 16 | # Composite Image Layout (in KBytes) |
@@ -31,8 +31,8 @@ IMAGE_BOOT_FILES ?= " \ | |||
31 | " | 31 | " |
32 | 32 | ||
33 | SOC_DEFAULT_WKS_FILE ?= "" | 33 | SOC_DEFAULT_WKS_FILE ?= "" |
34 | SOC_DEFAULT_WKS_FILE_ls1043a ?= "ls104x-uboot-bootpart.wks.in" | 34 | SOC_DEFAULT_WKS_FILE:ls1043a ?= "ls104x-uboot-bootpart.wks.in" |
35 | SOC_DEFAULT_WKS_FILE_ls1046a ?= "ls104x-uboot-bootpart.wks.in" | 35 | SOC_DEFAULT_WKS_FILE:ls1046a ?= "ls104x-uboot-bootpart.wks.in" |
36 | 36 | ||
37 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" | 37 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" |
38 | 38 | ||
@@ -54,7 +54,7 @@ MACHINEOVERRIDES =. "use-${QORIQ_DEFAULT_BSP}-bsp:" | |||
54 | 54 | ||
55 | # Sub-architecture support | 55 | # Sub-architecture support |
56 | MACHINE_SOCARCH_SUFFIX ?= "" | 56 | MACHINE_SOCARCH_SUFFIX ?= "" |
57 | MACHINE_SOCARCH_SUFFIX_qoriq = "-qoriq" | 57 | MACHINE_SOCARCH_SUFFIX:qoriq = "-qoriq" |
58 | 58 | ||
59 | MACHINE_ARCH_FILTER = "virtual/kernel" | 59 | MACHINE_ARCH_FILTER = "virtual/kernel" |
60 | 60 | ||
diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc index f11b588b..34ce7abc 100644 --- a/conf/machine/include/utilities.inc +++ b/conf/machine/include/utilities.inc | |||
@@ -23,6 +23,6 @@ def make_dtb_boot_files(d): | |||
23 | 23 | ||
24 | def get_spl_binary(d): | 24 | def get_spl_binary(d): |
25 | imx_default_bootloader = d.get('IMX_DEFAULT_BOOTLOADER') | 25 | imx_default_bootloader = d.get('IMX_DEFAULT_BOOTLOADER') |
26 | spl_binary = d.getVar("SPL_BINARY_pn-%s" % imx_default_bootloader) | 26 | spl_binary = d.getVar("SPL_BINARY:pn-%s" % imx_default_bootloader) |
27 | 27 | ||
28 | return spl_binary or "" | 28 | return spl_binary or "" |
diff --git a/conf/machine/ls1021atwr.conf b/conf/machine/ls1021atwr.conf index e4bfb79c..dff6767c 100644 --- a/conf/machine/ls1021atwr.conf +++ b/conf/machine/ls1021atwr.conf | |||
@@ -8,7 +8,7 @@ | |||
8 | MACHINEOVERRIDES =. "ls102xa:" | 8 | MACHINEOVERRIDES =. "ls102xa:" |
9 | 9 | ||
10 | require conf/machine/include/qoriq-arm.inc | 10 | require conf/machine/include/qoriq-arm.inc |
11 | require conf/machine/include/tune-cortexa7.inc | 11 | require conf/machine/include/arm/armv7a/tune-cortexa7.inc |
12 | 12 | ||
13 | MACHINE_FEATURES += "optee" | 13 | MACHINE_FEATURES += "optee" |
14 | 14 | ||
diff --git a/conf/machine/ls1028ardb.conf b/conf/machine/ls1028ardb.conf index 63f3802f..d70a5a61 100644 --- a/conf/machine/ls1028ardb.conf +++ b/conf/machine/ls1028ardb.conf | |||
@@ -22,7 +22,7 @@ UBOOT_CONFIG[tfa-secure-boot] = "ls1028ardb_tfa_SECURE_BOOT_defconfig" | |||
22 | UBOOT_CONFIG[tfa] = "ls1028ardb_tfa_defconfig" | 22 | UBOOT_CONFIG[tfa] = "ls1028ardb_tfa_defconfig" |
23 | 23 | ||
24 | KERNEL_DEVICETREE ?= "freescale/fsl-ls1028a-rdb.dtb freescale/fsl-ls1028a-qds.dtb" | 24 | KERNEL_DEVICETREE ?= "freescale/fsl-ls1028a-rdb.dtb freescale/fsl-ls1028a-qds.dtb" |
25 | KERNEL_DEVICETREE_append_use-nxp-bsp = "\ | 25 | KERNEL_DEVICETREE:append:use-nxp-bsp = "\ |
26 | freescale/fsl-ls1028a-rdb-dpdk.dtb \ | 26 | freescale/fsl-ls1028a-rdb-dpdk.dtb \ |
27 | " | 27 | " |
28 | KERNEL_DEFCONFIG ?= "defconfig" | 28 | KERNEL_DEFCONFIG ?= "defconfig" |
diff --git a/conf/machine/ls1043ardb.conf b/conf/machine/ls1043ardb.conf index fa8ab615..4ff3c0ac 100644 --- a/conf/machine/ls1043ardb.conf +++ b/conf/machine/ls1043ardb.conf | |||
@@ -27,7 +27,7 @@ KERNEL_DEVICETREE ?= "\ | |||
27 | freescale/fsl-ls1043a-qds.dtb \ | 27 | freescale/fsl-ls1043a-qds.dtb \ |
28 | " | 28 | " |
29 | # usdpaa dtb is used for dpdk. TODO: rename in kernel | 29 | # usdpaa dtb is used for dpdk. TODO: rename in kernel |
30 | KERNEL_DEVICETREE_prepend_use-nxp-bsp = "\ | 30 | KERNEL_DEVICETREE:prepend:use-nxp-bsp = "\ |
31 | freescale/fsl-ls1043a-rdb-sdk.dtb \ | 31 | freescale/fsl-ls1043a-rdb-sdk.dtb \ |
32 | freescale/fsl-ls1043a-rdb-usdpaa.dtb \ | 32 | freescale/fsl-ls1043a-rdb-usdpaa.dtb \ |
33 | freescale/fsl-ls1043a-qds-sdk.dtb \ | 33 | freescale/fsl-ls1043a-qds-sdk.dtb \ |
diff --git a/conf/machine/ls1046afrwy.conf b/conf/machine/ls1046afrwy.conf index e6eabc0f..eb3c0bb6 100644 --- a/conf/machine/ls1046afrwy.conf +++ b/conf/machine/ls1046afrwy.conf | |||
@@ -25,7 +25,7 @@ KERNEL_DEVICETREE ?= "\ | |||
25 | freescale/fsl-ls1046a-frwy.dtb \ | 25 | freescale/fsl-ls1046a-frwy.dtb \ |
26 | " | 26 | " |
27 | # usdpaa dtb is used for dpdk. TODO: rename in kernel | 27 | # usdpaa dtb is used for dpdk. TODO: rename in kernel |
28 | KERNEL_DEVICETREE_prepend_use-nxp-bsp = "\ | 28 | KERNEL_DEVICETREE:prepend:use-nxp-bsp = "\ |
29 | freescale/fsl-ls1046a-frwy-sdk.dtb \ | 29 | freescale/fsl-ls1046a-frwy-sdk.dtb \ |
30 | freescale/fsl-ls1046a-frwy-usdpaa.dtb \ | 30 | freescale/fsl-ls1046a-frwy-usdpaa.dtb \ |
31 | " | 31 | " |
diff --git a/conf/machine/ls1046ardb.conf b/conf/machine/ls1046ardb.conf index 97fb1e29..8e815295 100644 --- a/conf/machine/ls1046ardb.conf +++ b/conf/machine/ls1046ardb.conf | |||
@@ -26,7 +26,7 @@ KERNEL_DEVICETREE ?= "\ | |||
26 | freescale/fsl-ls1046a-qds.dtb \ | 26 | freescale/fsl-ls1046a-qds.dtb \ |
27 | " | 27 | " |
28 | # usdpaa dtb is used for dpdk. TODO: rename in kernel | 28 | # usdpaa dtb is used for dpdk. TODO: rename in kernel |
29 | KERNEL_DEVICETREE_prepend_use-nxp-bsp = "\ | 29 | KERNEL_DEVICETREE:prepend:use-nxp-bsp = "\ |
30 | freescale/fsl-ls1046a-rdb-sdk.dtb \ | 30 | freescale/fsl-ls1046a-rdb-sdk.dtb \ |
31 | freescale/fsl-ls1046a-rdb-usdpaa.dtb \ | 31 | freescale/fsl-ls1046a-rdb-usdpaa.dtb \ |
32 | freescale/fsl-ls1046a-qds-sdk.dtb \ | 32 | freescale/fsl-ls1046a-qds-sdk.dtb \ |
diff --git a/dynamic-layers/aglprofilegraphical/recipes-graphics/wayland/weston-init.bbappend b/dynamic-layers/aglprofilegraphical/recipes-graphics/wayland/weston-init.bbappend index 10b66c0e..b7bf3298 100644 --- a/dynamic-layers/aglprofilegraphical/recipes-graphics/wayland/weston-init.bbappend +++ b/dynamic-layers/aglprofilegraphical/recipes-graphics/wayland/weston-init.bbappend | |||
@@ -1,3 +1,3 @@ | |||
1 | do_install_append() { | 1 | do_install:append() { |
2 | rm -f ${D}${sysconfdir}/xdg/weston/weston.ini | 2 | rm -f ${D}${sysconfdir}/xdg/weston/weston.ini |
3 | } | 3 | } |
diff --git a/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-imx.inc b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-imx.inc index cdd0f08f..7d8065f9 100644 --- a/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-imx.inc +++ b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-imx.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DEPENDS_append_imxvpu = " imx-vpuwrap" | 1 | DEPENDS:append:imxvpu = " imx-vpuwrap" |
2 | 2 | ||
3 | # Additional imx code and patches are included in the chromium-imx git repository. | 3 | # Additional imx code and patches are included in the chromium-imx git repository. |
4 | # The code below fetches this repository, copies the extra source over to the main | 4 | # The code below fetches this repository, copies the extra source over to the main |
@@ -26,7 +26,7 @@ do_patch[prefuncs] =+ "add_chromium_imx_patches" | |||
26 | # * Lost context problems are not known to happen with Vivante GPUs, | 26 | # * Lost context problems are not known to happen with Vivante GPUs, |
27 | # so it is safe to use ignore-lost-context | 27 | # so it is safe to use ignore-lost-context |
28 | # * Proprietary codecs need to be enabled for h.264 and MP4 support | 28 | # * Proprietary codecs need to be enabled for h.264 and MP4 support |
29 | PACKAGECONFIG_append = " ignore-lost-context proprietary-codecs" | 29 | PACKAGECONFIG:append = " ignore-lost-context proprietary-codecs" |
30 | 30 | ||
31 | copy_chromium_imx_files() { | 31 | copy_chromium_imx_files() { |
32 | # sources in src/ are already organized in a manner | 32 | # sources in src/ are already organized in a manner |
diff --git a/dynamic-layers/filesystem-layer/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bbappend b/dynamic-layers/filesystem-layer/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bbappend index 1080a9f5..563c9e76 100644 --- a/dynamic-layers/filesystem-layer/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bbappend +++ b/dynamic-layers/filesystem-layer/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bbappend | |||
@@ -4,7 +4,7 @@ PACKAGES += " \ | |||
4 | ${PN}-f2fs \ | 4 | ${PN}-f2fs \ |
5 | " | 5 | " |
6 | 6 | ||
7 | RDEPENDS_${PN}-f2fs = " \ | 7 | RDEPENDS:${PN}-f2fs = " \ |
8 | ${PN}-base \ | 8 | ${PN}-base \ |
9 | f2fs-tools \ | 9 | f2fs-tools \ |
10 | " | 10 | " |
diff --git a/dynamic-layers/gnome-layer/recipes-graphics/clutter/clutter-1.0_%.bbappend b/dynamic-layers/gnome-layer/recipes-graphics/clutter/clutter-1.0_%.bbappend index 0b4c4861..fb90c73e 100644 --- a/dynamic-layers/gnome-layer/recipes-graphics/clutter/clutter-1.0_%.bbappend +++ b/dynamic-layers/gnome-layer/recipes-graphics/clutter/clutter-1.0_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | PACKAGECONFIG_imxgpu3d ??= " \ | 1 | PACKAGECONFIG:imxgpu3d ??= " \ |
2 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', \ | 2 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', \ |
3 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', \ | 3 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', \ |
4 | '', d), d)} \ | 4 | '', d), d)} \ |
diff --git a/dynamic-layers/gnome-layer/recipes-graphics/cogl/cogl-1.0_%.bbappend b/dynamic-layers/gnome-layer/recipes-graphics/cogl/cogl-1.0_%.bbappend index afbaee43..e07d0d54 100644 --- a/dynamic-layers/gnome-layer/recipes-graphics/cogl/cogl-1.0_%.bbappend +++ b/dynamic-layers/gnome-layer/recipes-graphics/cogl/cogl-1.0_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | PACKAGECONFIG_imxgpu3d ??= " \ | 1 | PACKAGECONFIG:imxgpu3d ??= " \ |
2 | cogl-pango gles2 \ | 2 | cogl-pango gles2 \ |
3 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', \ | 3 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', \ |
4 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'egl-x11', \ | 4 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'egl-x11', \ |
diff --git a/dynamic-layers/ivi/recipes-graphics/wayland/weston-init.bbappend b/dynamic-layers/ivi/recipes-graphics/wayland/weston-init.bbappend index 72d991c7..4fc41d05 100644 --- a/dynamic-layers/ivi/recipes-graphics/wayland/weston-init.bbappend +++ b/dynamic-layers/ivi/recipes-graphics/wayland/weston-init.bbappend | |||
@@ -1 +1 @@ | |||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend b/dynamic-layers/openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend index 2e648ba3..998d11f7 100644 --- a/dynamic-layers/openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend +++ b/dynamic-layers/openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | # Only _mx8 machine do provide virtual/libgbm required for any drm* flavour | 1 | # Only _mx8 machine do provide virtual/libgbm required for any drm* flavour |
2 | DRM-REMOVE_imxgpu = "drm-gl drm-gles2" | 2 | DRM-REMOVE:imxgpu = "drm-gl drm-gles2" |
3 | DRM-REMOVE_imxgpu_mx8 = "" | 3 | DRM-REMOVE:imxgpu:mx8 = "" |
4 | PACKAGECONFIG_remove = "${DRM-REMOVE}" | 4 | PACKAGECONFIG:remove = "${DRM-REMOVE}" |
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb index 004eea96..81d98098 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb | |||
@@ -7,7 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.bsd3;md5=1fbcd66ae51447aa94da10cbf6271530" | |||
7 | 7 | ||
8 | DEPENDS = "byacc-native flex-native openssl" | 8 | DEPENDS = "byacc-native flex-native openssl" |
9 | 9 | ||
10 | SRC_URI = "git://gitlab.apertis.org/pkg/imx-code-signing-tool.git;protocol=https;tag=debian/3.3.1+dfsg-2;nobranch=1" | 10 | # tag=debian/3.3.1+dfsg-2 |
11 | SRCREV = "e2c687a856e6670e753147aacef42d0a3c07891a" | ||
12 | SRC_URI = "git://gitlab.apertis.org/pkg/imx-code-signing-tool.git;protocol=https;branch=apertis/v2022pre" | ||
11 | 13 | ||
12 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
13 | 15 | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/luajit/luajit_%.bbappend b/dynamic-layers/openembedded-layer/recipes-devtools/luajit/luajit_%.bbappend index 8c6138c5..d07f8ae1 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/luajit/luajit_%.bbappend +++ b/dynamic-layers/openembedded-layer/recipes-devtools/luajit/luajit_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" |
2 | 2 | ||
3 | SRC_URI_append_qoriq-ppc = " file://ppc-fixplt.patch " | 3 | SRC_URI:append:qoriq-ppc = " file://ppc-fixplt.patch " |
4 | 4 | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb b/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb index 1793ec06..70e5a1a3 100644 --- a/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb +++ b/dynamic-layers/openembedded-layer/recipes-dpaa/fmc/fmc_git.bb | |||
@@ -14,20 +14,20 @@ S = "${WORKDIR}/git" | |||
14 | EXTRA_OEMAKE = 'FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ | 14 | EXTRA_OEMAKE = 'FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ |
15 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ | 15 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ |
16 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' | 16 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' |
17 | EXTRA_OEMAKE_virtclass-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ | 17 | EXTRA_OEMAKE:class-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ |
18 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ | 18 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ |
19 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' | 19 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' |
20 | 20 | ||
21 | EXTRA_OEMAKE_PLATFORM ?= "" | 21 | EXTRA_OEMAKE_PLATFORM ?= "" |
22 | EXTRA_OEMAKE_PLATFORM_ls1043a = "ls1043" | 22 | EXTRA_OEMAKE_PLATFORM:ls1043a = "ls1043" |
23 | EXTRA_OEMAKE_PLATFORM_ls1046a = "ls1046" | 23 | EXTRA_OEMAKE_PLATFORM:ls1046a = "ls1046" |
24 | EXTRA_OEMAKE_PLATFORM_ls1088a = "ls1088" | 24 | EXTRA_OEMAKE_PLATFORM:ls1088a = "ls1088" |
25 | EXTRA_OEMAKE_PLATFORM_p1020 = "p4080ds" | 25 | EXTRA_OEMAKE_PLATFORM:p1020 = "p4080ds" |
26 | EXTRA_OEMAKE_PLATFORM_p2020 = "p4080ds" | 26 | EXTRA_OEMAKE_PLATFORM:p2020 = "p4080ds" |
27 | EXTRA_OEMAKE_PLATFORM_p2041 = "p4080ds" | 27 | EXTRA_OEMAKE_PLATFORM:p2041 = "p4080ds" |
28 | EXTRA_OEMAKE_PLATFORM_p3041 = "p4080ds" | 28 | EXTRA_OEMAKE_PLATFORM:p3041 = "p4080ds" |
29 | EXTRA_OEMAKE_PLATFORM_p4080 = "p4080ds" | 29 | EXTRA_OEMAKE_PLATFORM:p4080 = "p4080ds" |
30 | EXTRA_OEMAKE_PLATFORM_p5040 = "p4080ds" | 30 | EXTRA_OEMAKE_PLATFORM:p5040 = "p4080ds" |
31 | 31 | ||
32 | 32 | ||
33 | do_compile () { | 33 | do_compile () { |
diff --git a/dynamic-layers/openembedded-layer/recipes-graphics/xserver-common/xserver-common_%.bbappend b/dynamic-layers/openembedded-layer/recipes-graphics/xserver-common/xserver-common_%.bbappend index f4f43504..be694574 100644 --- a/dynamic-layers/openembedded-layer/recipes-graphics/xserver-common/xserver-common_%.bbappend +++ b/dynamic-layers/openembedded-layer/recipes-graphics/xserver-common/xserver-common_%.bbappend | |||
@@ -1,8 +1,8 @@ | |||
1 | # i.MX extra configuration | 1 | # i.MX extra configuration |
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
3 | 3 | ||
4 | SRC_URI_append_imxgpu3d = " \ | 4 | SRC_URI:append:imxgpu3d = " \ |
5 | file://0016-xserver-common-enable-iglx-module.patch \ | 5 | file://0016-xserver-common-enable-iglx-module.patch \ |
6 | " | 6 | " |
7 | 7 | ||
8 | PACKAGE_ARCH_imxgpu3d = "${MACHINE_SOCARCH}" | 8 | PACKAGE_ARCH:imxgpu3d = "${MACHINE_SOCARCH}" |
diff --git a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc index 187681a8..8950c151 100644 --- a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc +++ b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/qt4:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/qt4:" |
2 | 2 | ||
3 | python __anonymous () { | 3 | python __anonymous () { |
4 | families = ['mx6'] | 4 | families = ['mx6'] |
@@ -8,21 +8,21 @@ python __anonymous () { | |||
8 | d.appendVarFlag('do_configure', 'depends', ' virtual/kernel:do_shared_workdir') | 8 | d.appendVarFlag('do_configure', 'depends', ' virtual/kernel:do_shared_workdir') |
9 | } | 9 | } |
10 | 10 | ||
11 | SRC_URI_append_imxgpu2d += " \ | 11 | SRC_URI:append:imxgpu2d += " \ |
12 | file://0001-Add-support-for-i.MX-codecs-to-phonon.patch \ | 12 | file://0001-Add-support-for-i.MX-codecs-to-phonon.patch \ |
13 | file://0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch \ | 13 | file://0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.patch \ |
14 | file://0003-i.MX6-force-egl-visual-ID-33.patch \ | 14 | file://0003-i.MX6-force-egl-visual-ID-33.patch \ |
15 | " | 15 | " |
16 | 16 | ||
17 | DEPENDS_append_imxgpu2d = " virtual/kernel virtual/libgles2" | 17 | DEPENDS:append:imxgpu2d = " virtual/kernel virtual/libgles2" |
18 | QT_GLFLAGS_imxgpu2d = "-opengl es2 -openvg" | 18 | QT_GLFLAGS:imxgpu2d = "-opengl es2 -openvg" |
19 | QT_CONFIG_FLAGS_append_imxgpu2d = " -I${STAGING_KERNEL_DIR}/include/uapi \ | 19 | QT_CONFIG_FLAGS:append:imxgpu2d = " -I${STAGING_KERNEL_DIR}/include/uapi \ |
20 | -I${STAGING_KERNEL_DIR}/include/ \ | 20 | -I${STAGING_KERNEL_DIR}/include/ \ |
21 | -DLINUX=1 -DEGL_API_FB=1 \ | 21 | -DLINUX=1 -DEGL_API_FB=1 \ |
22 | -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1" | 22 | -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1" |
23 | 23 | ||
24 | # The QT_CONFIG_FLAGS can pollute *.la files with -Dxxx | 24 | # The QT_CONFIG_FLAGS can pollute *.la files with -Dxxx |
25 | do_compile_append_mx6 () { | 25 | do_compile:append:mx6 () { |
26 | find lib -name "*.la" | xargs -n1 sed -i 's/-D.*=1//g' | 26 | find lib -name "*.la" | xargs -n1 sed -i 's/-D.*=1//g' |
27 | } | 27 | } |
28 | 28 | ||
diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend index bf3fb66e..0d5897ad 100644 --- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | |||
@@ -3,35 +3,35 @@ | |||
3 | # Copyright (C) 2016, 2017 O.S. Systems Software LTDA. | 3 | # Copyright (C) 2016, 2017 O.S. Systems Software LTDA. |
4 | # Copyright (C) 2017-2018 NXP | 4 | # Copyright (C) 2017-2018 NXP |
5 | 5 | ||
6 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 6 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
7 | 7 | ||
8 | SRC_URI_append_imxgpu = " \ | 8 | SRC_URI:append:imxgpu = " \ |
9 | file://0014-Add-IMX-GPU-support.patch \ | 9 | file://0014-Add-IMX-GPU-support.patch \ |
10 | file://0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch \ | 10 | file://0001-egl.prf-Fix-build-error-when-egl-headers-need-platfo.patch \ |
11 | " | 11 | " |
12 | 12 | ||
13 | PACKAGECONFIG_GL_IMX_GPU = "" | 13 | PACKAGECONFIG_GL_IMX_GPU = "" |
14 | PACKAGECONFIG_GL_IMX_GPU_mx8 = "gbm kms" | 14 | PACKAGECONFIG_GL_IMX_GPU:mx8 = "gbm kms" |
15 | 15 | ||
16 | PACKAGECONFIG_GL_imxpxp = "gles2" | 16 | PACKAGECONFIG_GL:imxpxp = "gles2" |
17 | PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)} \ | 17 | PACKAGECONFIG_GL:imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)} \ |
18 | ${PACKAGECONFIG_GL_IMX_GPU}" | 18 | ${PACKAGECONFIG_GL_IMX_GPU}" |
19 | PACKAGECONFIG_GL_imxgpu3d = "gles2 \ | 19 | PACKAGECONFIG_GL:imxgpu3d = "gles2 \ |
20 | ${PACKAGECONFIG_GL_IMX_GPU}" | 20 | ${PACKAGECONFIG_GL_IMX_GPU}" |
21 | PACKAGECONFIG_GL_use-mainline-bsp ?= "gles2 gbm kms" | 21 | PACKAGECONFIG_GL:use-mainline-bsp ?= "gles2 gbm kms" |
22 | 22 | ||
23 | PACKAGECONFIG_PLATFORM = "" | 23 | PACKAGECONFIG_PLATFORM = "" |
24 | PACKAGECONFIG_PLATFORM_imxgpu2d = "no-opengl linuxfb" | 24 | PACKAGECONFIG_PLATFORM:imxgpu2d = "no-opengl linuxfb" |
25 | PACKAGECONFIG_PLATFORM_imxgpu3d = " \ | 25 | PACKAGECONFIG_PLATFORM:imxgpu3d = " \ |
26 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ | 26 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ |
27 | bb.utils.contains('DISTRO_FEATURES', 'wayland', '', \ | 27 | bb.utils.contains('DISTRO_FEATURES', 'wayland', '', \ |
28 | 'eglfs', d), d)}" | 28 | 'eglfs', d), d)}" |
29 | PACKAGECONFIG_PLATFORM_use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'eglfs', d)}" | 29 | PACKAGECONFIG_PLATFORM:use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'eglfs', d)}" |
30 | PACKAGECONFIG += "${PACKAGECONFIG_PLATFORM}" | 30 | PACKAGECONFIG += "${PACKAGECONFIG_PLATFORM}" |
31 | 31 | ||
32 | PACKAGECONFIG_VULKAN_IMX_GPU = "" | 32 | PACKAGECONFIG_VULKAN_IMX_GPU = "" |
33 | PACKAGECONFIG_VULKAN_IMX_GPU_mx8 = "vulkan" | 33 | PACKAGECONFIG_VULKAN_IMX_GPU:mx8 = "vulkan" |
34 | PACKAGECONFIG_VULKAN_IMX_GPU_mx8mm = "" | 34 | PACKAGECONFIG_VULKAN_IMX_GPU:mx8mm = "" |
35 | PACKAGECONFIG_VULKAN = "" | 35 | PACKAGECONFIG_VULKAN = "" |
36 | PACKAGECONFIG_VULKAN_imxgpu = "${PACKAGECONFIG_VULKAN_IMX_GPU}" | 36 | PACKAGECONFIG_VULKAN:imxgpu = "${PACKAGECONFIG_VULKAN_IMX_GPU}" |
37 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', '${PACKAGECONFIG_VULKAN}', '', d)}" | 37 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', '${PACKAGECONFIG_VULKAN}', '', d)}" |
diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend index 168db095..c1594e05 100644 --- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtwayland_%.bbappend | |||
@@ -1,8 +1,8 @@ | |||
1 | # etnaviv mesa does not have glx | 1 | # etnaviv mesa does not have glx |
2 | PACKAGECONFIG_remove_use-mainline-bsp = "xcomposite-glx" | 2 | PACKAGECONFIG:remove:use-mainline-bsp = "xcomposite-glx" |
3 | 3 | ||
4 | PACKAGECONFIG_remove_mx6 = "xcomposite-egl xcomposite-glx" | 4 | PACKAGECONFIG:remove:mx6 = "xcomposite-egl xcomposite-glx" |
5 | PACKAGECONFIG_remove_mx7 = "xcomposite-egl xcomposite-glx" | 5 | PACKAGECONFIG:remove:mx7 = "xcomposite-egl xcomposite-glx" |
6 | 6 | ||
7 | # i.MX8 does never provide native x11, so required dependencies are not met | 7 | # i.MX8 does never provide native x11, so required dependencies are not met |
8 | PACKAGECONFIG_remove_mx8 = "xcomposite-egl xcomposite-glx" | 8 | PACKAGECONFIG:remove:mx8 = "xcomposite-egl xcomposite-glx" |
diff --git a/dynamic-layers/virtualization-layer/recipes-extended/libvirt/libvirt_%.bbappend b/dynamic-layers/virtualization-layer/recipes-extended/libvirt/libvirt_%.bbappend index c7e6d32e..f64637bd 100644 --- a/dynamic-layers/virtualization-layer/recipes-extended/libvirt/libvirt_%.bbappend +++ b/dynamic-layers/virtualization-layer/recipes-extended/libvirt/libvirt_%.bbappend | |||
@@ -1,9 +1,9 @@ | |||
1 | PACKAGECONFIG_qoriq-ppc = "qemu yajl lxc test remote macvtap libvirtd netcf udev python" | 1 | PACKAGECONFIG:qoriq-ppc = "qemu yajl lxc test remote macvtap libvirtd netcf udev python" |
2 | 2 | ||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" |
4 | SRC_URI_append_qoriq-ppc = " file://qemu.conf" | 4 | SRC_URI:append:qoriq-ppc = " file://qemu.conf" |
5 | 5 | ||
6 | do_install_append_qoriq-ppc() { | 6 | do_install:append:qoriq-ppc() { |
7 | install -m 0644 ${WORKDIR}/qemu.conf ${D}${sysconfdir}/libvirt/qemu.conf | 7 | install -m 0644 ${WORKDIR}/qemu.conf ${D}${sysconfdir}/libvirt/qemu.conf |
8 | } | 8 | } |
9 | 9 | ||
diff --git a/recipes-bsp/alsa-state/alsa-state.bbappend b/recipes-bsp/alsa-state/alsa-state.bbappend index 3a398b22..94331307 100644 --- a/recipes-bsp/alsa-state/alsa-state.bbappend +++ b/recipes-bsp/alsa-state/alsa-state.bbappend | |||
@@ -1,10 +1,10 @@ | |||
1 | # Append path for freescale layer to include alsa-state asound.conf | 1 | # Append path for freescale layer to include alsa-state asound.conf |
2 | FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:" | 2 | FILESEXTRAPATHS:prepend:mx6 := "${THISDIR}/${PN}/imx:" |
3 | FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:" | 3 | FILESEXTRAPATHS:prepend:mx7 := "${THISDIR}/${PN}/imx:" |
4 | FILESEXTRAPATHS_prepend_mx8 := "${THISDIR}/${PN}/imx:" | 4 | FILESEXTRAPATHS:prepend:mx8 := "${THISDIR}/${PN}/imx:" |
5 | FILESEXTRAPATHS_prepend_use-mainline-bsp := "${THISDIR}/${PN}/imx:" | 5 | FILESEXTRAPATHS:prepend:use-mainline-bsp := "${THISDIR}/${PN}/imx:" |
6 | 6 | ||
7 | PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" | 7 | PACKAGE_ARCH:mx6 = "${MACHINE_ARCH}" |
8 | PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}" | 8 | PACKAGE_ARCH:mx7 = "${MACHINE_ARCH}" |
9 | PACKAGE_ARCH_mx8 = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH:mx8 = "${MACHINE_ARCH}" |
10 | PACKAGE_ARCH_use-mainline-bsp = "${MACHINE_ARCH}" | 10 | PACKAGE_ARCH:use-mainline-bsp = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch b/recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch new file mode 100644 index 00000000..e3b6f860 --- /dev/null +++ b/recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch | |||
@@ -0,0 +1,709 @@ | |||
1 | From 9f85f9e3796f1c351bbc4c8436dc66d83c140b71 Mon Sep 17 00:00:00 2001 | ||
2 | From: Joel Hutton <Joel.Hutton@Arm.com> | ||
3 | Date: Wed, 21 Mar 2018 11:40:57 +0000 | ||
4 | Subject: [PATCH] Clean usage of void pointers to access symbols | ||
5 | |||
6 | Void pointers have been used to access linker symbols, by declaring an | ||
7 | extern pointer, then taking the address of it. This limits symbols | ||
8 | values to aligned pointer values. To remove this restriction an | ||
9 | IMPORT_SYM macro has been introduced, which declares it as a char | ||
10 | pointer and casts it to the required type. | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | Change-Id: I89877fc3b13ed311817bb8ba79d4872b89bfd3b0 | ||
15 | Signed-off-by: Joel Hutton <Joel.Hutton@Arm.com> | ||
16 | --- | ||
17 | bl1/bl1_private.h | 12 +++---- | ||
18 | common/runtime_svc.c | 4 +-- | ||
19 | drivers/auth/img_parser_mod.c | 9 +++--- | ||
20 | include/common/bl_common.h | 32 ++++++++++++------- | ||
21 | include/common/runtime_svc.h | 4 +-- | ||
22 | include/lib/utils_def.h | 19 ++++++++++- | ||
23 | include/plat/common/common_def.h | 24 ++------------ | ||
24 | include/services/secure_partition.h | 12 +++---- | ||
25 | lib/locks/bakery/bakery_lock_normal.c | 6 ++-- | ||
26 | lib/pmf/pmf_main.c | 19 +++++------ | ||
27 | plat/hisilicon/hikey/hikey_bl1_setup.c | 21 ++----------- | ||
28 | plat/hisilicon/hikey960/hikey960_bl1_setup.c | 16 ++-------- | ||
29 | plat/hisilicon/poplar/bl1_plat_setup.c | 13 ++------ | ||
30 | plat/mediatek/mt6795/bl31_plat_setup.c | 11 +++---- | ||
31 | plat/mediatek/mt8173/bl31_plat_setup.c | 28 +++-------------- | ||
32 | plat/nvidia/tegra/common/tegra_bl31_setup.c | 33 +++++++------------- | ||
33 | plat/rockchip/common/bl31_plat_setup.c | 13 ++------ | ||
34 | services/std_svc/spm/spm_shim_private.h | 14 +++------ | ||
35 | 18 files changed, 103 insertions(+), 187 deletions(-) | ||
36 | |||
37 | diff --git a/bl1/bl1_private.h b/bl1/bl1_private.h | ||
38 | index 6ac3b8c67..42a74d22f 100644 | ||
39 | --- a/bl1/bl1_private.h | ||
40 | +++ b/bl1/bl1_private.h | ||
41 | @@ -1,5 +1,5 @@ | ||
42 | /* | ||
43 | - * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. | ||
44 | + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||
45 | * | ||
46 | * SPDX-License-Identifier: BSD-3-Clause | ||
47 | */ | ||
48 | @@ -8,18 +8,16 @@ | ||
49 | #define __BL1_PRIVATE_H__ | ||
50 | |||
51 | #include <types.h> | ||
52 | +#include <utils_def.h> | ||
53 | |||
54 | /******************************************************************************* | ||
55 | * Declarations of linker defined symbols which will tell us where BL1 lives | ||
56 | * in Trusted ROM and RAM | ||
57 | ******************************************************************************/ | ||
58 | -extern uintptr_t __BL1_ROM_END__; | ||
59 | -#define BL1_ROM_END (uintptr_t)(&__BL1_ROM_END__) | ||
60 | +IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); | ||
61 | |||
62 | -extern uintptr_t __BL1_RAM_START__; | ||
63 | -extern uintptr_t __BL1_RAM_END__; | ||
64 | -#define BL1_RAM_BASE (uintptr_t)(&__BL1_RAM_START__) | ||
65 | -#define BL1_RAM_LIMIT (uintptr_t)(&__BL1_RAM_END__) | ||
66 | +IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE); | ||
67 | +IMPORT_SYM(uintptr_t, __BL1_RAM_END__, BL1_RAM_LIMIT); | ||
68 | |||
69 | /****************************************** | ||
70 | * Function prototypes | ||
71 | diff --git a/common/runtime_svc.c b/common/runtime_svc.c | ||
72 | index 0ea4cd093..de80f30c2 100644 | ||
73 | --- a/common/runtime_svc.c | ||
74 | +++ b/common/runtime_svc.c | ||
75 | @@ -1,5 +1,5 @@ | ||
76 | /* | ||
77 | - * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. | ||
78 | + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||
79 | * | ||
80 | * SPDX-License-Identifier: BSD-3-Clause | ||
81 | */ | ||
82 | @@ -19,8 +19,6 @@ | ||
83 | * 'rt_svc_descs_indices' array. This gives the index of the descriptor in the | ||
84 | * 'rt_svc_descs' array which contains the SMC handler. | ||
85 | ******************************************************************************/ | ||
86 | -#define RT_SVC_DESCS_START ((uintptr_t) (&__RT_SVC_DESCS_START__)) | ||
87 | -#define RT_SVC_DESCS_END ((uintptr_t) (&__RT_SVC_DESCS_END__)) | ||
88 | uint8_t rt_svc_descs_indices[MAX_RT_SVCS]; | ||
89 | static rt_svc_desc_t *rt_svc_descs; | ||
90 | |||
91 | diff --git a/drivers/auth/img_parser_mod.c b/drivers/auth/img_parser_mod.c | ||
92 | index 6a0107115..63160141d 100644 | ||
93 | --- a/drivers/auth/img_parser_mod.c | ||
94 | +++ b/drivers/auth/img_parser_mod.c | ||
95 | @@ -1,5 +1,5 @@ | ||
96 | /* | ||
97 | - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. | ||
98 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
99 | * | ||
100 | * SPDX-License-Identifier: BSD-3-Clause | ||
101 | */ | ||
102 | @@ -12,11 +12,10 @@ | ||
103 | #include <limits.h> | ||
104 | #include <stdint.h> | ||
105 | #include <string.h> | ||
106 | +#include <utils_def.h> | ||
107 | |||
108 | -extern uintptr_t __PARSER_LIB_DESCS_START__; | ||
109 | -extern uintptr_t __PARSER_LIB_DESCS_END__; | ||
110 | -#define PARSER_LIB_DESCS_START ((uintptr_t) (&__PARSER_LIB_DESCS_START__)) | ||
111 | -#define PARSER_LIB_DESCS_END ((uintptr_t) (&__PARSER_LIB_DESCS_END__)) | ||
112 | +IMPORT_SYM(uintptr_t, __PARSER_LIB_DESCS_START__, PARSER_LIB_DESCS_START); | ||
113 | +IMPORT_SYM(uintptr_t, __PARSER_LIB_DESCS_END__, PARSER_LIB_DESCS_END); | ||
114 | static unsigned int parser_lib_indices[IMG_MAX_TYPES]; | ||
115 | static img_parser_lib_desc_t *parser_lib_descs; | ||
116 | |||
117 | diff --git a/include/common/bl_common.h b/include/common/bl_common.h | ||
118 | index 4ef916f53..09a394dd1 100644 | ||
119 | --- a/include/common/bl_common.h | ||
120 | +++ b/include/common/bl_common.h | ||
121 | @@ -64,33 +64,41 @@ | ||
122 | #include <types.h> | ||
123 | #include <utils_def.h> /* To retain compatibility */ | ||
124 | |||
125 | + | ||
126 | /* | ||
127 | * Declarations of linker defined symbols to help determine memory layout of | ||
128 | * BL images | ||
129 | */ | ||
130 | #if SEPARATE_CODE_AND_RODATA | ||
131 | -extern uintptr_t __TEXT_START__; | ||
132 | -extern uintptr_t __TEXT_END__; | ||
133 | -extern uintptr_t __RODATA_START__; | ||
134 | -extern uintptr_t __RODATA_END__; | ||
135 | +IMPORT_SYM(unsigned long, __TEXT_START__, BL_CODE_BASE); | ||
136 | +IMPORT_SYM(unsigned long, __TEXT_END__, BL_CODE_END); | ||
137 | +IMPORT_SYM(unsigned long, __RODATA_START__, BL_RO_DATA_BASE); | ||
138 | +IMPORT_SYM(unsigned long, __RODATA_END__, BL_RO_DATA_END); | ||
139 | #else | ||
140 | -extern uintptr_t __RO_START__; | ||
141 | -extern uintptr_t __RO_END__; | ||
142 | +IMPORT_SYM(unsigned long, __RO_START__, BL_CODE_BASE); | ||
143 | +IMPORT_SYM(unsigned long, __RO_END__, BL_CODE_END); | ||
144 | #endif | ||
145 | |||
146 | #if defined(IMAGE_BL2) | ||
147 | -extern uintptr_t __BL2_END__; | ||
148 | +IMPORT_SYM(unsigned long, __BL2_END__, BL2_END); | ||
149 | #elif defined(IMAGE_BL2U) | ||
150 | -extern uintptr_t __BL2U_END__; | ||
151 | +IMPORT_SYM(unsigned long, __BL2U_END__, BL2U_END); | ||
152 | #elif defined(IMAGE_BL31) | ||
153 | -extern uintptr_t __BL31_END__; | ||
154 | +IMPORT_SYM(unsigned long, __BL31_END__, BL31_END); | ||
155 | #elif defined(IMAGE_BL32) | ||
156 | -extern uintptr_t __BL32_END__; | ||
157 | +IMPORT_SYM(unsigned long, __BL32_END__, BL32_END); | ||
158 | #endif /* IMAGE_BLX */ | ||
159 | |||
160 | +/* | ||
161 | + * The next 2 constants identify the extents of the coherent memory region. | ||
162 | + * These addresses are used by the MMU setup code and therefore they must be | ||
163 | + * page-aligned. It is the responsibility of the linker script to ensure that | ||
164 | + * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
165 | + * page-aligned addresses. | ||
166 | + */ | ||
167 | #if USE_COHERENT_MEM | ||
168 | -extern uintptr_t __COHERENT_RAM_START__; | ||
169 | -extern uintptr_t __COHERENT_RAM_END__; | ||
170 | +IMPORT_SYM(unsigned long, __COHERENT_RAM_START__, BL_COHERENT_RAM_BASE); | ||
171 | +IMPORT_SYM(unsigned long, __COHERENT_RAM_END__, BL_COHERENT_RAM_END); | ||
172 | #endif | ||
173 | |||
174 | /******************************************************************************* | ||
175 | diff --git a/include/common/runtime_svc.h b/include/common/runtime_svc.h | ||
176 | index d12af227e..5d9fa3908 100644 | ||
177 | --- a/include/common/runtime_svc.h | ||
178 | +++ b/include/common/runtime_svc.h | ||
179 | @@ -122,8 +122,8 @@ CASSERT(RT_SVC_DESC_HANDLE == __builtin_offsetof(rt_svc_desc_t, handle), \ | ||
180 | void runtime_svc_init(void); | ||
181 | uintptr_t handle_runtime_svc(uint32_t smc_fid, void *cookie, void *handle, | ||
182 | unsigned int flags); | ||
183 | -extern uintptr_t __RT_SVC_DESCS_START__; | ||
184 | -extern uintptr_t __RT_SVC_DESCS_END__; | ||
185 | +IMPORT_SYM(uintptr_t, __RT_SVC_DESCS_START__, RT_SVC_DESCS_START); | ||
186 | +IMPORT_SYM(uintptr_t, __RT_SVC_DESCS_END__, RT_SVC_DESCS_END); | ||
187 | void init_crash_reporting(void); | ||
188 | |||
189 | extern uint8_t rt_svc_descs_indices[MAX_RT_SVCS]; | ||
190 | diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h | ||
191 | index 4a5c3e0bc..8abc73c09 100644 | ||
192 | --- a/include/lib/utils_def.h | ||
193 | +++ b/include/lib/utils_def.h | ||
194 | @@ -1,5 +1,5 @@ | ||
195 | /* | ||
196 | - * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. | ||
197 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
198 | * | ||
199 | * SPDX-License-Identifier: BSD-3-Clause | ||
200 | */ | ||
201 | @@ -99,4 +99,21 @@ | ||
202 | ((ARM_ARCH_MAJOR > _maj) || \ | ||
203 | ((ARM_ARCH_MAJOR == _maj) && (ARM_ARCH_MINOR >= _min))) | ||
204 | |||
205 | +/* | ||
206 | + * Import an assembly or linker symbol as a C expression with the specified | ||
207 | + * type | ||
208 | + */ | ||
209 | +#define IMPORT_SYM(type, sym, name) \ | ||
210 | + extern char sym[];\ | ||
211 | + static const __attribute__((unused)) type name = (type) sym; | ||
212 | + | ||
213 | +/* | ||
214 | + * When the symbol is used to hold a pointer, its alignment can be asserted | ||
215 | + * with this macro. For example, if there is a linker symbol that is going to | ||
216 | + * be used as a 64-bit pointer, the value of the linker symbol must also be | ||
217 | + * aligned to 64 bit. This macro makes sure this is the case. | ||
218 | + */ | ||
219 | +#define ASSERT_SYM_PTR_ALIGN(sym) assert(((size_t)(sym) % __alignof__(*(sym))) == 0) | ||
220 | + | ||
221 | + | ||
222 | #endif /* __UTILS_DEF_H__ */ | ||
223 | diff --git a/include/plat/common/common_def.h b/include/plat/common/common_def.h | ||
224 | index a841c3dbf..84923b9a7 100644 | ||
225 | --- a/include/plat/common/common_def.h | ||
226 | +++ b/include/plat/common/common_def.h | ||
227 | @@ -1,5 +1,5 @@ | ||
228 | /* | ||
229 | - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. | ||
230 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
231 | * | ||
232 | * SPDX-License-Identifier: BSD-3-Clause | ||
233 | */ | ||
234 | @@ -74,33 +74,13 @@ | ||
235 | * page of it with the right memory attributes. | ||
236 | */ | ||
237 | #if SEPARATE_CODE_AND_RODATA | ||
238 | -#define BL_CODE_BASE (unsigned long)(&__TEXT_START__) | ||
239 | -#define BL_CODE_END (unsigned long)(&__TEXT_END__) | ||
240 | -#define BL_RO_DATA_BASE (unsigned long)(&__RODATA_START__) | ||
241 | -#define BL_RO_DATA_END (unsigned long)(&__RODATA_END__) | ||
242 | |||
243 | #define BL1_CODE_END BL_CODE_END | ||
244 | -#define BL1_RO_DATA_BASE (unsigned long)(&__RODATA_START__) | ||
245 | +#define BL1_RO_DATA_BASE BL_RO_DATA_BASE | ||
246 | #define BL1_RO_DATA_END round_up(BL1_ROM_END, PAGE_SIZE) | ||
247 | #else | ||
248 | -#define BL_CODE_BASE (unsigned long)(&__RO_START__) | ||
249 | -#define BL_CODE_END (unsigned long)(&__RO_END__) | ||
250 | #define BL_RO_DATA_BASE 0 | ||
251 | #define BL_RO_DATA_END 0 | ||
252 | - | ||
253 | #define BL1_CODE_END round_up(BL1_ROM_END, PAGE_SIZE) | ||
254 | -#define BL1_RO_DATA_BASE 0 | ||
255 | -#define BL1_RO_DATA_END 0 | ||
256 | #endif /* SEPARATE_CODE_AND_RODATA */ | ||
257 | - | ||
258 | -/* | ||
259 | - * The next 2 constants identify the extents of the coherent memory region. | ||
260 | - * These addresses are used by the MMU setup code and therefore they must be | ||
261 | - * page-aligned. It is the responsibility of the linker script to ensure that | ||
262 | - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
263 | - * page-aligned addresses. | ||
264 | - */ | ||
265 | -#define BL_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
266 | -#define BL_COHERENT_RAM_END (unsigned long)(&__COHERENT_RAM_END__) | ||
267 | - | ||
268 | #endif /* __COMMON_DEF_H__ */ | ||
269 | diff --git a/include/services/secure_partition.h b/include/services/secure_partition.h | ||
270 | index 93df2a137..f68f711be 100644 | ||
271 | --- a/include/services/secure_partition.h | ||
272 | +++ b/include/services/secure_partition.h | ||
273 | @@ -1,5 +1,5 @@ | ||
274 | /* | ||
275 | - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. | ||
276 | + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. | ||
277 | * | ||
278 | * SPDX-License-Identifier: BSD-3-Clause | ||
279 | */ | ||
280 | @@ -11,15 +11,11 @@ | ||
281 | #include <types.h> | ||
282 | #include <utils_def.h> | ||
283 | |||
284 | -/* Linker symbols */ | ||
285 | -extern uintptr_t __SP_IMAGE_XLAT_TABLES_START__; | ||
286 | -extern uintptr_t __SP_IMAGE_XLAT_TABLES_END__; | ||
287 | +/* Import linker symbols */ | ||
288 | +IMPORT_SYM(uintptr_t, __SP_IMAGE_XLAT_TABLES_START__, SP_IMAGE_XLAT_TABLES_START); | ||
289 | +IMPORT_SYM(uintptr_t, __SP_IMAGE_XLAT_TABLES_END__, SP_IMAGE_XLAT_TABLES_END); | ||
290 | |||
291 | /* Definitions */ | ||
292 | -#define SP_IMAGE_XLAT_TABLES_START \ | ||
293 | - (uintptr_t)(&__SP_IMAGE_XLAT_TABLES_START__) | ||
294 | -#define SP_IMAGE_XLAT_TABLES_END \ | ||
295 | - (uintptr_t)(&__SP_IMAGE_XLAT_TABLES_END__) | ||
296 | #define SP_IMAGE_XLAT_TABLES_SIZE \ | ||
297 | (SP_IMAGE_XLAT_TABLES_END - SP_IMAGE_XLAT_TABLES_START) | ||
298 | |||
299 | diff --git a/lib/locks/bakery/bakery_lock_normal.c b/lib/locks/bakery/bakery_lock_normal.c | ||
300 | index 8f59215e3..37697f521 100644 | ||
301 | --- a/lib/locks/bakery/bakery_lock_normal.c | ||
302 | +++ b/lib/locks/bakery/bakery_lock_normal.c | ||
303 | @@ -1,5 +1,5 @@ | ||
304 | /* | ||
305 | - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. | ||
306 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
307 | * | ||
308 | * SPDX-License-Identifier: BSD-3-Clause | ||
309 | */ | ||
310 | @@ -10,6 +10,7 @@ | ||
311 | #include <cpu_data.h> | ||
312 | #include <platform.h> | ||
313 | #include <string.h> | ||
314 | +#include <utils_def.h> | ||
315 | |||
316 | /* | ||
317 | * Functions in this file implement Bakery Algorithm for mutual exclusion with the | ||
318 | @@ -49,8 +50,7 @@ CASSERT((PLAT_PERCPU_BAKERY_LOCK_SIZE & (CACHE_WRITEBACK_GRANULE - 1)) == 0, \ | ||
319 | * Use the linker defined symbol which has evaluated the size reqiurement. | ||
320 | * This is not as efficient as using a platform defined constant | ||
321 | */ | ||
322 | -extern void *__PERCPU_BAKERY_LOCK_SIZE__; | ||
323 | -#define PERCPU_BAKERY_LOCK_SIZE ((uintptr_t)&__PERCPU_BAKERY_LOCK_SIZE__) | ||
324 | +IMPORT_SYM(uintptr_t, __PERCPU_BAKERY_LOCK_SIZE__, PERCPU_BAKERY_LOCK_SIZE); | ||
325 | #endif | ||
326 | |||
327 | #define get_bakery_info(cpu_ix, lock) \ | ||
328 | diff --git a/lib/pmf/pmf_main.c b/lib/pmf/pmf_main.c | ||
329 | index 2cf260ec1..0208948fe 100644 | ||
330 | --- a/lib/pmf/pmf_main.c | ||
331 | +++ b/lib/pmf/pmf_main.c | ||
332 | @@ -1,5 +1,5 @@ | ||
333 | /* | ||
334 | - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. | ||
335 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
336 | * | ||
337 | * SPDX-License-Identifier: BSD-3-Clause | ||
338 | */ | ||
339 | @@ -11,6 +11,7 @@ | ||
340 | #include <platform.h> | ||
341 | #include <pmf.h> | ||
342 | #include <string.h> | ||
343 | +#include <utils_def.h> | ||
344 | |||
345 | /******************************************************************************* | ||
346 | * The 'pmf_svc_descs' array holds the PMF service descriptors exported by | ||
347 | @@ -21,16 +22,12 @@ | ||
348 | * index of the descriptor in the 'pmf_svc_descs' array which contains the | ||
349 | * service function pointers. | ||
350 | ******************************************************************************/ | ||
351 | -extern uintptr_t __PMF_SVC_DESCS_START__; | ||
352 | -extern uintptr_t __PMF_SVC_DESCS_END__; | ||
353 | -#define PMF_SVC_DESCS_START ((uintptr_t)(&__PMF_SVC_DESCS_START__)) | ||
354 | -#define PMF_SVC_DESCS_END ((uintptr_t)(&__PMF_SVC_DESCS_END__)) | ||
355 | -extern void *__PERCPU_TIMESTAMP_SIZE__; | ||
356 | -#define PMF_PERCPU_TIMESTAMP_SIZE ((uintptr_t)&__PERCPU_TIMESTAMP_SIZE__) | ||
357 | -extern uintptr_t __PMF_TIMESTAMP_START__; | ||
358 | -#define PMF_TIMESTAMP_ARRAY_START ((uintptr_t)&__PMF_TIMESTAMP_START__) | ||
359 | -extern uintptr_t __PMF_TIMESTAMP_END__; | ||
360 | -#define PMF_TIMESTAMP_ARRAY_END ((uintptr_t)&__PMF_TIMESTAMP_END__) | ||
361 | + | ||
362 | +IMPORT_SYM(uintptr_t, __PMF_SVC_DESCS_START__, PMF_SVC_DESCS_START); | ||
363 | +IMPORT_SYM(uintptr_t, __PMF_SVC_DESCS_END__, PMF_SVC_DESCS_END); | ||
364 | +IMPORT_SYM(uintptr_t, __PERCPU_TIMESTAMP_SIZE__, PMF_PERCPU_TIMESTAMP_SIZE); | ||
365 | +IMPORT_SYM(intptr_t, __PMF_TIMESTAMP_START__, PMF_TIMESTAMP_ARRAY_START); | ||
366 | +IMPORT_SYM(uintptr_t, __PMF_TIMESTAMP_END__, PMF_TIMESTAMP_ARRAY_END); | ||
367 | |||
368 | #define PMF_SVC_DESCS_MAX 10 | ||
369 | |||
370 | diff --git a/plat/hisilicon/hikey/hikey_bl1_setup.c b/plat/hisilicon/hikey/hikey_bl1_setup.c | ||
371 | index 69b194a53..9ede1dbc7 100644 | ||
372 | --- a/plat/hisilicon/hikey/hikey_bl1_setup.c | ||
373 | +++ b/plat/hisilicon/hikey/hikey_bl1_setup.c | ||
374 | @@ -23,23 +23,6 @@ | ||
375 | #include "hikey_def.h" | ||
376 | #include "hikey_private.h" | ||
377 | |||
378 | -/* | ||
379 | - * Declarations of linker defined symbols which will help us find the layout | ||
380 | - * of trusted RAM | ||
381 | - */ | ||
382 | -extern unsigned long __COHERENT_RAM_START__; | ||
383 | -extern unsigned long __COHERENT_RAM_END__; | ||
384 | - | ||
385 | -/* | ||
386 | - * The next 2 constants identify the extents of the coherent memory region. | ||
387 | - * These addresses are used by the MMU setup code and therefore they must be | ||
388 | - * page-aligned. It is the responsibility of the linker script to ensure that | ||
389 | - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
390 | - * page-aligned addresses. | ||
391 | - */ | ||
392 | -#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
393 | -#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) | ||
394 | - | ||
395 | /* Data structure which holds the extents of the trusted RAM for BL1 */ | ||
396 | static meminfo_t bl1_tzram_layout; | ||
397 | |||
398 | @@ -103,8 +86,8 @@ void bl1_plat_arch_setup(void) | ||
399 | bl1_tzram_layout.total_size, | ||
400 | BL1_RO_BASE, | ||
401 | BL1_RO_LIMIT, | ||
402 | - BL1_COHERENT_RAM_BASE, | ||
403 | - BL1_COHERENT_RAM_LIMIT); | ||
404 | + BL_COHERENT_RAM_BASE, | ||
405 | + BL_COHERENT_RAM_END); | ||
406 | } | ||
407 | |||
408 | /* | ||
409 | diff --git a/plat/hisilicon/hikey960/hikey960_bl1_setup.c b/plat/hisilicon/hikey960/hikey960_bl1_setup.c | ||
410 | index 9cadba0bb..6a07f0924 100644 | ||
411 | --- a/plat/hisilicon/hikey960/hikey960_bl1_setup.c | ||
412 | +++ b/plat/hisilicon/hikey960/hikey960_bl1_setup.c | ||
413 | @@ -37,18 +37,6 @@ enum { | ||
414 | * Declarations of linker defined symbols which will help us find the layout | ||
415 | * of trusted RAM | ||
416 | */ | ||
417 | -extern unsigned long __COHERENT_RAM_START__; | ||
418 | -extern unsigned long __COHERENT_RAM_END__; | ||
419 | - | ||
420 | -/* | ||
421 | - * The next 2 constants identify the extents of the coherent memory region. | ||
422 | - * These addresses are used by the MMU setup code and therefore they must be | ||
423 | - * page-aligned. It is the responsibility of the linker script to ensure that | ||
424 | - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
425 | - * page-aligned addresses. | ||
426 | - */ | ||
427 | -#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
428 | -#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) | ||
429 | |||
430 | /* Data structure which holds the extents of the trusted RAM for BL1 */ | ||
431 | static meminfo_t bl1_tzram_layout; | ||
432 | @@ -131,8 +119,8 @@ void bl1_plat_arch_setup(void) | ||
433 | bl1_tzram_layout.total_size, | ||
434 | BL1_RO_BASE, | ||
435 | BL1_RO_LIMIT, | ||
436 | - BL1_COHERENT_RAM_BASE, | ||
437 | - BL1_COHERENT_RAM_LIMIT); | ||
438 | + BL_COHERENT_RAM_BASE, | ||
439 | + BL_COHERENT_RAM_END); | ||
440 | } | ||
441 | |||
442 | static void hikey960_ufs_reset(void) | ||
443 | diff --git a/plat/hisilicon/poplar/bl1_plat_setup.c b/plat/hisilicon/poplar/bl1_plat_setup.c | ||
444 | index 39551135f..25eed5938 100644 | ||
445 | --- a/plat/hisilicon/poplar/bl1_plat_setup.c | ||
446 | +++ b/plat/hisilicon/poplar/bl1_plat_setup.c | ||
447 | @@ -1,5 +1,5 @@ | ||
448 | /* | ||
449 | - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. | ||
450 | + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. | ||
451 | * | ||
452 | * SPDX-License-Identifier: BSD-3-Clause | ||
453 | */ | ||
454 | @@ -23,13 +23,6 @@ | ||
455 | #include "hi3798cv200.h" | ||
456 | #include "plat_private.h" | ||
457 | |||
458 | -/* Symbols from link script for conherent section */ | ||
459 | -extern unsigned long __COHERENT_RAM_START__; | ||
460 | -extern unsigned long __COHERENT_RAM_END__; | ||
461 | - | ||
462 | -#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
463 | -#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) | ||
464 | - | ||
465 | /* Data structure which holds the extents of the trusted RAM for BL1 */ | ||
466 | static meminfo_t bl1_tzram_layout; | ||
467 | |||
468 | @@ -92,8 +85,8 @@ void bl1_plat_arch_setup(void) | ||
469 | bl1_tzram_layout.total_size, | ||
470 | BL1_RO_BASE, /* l-loader and BL1 ROM */ | ||
471 | BL1_RO_LIMIT, | ||
472 | - BL1_COHERENT_RAM_BASE, | ||
473 | - BL1_COHERENT_RAM_LIMIT); | ||
474 | + BL_COHERENT_RAM_BASE, | ||
475 | + BL_COHERENT_RAM_END); | ||
476 | } | ||
477 | |||
478 | void bl1_platform_setup(void) | ||
479 | diff --git a/plat/mediatek/mt6795/bl31_plat_setup.c b/plat/mediatek/mt6795/bl31_plat_setup.c | ||
480 | index 803f1ed85..32f015721 100644 | ||
481 | --- a/plat/mediatek/mt6795/bl31_plat_setup.c | ||
482 | +++ b/plat/mediatek/mt6795/bl31_plat_setup.c | ||
483 | @@ -1,5 +1,5 @@ | ||
484 | /* | ||
485 | - * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. | ||
486 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
487 | * | ||
488 | * SPDX-License-Identifier: BSD-3-Clause | ||
489 | */ | ||
490 | @@ -21,22 +21,21 @@ | ||
491 | #include <plat_private.h> | ||
492 | #include <platform.h> | ||
493 | #include <string.h> | ||
494 | +#include <utils_def.h> | ||
495 | #include <xlat_tables.h> | ||
496 | + | ||
497 | /******************************************************************************* | ||
498 | * Declarations of linker defined symbols which will help us find the layout | ||
499 | * of trusted SRAM | ||
500 | ******************************************************************************/ | ||
501 | -unsigned long __RO_START__; | ||
502 | -unsigned long __RO_END__; | ||
503 | - | ||
504 | /* | ||
505 | * The next 2 constants identify the extents of the code & RO data region. | ||
506 | * These addresses are used by the MMU setup code and therefore they must be | ||
507 | * page-aligned. It is the responsibility of the linker script to ensure that | ||
508 | * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses. | ||
509 | */ | ||
510 | -#define BL31_RO_BASE (unsigned long)(&__RO_START__) | ||
511 | -#define BL31_RO_LIMIT (unsigned long)(&__RO_END__) | ||
512 | +IMPORT_SYM(unsigned long, __RO_START__, BL31_RO_BASE); | ||
513 | +IMPORT_SYM(unsigned long, __RO_END__, BL31_RO_LIMIT); | ||
514 | |||
515 | /* | ||
516 | * Placeholder variables for copying the arguments that have been passed to | ||
517 | diff --git a/plat/mediatek/mt8173/bl31_plat_setup.c b/plat/mediatek/mt8173/bl31_plat_setup.c | ||
518 | index 7b2930771..e51bdbb9e 100644 | ||
519 | --- a/plat/mediatek/mt8173/bl31_plat_setup.c | ||
520 | +++ b/plat/mediatek/mt8173/bl31_plat_setup.c | ||
521 | @@ -1,5 +1,5 @@ | ||
522 | /* | ||
523 | - * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. | ||
524 | + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||
525 | * | ||
526 | * SPDX-License-Identifier: BSD-3-Clause | ||
527 | */ | ||
528 | @@ -17,24 +17,6 @@ | ||
529 | #include <platform.h> | ||
530 | #include <spm.h> | ||
531 | |||
532 | -/******************************************************************************* | ||
533 | - * Declarations of linker defined symbols which will help us find the layout | ||
534 | - * of trusted SRAM | ||
535 | - ******************************************************************************/ | ||
536 | -unsigned long __RO_START__; | ||
537 | -unsigned long __RO_END__; | ||
538 | - | ||
539 | -/* | ||
540 | - * The next 3 constants identify the extents of the code, RO data region and the | ||
541 | - * limit of the BL31 image. These addresses are used by the MMU setup code and | ||
542 | - * therefore they must be page-aligned. It is the responsibility of the linker | ||
543 | - * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols | ||
544 | - * refer to page-aligned addresses. | ||
545 | - */ | ||
546 | -#define BL31_RO_BASE (unsigned long)(&__RO_START__) | ||
547 | -#define BL31_RO_LIMIT (unsigned long)(&__RO_END__) | ||
548 | -#define BL31_END (unsigned long)(&__BL31_END__) | ||
549 | - | ||
550 | static entry_point_info_t bl32_ep_info; | ||
551 | static entry_point_info_t bl33_ep_info; | ||
552 | |||
553 | @@ -156,10 +138,10 @@ void bl31_plat_arch_setup(void) | ||
554 | plat_cci_init(); | ||
555 | plat_cci_enable(); | ||
556 | |||
557 | - plat_configure_mmu_el3(BL31_RO_BASE, | ||
558 | - BL_COHERENT_RAM_END - BL31_RO_BASE, | ||
559 | - BL31_RO_BASE, | ||
560 | - BL31_RO_LIMIT, | ||
561 | + plat_configure_mmu_el3(BL_CODE_BASE, | ||
562 | + BL_COHERENT_RAM_END - BL_CODE_BASE, | ||
563 | + BL_CODE_BASE, | ||
564 | + BL_CODE_END, | ||
565 | BL_COHERENT_RAM_BASE, | ||
566 | BL_COHERENT_RAM_END); | ||
567 | } | ||
568 | diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c | ||
569 | index d89ad7b94..2fe4e7dbc 100644 | ||
570 | --- a/plat/nvidia/tegra/common/tegra_bl31_setup.c | ||
571 | +++ b/plat/nvidia/tegra/common/tegra_bl31_setup.c | ||
572 | @@ -1,5 +1,5 @@ | ||
573 | /* | ||
574 | - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. | ||
575 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
576 | * | ||
577 | * SPDX-License-Identifier: BSD-3-Clause | ||
578 | */ | ||
579 | @@ -23,6 +23,7 @@ | ||
580 | #include <string.h> | ||
581 | #include <tegra_def.h> | ||
582 | #include <tegra_private.h> | ||
583 | +#include <utils_def.h> | ||
584 | |||
585 | /* length of Trusty's input parameters (in bytes) */ | ||
586 | #define TRUSTY_PARAMS_LEN_BYTES (4096*2) | ||
587 | @@ -33,29 +34,17 @@ extern void zeromem16(void *mem, unsigned int length); | ||
588 | * Declarations of linker defined symbols which will help us find the layout | ||
589 | * of trusted SRAM | ||
590 | ******************************************************************************/ | ||
591 | -extern unsigned long __TEXT_START__; | ||
592 | -extern unsigned long __TEXT_END__; | ||
593 | -extern unsigned long __RW_START__; | ||
594 | -extern unsigned long __RW_END__; | ||
595 | -extern unsigned long __RODATA_START__; | ||
596 | -extern unsigned long __RODATA_END__; | ||
597 | -extern unsigned long __BL31_END__; | ||
598 | + | ||
599 | +IMPORT_SYM(unsigned long, __RW_START__, BL31_RW_START); | ||
600 | +IMPORT_SYM(unsigned long, __RW_END__, BL31_RW_END); | ||
601 | +IMPORT_SYM(unsigned long, __RODATA_START__, BL31_RODATA_BASE); | ||
602 | +IMPORT_SYM(unsigned long, __RODATA_END__, BL31_RODATA_END); | ||
603 | +IMPORT_SYM(unsigned long, __TEXT_START__, TEXT_START); | ||
604 | +IMPORT_SYM(unsigned long, __TEXT_END__, TEXT_END); | ||
605 | |||
606 | extern uint64_t tegra_bl31_phys_base; | ||
607 | extern uint64_t tegra_console_base; | ||
608 | |||
609 | -/* | ||
610 | - * The next 3 constants identify the extents of the code, RO data region and the | ||
611 | - * limit of the BL3-1 image. These addresses are used by the MMU setup code and | ||
612 | - * therefore they must be page-aligned. It is the responsibility of the linker | ||
613 | - * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols | ||
614 | - * refer to page-aligned addresses. | ||
615 | - */ | ||
616 | -#define BL31_RW_START (unsigned long)(&__RW_START__) | ||
617 | -#define BL31_RW_END (unsigned long)(&__RW_END__) | ||
618 | -#define BL31_RODATA_BASE (unsigned long)(&__RODATA_START__) | ||
619 | -#define BL31_RODATA_END (unsigned long)(&__RODATA_END__) | ||
620 | -#define BL31_END (unsigned long)(&__BL31_END__) | ||
621 | |||
622 | static entry_point_info_t bl33_image_ep_info, bl32_image_ep_info; | ||
623 | static plat_params_from_bl2_t plat_bl31_params_from_bl2 = { | ||
624 | @@ -311,8 +300,8 @@ void bl31_plat_arch_setup(void) | ||
625 | unsigned long rw_size = BL31_RW_END - BL31_RW_START; | ||
626 | unsigned long rodata_start = BL31_RODATA_BASE; | ||
627 | unsigned long rodata_size = BL31_RODATA_END - BL31_RODATA_BASE; | ||
628 | - unsigned long code_base = (unsigned long)(&__TEXT_START__); | ||
629 | - unsigned long code_size = (unsigned long)(&__TEXT_END__) - code_base; | ||
630 | + unsigned long code_base = TEXT_START; | ||
631 | + unsigned long code_size = TEXT_END - TEXT_START; | ||
632 | const mmap_region_t *plat_mmio_map = NULL; | ||
633 | #if USE_COHERENT_MEM | ||
634 | unsigned long coh_start, coh_size; | ||
635 | diff --git a/plat/rockchip/common/bl31_plat_setup.c b/plat/rockchip/common/bl31_plat_setup.c | ||
636 | index 6199edae2..e5ee68f14 100644 | ||
637 | --- a/plat/rockchip/common/bl31_plat_setup.c | ||
638 | +++ b/plat/rockchip/common/bl31_plat_setup.c | ||
639 | @@ -1,5 +1,5 @@ | ||
640 | /* | ||
641 | - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. | ||
642 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
643 | * | ||
644 | * SPDX-License-Identifier: BSD-3-Clause | ||
645 | */ | ||
646 | @@ -17,21 +17,14 @@ | ||
647 | #include <platform_def.h> | ||
648 | #include <uart_16550.h> | ||
649 | |||
650 | -/******************************************************************************* | ||
651 | - * Declarations of linker defined symbols which will help us find the layout | ||
652 | - * of trusted SRAM | ||
653 | - ******************************************************************************/ | ||
654 | -unsigned long __RO_START__; | ||
655 | -unsigned long __RO_END__; | ||
656 | - | ||
657 | /* | ||
658 | * The next 2 constants identify the extents of the code & RO data region. | ||
659 | * These addresses are used by the MMU setup code and therefore they must be | ||
660 | * page-aligned. It is the responsibility of the linker script to ensure that | ||
661 | * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses. | ||
662 | */ | ||
663 | -#define BL31_RO_BASE (unsigned long)(&__RO_START__) | ||
664 | -#define BL31_RO_LIMIT (unsigned long)(&__RO_END__) | ||
665 | +IMPORT_SYM(unsigned long, __RO_START__, BL31_RO_BASE); | ||
666 | +IMPORT_SYM(unsigned long, __RO_END__, BL31_RO_LIMIT); | ||
667 | |||
668 | static entry_point_info_t bl32_ep_info; | ||
669 | static entry_point_info_t bl33_ep_info; | ||
670 | diff --git a/services/std_svc/spm/spm_shim_private.h b/services/std_svc/spm/spm_shim_private.h | ||
671 | index ad953cde7..8408d1e04 100644 | ||
672 | --- a/services/std_svc/spm/spm_shim_private.h | ||
673 | +++ b/services/std_svc/spm/spm_shim_private.h | ||
674 | @@ -1,5 +1,5 @@ | ||
675 | /* | ||
676 | - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. | ||
677 | + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. | ||
678 | * | ||
679 | * SPDX-License-Identifier: BSD-3-Clause | ||
680 | */ | ||
681 | @@ -8,21 +8,17 @@ | ||
682 | #define __SPM_SHIM_PRIVATE__ | ||
683 | |||
684 | #include <types.h> | ||
685 | +#include <utils_def.h> | ||
686 | |||
687 | /* Assembly source */ | ||
688 | -extern uintptr_t spm_shim_exceptions_ptr; | ||
689 | +IMPORT_SYM(uintptr_t, spm_shim_exceptions_ptr, SPM_SHIM_EXCEPTIONS_PTR); | ||
690 | |||
691 | /* Linker symbols */ | ||
692 | -extern uintptr_t __SPM_SHIM_EXCEPTIONS_START__; | ||
693 | -extern uintptr_t __SPM_SHIM_EXCEPTIONS_END__; | ||
694 | +IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_START__, SPM_SHIM_EXCEPTIONS_START); | ||
695 | +IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_END__, SPM_SHIM_EXCEPTIONS_END); | ||
696 | |||
697 | /* Definitions */ | ||
698 | -#define SPM_SHIM_EXCEPTIONS_PTR (uintptr_t)(&spm_shim_exceptions_ptr) | ||
699 | |||
700 | -#define SPM_SHIM_EXCEPTIONS_START \ | ||
701 | - (uintptr_t)(&__SPM_SHIM_EXCEPTIONS_START__) | ||
702 | -#define SPM_SHIM_EXCEPTIONS_END \ | ||
703 | - (uintptr_t)(&__SPM_SHIM_EXCEPTIONS_END__) | ||
704 | #define SPM_SHIM_EXCEPTIONS_SIZE \ | ||
705 | (SPM_SHIM_EXCEPTIONS_END - SPM_SHIM_EXCEPTIONS_START) | ||
706 | |||
707 | -- | ||
708 | 2.25.1 | ||
709 | |||
diff --git a/recipes-bsp/atf/qoriq-atf_1.5.bb b/recipes-bsp/atf/qoriq-atf_1.5.bb index 19208334..fb686c94 100644 --- a/recipes-bsp/atf/qoriq-atf_1.5.bb +++ b/recipes-bsp/atf/qoriq-atf_1.5.bb | |||
@@ -8,12 +8,14 @@ PV = "1.5+git${SRCPV}" | |||
8 | inherit deploy | 8 | inherit deploy |
9 | 9 | ||
10 | DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native mbedtls rcw cst-native" | 10 | DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native mbedtls rcw cst-native" |
11 | DEPENDS_append_lx2160a = " ddr-phy" | 11 | DEPENDS:append:lx2160a = " ddr-phy" |
12 | do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy" | 12 | do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy" |
13 | 13 | ||
14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
15 | 15 | ||
16 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/atf;nobranch=1" | 16 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/atf;nobranch=1 \ |
17 | file://0001-Clean-usage-of-void-pointers-to-access-symbols.patch \ | ||
18 | " | ||
17 | SRCREV = "5ae5233c064e94a8bd1b4a1652a03b87b0be63f6" | 19 | SRCREV = "5ae5233c064e94a8bd1b4a1652a03b87b0be63f6" |
18 | 20 | ||
19 | COMPATIBLE_MACHINE = "(qoriq)" | 21 | COMPATIBLE_MACHINE = "(qoriq)" |
@@ -21,12 +23,12 @@ COMPATIBLE_MACHINE = "(qoriq)" | |||
21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 23 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
22 | 24 | ||
23 | PLATFORM = "${MACHINE}" | 25 | PLATFORM = "${MACHINE}" |
24 | PLATFORM_ls1088ardb-pb = "ls1088ardb" | 26 | PLATFORM:ls1088ardb-pb = "ls1088ardb" |
25 | PLATFORM_ADDITIONAL_TARGET ??= "" | 27 | PLATFORM_ADDITIONAL_TARGET ??= "" |
26 | PLATFORM_ADDITIONAL_TARGET_ls1012afrwy = "ls1012afrwy_512mb" | 28 | PLATFORM_ADDITIONAL_TARGET:ls1012afrwy = "ls1012afrwy_512mb" |
27 | 29 | ||
28 | RCW_FOLDER ?= "${MACHINE}" | 30 | RCW_FOLDER ?= "${MACHINE}" |
29 | RCW_FOLDER_ls1088ardb-pb = "ls1088ardb" | 31 | RCW_FOLDER:ls1088ardb-pb = "ls1088ardb" |
30 | 32 | ||
31 | # requires CROSS_COMPILE set by hand as there is no configure script | 33 | # requires CROSS_COMPILE set by hand as there is no configure script |
32 | export CROSS_COMPILE="${TARGET_PREFIX}" | 34 | export CROSS_COMPILE="${TARGET_PREFIX}" |
@@ -56,16 +58,16 @@ PACKAGECONFIG[optee] = ",,optee-os-qoriq" | |||
56 | uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" | 58 | uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" |
57 | uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" | 59 | uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" |
58 | rcw ?= "" | 60 | rcw ?= "" |
59 | rcw_ls1012a = "_default" | 61 | rcw:ls1012a = "_default" |
60 | rcwsec ?= "_sben" | 62 | rcwsec ?= "_sben" |
61 | 63 | ||
62 | chassistype ?= "ls2088_1088" | 64 | chassistype ?= "ls2088_1088" |
63 | chassistype_ls1012a = "ls104x_1012" | 65 | chassistype:ls1012a = "ls104x_1012" |
64 | chassistype_ls1043a = "ls104x_1012" | 66 | chassistype:ls1043a = "ls104x_1012" |
65 | chassistype_ls1046a = "ls104x_1012" | 67 | chassistype:ls1046a = "ls104x_1012" |
66 | 68 | ||
67 | ddrphyopt ?= "" | 69 | ddrphyopt ?= "" |
68 | ddrphyopt_lx2160a = "fip_ddr_sec" | 70 | ddrphyopt:lx2160a = "fip_ddr_sec" |
69 | 71 | ||
70 | do_configure[noexec] = "1" | 72 | do_configure[noexec] = "1" |
71 | 73 | ||
@@ -242,5 +244,5 @@ do_deploy() { | |||
242 | fi | 244 | fi |
243 | } | 245 | } |
244 | addtask deploy after do_install | 246 | addtask deploy after do_install |
245 | FILES_${PN} += "/boot" | 247 | FILES:${PN} += "/boot" |
246 | BBCLASSEXTEND = "native nativesdk" | 248 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-bsp/atf/qoriq-atf_2.3.bb b/recipes-bsp/atf/qoriq-atf_2.3.bb index aed32851..f2922c91 100644 --- a/recipes-bsp/atf/qoriq-atf_2.3.bb +++ b/recipes-bsp/atf/qoriq-atf_2.3.bb | |||
@@ -47,7 +47,7 @@ do_compile() { | |||
47 | if [ "${NXP_COT}" = "true" -a "${ARM_COT}" = "true" ]; then | 47 | if [ "${NXP_COT}" = "true" -a "${ARM_COT}" = "true" ]; then |
48 | bbfatal " \ | 48 | bbfatal " \ |
49 | Error!, Both ARM CoT and NXP CoT are enabled. Only one CoT is built in a yocto build, \ | 49 | Error!, Both ARM CoT and NXP CoT are enabled. Only one CoT is built in a yocto build, \ |
50 | Don't add nxp-cot and arm-cot into DISTRO_FEATURES_append at the same time." | 50 | Don't add nxp-cot and arm-cot into DISTRO_FEATURES:append at the same time." |
51 | fi | 51 | fi |
52 | 52 | ||
53 | if [ "${NXP_COT}" = "true" ]; then | 53 | if [ "${NXP_COT}" = "true" ]; then |
@@ -160,7 +160,7 @@ do_install() { | |||
160 | 160 | ||
161 | do_deploy() { | 161 | do_deploy() { |
162 | if [ "${ARM_COT}" = "true" ]; then | 162 | if [ "${ARM_COT}" = "true" ]; then |
163 | outputdir="atf_arm-cot" | 163 | outputdir="atf:arm-cot" |
164 | elif [ "${NXP_COT}" = "true" ]; then | 164 | elif [ "${NXP_COT}" = "true" ]; then |
165 | outputdir="atf_nxp-cot" | 165 | outputdir="atf_nxp-cot" |
166 | else | 166 | else |
@@ -171,5 +171,5 @@ do_deploy() { | |||
171 | cp -fr ${D}/boot/atf/* ${DEPLOYDIR}/${outputdir}/ | 171 | cp -fr ${D}/boot/atf/* ${DEPLOYDIR}/${outputdir}/ |
172 | } | 172 | } |
173 | addtask deploy after do_install | 173 | addtask deploy after do_install |
174 | FILES_${PN} += "/boot" | 174 | FILES:${PN} += "/boot" |
175 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" | 175 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" |
diff --git a/recipes-bsp/boot-format/boot-format_git.bb b/recipes-bsp/boot-format/boot-format_git.bb index 92ec8307..584c5c68 100644 --- a/recipes-bsp/boot-format/boot-format_git.bb +++ b/recipes-bsp/boot-format/boot-format_git.bb | |||
@@ -15,6 +15,6 @@ do_install(){ | |||
15 | } | 15 | } |
16 | 16 | ||
17 | PACKAGES =+ "${PN}-config" | 17 | PACKAGES =+ "${PN}-config" |
18 | FILES_${PN}-config += "${datadir}/*" | 18 | FILES:${PN}-config += "${datadir}/*" |
19 | 19 | ||
20 | BBCLASSEXTEND = "native nativesdk" | 20 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-bsp/ddr-phy/ddr-phy_git.bb b/recipes-bsp/ddr-phy/ddr-phy_git.bb index fa8833fd..6e68bd02 100644 --- a/recipes-bsp/ddr-phy/ddr-phy_git.bb +++ b/recipes-bsp/ddr-phy/ddr-phy_git.bb | |||
@@ -38,7 +38,7 @@ do_deploy () { | |||
38 | addtask deploy before do_populate_sysroot after do_install | 38 | addtask deploy before do_populate_sysroot after do_install |
39 | 39 | ||
40 | PACKAGES += "${PN}-image" | 40 | PACKAGES += "${PN}-image" |
41 | FILES_${PN}-image += "/boot" | 41 | FILES:${PN}-image += "/boot" |
42 | 42 | ||
43 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" | 43 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" |
44 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 44 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb b/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb index e8db5456..7b77e6f8 100644 --- a/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb +++ b/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb | |||
@@ -23,7 +23,7 @@ do_deploy () { | |||
23 | addtask deploy before do_build after do_install | 23 | addtask deploy before do_build after do_install |
24 | 24 | ||
25 | PACKAGES += "${PN}-image" | 25 | PACKAGES += "${PN}-image" |
26 | FILES_${PN}-image += "/boot" | 26 | FILES:${PN}-image += "/boot" |
27 | 27 | ||
28 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 28 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
29 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 29 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb b/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb index 650c1cfd..6ea16d5b 100644 --- a/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb +++ b/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb | |||
@@ -19,5 +19,5 @@ addtask deploy after do_install before do_build | |||
19 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 19 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
20 | 20 | ||
21 | COMPATIBLE_MACHINE = "(mx8)" | 21 | COMPATIBLE_MACHINE = "(mx8)" |
22 | COMPATIBLE_MACHINE_mx8m = "(^$)" | 22 | COMPATIBLE_MACHINE:mx8m = "(^$)" |
23 | COMPATIBLE_MACHINE_mx8x = "(^$)" | 23 | COMPATIBLE_MACHINE:mx8x = "(^$)" |
diff --git a/recipes-bsp/firmware-imx/firmware-imx_8.12.bb b/recipes-bsp/firmware-imx/firmware-imx_8.12.bb index 8ff4a321..68539a61 100644 --- a/recipes-bsp/firmware-imx/firmware-imx_8.12.bb +++ b/recipes-bsp/firmware-imx/firmware-imx_8.12.bb | |||
@@ -65,7 +65,7 @@ do_install() { | |||
65 | # as second one, and for every file match - it creates a separate package, | 65 | # as second one, and for every file match - it creates a separate package, |
66 | # which contains only files that matches the pattern. | 66 | # which contains only files that matches the pattern. |
67 | # | 67 | # |
68 | python populate_packages_prepend() { | 68 | python populate_packages:prepend() { |
69 | easrcdir = bb.data.expand('${nonarch_base_libdir}/firmware/imx/easrc', d) | 69 | easrcdir = bb.data.expand('${nonarch_base_libdir}/firmware/imx/easrc', d) |
70 | do_split_packages(d, easrcdir, '^easrc-([^_]*).*\.bin', | 70 | do_split_packages(d, easrcdir, '^easrc-([^_]*).*\.bin', |
71 | output_pattern='firmware-imx-easrc-%s', | 71 | output_pattern='firmware-imx-easrc-%s', |
@@ -123,7 +123,7 @@ PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-* ${PN}-easrc-* ${PN}-xcvr-* ${PN}-xu | |||
123 | # files it makes no sense. | 123 | # files it makes no sense. |
124 | PACKAGES = "${PN} ${PN}-epdc ${PN}-hdmi" | 124 | PACKAGES = "${PN} ${PN}-epdc ${PN}-hdmi" |
125 | 125 | ||
126 | FILES_${PN}-epdc = "${nonarch_base_libdir}/firmware/imx/epdc/" | 126 | FILES:${PN}-epdc = "${nonarch_base_libdir}/firmware/imx/epdc/" |
127 | FILES_${PN}-hdmi = "${nonarch_base_libdir}/firmware/imx/hdmi/" | 127 | FILES:${PN}-hdmi = "${nonarch_base_libdir}/firmware/imx/hdmi/" |
128 | 128 | ||
129 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" | 129 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" |
diff --git a/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb b/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb index 0f0a2af0..287b1cff 100644 --- a/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb +++ b/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb | |||
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git" | |||
18 | inherit allarch | 18 | inherit allarch |
19 | 19 | ||
20 | CLEANBROKEN = "1" | 20 | CLEANBROKEN = "1" |
21 | ALLOW_EMPTY_${PN} = "1" | 21 | ALLOW_EMPTY:${PN} = "1" |
22 | 22 | ||
23 | do_compile() { | 23 | do_compile() { |
24 | : | 24 | : |
@@ -38,9 +38,9 @@ PACKAGES =+ " \ | |||
38 | ${PN}-bcm4359-pcie \ | 38 | ${PN}-bcm4359-pcie \ |
39 | " | 39 | " |
40 | 40 | ||
41 | FILES_${PN}-bcm4359-pcie = " \ | 41 | FILES:${PN}-bcm4359-pcie = " \ |
42 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac4359-pcie.* \ | 42 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac4359-pcie.* \ |
43 | ${sysconfdir}/firmware/BCM4349B1_*.hcd \ | 43 | ${sysconfdir}/firmware/BCM4349B1_*.hcd \ |
44 | " | 44 | " |
45 | 45 | ||
46 | RPROVIDES_${PN}-bcm4359-pcie = "linux-firmware-bcm4359-pcie" | 46 | RPROVIDES:${PN}-bcm4359-pcie = "linux-firmware-bcm4359-pcie" |
diff --git a/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb b/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb index 22f4c25f..2ce98344 100644 --- a/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb +++ b/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb | |||
@@ -21,4 +21,4 @@ do_install() { | |||
21 | cp -r sof* ${D}${nonarch_base_libdir}/firmware/imx/ | 21 | cp -r sof* ${D}${nonarch_base_libdir}/firmware/imx/ |
22 | } | 22 | } |
23 | 23 | ||
24 | FILES_${PN} = "${nonarch_base_libdir}/firmware/imx" | 24 | FILES:${PN} = "${nonarch_base_libdir}/firmware/imx" |
diff --git a/recipes-bsp/firmware-qca/firmware-qca.inc b/recipes-bsp/firmware-qca/firmware-qca.inc deleted file mode 100644 index f33f4eb9..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca.inc +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "Proprietary" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd4b227530cd88a82af6a5982cfb724d \ | ||
7 | file://QUALCOMM_ATHEROS_LICENSE_AGREEMENT.pdf;md5=e629669cf17f6a2a6872e067582986e3 \ | ||
8 | " | ||
9 | |||
10 | SRC_URI = " ${FSL_MIRROR}/firmware-qca-${PV}.bin;fsl-eula=true" | ||
11 | SRC_URI[md5sum] = "75b1b2a8dea8f81609ccfc072d42fa86" | ||
12 | SRC_URI[sha256sum] = "6ad56ac1df841e252ac6db0a8966082715a3cb6dc7189426bade13333a16fd9d" | ||
13 | S = "${WORKDIR}/firmware-qca-${PV}" | ||
14 | |||
15 | inherit fsl-eula-unpack | ||
diff --git a/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb b/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb deleted file mode 100644 index 47b289af..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # Copyright (C) 2019-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA6174A" | ||
7 | SECTION = "base" | ||
8 | LICENSE = "Proprietary" | ||
9 | |||
10 | inherit allarch | ||
11 | |||
12 | do_install () { | ||
13 | # Install firmware.conf for QCA modules | ||
14 | install -d ${D}${sysconfdir}/bluetooth | ||
15 | install -m 644 ${S}/1CQ_QCA6174A_LEA_2.0/etc/bluetooth/firmware.conf ${D}${sysconfdir}/bluetooth | ||
16 | |||
17 | # Install firmware files | ||
18 | install -d ${D}${base_libdir} | ||
19 | cp -r ${S}/1CQ_QCA6174A_LEA_2.0/lib/firmware ${D}${base_libdir} | ||
20 | } | ||
21 | |||
22 | FILES_${PN} = " \ | ||
23 | ${sysconfdir}/bluetooth/firmware.conf \ | ||
24 | ${base_libdir}/firmware/qca6174 \ | ||
25 | ${base_libdir}/firmware/wlan \ | ||
26 | ${base_libdir}/firmware/* \ | ||
27 | " | ||
diff --git a/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb b/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb deleted file mode 100644 index 26c41d50..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA9377-3" | ||
7 | SECTION = "base" | ||
8 | LICENSE = "Proprietary" | ||
9 | |||
10 | inherit allarch | ||
11 | |||
12 | do_install () { | ||
13 | # Install firmware.conf for QCA modules | ||
14 | install -d ${D}${sysconfdir}/bluetooth | ||
15 | install -m 644 ${S}/1PJ_QCA9377-3_LEA_3.0/etc/bluetooth/firmware.conf ${D}${sysconfdir}/bluetooth | ||
16 | |||
17 | # Install firmware files | ||
18 | install -d ${D}${base_libdir} | ||
19 | cp -r ${S}/1PJ_QCA9377-3_LEA_3.0/lib/firmware ${D}${base_libdir} | ||
20 | } | ||
21 | |||
22 | FILES_${PN} = " \ | ||
23 | ${sysconfdir}/bluetooth/firmware.conf \ | ||
24 | ${base_libdir}/firmware/qca \ | ||
25 | ${base_libdir}/firmware/qca9377 \ | ||
26 | ${base_libdir}/firmware/wlan \ | ||
27 | " | ||
diff --git a/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb b/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb deleted file mode 100644 index e996c62d..00000000 --- a/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth tools" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth tools for modules such as QCA6174A and QCA9377" | ||
7 | LICENSE = "Proprietary" | ||
8 | |||
9 | DEPENDS = "libnl zlib" | ||
10 | |||
11 | FCC_TOOLS_FOLDER ?= "qca9377_qca6174_arm32" | ||
12 | FCC_TOOLS_FOLDER_aarch64 = "qca9377_qca6174_arm64" | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}${sbindir}/fcc_tools | ||
16 | cp -r ${S}/fcc_tools/${FCC_TOOLS_FOLDER} ${D}${sbindir}/fcc_tools | ||
17 | } | ||
18 | |||
19 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
20 | COMPATIBLE_HOST_libc-musl = 'null' | ||
diff --git a/recipes-bsp/formfactor/formfactor_%.bbappend b/recipes-bsp/formfactor/formfactor_%.bbappend index 15f8f4e8..83cce131 100644 --- a/recipes-bsp/formfactor/formfactor_%.bbappend +++ b/recipes-bsp/formfactor/formfactor_%.bbappend | |||
@@ -1,2 +1,2 @@ | |||
1 | # Append path for i.MX custom matchconfig | 1 | # Append path for i.MX custom matchconfig |
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
diff --git a/recipes-bsp/imx-atf/imx-atf_2.4.bb b/recipes-bsp/imx-atf/imx-atf_2.4.bb index f4db002b..536a0a73 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.4.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.4.bb | |||
@@ -27,7 +27,7 @@ EXTRA_OEMAKE += " \ | |||
27 | 27 | ||
28 | BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" | 28 | BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" |
29 | 29 | ||
30 | CFLAGS_remove_mx8mq = "-O2" | 30 | CFLAGS:remove:mx8mq = "-O2" |
31 | 31 | ||
32 | do_compile() { | 32 | do_compile() { |
33 | # Clear LDFLAGS to avoid the option -Wl recognize issue | 33 | # Clear LDFLAGS to avoid the option -Wl recognize issue |
diff --git a/recipes-bsp/imx-lib/imx-lib_git.bb b/recipes-bsp/imx-lib/imx-lib_git.bb index c5619070..a296b185 100644 --- a/recipes-bsp/imx-lib/imx-lib_git.bb +++ b/recipes-bsp/imx-lib/imx-lib_git.bb | |||
@@ -20,15 +20,15 @@ S = "${WORKDIR}/git" | |||
20 | 20 | ||
21 | inherit use-imx-headers | 21 | inherit use-imx-headers |
22 | 22 | ||
23 | PLATFORM_mx6q = "IMX6Q" | 23 | PLATFORM:mx6q = "IMX6Q" |
24 | PLATFORM_mx6dl = "IMX6Q" | 24 | PLATFORM:mx6dl = "IMX6Q" |
25 | PLATFORM_mx6sl = "IMX6S" | 25 | PLATFORM:mx6sl = "IMX6S" |
26 | PLATFORM_mx6sll = "IMX6UL" | 26 | PLATFORM:mx6sll = "IMX6UL" |
27 | PLATFORM_mx6sx = "IMX6S" | 27 | PLATFORM:mx6sx = "IMX6S" |
28 | PLATFORM_mx6ul = "IMX6UL" | 28 | PLATFORM:mx6ul = "IMX6UL" |
29 | PLATFORM_mx6ull = "IMX6UL" | 29 | PLATFORM:mx6ull = "IMX6UL" |
30 | PLATFORM_mx7d = "IMX7" | 30 | PLATFORM:mx7d = "IMX7" |
31 | PLATFORM_mx7ulp = "IMX7" | 31 | PLATFORM:mx7ulp = "IMX7" |
32 | 32 | ||
33 | PARALLEL_MAKE="-j 1" | 33 | PARALLEL_MAKE="-j 1" |
34 | EXTRA_OEMAKE = "" | 34 | EXTRA_OEMAKE = "" |
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb index 422670be..1425c5a3 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb | |||
@@ -10,8 +10,8 @@ SECTION = "BSP" | |||
10 | inherit use-imx-security-controller-firmware | 10 | inherit use-imx-security-controller-firmware |
11 | 11 | ||
12 | IMX_EXTRA_FIRMWARE = "firmware-imx-8 imx-sc-firmware imx-seco" | 12 | IMX_EXTRA_FIRMWARE = "firmware-imx-8 imx-sc-firmware imx-seco" |
13 | IMX_EXTRA_FIRMWARE_mx8m = "firmware-imx-8m" | 13 | IMX_EXTRA_FIRMWARE:mx8m = "firmware-imx-8m" |
14 | IMX_EXTRA_FIRMWARE_mx8x = "imx-sc-firmware imx-seco" | 14 | IMX_EXTRA_FIRMWARE:mx8x = "imx-sc-firmware imx-seco" |
15 | DEPENDS += " \ | 15 | DEPENDS += " \ |
16 | u-boot \ | 16 | u-boot \ |
17 | ${IMX_EXTRA_FIRMWARE} \ | 17 | ${IMX_EXTRA_FIRMWARE} \ |
@@ -20,7 +20,7 @@ DEPENDS += " \ | |||
20 | " | 20 | " |
21 | # xxd is a dependency of fspi_packer.sh | 21 | # xxd is a dependency of fspi_packer.sh |
22 | DEPENDS += "xxd-native" | 22 | DEPENDS += "xxd-native" |
23 | DEPENDS_append_mx8m = " u-boot-mkimage-native dtc-native" | 23 | DEPENDS:append:mx8m = " u-boot-mkimage-native dtc-native" |
24 | BOOT_NAME = "imx-boot" | 24 | BOOT_NAME = "imx-boot" |
25 | PROVIDES = "${BOOT_NAME}" | 25 | PROVIDES = "${BOOT_NAME}" |
26 | 26 | ||
@@ -41,7 +41,7 @@ do_compile[depends] += " \ | |||
41 | SC_FIRMWARE_NAME ?= "scfw_tcm.bin" | 41 | SC_FIRMWARE_NAME ?= "scfw_tcm.bin" |
42 | 42 | ||
43 | ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" | 43 | ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" |
44 | ATF_MACHINE_NAME_append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" | 44 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" |
45 | 45 | ||
46 | UBOOT_NAME = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 46 | UBOOT_NAME = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
47 | BOOT_CONFIG_MACHINE = "${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG}.bin" | 47 | BOOT_CONFIG_MACHINE = "${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG}.bin" |
@@ -58,16 +58,16 @@ IMXBOOT_TARGETS ?= \ | |||
58 | 'flash_multi_cores flash_dcd', d), d)}" | 58 | 'flash_multi_cores flash_dcd', d), d)}" |
59 | 59 | ||
60 | BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}" | 60 | BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}" |
61 | BOOT_STAGING_mx8m = "${S}/iMX8M" | 61 | BOOT_STAGING:mx8m = "${S}/iMX8M" |
62 | BOOT_STAGING_mx8dx = "${S}/iMX8QX" | 62 | BOOT_STAGING:mx8dx = "${S}/iMX8QX" |
63 | 63 | ||
64 | SOC_FAMILY = "INVALID" | 64 | SOC_FAMILY = "INVALID" |
65 | SOC_FAMILY_mx8 = "mx8" | 65 | SOC_FAMILY:mx8 = "mx8" |
66 | SOC_FAMILY_mx8m = "mx8m" | 66 | SOC_FAMILY:mx8m = "mx8m" |
67 | SOC_FAMILY_mx8x = "mx8x" | 67 | SOC_FAMILY:mx8x = "mx8x" |
68 | 68 | ||
69 | REV_OPTION ?= "" | 69 | REV_OPTION ?= "" |
70 | REV_OPTION_mx8qxp = \ | 70 | REV_OPTION:mx8qxp = \ |
71 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', '', \ | 71 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', '', \ |
72 | 'REV=C0', d)}" | 72 | 'REV=C0', d)}" |
73 | 73 | ||
@@ -199,6 +199,6 @@ do_deploy() { | |||
199 | addtask deploy before do_build after do_compile | 199 | addtask deploy before do_build after do_compile |
200 | 200 | ||
201 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 201 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
202 | FILES_${PN} = "/boot" | 202 | FILES:${PN} = "/boot" |
203 | 203 | ||
204 | COMPATIBLE_MACHINE = "(mx8)" | 204 | COMPATIBLE_MACHINE = "(mx8)" |
diff --git a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb index b8c3d3c3..6eb65b81 100644 --- a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb +++ b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb | |||
@@ -15,10 +15,10 @@ SRC_URI[sha256sum] = "df0fe17c93e4c2835542d6b1b2557524f034e378b643100cd838225e82 | |||
15 | 15 | ||
16 | BOARD_TYPE ?= "mek" | 16 | BOARD_TYPE ?= "mek" |
17 | SC_FIRMWARE_NAME ?= "INVALID" | 17 | SC_FIRMWARE_NAME ?= "INVALID" |
18 | SC_FIRMWARE_NAME_mx8qm = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" | 18 | SC_FIRMWARE_NAME:mx8qm = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" |
19 | SC_FIRMWARE_NAME_mx8qxp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" | 19 | SC_FIRMWARE_NAME:mx8qxp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" |
20 | SC_FIRMWARE_NAME_mx8dxl = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" | 20 | SC_FIRMWARE_NAME:mx8dxl = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" |
21 | SC_FIRMWARE_NAME_mx8dx = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" | 21 | SC_FIRMWARE_NAME:mx8dx = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" |
22 | 22 | ||
23 | symlink_name = "scfw_tcm.bin" | 23 | symlink_name = "scfw_tcm.bin" |
24 | 24 | ||
diff --git a/recipes-bsp/imx-test/imx-test_00.00.00.bb b/recipes-bsp/imx-test/imx-test_00.00.00.bb index c29e6a62..070fbd30 100644 --- a/recipes-bsp/imx-test/imx-test_00.00.00.bb +++ b/recipes-bsp/imx-test/imx-test_00.00.00.bb | |||
@@ -4,7 +4,7 @@ SECTION = "base" | |||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
6 | 6 | ||
7 | ALLOW_EMPTY_${PN} = "1" | 7 | ALLOW_EMPTY:${PN} = "1" |
8 | 8 | ||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
10 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf50|vf60)" | 10 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf50|vf60)" |
diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb index 118590d5..a5f33d83 100644 --- a/recipes-bsp/imx-test/imx-test_git.bb +++ b/recipes-bsp/imx-test/imx-test_git.bb | |||
@@ -9,9 +9,9 @@ LICENSE = "GPLv2+" | |||
9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" | 9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" |
10 | 10 | ||
11 | DEPENDS = "alsa-lib libdrm" | 11 | DEPENDS = "alsa-lib libdrm" |
12 | DEPENDS_append_mx6 = " imx-lib" | 12 | DEPENDS:append:mx6 = " imx-lib" |
13 | DEPENDS_append_mx7 = " imx-lib" | 13 | DEPENDS:append:mx7 = " imx-lib" |
14 | DEPENDS_append_imxvpu = " virtual/imxvpu" | 14 | DEPENDS:append:imxvpu = " virtual/imxvpu" |
15 | 15 | ||
16 | PE = "1" | 16 | PE = "1" |
17 | PV = "7.0+${SRCPV}" | 17 | PV = "7.0+${SRCPV}" |
@@ -29,22 +29,22 @@ inherit module-base use-imx-headers | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | 29 | INHIBIT_PACKAGE_STRIP = "1" |
30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
31 | 31 | ||
32 | PLATFORM_mx6q = "IMX6Q" | 32 | PLATFORM:mx6q = "IMX6Q" |
33 | PLATFORM_mx6dl = "IMX6Q" | 33 | PLATFORM:mx6dl = "IMX6Q" |
34 | PLATFORM_mx6sl = "IMX6SL" | 34 | PLATFORM:mx6sl = "IMX6SL" |
35 | PLATFORM_mx6sll = "IMX6SL" | 35 | PLATFORM:mx6sll = "IMX6SL" |
36 | PLATFORM_mx6sx = "IMX6SX" | 36 | PLATFORM:mx6sx = "IMX6SX" |
37 | PLATFORM_mx6ul = "IMX6UL" | 37 | PLATFORM:mx6ul = "IMX6UL" |
38 | PLATFORM_mx7d = "IMX7D" | 38 | PLATFORM:mx7d = "IMX7D" |
39 | PLATFORM_mx7ulp = "IMX7D" | 39 | PLATFORM:mx7ulp = "IMX7D" |
40 | PLATFORM_mx8 = "IMX8" | 40 | PLATFORM:mx8 = "IMX8" |
41 | 41 | ||
42 | PARALLEL_MAKE = "-j 1" | 42 | PARALLEL_MAKE = "-j 1" |
43 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" | 43 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" |
44 | 44 | ||
45 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 45 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
46 | PACKAGECONFIG_append_imxvpu = " vpu" | 46 | PACKAGECONFIG:append:imxvpu = " vpu" |
47 | PACKAGECONFIG_append_mx8m = " swpdm" | 47 | PACKAGECONFIG:append:mx8m = " swpdm" |
48 | 48 | ||
49 | PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr" | 49 | PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr" |
50 | PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu" | 50 | PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu" |
@@ -76,7 +76,7 @@ do_install() { | |||
76 | install -m 0644 ${WORKDIR}/memtool_profile ${D}/home/root/.profile | 76 | install -m 0644 ${WORKDIR}/memtool_profile ${D}/home/root/.profile |
77 | } | 77 | } |
78 | 78 | ||
79 | FILES_${PN} += "/unit_tests /home/root/.profile" | 79 | FILES:${PN} += "/unit_tests /home/root/.profile" |
80 | RDEPENDS_${PN} = "bash" | 80 | RDEPENDS:${PN} = "bash" |
81 | 81 | ||
82 | FILES_${PN}-dbg += "/unit_tests/.debug" | 82 | FILES:${PN}-dbg += "/unit_tests/.debug" |
diff --git a/recipes-bsp/imx-uuc/imx-uuc_git.bb b/recipes-bsp/imx-uuc/imx-uuc_git.bb index bfa6607b..02331a80 100644 --- a/recipes-bsp/imx-uuc/imx-uuc_git.bb +++ b/recipes-bsp/imx-uuc/imx-uuc_git.bb | |||
@@ -16,6 +16,6 @@ SRCREV = "d6afb27e55d73d7ad08cd2dd51c784d8ec9694dc" | |||
16 | 16 | ||
17 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
18 | 18 | ||
19 | FILES_${PN} += "/linuxrc /fat" | 19 | FILES:${PN} += "/linuxrc /fat" |
20 | 20 | ||
21 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" | 21 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" |
diff --git a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb index 58a140b4..33208bdf 100644 --- a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb +++ b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb | |||
@@ -30,6 +30,6 @@ do_install () { | |||
30 | rm ${D}${D_SUBDIR}/${SCR} | 30 | rm ${D}${D_SUBDIR}/${SCR} |
31 | } | 31 | } |
32 | 32 | ||
33 | FILES_${PN} = "/" | 33 | FILES:${PN} = "/" |
34 | 34 | ||
35 | COMPATIBLE_MACHINE = "(mx8mp)" | 35 | COMPATIBLE_MACHINE = "(mx8mp)" |
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb index 88b9ee0e..d362fce3 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb | |||
@@ -4,7 +4,7 @@ LICENSE = "MIT" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1" |
5 | 5 | ||
6 | DEPENDS = "imx-vpu-hantro" | 6 | DEPENDS = "imx-vpu-hantro" |
7 | DEPENDS_append_mx8mp = " imx-vpu-hantro-vc" | 7 | DEPENDS:append:mx8mp = " imx-vpu-hantro-vc" |
8 | 8 | ||
9 | SRC_URI = " \ | 9 | SRC_URI = " \ |
10 | ${FSL_MIRROR}/${BP}.tar.gz \ | 10 | ${FSL_MIRROR}/${BP}.tar.gz \ |
@@ -13,9 +13,9 @@ SRC_URI = " \ | |||
13 | SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2" | 13 | SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2" |
14 | SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8" | 14 | SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8" |
15 | 15 | ||
16 | PLATFORM_mx8mm = "IMX8MM" | 16 | PLATFORM:mx8mm = "IMX8MM" |
17 | PLATFORM_mx8mq = "IMX8MQ" | 17 | PLATFORM:mx8mq = "IMX8MQ" |
18 | PLATFORM_mx8mp = "IMX8MP" | 18 | PLATFORM:mx8mp = "IMX8MP" |
19 | 19 | ||
20 | EXTRA_OEMAKE = " \ | 20 | EXTRA_OEMAKE = " \ |
21 | CROSS_COMPILE="${HOST_PREFIX}" \ | 21 | CROSS_COMPILE="${HOST_PREFIX}" \ |
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb index 20ac87c7..2ecb1e4b 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb | |||
@@ -14,9 +14,9 @@ inherit fsl-eula-unpack use-imx-headers | |||
14 | 14 | ||
15 | PARALLEL_MAKE="-j 1" | 15 | PARALLEL_MAKE="-j 1" |
16 | 16 | ||
17 | PLATFORM_mx8mm = "IMX8MM" | 17 | PLATFORM:mx8mm = "IMX8MM" |
18 | PLATFORM_mx8mq = "IMX8MQ" | 18 | PLATFORM:mx8mq = "IMX8MQ" |
19 | PLATFORM_mx8mp = "IMX8MP" | 19 | PLATFORM:mx8mp = "IMX8MP" |
20 | 20 | ||
21 | EXTRA_OEMAKE = " \ | 21 | EXTRA_OEMAKE = " \ |
22 | CROSS_COMPILE="${HOST_PREFIX}" \ | 22 | CROSS_COMPILE="${HOST_PREFIX}" \ |
@@ -28,8 +28,8 @@ do_install () { | |||
28 | oe_runmake install DEST_DIR="${D}" | 28 | oe_runmake install DEST_DIR="${D}" |
29 | } | 29 | } |
30 | 30 | ||
31 | FILES_${PN} += "/unit_tests" | 31 | FILES:${PN} += "/unit_tests" |
32 | 32 | ||
33 | RDEPENDS_${PN} += "imx-vpu-hantro-daemon" | 33 | RDEPENDS:${PN} += "imx-vpu-hantro-daemon" |
34 | 34 | ||
35 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" | 35 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" |
diff --git a/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb b/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb index 8c6492c5..95252dae 100644 --- a/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb +++ b/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb | |||
@@ -7,7 +7,7 @@ LICENSE = "Proprietary" | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" |
8 | 8 | ||
9 | PROVIDES = "virtual/imxvpu" | 9 | PROVIDES = "virtual/imxvpu" |
10 | RPROVIDES_${PN} = "virtual/imxvpu" | 10 | RPROVIDES:${PN} = "virtual/imxvpu" |
11 | 11 | ||
12 | PE = "1" | 12 | PE = "1" |
13 | 13 | ||
diff --git a/recipes-bsp/inphi/inphi_git.bb b/recipes-bsp/inphi/inphi_git.bb index 3f3c5f28..314f09d4 100644 --- a/recipes-bsp/inphi/inphi_git.bb +++ b/recipes-bsp/inphi/inphi_git.bb | |||
@@ -21,7 +21,7 @@ do_deploy () { | |||
21 | addtask deploy before do_build after do_install | 21 | addtask deploy before do_build after do_install |
22 | 22 | ||
23 | PACKAGES += "${PN}-image" | 23 | PACKAGES += "${PN}-image" |
24 | FILES_${PN}-image += "/boot" | 24 | FILES:${PN}-image += "/boot" |
25 | 25 | ||
26 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 26 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 27 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb b/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb index e7d4b652..dc6e2d7e 100644 --- a/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb +++ b/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb | |||
@@ -21,7 +21,7 @@ do_install() { | |||
21 | 21 | ||
22 | SYSTEMD_AUTO_ENABLE = "enable" | 22 | SYSTEMD_AUTO_ENABLE = "enable" |
23 | 23 | ||
24 | FILES_${PN} = "${libdir} /opt" | 24 | FILES:${PN} = "${libdir} /opt" |
25 | INSANE_SKIP_${PN} = "file-rdeps already-stripped" | 25 | INSANE_SKIP:${PN} = "file-rdeps already-stripped" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(mx8mp)" | 27 | COMPATIBLE_MACHINE = "(mx8mp)" |
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch new file mode 100644 index 00000000..950098cd --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 9c65e20b82cfd9e82b849b3140eec7b8c18922dc Mon Sep 17 00:00:00 2001 | ||
2 | From: Chris Dimich <Chris.Dimich@boundarydevices.com> | ||
3 | Date: Mon, 13 Sep 2021 17:56:02 -0700 | ||
4 | Subject: [PATCH 1/1] start_isp.sh: fix NR_DEVICE_TREE_BASLER variable | ||
5 | |||
6 | Also remove uneeded -lm option from run.sh script. | ||
7 | |||
8 | Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com> | ||
9 | --- | ||
10 | imx/start_isp.sh | 8 ++++---- | ||
11 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
12 | |||
13 | diff --git a/imx/start_isp.sh b/imx/start_isp.sh | ||
14 | index 6daabc59c..250226935 100755 | ||
15 | --- a/imx/start_isp.sh | ||
16 | +++ b/imx/start_isp.sh | ||
17 | @@ -7,7 +7,7 @@ | ||
18 | # | ||
19 | |||
20 | RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
21 | -NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
22 | +NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam `find /sys/firmware/devicetree/base/soc@0/ -name compatible | grep i2c` -l | wc -l 2> /dev/null) | ||
23 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
24 | |||
25 | # check if the basler device has been enabled in the device tree | ||
26 | @@ -21,13 +21,13 @@ if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then | ||
27 | |||
28 | # Default configuration for Basler daA3840-30mc: basler_4k | ||
29 | # Available configurations: basler_4k, basler_1080p60, basler_4khdr, basler_1080p60hdr | ||
30 | - exec ./run.sh -c basler_4k -lm | ||
31 | + exec ./run.sh -c basler_4k | ||
32 | |||
33 | elif [ $NR_DEVICE_TREE_OV5640 -eq 1 ]; then | ||
34 | |||
35 | # Default configuration for Basler daA3840-30mc: basler_1080p60 | ||
36 | # Available configurations: basler_1080p60, basler_1080p60hdr | ||
37 | - exec ./run.sh -c basler_1080p60 -lm | ||
38 | + exec ./run.sh -c basler_1080p60 | ||
39 | |||
40 | fi | ||
41 | |||
42 | @@ -38,7 +38,7 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; then | ||
43 | cd $RUNTIME_DIR | ||
44 | # Default configuration for Basler daA3840-30mc: dual_basler_1080p60 | ||
45 | # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr, dual_basler_1080p25hdr | ||
46 | - exec ./run.sh -c dual_basler_1080p60 -lm | ||
47 | + exec ./run.sh -c dual_basler_1080p60 | ||
48 | |||
49 | else | ||
50 | # no device tree found exit with code no device or address | ||
51 | -- | ||
52 | 2.31.1 | ||
53 | |||
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch deleted file mode 100644 index be2e1c61..00000000 --- a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 708f25cfe522df162c3e2c7c56cbe2f7000cb5e4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gary Bisson <gary.bisson@boundarydevices.com> | ||
3 | Date: Mon, 14 Dec 2020 14:26:01 +0100 | ||
4 | Subject: [PATCH] start_isp.sh: fix test to be generic | ||
5 | |||
6 | So that it works on EVK and any other i.MX 8M Plus platform. | ||
7 | |||
8 | Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> | ||
9 | --- | ||
10 | imx/start_isp.sh | 13 +++++-------- | ||
11 | 1 file changed, 5 insertions(+), 8 deletions(-) | ||
12 | |||
13 | Index: isp-imx-4.2.2.13.0/imx/start_isp.sh | ||
14 | =================================================================== | ||
15 | --- isp-imx-4.2.2.13.0.orig/imx/start_isp.sh | ||
16 | +++ isp-imx-4.2.2.13.0/imx/start_isp.sh | ||
17 | @@ -9,6 +9,7 @@ | ||
18 | RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
19 | NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
20 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
21 | +DMESG_BASLER=`dmesg | grep Basler` | ||
22 | |||
23 | # check if the basler device has been enabled in the device tree | ||
24 | if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then | ||
25 | @@ -40,8 +41,15 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; t | ||
26 | # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr, dual_basler_1080p25hdr | ||
27 | exec ./run.sh -c dual_basler_1080p60 -lm | ||
28 | |||
29 | +elif [ ! -z "$DMESG_BASLER" ]; then | ||
30 | + | ||
31 | + echo "Starting isp_media_server for generic Basler" | ||
32 | + | ||
33 | + cd $RUNTIME_DIR | ||
34 | + exec ./run.sh -c basler_1080p60 | ||
35 | + | ||
36 | else | ||
37 | # no device tree found exit with code no device or address | ||
38 | - echo "No device tree found for Basler, check dtb file!" >&2 | ||
39 | + echo "Basler camera not found!" >&2 | ||
40 | exit 6 | ||
41 | fi | ||
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb index ad44065a..b15d0b9e 100644 --- a/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb +++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb | |||
@@ -7,7 +7,7 @@ DEPENDS = "python3 libdrm virtual/libg2d" | |||
7 | 7 | ||
8 | SRC_URI = " \ | 8 | SRC_URI = " \ |
9 | ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ | 9 | ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ |
10 | file://0001-start_isp.sh-fix-test-to-be-generic.patch \ | 10 | file://0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch \ |
11 | file://0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch \ | 11 | file://0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch \ |
12 | " | 12 | " |
13 | 13 | ||
@@ -22,7 +22,7 @@ OECMAKE_SOURCEPATH = "${S}/appshell" | |||
22 | # Use make instead of ninja | 22 | # Use make instead of ninja |
23 | OECMAKE_GENERATOR = "Unix Makefiles" | 23 | OECMAKE_GENERATOR = "Unix Makefiles" |
24 | 24 | ||
25 | SYSTEMD_SERVICE_${PN} = "imx8-isp.service" | 25 | SYSTEMD_SERVICE:${PN} = "imx8-isp.service" |
26 | 26 | ||
27 | EXTRA_OECMAKE += " \ | 27 | EXTRA_OECMAKE += " \ |
28 | -DCMAKE_BUILD_TYPE=release \ | 28 | -DCMAKE_BUILD_TYPE=release \ |
@@ -42,7 +42,7 @@ EXTRA_OECMAKE += " \ | |||
42 | -Wno-dev \ | 42 | -Wno-dev \ |
43 | " | 43 | " |
44 | 44 | ||
45 | do_configure_prepend() { | 45 | do_configure:prepend() { |
46 | export SDKTARGETSYSROOT=${STAGING_DIR_HOST} | 46 | export SDKTARGETSYSROOT=${STAGING_DIR_HOST} |
47 | } | 47 | } |
48 | 48 | ||
@@ -74,15 +74,15 @@ do_install() { | |||
74 | # The build contains a mix of versioned and unversioned libraries, so | 74 | # The build contains a mix of versioned and unversioned libraries, so |
75 | # the default packaging configuration needs some modifications | 75 | # the default packaging configuration needs some modifications |
76 | FILES_SOLIBSDEV = "" | 76 | FILES_SOLIBSDEV = "" |
77 | FILES_${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" | 77 | FILES:${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" |
78 | FILES_${PN}-dev += " \ | 78 | FILES:${PN}-dev += " \ |
79 | ${libdir}/libjsoncpp.so \ | 79 | ${libdir}/libjsoncpp.so \ |
80 | ${libdir}/libos08a20.so \ | 80 | ${libdir}/libos08a20.so \ |
81 | ${libdir}/libov2775.so \ | 81 | ${libdir}/libov2775.so \ |
82 | " | 82 | " |
83 | 83 | ||
84 | INSANE_SKIP_${PN} = "rpaths" | 84 | INSANE_SKIP:${PN} = "rpaths" |
85 | 85 | ||
86 | RDEPENDS_${PN} = "libdrm libpython3" | 86 | RDEPENDS:${PN} = "libdrm libpython3" |
87 | 87 | ||
88 | COMPATIBLE_MACHINE = "(mx8mp)" | 88 | COMPATIBLE_MACHINE = "(mx8mp)" |
diff --git a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb index 726b1e16..e57a4273 100644 --- a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb +++ b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb | |||
@@ -26,15 +26,15 @@ EXTRA_OECONF = "--imx-linux-headers-path=${STAGING_INCDIR_IMX} \ | |||
26 | # libg2d. However, that implementation's g2d_alloc() function | 26 | # libg2d. However, that implementation's g2d_alloc() function |
27 | # is broken, so we cannot use it. | 27 | # is broken, so we cannot use it. |
28 | LIBG2D_PACKAGECONFIG = "g2d" | 28 | LIBG2D_PACKAGECONFIG = "g2d" |
29 | LIBG2D_PACKAGECONFIG_imxdpu = "" | 29 | LIBG2D_PACKAGECONFIG:imxdpu = "" |
30 | 30 | ||
31 | PACKAGECONFIG ?= " " | 31 | PACKAGECONFIG ?= " " |
32 | PACKAGECONFIG_append_imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" | 32 | PACKAGECONFIG:append:imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" |
33 | PACKAGECONFIG_append_imxipu = " ipu" | 33 | PACKAGECONFIG:append:imxipu = " ipu" |
34 | PACKAGECONFIG_append_imxpxp = " pxp" | 34 | PACKAGECONFIG:append:imxpxp = " pxp" |
35 | PACKAGECONFIG_append_mx8m = " ion dwl" | 35 | PACKAGECONFIG:append:mx8m = " ion dwl" |
36 | PACKAGECONFIG_append_mx8qm = " ion" | 36 | PACKAGECONFIG:append:mx8qm = " ion" |
37 | PACKAGECONFIG_append_mx8qxp = " ion" | 37 | PACKAGECONFIG:append:mx8qxp = " ion" |
38 | 38 | ||
39 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" | 39 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" |
40 | 40 | ||
diff --git a/recipes-bsp/ls2-phy/ls2-phy_git.bb b/recipes-bsp/ls2-phy/ls2-phy_git.bb index a1c412be..dd5f8fc0 100644 --- a/recipes-bsp/ls2-phy/ls2-phy_git.bb +++ b/recipes-bsp/ls2-phy/ls2-phy_git.bb | |||
@@ -21,7 +21,7 @@ do_deploy () { | |||
21 | addtask deploy before do_build after do_install | 21 | addtask deploy before do_build after do_install |
22 | 22 | ||
23 | PACKAGES += "${PN}-image" | 23 | PACKAGES += "${PN}-image" |
24 | FILES_${PN}-image += "/boot" | 24 | FILES:${PN}-image += "/boot" |
25 | 25 | ||
26 | COMPATIBLE_MACHINE = "(qoriq)" | 26 | COMPATIBLE_MACHINE = "(qoriq)" |
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 27 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/mc-utils/mc-utils_git.bb b/recipes-bsp/mc-utils/mc-utils_git.bb index b3c79b99..b725af7f 100644 --- a/recipes-bsp/mc-utils/mc-utils_git.bb +++ b/recipes-bsp/mc-utils/mc-utils_git.bb | |||
@@ -15,13 +15,13 @@ SRCREV = "8e0b863693fc2ccbc62a62c79b4e3db6da88c16e" | |||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | 16 | ||
17 | MC_CFG ?= "" | 17 | MC_CFG ?= "" |
18 | MC_CFG_ls1088a = "ls1088a" | 18 | MC_CFG:ls1088a = "ls1088a" |
19 | MC_CFG_ls2088a = "ls2088a" | 19 | MC_CFG:ls2088a = "ls2088a" |
20 | MC_CFG_lx2160a = "lx2160a" | 20 | MC_CFG:lx2160a = "lx2160a" |
21 | MC_CFG_lx2162aqds = "lx2162aqds" | 21 | MC_CFG:lx2162aqds = "lx2162aqds" |
22 | 22 | ||
23 | MC_FLAVOUR ?= "RDB" | 23 | MC_FLAVOUR ?= "RDB" |
24 | MC_FLAVOUR_lx2162a = "" | 24 | MC_FLAVOUR:lx2162a = "" |
25 | 25 | ||
26 | do_compile () { | 26 | do_compile () { |
27 | oe_runmake -C config | 27 | oe_runmake -C config |
@@ -47,5 +47,5 @@ do_deploy () { | |||
47 | addtask deploy after do_install | 47 | addtask deploy after do_install |
48 | 48 | ||
49 | PACKAGES += "${PN}-image" | 49 | PACKAGES += "${PN}-image" |
50 | FILES_${PN}-image += "/boot" | 50 | FILES:${PN}-image += "/boot" |
51 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 51 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb b/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb index 24bb8d9f..5c97486e 100644 --- a/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb +++ b/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb | |||
@@ -27,8 +27,8 @@ do_deploy () { | |||
27 | 27 | ||
28 | addtask deploy after do_install | 28 | addtask deploy after do_install |
29 | 29 | ||
30 | FILES_${PN} += "/lib/firmware /boot/" | 30 | FILES:${PN} += "/lib/firmware /boot/" |
31 | INSANE_SKIP_${PN} += "arch already-stripped" | 31 | INSANE_SKIP:${PN} += "arch already-stripped" |
32 | INHIBIT_PACKAGE_STRIP = "1" | 32 | INHIBIT_PACKAGE_STRIP = "1" |
33 | INHIBIT_SYSROOT_STRIP = "1" | 33 | INHIBIT_SYSROOT_STRIP = "1" |
34 | 34 | ||
diff --git a/recipes-bsp/qe-ucode/qe-ucode_git.bb b/recipes-bsp/qe-ucode/qe-ucode_git.bb index cecd5903..19cb79e0 100644 --- a/recipes-bsp/qe-ucode/qe-ucode_git.bb +++ b/recipes-bsp/qe-ucode/qe-ucode_git.bb | |||
@@ -22,7 +22,7 @@ do_deploy () { | |||
22 | addtask deploy before do_build after do_install | 22 | addtask deploy before do_build after do_install |
23 | 23 | ||
24 | PACKAGES += "${PN}-image" | 24 | PACKAGES += "${PN}-image" |
25 | FILES_${PN}-image += "/boot/*" | 25 | FILES:${PN}-image += "/boot/*" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(qoriq)" | 27 | COMPATIBLE_MACHINE = "(qoriq)" |
28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb index 69350615..88b7b995 100644 --- a/recipes-bsp/rcw/rcw_git.bb +++ b/recipes-bsp/rcw/rcw_git.bb | |||
@@ -17,9 +17,9 @@ export PYTHON = "${USRBINPATH}/python3" | |||
17 | M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}" | 17 | M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}" |
18 | 18 | ||
19 | BOARD_TARGETS="${M}" | 19 | BOARD_TARGETS="${M}" |
20 | BOARD_TARGETS_ls2088ardb="${M} ${M}_rev1.1" | 20 | BOARD_TARGETS:ls2088ardb="${M} ${M}_rev1.1" |
21 | BOARD_TARGETS_ls1088ardb-pb="ls1088ardb" | 21 | BOARD_TARGETS:ls1088ardb-pb="ls1088ardb" |
22 | BOARD_TARGETS_lx2160ardb = "${M} ${M}_rev2" | 22 | BOARD_TARGETS:lx2160ardb = "${M} ${M}_rev2" |
23 | 23 | ||
24 | do_compile () { | 24 | do_compile () { |
25 | oe_runmake BOARDS="${BOARD_TARGETS}" DESTDIR=${D}/boot/rcw/ | 25 | oe_runmake BOARDS="${BOARD_TARGETS}" DESTDIR=${D}/boot/rcw/ |
@@ -36,7 +36,7 @@ do_deploy () { | |||
36 | addtask deploy after do_install | 36 | addtask deploy after do_install |
37 | 37 | ||
38 | PACKAGES += "${PN}-image" | 38 | PACKAGES += "${PN}-image" |
39 | FILES_${PN}-image += "/boot" | 39 | FILES:${PN}-image += "/boot" |
40 | 40 | ||
41 | COMPATIBLE_MACHINE = "(qoriq)" | 41 | COMPATIBLE_MACHINE = "(qoriq)" |
42 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/u-boot/libubootenv_%.bbappend b/recipes-bsp/u-boot/libubootenv_%.bbappend index 2633c344..619b510e 100644 --- a/recipes-bsp/u-boot/libubootenv_%.bbappend +++ b/recipes-bsp/u-boot/libubootenv_%.bbappend | |||
@@ -29,8 +29,8 @@ def fixup_uboot_config_dependency(d): | |||
29 | # | Signed-off-by: Ming Liu <liu.ming50@gmail.com> | 29 | # | Signed-off-by: Ming Liu <liu.ming50@gmail.com> |
30 | # | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 30 | # | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
31 | # `---- | 31 | # `---- |
32 | ubootmachine = d.getVar("UBOOT_MACHINE_pn-%s" % imx_default_bootloader) | 32 | ubootmachine = d.getVar("UBOOT_MACHINE:pn-%s" % imx_default_bootloader) |
33 | ubootconfig = (d.getVar("UBOOT_CONFIG_pn-%s" % imx_default_bootloader) or "").split() | 33 | ubootconfig = (d.getVar("UBOOT_CONFIG:pn-%s" % imx_default_bootloader) or "").split() |
34 | 34 | ||
35 | d.setVar("UBOOT_CONFIG", ubootconfig) | 35 | d.setVar("UBOOT_CONFIG", ubootconfig) |
36 | d.setVar("UBOOT_MACHINE", ubootmachine) | 36 | d.setVar("UBOOT_MACHINE", ubootmachine) |
diff --git a/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc b/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc index 839a503d..3c56a8f2 100644 --- a/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc +++ b/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc | |||
@@ -10,7 +10,7 @@ DEPENDS += "flex-native bison-native" | |||
10 | 10 | ||
11 | SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}" | 11 | SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}" |
12 | 12 | ||
13 | SRCREV = "587e796995604fb669a3552daae682b4d6d346d9" | 13 | SRCREV = "691e634bfd317ede487d2b864a126847ffeb4aa7" |
14 | SRCBRANCH = "2021.07+fslc" | 14 | SRCBRANCH = "2021.07+fslc" |
15 | 15 | ||
16 | PV = "v2021.07+git${SRCPV}" | 16 | PV = "v2021.07+git${SRCPV}" |
diff --git a/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb b/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb index 7f02746b..2e79166b 100644 --- a/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb | |||
@@ -2,7 +2,7 @@ | |||
2 | # Copyright (C) 2014-2016 Freescale Semiconductor | 2 | # Copyright (C) 2014-2016 Freescale Semiconductor |
3 | # Copyright 2017-2019 NXP | 3 | # Copyright 2017-2019 NXP |
4 | 4 | ||
5 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-fslc:" | 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-fslc:" |
6 | 6 | ||
7 | require u-boot-fslc_${PV}.bb | 7 | require u-boot-fslc_${PV}.bb |
8 | require u-boot-mfgtool.inc | 8 | require u-boot-mfgtool.inc |
diff --git a/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb b/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb index 2492f450..a3a732ef 100644 --- a/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb | |||
@@ -7,9 +7,9 @@ DEPENDS = "bison-native dtc openssl" | |||
7 | 7 | ||
8 | PROVIDES = "u-boot-mxsboot" | 8 | PROVIDES = "u-boot-mxsboot" |
9 | 9 | ||
10 | EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' | 10 | EXTRA_OEMAKE:class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' |
11 | EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' | 11 | EXTRA_OEMAKE:class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' |
12 | EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' | 12 | EXTRA_OEMAKE:class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' |
13 | 13 | ||
14 | do_compile () { | 14 | do_compile () { |
15 | oe_runmake -C ${S} O=${B} sandbox_defconfig | 15 | oe_runmake -C ${S} O=${B} sandbox_defconfig |
@@ -27,6 +27,6 @@ do_install () { | |||
27 | ln -sf uboot-mxsboot ${D}${bindir}/mxsboot | 27 | ln -sf uboot-mxsboot ${D}${bindir}/mxsboot |
28 | } | 28 | } |
29 | 29 | ||
30 | COMPATIBLE_MACHINE_class-target = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" | 30 | COMPATIBLE_MACHINE:class-target = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" |
31 | 31 | ||
32 | BBCLASSEXTEND = "native nativesdk" | 32 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb b/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb index 4f97c722..fa219325 100644 --- a/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb | |||
@@ -12,7 +12,7 @@ DEPENDS += "bc-native dtc-native python3-setuptools-native" | |||
12 | 12 | ||
13 | # Location known to imx-boot component, where U-Boot artifacts | 13 | # Location known to imx-boot component, where U-Boot artifacts |
14 | # should be additionally deployed. | 14 | # should be additionally deployed. |
15 | # See below note above do_deploy_append_mx8m for the purpose of | 15 | # See below note above do_deploy:append:mx8m for the purpose of |
16 | # this delopyment location | 16 | # this delopyment location |
17 | BOOT_TOOLS = "imx-boot-tools" | 17 | BOOT_TOOLS = "imx-boot-tools" |
18 | 18 | ||
@@ -27,47 +27,5 @@ EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | |||
27 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ | 27 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ |
28 | HOSTSTRIP=true' | 28 | HOSTSTRIP=true' |
29 | 29 | ||
30 | # | ||
31 | # imx8m machines require additional deployment tasks to be | ||
32 | # carried out due to the fact that final boot image is constructed | ||
33 | # using imx-boot recipe. It produces a boot binary image, which is | ||
34 | # constructed from various binary components (u-boot with separate | ||
35 | # dtb, atf, DDR firmware and optional op-tee) into a single image | ||
36 | # using FIT format. This image is then parsed and loaded either via | ||
37 | # SPL directly (imx8mm), or using bootrom code (imx8mn and imx8mp). | ||
38 | # | ||
39 | # In order for imx-boot to construct the final binary boot image, | ||
40 | # it is required that the U-Boot dtb files are to be deployed into | ||
41 | # a location known by imx-boot so they could be picked up and | ||
42 | # inserted into the boot container. | ||
43 | # | ||
44 | # NOTE: This is only applicable to those derivatives of mx8m family, | ||
45 | # which did not adopt the boot container mechanism provided by U-Boot | ||
46 | # build system itself. U-Boot is capable of producing a result binary, | ||
47 | # which includes all those deployed pieces below, hence once derivative | ||
48 | # starts to use it - below append would not be necessary. | ||
49 | # Once all mx8m derivatives are migrated to use the 'flash.bin' boot | ||
50 | # container - this append can be dropped completely. | ||
51 | do_deploy_append_mx8m() { | ||
52 | # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | ||
53 | if [ -n "${UBOOT_CONFIG}" ]; then | ||
54 | for config in ${UBOOT_MACHINE}; do | ||
55 | i=$(expr $i + 1); | ||
56 | for type in ${UBOOT_CONFIG}; do | ||
57 | j=$(expr $j + 1); | ||
58 | if [ $j -eq $i ] | ||
59 | then | ||
60 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
61 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | ||
62 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} | ||
63 | fi | ||
64 | done | ||
65 | unset j | ||
66 | done | ||
67 | unset i | ||
68 | fi | ||
69 | } | ||
70 | |||
71 | |||
72 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 30 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
73 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" | 31 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" |
diff --git a/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb b/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb index 2b296c19..af502889 100644 --- a/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb | |||
@@ -2,7 +2,7 @@ | |||
2 | # Copyright (C) 2014-2016 Freescale Semiconductor | 2 | # Copyright (C) 2014-2016 Freescale Semiconductor |
3 | # Copyright 2017-2019 NXP | 3 | # Copyright 2017-2019 NXP |
4 | 4 | ||
5 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-imx:" | 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-imx:" |
6 | 6 | ||
7 | require u-boot-imx_${PV}.bb | 7 | require u-boot-imx_${PV}.bb |
8 | require u-boot-mfgtool.inc | 8 | require u-boot-mfgtool.inc |
diff --git a/recipes-bsp/u-boot/u-boot-imx_2021.04.bb b/recipes-bsp/u-boot/u-boot-imx_2021.04.bb index 6a279a12..bb5809e2 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2021.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2021.04.bb | |||
@@ -7,7 +7,7 @@ require u-boot-imx-common_${PV}.inc | |||
7 | 7 | ||
8 | PROVIDES += "u-boot" | 8 | PROVIDES += "u-boot" |
9 | 9 | ||
10 | do_deploy_append_mx8m() { | 10 | do_deploy:append:mx8m() { |
11 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | 11 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary |
12 | if [ -n "${UBOOT_CONFIG}" ] | 12 | if [ -n "${UBOOT_CONFIG}" ] |
13 | then | 13 | then |
diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb b/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb index 57f27803..69b03de1 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb | |||
@@ -19,14 +19,14 @@ SRCREV= "f46a944f715f284aff1d42c009680ffe0be4058f" | |||
19 | 19 | ||
20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
21 | B = "${WORKDIR}/build" | 21 | B = "${WORKDIR}/build" |
22 | PV_append = "+fslgit" | 22 | PV:append = "+fslgit" |
23 | LOCALVERSION = "+fsl" | 23 | LOCALVERSION = "+fsl" |
24 | 24 | ||
25 | INHIBIT_DEFAULT_DEPS = "1" | 25 | INHIBIT_DEFAULT_DEPS = "1" |
26 | DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native" | 26 | DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native" |
27 | DEPENDS_append_qoriq-arm64 = " dtc-native" | 27 | DEPENDS:append:qoriq-arm64 = " dtc-native" |
28 | DEPENDS_append_qoriq-arm = " dtc-native" | 28 | DEPENDS:append:qoriq-arm = " dtc-native" |
29 | DEPENDS_append_qoriq-ppc = " boot-format-native" | 29 | DEPENDS:append:qoriq-ppc = " boot-format-native" |
30 | 30 | ||
31 | python () { | 31 | python () { |
32 | if d.getVar("TCMODE") == "external-fsl": | 32 | if d.getVar("TCMODE") == "external-fsl": |
@@ -41,8 +41,8 @@ python () { | |||
41 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' | 41 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' |
42 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | 42 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') |
43 | workdir = d.getVar('WORKDIR') | 43 | workdir = d.getVar('WORKDIR') |
44 | d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') | 44 | d.setVar('DEPENDS:append', ' lib32-gcc-cross-powerpc lib32-libgcc') |
45 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) | 45 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) |
46 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') | 46 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') |
47 | d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') | 47 | d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') |
48 | elif "fsl-lsch2-32b:" in arch: | 48 | elif "fsl-lsch2-32b:" in arch: |
@@ -51,8 +51,8 @@ python () { | |||
51 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' | 51 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' |
52 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | 52 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') |
53 | workdir = d.getVar('WORKDIR') | 53 | workdir = d.getVar('WORKDIR') |
54 | d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc') | 54 | d.setVar('DEPENDS:append', ' lib64-gcc-cross-aarch64 lib64-libgcc') |
55 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) | 55 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) |
56 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') | 56 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') |
57 | d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') | 57 | d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') |
58 | } | 58 | } |
@@ -66,7 +66,7 @@ EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc | |||
66 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' | 66 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' |
67 | EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' | 67 | EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' |
68 | 68 | ||
69 | do_compile_append_qoriq() { | 69 | do_compile:append:qoriq() { |
70 | unset i j k | 70 | unset i j k |
71 | for config in ${UBOOT_MACHINE}; do | 71 | for config in ${UBOOT_MACHINE}; do |
72 | i=`expr $i + 1`; | 72 | i=`expr $i + 1`; |
@@ -94,5 +94,5 @@ do_compile_append_qoriq() { | |||
94 | 94 | ||
95 | 95 | ||
96 | PACKAGES += "${PN}-images" | 96 | PACKAGES += "${PN}-images" |
97 | FILES_${PN}-images += "/boot" | 97 | FILES:${PN}-images += "/boot" |
98 | COMPATIBLE_MACHINE = "(qoriq)" | 98 | COMPATIBLE_MACHINE = "(qoriq)" |
diff --git a/recipes-bsp/uefi/uefi_git.bb b/recipes-bsp/uefi/uefi_git.bb index 6351577e..df77b420 100644 --- a/recipes-bsp/uefi/uefi_git.bb +++ b/recipes-bsp/uefi/uefi_git.bb | |||
@@ -28,7 +28,7 @@ do_deploy () { | |||
28 | addtask deploy before do_build after do_install | 28 | addtask deploy before do_build after do_install |
29 | 29 | ||
30 | PACKAGES += "${PN}-image" | 30 | PACKAGES += "${PN}-image" |
31 | FILES_${PN}-image += "/uefi/*" | 31 | FILES:${PN}-image += "/uefi/*" |
32 | 32 | ||
33 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 33 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
34 | 34 | ||
diff --git a/recipes-connectivity/iproute2/iproute2_%.bbappend b/recipes-connectivity/iproute2/iproute2_%.bbappend index 4426eca5..0f9b5a87 100644 --- a/recipes-connectivity/iproute2/iproute2_%.bbappend +++ b/recipes-connectivity/iproute2/iproute2_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | do_install_append () { | 1 | do_install:append () { |
2 | install -d ${D}/usr/include/tc | 2 | install -d ${D}/usr/include/tc |
3 | cp -a ${B}/include ${D}/usr/include | 3 | cp -a ${B}/include ${D}/usr/include |
4 | cp -a ${B}/tc/*.h ${D}/usr/include/tc | 4 | cp -a ${B}/tc/*.h ${D}/usr/include/tc |
diff --git a/recipes-connectivity/openssl/openssl_%.bbappend b/recipes-connectivity/openssl/openssl_%.bbappend index ce4ff276..e88de361 100644 --- a/recipes-connectivity/openssl/openssl_%.bbappend +++ b/recipes-connectivity/openssl/openssl_%.bbappend | |||
@@ -1,8 +1,8 @@ | |||
1 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}-qoriq:" | 1 | FILESEXTRAPATHS:append := "${THISDIR}/${PN}-qoriq:" |
2 | 2 | ||
3 | SRC_URI_append_qoriq = " \ | 3 | SRC_URI:append:qoriq = " \ |
4 | file://0001-eng_devcrypto-add-support-for-TLS-algorithms-offload.patch \ | 4 | file://0001-eng_devcrypto-add-support-for-TLS-algorithms-offload.patch \ |
5 | file://0002-eng_devcrypto-add-support-for-TLS1.2-algorithms-offl.patch \ | 5 | file://0002-eng_devcrypto-add-support-for-TLS1.2-algorithms-offl.patch \ |
6 | " | 6 | " |
7 | 7 | ||
8 | PACKAGECONFIG_append_qoriq = " cryptodev-linux" | 8 | PACKAGECONFIG:append:qoriq = " cryptodev-linux" |
diff --git a/recipes-core/init-ifupdown/init-ifupdown_%.bbappend b/recipes-core/init-ifupdown/init-ifupdown_%.bbappend index 00057874..46dfc124 100644 --- a/recipes-core/init-ifupdown/init-ifupdown_%.bbappend +++ b/recipes-core/init-ifupdown/init-ifupdown_%.bbappend | |||
@@ -1,2 +1,2 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" |
2 | 2 | ||
diff --git a/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend b/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend index d0c26c2a..5c492725 100644 --- a/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend +++ b/recipes-core/packagegroup/nativesdk-packagegroup-sdk-host.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | RDEPENDS_${PN} += " \ | 1 | RDEPENDS:${PN} += " \ |
2 | nativesdk-mxsldr \ | 2 | nativesdk-mxsldr \ |
3 | nativesdk-u-boot-mkimage \ | 3 | nativesdk-u-boot-mkimage \ |
4 | nativesdk-imx-usb-loader \ | 4 | nativesdk-imx-usb-loader \ |
diff --git a/recipes-core/udev/udev-rules-qoriq.bb b/recipes-core/udev/udev-rules-qoriq.bb index c328f4cc..525e642e 100644 --- a/recipes-core/udev/udev-rules-qoriq.bb +++ b/recipes-core/udev/udev-rules-qoriq.bb | |||
@@ -12,17 +12,17 @@ SRC_URI = "\ | |||
12 | S = "${WORKDIR}" | 12 | S = "${WORKDIR}" |
13 | 13 | ||
14 | RULE = "71-fsl-dpaa-persistent-networking.rules" | 14 | RULE = "71-fsl-dpaa-persistent-networking.rules" |
15 | RULE_e6500 = "72-fsl-dpaa-persistent-networking.rules" | 15 | RULE:e6500 = "72-fsl-dpaa-persistent-networking.rules" |
16 | RULE_e6500-64b = "72-fsl-dpaa-persistent-networking.rules" | 16 | RULE:e6500-64b = "72-fsl-dpaa-persistent-networking.rules" |
17 | RULE_t1024 = "72-fsl-dpaa-persistent-networking.rules" | 17 | RULE:t1024 = "72-fsl-dpaa-persistent-networking.rules" |
18 | RULE_qoriq-arm64 = "73-fsl-dpaa-persistent-networking.rules \ | 18 | RULE:qoriq-arm64 = "73-fsl-dpaa-persistent-networking.rules \ |
19 | 73-fsl-enetc-networking.rules \ | 19 | 73-fsl-enetc-networking.rules \ |
20 | " | 20 | " |
21 | RULE_ls1046a = "73-fsl-dpaa-persistent-networking.rules \ | 21 | RULE:ls1046a = "73-fsl-dpaa-persistent-networking.rules \ |
22 | 74-ls1046a-xfi2-networking.rules \ | 22 | 74-ls1046a-xfi2-networking.rules \ |
23 | " | 23 | " |
24 | RULE_ls1012a = "" | 24 | RULE:ls1012a = "" |
25 | RULE_ls2080a = "" | 25 | RULE:ls2080a = "" |
26 | 26 | ||
27 | do_install () { | 27 | do_install () { |
28 | install -d ${D}${sysconfdir}/udev/rules.d/ | 28 | install -d ${D}${sysconfdir}/udev/rules.d/ |
@@ -31,7 +31,7 @@ do_install () { | |||
31 | done | 31 | done |
32 | } | 32 | } |
33 | 33 | ||
34 | ALLOW_EMPTY_${PN} = "1" | 34 | ALLOW_EMPTY:${PN} = "1" |
35 | 35 | ||
36 | COMPATIBLE_MACHINE = "(qoriq)" | 36 | COMPATIBLE_MACHINE = "(qoriq)" |
37 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 37 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-devtools/cst/cst_git.bb b/recipes-devtools/cst/cst_git.bb index 9091350b..71df0a35 100644 --- a/recipes-devtools/cst/cst_git.bb +++ b/recipes-devtools/cst/cst_git.bb | |||
@@ -5,10 +5,10 @@ LICENSE = "BSD" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=e959d5d617e33779d0e90ce1d9043eff" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=e959d5d617e33779d0e90ce1d9043eff" |
6 | 6 | ||
7 | DEPENDS += "openssl cst-native" | 7 | DEPENDS += "openssl cst-native" |
8 | RDEPENDS_${PN} = "bash" | 8 | RDEPENDS:${PN} = "bash" |
9 | 9 | ||
10 | GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys" | 10 | GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys" |
11 | GENKEYS_class-native = "./gen_keys" | 11 | GENKEYS:class-native = "./gen_keys" |
12 | 12 | ||
13 | inherit kernel-arch | 13 | inherit kernel-arch |
14 | 14 | ||
@@ -38,5 +38,5 @@ do_install () { | |||
38 | fi | 38 | fi |
39 | } | 39 | } |
40 | 40 | ||
41 | FILES_${PN}-dbg += "${bindir}/cst/.debug" | 41 | FILES:${PN}-dbg += "${bindir}/cst/.debug" |
42 | BBCLASSEXTEND = "native nativesdk" | 42 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb b/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb index dfd7fdcf..26c78639 100644 --- a/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb +++ b/recipes-devtools/qemu/qemu-qoriq_4.1.0.bb | |||
@@ -25,18 +25,18 @@ python() { | |||
25 | pkgs = d.getVar('PACKAGES').split() | 25 | pkgs = d.getVar('PACKAGES').split() |
26 | for p in pkgs: | 26 | for p in pkgs: |
27 | if '-qoriq' in p: | 27 | if '-qoriq' in p: |
28 | d.appendVar('RPROVIDES_' + p, ' ' + p.replace('-qoriq', '')) | 28 | d.appendVar('RPROVIDES:' + p, ' ' + p.replace('-qoriq', '')) |
29 | d.appendVar('RCONFLICTS_' + p, ' ' + p.replace('-qoriq', '')) | 29 | d.appendVar('RCONFLICTS:' + p, ' ' + p.replace('-qoriq', '')) |
30 | d.appendVar('RREPLACES_' + p, ' ' + p.replace('-qoriq', '')) | 30 | d.appendVar('RREPLACES:' + p, ' ' + p.replace('-qoriq', '')) |
31 | } | 31 | } |
32 | 32 | ||
33 | RDEPENDS_${PN}_class-target += "bash" | 33 | RDEPENDS:${PN}:class-target += "bash" |
34 | 34 | ||
35 | EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}" | 35 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" |
36 | EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | 36 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" |
37 | EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | 37 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" |
38 | 38 | ||
39 | do_install_append_class-nativesdk() { | 39 | do_install:append:class-nativesdk() { |
40 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} | 40 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} |
41 | } | 41 | } |
42 | 42 | ||
@@ -56,7 +56,7 @@ PACKAGECONFIG ??= " \ | |||
56 | fdt sdl kvm aio libusb vhost \ | 56 | fdt sdl kvm aio libusb vhost \ |
57 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ | 57 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ |
58 | " | 58 | " |
59 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm" | 59 | PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm" |
60 | 60 | ||
61 | PACKAGECONFIG[xkbcommon] = ",," | 61 | PACKAGECONFIG[xkbcommon] = ",," |
62 | PACKAGECONFIG[libudev] = ",," | 62 | PACKAGECONFIG[libudev] = ",," |
diff --git a/recipes-devtools/qemu/qemu.inc b/recipes-devtools/qemu/qemu.inc index bf05da9a..532bcf6d 100644 --- a/recipes-devtools/qemu/qemu.inc +++ b/recipes-devtools/qemu/qemu.inc | |||
@@ -6,7 +6,7 @@ a variety of guest operating systems" | |||
6 | HOMEPAGE = "http://qemu.org" | 6 | HOMEPAGE = "http://qemu.org" |
7 | LICENSE = "GPLv2 & LGPLv2.1" | 7 | LICENSE = "GPLv2 & LGPLv2.1" |
8 | 8 | ||
9 | RDEPENDS_${PN}-ptest = "bash make" | 9 | RDEPENDS:${PN}-ptest = "bash make" |
10 | 10 | ||
11 | require qemu-targets.inc | 11 | require qemu-targets.inc |
12 | inherit pkgconfig ptest | 12 | inherit pkgconfig ptest |
@@ -45,14 +45,14 @@ UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" | |||
45 | 45 | ||
46 | SRC_URI[sha256sum] = "c9174eb5933d9eb5e61f541cd6d1184cd3118dfe4c5c4955bc1bdc4d390fa4e5" | 46 | SRC_URI[sha256sum] = "c9174eb5933d9eb5e61f541cd6d1184cd3118dfe4c5c4955bc1bdc4d390fa4e5" |
47 | 47 | ||
48 | COMPATIBLE_HOST_mipsarchn32 = "null" | 48 | COMPATIBLE_HOST:mipsarchn32 = "null" |
49 | COMPATIBLE_HOST_mipsarchn64 = "null" | 49 | COMPATIBLE_HOST:mipsarchn64 = "null" |
50 | 50 | ||
51 | # Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html | 51 | # Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html |
52 | # upstream states qemu doesn't work without optimization | 52 | # upstream states qemu doesn't work without optimization |
53 | DEBUG_BUILD = "0" | 53 | DEBUG_BUILD = "0" |
54 | 54 | ||
55 | do_install_append() { | 55 | do_install:append() { |
56 | # Prevent QA warnings about installed ${localstatedir}/run | 56 | # Prevent QA warnings about installed ${localstatedir}/run |
57 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi | 57 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
58 | } | 58 | } |
@@ -101,9 +101,9 @@ export LIBTOOL="${HOST_SYS}-libtool" | |||
101 | 101 | ||
102 | B = "${WORKDIR}/build" | 102 | B = "${WORKDIR}/build" |
103 | 103 | ||
104 | EXTRA_OECONF_append = " --python=${HOSTTOOLS_DIR}/python3" | 104 | EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3" |
105 | 105 | ||
106 | do_configure_prepend_class-native() { | 106 | do_configure:prepend:class-native() { |
107 | # Append build host pkg-config paths for native target since the host may provide sdl | 107 | # Append build host pkg-config paths for native target since the host may provide sdl |
108 | BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "") | 108 | BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "") |
109 | if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then | 109 | if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then |
@@ -127,7 +127,7 @@ do_install () { | |||
127 | # This will trigger a MMU access fault in the virtual CPU. With this change, | 127 | # This will trigger a MMU access fault in the virtual CPU. With this change, |
128 | # the qemu-mips works fine. | 128 | # the qemu-mips works fine. |
129 | # IMPORTANT: This piece needs to be removed once the root cause is fixed! | 129 | # IMPORTANT: This piece needs to be removed once the root cause is fixed! |
130 | do_install_append() { | 130 | do_install:append() { |
131 | if [ -e "${D}/${bindir}/qemu-mips" ]; then | 131 | if [ -e "${D}/${bindir}/qemu-mips" ]; then |
132 | create_wrapper ${D}/${bindir}/qemu-mips \ | 132 | create_wrapper ${D}/${bindir}/qemu-mips \ |
133 | QEMU_RESERVED_VA=0x0 | 133 | QEMU_RESERVED_VA=0x0 |
@@ -147,8 +147,8 @@ make_qemu_wrapper() { | |||
147 | } | 147 | } |
148 | 148 | ||
149 | # Disable kvm/virgl/mesa on targets that do not support it | 149 | # Disable kvm/virgl/mesa on targets that do not support it |
150 | PACKAGECONFIG_remove_darwin = "kvm virglrenderer glx gtk+" | 150 | PACKAGECONFIG:remove:darwin = "kvm virglrenderer glx gtk+" |
151 | PACKAGECONFIG_remove_mingw32 = "kvm virglrenderer glx gtk+" | 151 | PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer glx gtk+" |
152 | 152 | ||
153 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" | 153 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" |
154 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr," | 154 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr," |
@@ -193,6 +193,6 @@ PACKAGECONFIG[vhost] = "--enable-vhost-net,--disable-vhost-net,," | |||
193 | PACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttng-ust," | 193 | PACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttng-ust," |
194 | PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," | 194 | PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," |
195 | 195 | ||
196 | INSANE_SKIP_${PN} = "arch" | 196 | INSANE_SKIP:${PN} = "arch" |
197 | 197 | ||
198 | FILES_${PN} += "${datadir}/icons" | 198 | FILES:${PN} += "${datadir}/icons" |
diff --git a/recipes-dpaa/flib/flib_git.bb b/recipes-dpaa/flib/flib_git.bb index 3ae05889..645efdb3 100644 --- a/recipes-dpaa/flib/flib_git.bb +++ b/recipes-dpaa/flib/flib_git.bb | |||
@@ -12,4 +12,4 @@ do_install(){ | |||
12 | oe_runmake install DESTDIR=${D} | 12 | oe_runmake install DESTDIR=${D} |
13 | } | 13 | } |
14 | 14 | ||
15 | ALLOW_EMPTY_${PN} = "1" | 15 | ALLOW_EMPTY:${PN} = "1" |
diff --git a/recipes-dpaa/fm-ucode/fm-ucode_git.bb b/recipes-dpaa/fm-ucode/fm-ucode_git.bb index 39e4f9d0..966ee94c 100644 --- a/recipes-dpaa/fm-ucode/fm-ucode_git.bb +++ b/recipes-dpaa/fm-ucode/fm-ucode_git.bb | |||
@@ -13,13 +13,13 @@ SRCREV = "c275e91392e2adab1ed22f3867b8269ca3c54014" | |||
13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
14 | 14 | ||
15 | REGLEX ?= "${MACHINE}" | 15 | REGLEX ?= "${MACHINE}" |
16 | REGLEX_t1023 = "t1024" | 16 | REGLEX:t1023 = "t1024" |
17 | REGLEX_t1040 = "t1040" | 17 | REGLEX:t1040 = "t1040" |
18 | REGLEX_t1042 = "t1040" | 18 | REGLEX:t1042 = "t1040" |
19 | REGLEX_b4420 = "b4860" | 19 | REGLEX_b4420 = "b4860" |
20 | REGLEX_t4160 = "t4240" | 20 | REGLEX:t4160 = "t4240" |
21 | REGLEX_ls1043a = "ls1043" | 21 | REGLEX:ls1043a = "ls1043" |
22 | REGLEX_ls1046a = "ls1046" | 22 | REGLEX:ls1046a = "ls1046" |
23 | 23 | ||
24 | do_install () { | 24 | do_install () { |
25 | UCODE=`echo ${REGLEX} | sed -e 's,-.*$,,' -e 's,[a-zA-Z]*$,,'` | 25 | UCODE=`echo ${REGLEX} | sed -e 's,-.*$,,' -e 's,[a-zA-Z]*$,,'` |
@@ -35,8 +35,8 @@ do_deploy () { | |||
35 | addtask deploy before do_build after do_install | 35 | addtask deploy before do_build after do_install |
36 | 36 | ||
37 | PACKAGES += "${PN}-image" | 37 | PACKAGES += "${PN}-image" |
38 | FILES_${PN}-image += "/boot" | 38 | FILES:${PN}-image += "/boot" |
39 | ALLOW_EMPTY_${PN} = "1" | 39 | ALLOW_EMPTY:${PN} = "1" |
40 | 40 | ||
41 | COMPATIBLE_MACHINE = "(e500mc|e5500|e5500-64b|e6500|e6500-64b|fsl-lsch2)" | 41 | COMPATIBLE_MACHINE = "(e500mc|e5500|e5500-64b|e6500|e6500-64b|fsl-lsch2)" |
42 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 42 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb index 880d768b..f4b6cc20 100644 --- a/recipes-dpaa/fmlib/fmlib_git.bb +++ b/recipes-dpaa/fmlib/fmlib_git.bb | |||
@@ -14,15 +14,15 @@ EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \ | |||
14 | CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}" | 14 | CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}" |
15 | 15 | ||
16 | TARGET_ARCH_FMLIB = "${DEFAULTTUNE}" | 16 | TARGET_ARCH_FMLIB = "${DEFAULTTUNE}" |
17 | TARGET_ARCH_FMLIB_qoriq-arm = "arm" | 17 | TARGET_ARCH_FMLIB:qoriq-arm = "arm" |
18 | TARGET_ARCH_FMLIB_qoriq-arm64 = "arm" | 18 | TARGET_ARCH_FMLIB:qoriq-arm64 = "arm" |
19 | TARGET_ARCH_FMLIB_e5500 = "ppc32e5500" | 19 | TARGET_ARCH_FMLIB:e5500 = "ppc32e5500" |
20 | TARGET_ARCH_FMLIB_e6500 = "ppc32e6500" | 20 | TARGET_ARCH_FMLIB:e6500 = "ppc32e6500" |
21 | TARGET_ARCH_FMLIB_e500mc = "ppce500mc" | 21 | TARGET_ARCH_FMLIB:e500mc = "ppce500mc" |
22 | TARGET_ARCH_FMLIB_e500v2 = "ppce500v2" | 22 | TARGET_ARCH_FMLIB:e500v2 = "ppce500v2" |
23 | 23 | ||
24 | FMLIB_TARGET = "libfm-${TARGET_ARCH_FMLIB}" | 24 | FMLIB_TARGET = "libfm-${TARGET_ARCH_FMLIB}" |
25 | FMLIB_TARGET_t1 = "libfm-${TARGET_ARCH_FMLIB}-fmv3l" | 25 | FMLIB_TARGET:t1 = "libfm-${TARGET_ARCH_FMLIB}-fmv3l" |
26 | 26 | ||
27 | do_compile () { | 27 | do_compile () { |
28 | oe_runmake ${FMLIB_TARGET}.a | 28 | oe_runmake ${FMLIB_TARGET}.a |
@@ -34,7 +34,7 @@ do_install () { | |||
34 | 34 | ||
35 | do_compile[depends] += "virtual/kernel:do_shared_workdir" | 35 | do_compile[depends] += "virtual/kernel:do_shared_workdir" |
36 | 36 | ||
37 | ALLOW_EMPTY_${PN} = "1" | 37 | ALLOW_EMPTY:${PN} = "1" |
38 | 38 | ||
39 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 39 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
40 | 40 | ||
diff --git a/recipes-dpaa2/aiopsl/aiopsl_git.bb b/recipes-dpaa2/aiopsl/aiopsl_git.bb index a1b00289..4f21a696 100644 --- a/recipes-dpaa2/aiopsl/aiopsl_git.bb +++ b/recipes-dpaa2/aiopsl/aiopsl_git.bb | |||
@@ -13,8 +13,8 @@ SRCREV = "87d83d8e99770325cc7ad9e10965c9959e7cb828" | |||
13 | do_configure[noexec] = "1" | 13 | do_configure[noexec] = "1" |
14 | do_compile[noexec] = "1" | 14 | do_compile[noexec] = "1" |
15 | 15 | ||
16 | DEMOS_PATH_ls2088a = "LS2088A" | 16 | DEMOS_PATH:ls2088a = "LS2088A" |
17 | DEMOS_PATH_ls1088a = "LS1088A" | 17 | DEMOS_PATH:ls1088a = "LS1088A" |
18 | 18 | ||
19 | do_install () { | 19 | do_install () { |
20 | install -d ${D}/usr/aiop/bin | 20 | install -d ${D}/usr/aiop/bin |
@@ -24,8 +24,8 @@ do_install () { | |||
24 | cp -rf ${S}/misc/setup/traffic_files/ ${D}/usr/aiop/ | 24 | cp -rf ${S}/misc/setup/traffic_files/ ${D}/usr/aiop/ |
25 | } | 25 | } |
26 | 26 | ||
27 | FILES_${PN} += "/usr/aiop/*" | 27 | FILES:${PN} += "/usr/aiop/*" |
28 | INSANE_SKIP_${PN} += "arch" | 28 | INSANE_SKIP:${PN} += "arch" |
29 | INHIBIT_PACKAGE_STRIP = "1" | 29 | INHIBIT_PACKAGE_STRIP = "1" |
30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
31 | COMPATIBLE_MACHINE = "(ls2088a|ls1088a)" | 31 | COMPATIBLE_MACHINE = "(ls2088a|ls1088a)" |
diff --git a/recipes-dpaa2/dce/dce_git.bb b/recipes-dpaa2/dce/dce_git.bb index 9984f080..24b39a0b 100644 --- a/recipes-dpaa2/dce/dce_git.bb +++ b/recipes-dpaa2/dce/dce_git.bb | |||
@@ -17,5 +17,5 @@ do_install () { | |||
17 | oe_runmake install DESTDIR=${D} | 17 | oe_runmake install DESTDIR=${D} |
18 | } | 18 | } |
19 | 19 | ||
20 | INSANE_SKIP_${PN} = "ldflags" | 20 | INSANE_SKIP:${PN} = "ldflags" |
21 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 21 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-dpaa2/management-complex/management-complex_10.14.1.bb b/recipes-dpaa2/management-complex/management-complex_10.14.1.bb index ddb305c1..a3793bd4 100644 --- a/recipes-dpaa2/management-complex/management-complex_10.14.1.bb +++ b/recipes-dpaa2/management-complex/management-complex_10.14.1.bb | |||
@@ -11,10 +11,10 @@ SRCREV = "408110ee632f6291545b0b156cd74e7e3b4612cc" | |||
11 | 11 | ||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | 13 | ||
14 | REGLEX_ls2088a = "ls2088a" | 14 | REGLEX:ls2088a = "ls2088a" |
15 | REGLEX_ls2080a = "ls2080a" | 15 | REGLEX:ls2080a = "ls2080a" |
16 | REGLEX_ls1088a = "ls1088a" | 16 | REGLEX:ls1088a = "ls1088a" |
17 | REGLEX_lx2160a = "lx2160a" | 17 | REGLEX:lx2160a = "lx2160a" |
18 | 18 | ||
19 | do_install () { | 19 | do_install () { |
20 | install -d ${D}/boot | 20 | install -d ${D}/boot |
@@ -32,7 +32,7 @@ do_deploy () { | |||
32 | addtask deploy before do_build after do_install | 32 | addtask deploy before do_build after do_install |
33 | 33 | ||
34 | PACKAGES += "${PN}-image" | 34 | PACKAGES += "${PN}-image" |
35 | FILES_${PN}-image += "/boot" | 35 | FILES:${PN}-image += "/boot" |
36 | 36 | ||
37 | INHIBIT_PACKAGE_STRIP = "1" | 37 | INHIBIT_PACKAGE_STRIP = "1" |
38 | 38 | ||
diff --git a/recipes-dpaa2/management-complex/management-complex_10.20.4.bb b/recipes-dpaa2/management-complex/management-complex_10.20.4.bb index 3e14a26e..8352a098 100644 --- a/recipes-dpaa2/management-complex/management-complex_10.20.4.bb +++ b/recipes-dpaa2/management-complex/management-complex_10.20.4.bb | |||
@@ -11,10 +11,10 @@ SRCREV = "f73683596a7b72124d67b62e64f3dc2bb36b9321" | |||
11 | 11 | ||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | 13 | ||
14 | REGLEX_ls2088a = "ls2088a" | 14 | REGLEX:ls2088a = "ls2088a" |
15 | REGLEX_ls2080a = "ls2080a" | 15 | REGLEX:ls2080a = "ls2080a" |
16 | REGLEX_ls1088a = "ls1088a" | 16 | REGLEX:ls1088a = "ls1088a" |
17 | REGLEX_lx2160a = "lx2160a" | 17 | REGLEX:lx2160a = "lx2160a" |
18 | 18 | ||
19 | do_install () { | 19 | do_install () { |
20 | install -d ${D}/boot | 20 | install -d ${D}/boot |
@@ -32,7 +32,7 @@ do_deploy () { | |||
32 | addtask deploy before do_build after do_install | 32 | addtask deploy before do_build after do_install |
33 | 33 | ||
34 | PACKAGES += "${PN}-image" | 34 | PACKAGES += "${PN}-image" |
35 | FILES_${PN}-image += "/boot" | 35 | FILES:${PN}-image += "/boot" |
36 | 36 | ||
37 | INHIBIT_PACKAGE_STRIP = "1" | 37 | INHIBIT_PACKAGE_STRIP = "1" |
38 | 38 | ||
diff --git a/recipes-dpaa2/management-complex/management-complex_10.24.0.bb b/recipes-dpaa2/management-complex/management-complex_10.24.0.bb index 17049a15..1e100f20 100644 --- a/recipes-dpaa2/management-complex/management-complex_10.24.0.bb +++ b/recipes-dpaa2/management-complex/management-complex_10.24.0.bb | |||
@@ -11,11 +11,11 @@ SRCREV = "324817697a4c89a9a940fb7dba1b18909913ee20" | |||
11 | 11 | ||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | 13 | ||
14 | REGLEX_ls2088a = "ls2088a" | 14 | REGLEX:ls2088a = "ls2088a" |
15 | REGLEX_ls2080a = "ls2080a" | 15 | REGLEX:ls2080a = "ls2080a" |
16 | REGLEX_ls1088a = "ls1088a" | 16 | REGLEX:ls1088a = "ls1088a" |
17 | REGLEX_lx2160a = "lx216xa" | 17 | REGLEX:lx2160a = "lx216xa" |
18 | REGLEX_lx2162a = "lx216xa" | 18 | REGLEX:lx2162a = "lx216xa" |
19 | 19 | ||
20 | do_install () { | 20 | do_install () { |
21 | install -d ${D}/boot | 21 | install -d ${D}/boot |
@@ -33,7 +33,7 @@ do_deploy () { | |||
33 | addtask deploy before do_build after do_install | 33 | addtask deploy before do_build after do_install |
34 | 34 | ||
35 | PACKAGES += "${PN}-image" | 35 | PACKAGES += "${PN}-image" |
36 | FILES_${PN}-image += "/boot" | 36 | FILES:${PN}-image += "/boot" |
37 | 37 | ||
38 | INHIBIT_PACKAGE_STRIP = "1" | 38 | INHIBIT_PACKAGE_STRIP = "1" |
39 | 39 | ||
diff --git a/recipes-dpaa2/restool/restool_git.bb b/recipes-dpaa2/restool/restool_git.bb index 66cea7ef..5376d8f7 100644 --- a/recipes-dpaa2/restool/restool_git.bb +++ b/recipes-dpaa2/restool/restool_git.bb | |||
@@ -2,7 +2,7 @@ SUMMARY = "DPAA2 Resource Manager Tool" | |||
2 | LICENSE = "BSD" | 2 | LICENSE = "BSD" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=ec8d84e9cd4de287e290275d09db27f0" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=ec8d84e9cd4de287e290275d09db27f0" |
4 | 4 | ||
5 | RDEPENDS_${PN} += "bash dtc" | 5 | RDEPENDS:${PN} += "bash dtc" |
6 | 6 | ||
7 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/restool;nobranch=1" | 7 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/restool;nobranch=1" |
8 | SRCREV = "8ddbe4c9559ffad5d7e5dd3cd5f00ceeff7f05d4" | 8 | SRCREV = "8ddbe4c9559ffad5d7e5dd3cd5f00ceeff7f05d4" |
diff --git a/recipes-dpaa2/spc/spc_git.bb b/recipes-dpaa2/spc/spc_git.bb index e9bf1427..3e68ae89 100644 --- a/recipes-dpaa2/spc/spc_git.bb +++ b/recipes-dpaa2/spc/spc_git.bb | |||
@@ -12,7 +12,7 @@ S = "${WORKDIR}/git" | |||
12 | EXTRA_OEMAKE = 'FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ | 12 | EXTRA_OEMAKE = 'FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ |
13 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ | 13 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ |
14 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' | 14 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' |
15 | EXTRA_OEMAKE_virtclass-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ | 15 | EXTRA_OEMAKE:class-native = 'FMCHOSTMODE=1 FMD_USPACE_HEADER_PATH="${STAGING_INCDIR}/fmd" \ |
16 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ | 16 | FMD_USPACE_LIB_PATH="${STAGING_LIBDIR}" LIBXML2_HEADER_PATH="${STAGING_INCDIR}/libxml2" \ |
17 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' | 17 | TCLAP_HEADER_PATH="${STAGING_INCDIR}" ' |
18 | 18 | ||
diff --git a/recipes-extended/crconf/crconf_git.bb b/recipes-extended/crconf/crconf_git.bb index f8f88d20..1727888a 100644 --- a/recipes-extended/crconf/crconf_git.bb +++ b/recipes-extended/crconf/crconf_git.bb | |||
@@ -14,4 +14,4 @@ do_install () { | |||
14 | oe_runmake install DESTDIR=${D} | 14 | oe_runmake install DESTDIR=${D} |
15 | } | 15 | } |
16 | 16 | ||
17 | FILES_${PN} += "/share/man/* ${libdir}/* ${sbindir}/*" | 17 | FILES:${PN} += "/share/man/* ${libdir}/* ${sbindir}/*" |
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc index 61c02ae7..f4c932ea 100644 --- a/recipes-extended/dpdk/dpdk.inc +++ b/recipes-extended/dpdk/dpdk.inc | |||
@@ -1,25 +1,25 @@ | |||
1 | DESCRIPTION = "Data Plane Development Kit" | 1 | DESCRIPTION = "Data Plane Development Kit" |
2 | HOMEPAGE = "http://dpdk.org" | 2 | HOMEPAGE = "http://dpdk.org" |
3 | 3 | ||
4 | RDEPENDS_${PN} += "python3-core" | 4 | RDEPENDS:${PN} += "python3-core" |
5 | DEPENDS = "virtual/kernel openssl" | 5 | DEPENDS = "virtual/kernel openssl" |
6 | DEPENDS_append_x86-64 = " numactl" | 6 | DEPENDS:append:x86-64 = " numactl" |
7 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | 7 | do_configure[depends] += "virtual/kernel:do_shared_workdir" |
8 | 8 | ||
9 | inherit module | 9 | inherit module |
10 | 10 | ||
11 | COMPATIBLE_HOST = '(aarch64|arm|i.86|x86_64).*-linux' | 11 | COMPATIBLE_HOST = '(aarch64|arm|i.86|x86_64).*-linux' |
12 | COMPATIBLE_HOST_libc-musl = 'null' | 12 | COMPATIBLE_HOST:libc-musl = 'null' |
13 | COMPATIBLE_HOST_armv4 = 'null' | 13 | COMPATIBLE_HOST:armv4 = 'null' |
14 | COMPATIBLE_HOST_armv5 = 'null' | 14 | COMPATIBLE_HOST:armv5 = 'null' |
15 | COMPATIBLE_HOST_armv6 = 'null' | 15 | COMPATIBLE_HOST:armv6 = 'null' |
16 | 16 | ||
17 | COMPATIBLE_MACHINE = "(imx|qoriq)" | 17 | COMPATIBLE_MACHINE = "(imx|qoriq)" |
18 | 18 | ||
19 | DPDK_RTE_TARGET_x86-64 = "x86_64-native-linuxapp-gcc" | 19 | DPDK_RTE_TARGET:x86-64 = "x86_64-native-linuxapp-gcc" |
20 | DPDK_RTE_TARGET_x86 = "i686-native-linuxapp-gcc" | 20 | DPDK_RTE_TARGET:x86 = "i686-native-linuxapp-gcc" |
21 | DPDK_RTE_TARGET_armv7a = "${ARCH}-armv7a-linuxapp-gcc" | 21 | DPDK_RTE_TARGET:armv7a = "${ARCH}-armv7a-linuxapp-gcc" |
22 | DPDK_RTE_TARGET_armv7ve = "${ARCH}-armv7a-linuxapp-gcc" | 22 | DPDK_RTE_TARGET:armv7ve = "${ARCH}-armv7a-linuxapp-gcc" |
23 | DPDK_RTE_TARGET ?= "${ARCH}-dpaa-linuxapp-gcc" | 23 | DPDK_RTE_TARGET ?= "${ARCH}-dpaa-linuxapp-gcc" |
24 | 24 | ||
25 | export RTE_TARGET = "${DPDK_RTE_TARGET}" | 25 | export RTE_TARGET = "${DPDK_RTE_TARGET}" |
@@ -93,13 +93,13 @@ do_install () { | |||
93 | 93 | ||
94 | PACKAGES += "${PN}-examples" | 94 | PACKAGES += "${PN}-examples" |
95 | 95 | ||
96 | FILES_${PN}-dbg += " \ | 96 | FILES:${PN}-dbg += " \ |
97 | ${datadir}/dpdk/.debug \ | 97 | ${datadir}/dpdk/.debug \ |
98 | ${datadir}/dpdk/examples/*/.debug \ | 98 | ${datadir}/dpdk/examples/*/.debug \ |
99 | " | 99 | " |
100 | FILES_${PN}-staticdev += "${datadir}/dpdk/cmdif/lib/*.a \ | 100 | FILES:${PN}-staticdev += "${datadir}/dpdk/cmdif/lib/*.a \ |
101 | " | 101 | " |
102 | FILES_${PN}-dev += " \ | 102 | FILES:${PN}-dev += " \ |
103 | ${datadir}/dpdk/${RTE_TARGET}/.config \ | 103 | ${datadir}/dpdk/${RTE_TARGET}/.config \ |
104 | ${includedir} \ | 104 | ${includedir} \ |
105 | ${includedir}/exec-env \ | 105 | ${includedir}/exec-env \ |
@@ -109,11 +109,11 @@ FILES_${PN}-dev += " \ | |||
109 | ${datadir}/dpdk/mk \ | 109 | ${datadir}/dpdk/mk \ |
110 | " | 110 | " |
111 | 111 | ||
112 | FILES_${PN} += " ${datadir}/ \ | 112 | FILES:${PN} += " ${datadir}/ \ |
113 | ${prefix}/sbin/ \ | 113 | ${prefix}/sbin/ \ |
114 | ${prefix}/bin/ \ | 114 | ${prefix}/bin/ \ |
115 | ${libdir}/ \ | 115 | ${libdir}/ \ |
116 | " | 116 | " |
117 | FILES_${PN}-examples += " \ | 117 | FILES:${PN}-examples += " \ |
118 | ${datadir}/examples/* \ | 118 | ${datadir}/examples/* \ |
119 | " | 119 | " |
diff --git a/recipes-extended/dpdk/dpdk_19.11-20.12.bb b/recipes-extended/dpdk/dpdk_19.11-20.12.bb index 426713c2..37582124 100644 --- a/recipes-extended/dpdk/dpdk_19.11-20.12.bb +++ b/recipes-extended/dpdk/dpdk_19.11-20.12.bb | |||
@@ -13,7 +13,7 @@ SRCREV = "7071c27f6f5aefb57de1cffab3484707b1e82e2b" | |||
13 | 13 | ||
14 | include dpdk.inc | 14 | include dpdk.inc |
15 | 15 | ||
16 | do_install_append () { | 16 | do_install:append () { |
17 | # Remove the unneeded dir | 17 | # Remove the unneeded dir |
18 | rm -rf ${D}/${datadir}/${RTE_TARGET}/app | 18 | rm -rf ${D}/${datadir}/${RTE_TARGET}/app |
19 | } | 19 | } |
diff --git a/recipes-extended/ipc-ust/ipc-ust_git.bb b/recipes-extended/ipc-ust/ipc-ust_git.bb index df496c28..f307816e 100644 --- a/recipes-extended/ipc-ust/ipc-ust_git.bb +++ b/recipes-extended/ipc-ust/ipc-ust_git.bb | |||
@@ -40,12 +40,12 @@ do_install () { | |||
40 | install ${S}/fsl_shm/lib/*.h ${D}${includedir}/ipc/fsl_shm/lib | 40 | install ${S}/fsl_shm/lib/*.h ${D}${includedir}/ipc/fsl_shm/lib |
41 | } | 41 | } |
42 | 42 | ||
43 | FILES_${PN} += "${base_libdir}/*.so /ipc/*" | 43 | FILES:${PN} += "${base_libdir}/*.so /ipc/*" |
44 | FILES_${PN}-dev = "${includedir}" | 44 | FILES:${PN}-dev = "${includedir}" |
45 | FILES_${PN}-dbg += "/ipc/.debug" | 45 | FILES:${PN}-dbg += "/ipc/.debug" |
46 | 46 | ||
47 | INSANE_SKIP_${PN} += "file-rdeps" | 47 | INSANE_SKIP:${PN} += "file-rdeps" |
48 | INSANE_SKIP_${PN}-dev += "dev-elf" | 48 | INSANE_SKIP:${PN}-dev += "dev-elf" |
49 | 49 | ||
50 | COMPATIBLE_MACHINE = "(b4860qds|b4420qds)" | 50 | COMPATIBLE_MACHINE = "(b4860qds|b4420qds)" |
51 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 51 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-extended/jailhouse/jailhouse_0.12.bb b/recipes-extended/jailhouse/jailhouse_0.12.bb index c49d7f5b..43b4cdf5 100644 --- a/recipes-extended/jailhouse/jailhouse_0.12.bb +++ b/recipes-extended/jailhouse/jailhouse_0.12.bb | |||
@@ -39,9 +39,9 @@ CELLCONF_DIR ?= "${JH_DATADIR}/configs" | |||
39 | INMATES_DIR ?= "${JH_DATADIR}/inmates" | 39 | INMATES_DIR ?= "${JH_DATADIR}/inmates" |
40 | 40 | ||
41 | JH_CONFIG ?= "${S}/ci/jailhouse-config-x86.h" | 41 | JH_CONFIG ?= "${S}/ci/jailhouse-config-x86.h" |
42 | JH_CONFIG_x86 ?= "${S}/ci/jailhouse-config-x86.h" | 42 | JH_CONFIG:x86 ?= "${S}/ci/jailhouse-config-x86.h" |
43 | JH_CONFIG_x86-64 ?= "${S}/ci/jailhouse-config-x86.h" | 43 | JH_CONFIG:x86-64 ?= "${S}/ci/jailhouse-config-x86.h" |
44 | JH_CONFIG_arm ?= "${S}/ci/jailhouse-config-banana-pi.h" | 44 | JH_CONFIG:arm ?= "${S}/ci/jailhouse-config-banana-pi.h" |
45 | 45 | ||
46 | do_configure() { | 46 | do_configure() { |
47 | if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; | 47 | if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; |
@@ -101,22 +101,22 @@ do_install() { | |||
101 | 101 | ||
102 | PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse" | 102 | PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse" |
103 | 103 | ||
104 | FILES_${PN} += "${nonarch_base_libdir}/firmware ${libexecdir} ${sbindir} ${JH_DATADIR}" | 104 | FILES:${PN} += "${nonarch_base_libdir}/firmware ${libexecdir} ${sbindir} ${JH_DATADIR}" |
105 | FILES_pyjailhouse = "${PYTHON_SITEPACKAGES_DIR}/pyjailhouse" | 105 | FILES:pyjailhouse = "${PYTHON_SITEPACKAGES_DIR}/pyjailhouse" |
106 | 106 | ||
107 | RDEPENDS_${PN} += " \ | 107 | RDEPENDS:${PN} += " \ |
108 | python3-curses \ | 108 | python3-curses \ |
109 | python3-datetime \ | 109 | python3-datetime \ |
110 | python3-mmap \ | 110 | python3-mmap \ |
111 | " | 111 | " |
112 | 112 | ||
113 | RDEPENDS_pyjailhouse = " \ | 113 | RDEPENDS:pyjailhouse = " \ |
114 | python3-core \ | 114 | python3-core \ |
115 | python3-ctypes \ | 115 | python3-ctypes \ |
116 | python3-fcntl \ | 116 | python3-fcntl \ |
117 | python3-shell \ | 117 | python3-shell \ |
118 | " | 118 | " |
119 | 119 | ||
120 | INSANE_SKIP_${PN} = "ldflags" | 120 | INSANE_SKIP:${PN} = "ldflags" |
121 | 121 | ||
122 | COMPATIBLE_MACHINE = "(mx8m)" | 122 | COMPATIBLE_MACHINE = "(mx8m)" |
diff --git a/recipes-extended/libpkcs11/libpkcs11_git.bb b/recipes-extended/libpkcs11/libpkcs11_git.bb index 30f33a20..5496b09c 100644 --- a/recipes-extended/libpkcs11/libpkcs11_git.bb +++ b/recipes-extended/libpkcs11/libpkcs11_git.bb | |||
@@ -34,6 +34,6 @@ do_install(){ | |||
34 | } | 34 | } |
35 | 35 | ||
36 | PARALLEL_MAKE = "" | 36 | PARALLEL_MAKE = "" |
37 | INSANE_SKIP_${PN} = "ldflags dev-deps" | 37 | INSANE_SKIP:${PN} = "ldflags dev-deps" |
38 | INSANE_SKIP_${PN}-dev = "ldflags dev-elf" | 38 | INSANE_SKIP:${PN}-dev = "ldflags dev-elf" |
39 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 39 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-extended/merge-files/merge-files_1.0.bb b/recipes-extended/merge-files/merge-files_1.0.bb index 6fe5b637..5b3ca7ed 100644 --- a/recipes-extended/merge-files/merge-files_1.0.bb +++ b/recipes-extended/merge-files/merge-files_1.0.bb | |||
@@ -17,6 +17,6 @@ do_install () { | |||
17 | do_configure[noexec] = "1" | 17 | do_configure[noexec] = "1" |
18 | do_compile[noexec] = "1" | 18 | do_compile[noexec] = "1" |
19 | 19 | ||
20 | FILES_${PN} = "/*" | 20 | FILES:${PN} = "/*" |
21 | ALLOW_EMPTY_${PN} = "1" | 21 | ALLOW_EMPTY:${PN} = "1" |
22 | INSANE_SKIP_${PN} = "debug-files dev-so" | 22 | INSANE_SKIP:${PN} = "debug-files dev-so" |
diff --git a/recipes-extended/odp/odp-counters_git.bb b/recipes-extended/odp/odp-counters_git.bb index 860dd5fa..9d88ea43 100644 --- a/recipes-extended/odp/odp-counters_git.bb +++ b/recipes-extended/odp/odp-counters_git.bb | |||
@@ -2,7 +2,7 @@ require odp.inc | |||
2 | 2 | ||
3 | inherit module | 3 | inherit module |
4 | 4 | ||
5 | do_compile_prepend () { | 5 | do_compile:prepend () { |
6 | export KERNEL_PATH="${STAGING_KERNEL_DIR}" | 6 | export KERNEL_PATH="${STAGING_KERNEL_DIR}" |
7 | export KERNEL_CFG_PATH="${STAGING_KERNEL_BUILDDIR}" | 7 | export KERNEL_CFG_PATH="${STAGING_KERNEL_BUILDDIR}" |
8 | cd ${S}/test/debug/perf_counters | 8 | cd ${S}/test/debug/perf_counters |
diff --git a/recipes-extended/odp/odp-module_git.bb b/recipes-extended/odp/odp-module_git.bb index 46b89654..0748e5bf 100644 --- a/recipes-extended/odp/odp-module_git.bb +++ b/recipes-extended/odp/odp-module_git.bb | |||
@@ -2,7 +2,7 @@ require odp.inc | |||
2 | 2 | ||
3 | inherit module | 3 | inherit module |
4 | 4 | ||
5 | do_compile_prepend () { | 5 | do_compile:prepend () { |
6 | export KERNEL_PATH="${STAGING_KERNEL_DIR}" | 6 | export KERNEL_PATH="${STAGING_KERNEL_DIR}" |
7 | export KERNEL_CFG_PATH="${STAGING_KERNEL_BUILDDIR}" | 7 | export KERNEL_CFG_PATH="${STAGING_KERNEL_BUILDDIR}" |
8 | cd ${S}/kern | 8 | cd ${S}/kern |
@@ -13,4 +13,4 @@ do_install () { | |||
13 | install -m 755 ${S}/kern/odpfsl_kni.ko ${D}/lib/modules/${KERNEL_VERSION}/odp | 13 | install -m 755 ${S}/kern/odpfsl_kni.ko ${D}/lib/modules/${KERNEL_VERSION}/odp |
14 | } | 14 | } |
15 | 15 | ||
16 | PKG_${PN} = "kernel-module-${PN}" | 16 | PKG:${PN} = "kernel-module-${PN}" |
diff --git a/recipes-extended/odp/odp.inc b/recipes-extended/odp/odp.inc index 129f77ae..d1e10b0f 100644 --- a/recipes-extended/odp/odp.inc +++ b/recipes-extended/odp/odp.inc | |||
@@ -6,7 +6,7 @@ SECTION = "console/network" | |||
6 | LICENSE = "BSD-3-Clause" | 6 | LICENSE = "BSD-3-Clause" |
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ca6103dc75397fb6bec596187d6b7829" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ca6103dc75397fb6bec596187d6b7829" |
8 | 8 | ||
9 | FILESEXTRAPATHS_prepend := "${THISDIR}/odp:" | 9 | FILESEXTRAPATHS:prepend := "${THISDIR}/odp:" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
12 | git://source.codeaurora.org/external/qoriq/qoriq-components/odp;nobranch=1 \ | 12 | git://source.codeaurora.org/external/qoriq/qoriq-components/odp;nobranch=1 \ |
diff --git a/recipes-extended/odp/odp_git.bb b/recipes-extended/odp/odp_git.bb index 00575e24..9c94e432 100644 --- a/recipes-extended/odp/odp_git.bb +++ b/recipes-extended/odp/odp_git.bb | |||
@@ -6,17 +6,17 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
6 | 6 | ||
7 | DEPENDS = "openssl cunit libxml2" | 7 | DEPENDS = "openssl cunit libxml2" |
8 | 8 | ||
9 | RDEPENDS_${PN} = "bash libcrypto libssl odp-module odp-counters" | 9 | RDEPENDS:${PN} = "bash libcrypto libssl odp-module odp-counters" |
10 | 10 | ||
11 | ODP_SOC ?= "" | 11 | ODP_SOC ?= "" |
12 | ODP_SOC_ls1043ardb = "LS1043" | 12 | ODP_SOC:ls1043ardb = "LS1043" |
13 | ODP_SOC_ls1046ardb = "LS1046" | 13 | ODP_SOC:ls1046ardb = "LS1046" |
14 | ODP_PLATFORM ?= "linux-dpaa2" | 14 | ODP_PLATFORM ?= "linux-dpaa2" |
15 | ODP_BUILD_TYPE ?= "ls2088" | 15 | ODP_BUILD_TYPE ?= "ls2088" |
16 | ODP_BUILD_TYPE_ls1043ardb = "ls1043" | 16 | ODP_BUILD_TYPE:ls1043ardb = "ls1043" |
17 | ODP_BUILD_TYPE_ls1046ardb = "ls1046" | 17 | ODP_BUILD_TYPE:ls1046ardb = "ls1046" |
18 | ODP_BUILD_TYPE_ls2080ardb = "ls2080" | 18 | ODP_BUILD_TYPE:ls2080ardb = "ls2080" |
19 | ODP_BUILD_TYPE_ls1088ardb = "ls1088" | 19 | ODP_BUILD_TYPE:ls1088ardb = "ls1088" |
20 | 20 | ||
21 | EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \ | 21 | EXTRA_OECONF = "--with-platform=${ODP_PLATFORM} \ |
22 | --enable-test-vald \ | 22 | --enable-test-vald \ |
@@ -34,17 +34,17 @@ CFLAGS += "-Wno-format-truncation -Wno-maybe-uninitialized -Wno-implicit-fallthr | |||
34 | 34 | ||
35 | PACKAGECONFIG[perf] = "--enable-test-perf,,," | 35 | PACKAGECONFIG[perf] = "--enable-test-perf,,," |
36 | 36 | ||
37 | do_configure_prepend () { | 37 | do_configure:prepend () { |
38 | export SOC=${ODP_SOC} | 38 | export SOC=${ODP_SOC} |
39 | ${S}/bootstrap | 39 | ${S}/bootstrap |
40 | } | 40 | } |
41 | 41 | ||
42 | do_compile_prepend () { | 42 | do_compile:prepend () { |
43 | export SOC=${ODP_SOC} | 43 | export SOC=${ODP_SOC} |
44 | export ARCH=${TUNE_ARCH} | 44 | export ARCH=${TUNE_ARCH} |
45 | } | 45 | } |
46 | 46 | ||
47 | do_install_append () { | 47 | do_install:append () { |
48 | install -d ${D}${includedir}/odp/kni | 48 | install -d ${D}${includedir}/odp/kni |
49 | install -d ${D}${includedir}/odp/kern | 49 | install -d ${D}${includedir}/odp/kern |
50 | install -d ${D}${includedir}/odp/flib/mc | 50 | install -d ${D}${includedir}/odp/flib/mc |
@@ -58,6 +58,6 @@ do_install_append () { | |||
58 | sed -i -e 's#platform/linux-dpaa2/##g' ${D}${includedir}/odp/kern/*.h | 58 | sed -i -e 's#platform/linux-dpaa2/##g' ${D}${includedir}/odp/kern/*.h |
59 | } | 59 | } |
60 | 60 | ||
61 | FILES_${PN}-staticdev += "${datadir}/opendataplane/*.la" | 61 | FILES:${PN}-staticdev += "${datadir}/opendataplane/*.la" |
62 | FILES_${PN} += "/usr/odp/bin /usr/odp/scripts /usr/odp/debug /usr/odp/test/validation /usr/odp/test/performance /usr/odp/test/miscellaneous /usr/odp/test/api_test" | 62 | FILES:${PN} += "/usr/odp/bin /usr/odp/scripts /usr/odp/debug /usr/odp/test/validation /usr/odp/test/performance /usr/odp/test/miscellaneous /usr/odp/test/api_test" |
63 | FILES_${PN}-dbg += "/usr/odp/bin/.debug /usr/odp/debug/.debug /usr/odp/test/validation/.debug /usr/odp/test/performance/.debug /usr/odp/test/miscellaneous/.debug /usr/odp/test/api_test/.debug" | 63 | FILES:${PN}-dbg += "/usr/odp/bin/.debug /usr/odp/debug/.debug /usr/odp/test/validation/.debug /usr/odp/test/performance/.debug /usr/odp/test/miscellaneous/.debug /usr/odp/test/api_test/.debug" |
diff --git a/recipes-extended/ofp/ofp_git.bb b/recipes-extended/ofp/ofp_git.bb index c76eafd7..ec7328c8 100644 --- a/recipes-extended/ofp/ofp_git.bb +++ b/recipes-extended/ofp/ofp_git.bb | |||
@@ -32,6 +32,6 @@ do_configure () { | |||
32 | ${S}/configure ${EXTRA_OECONF} | 32 | ${S}/configure ${EXTRA_OECONF} |
33 | } | 33 | } |
34 | 34 | ||
35 | FILES_${PN} += "/usr/ofp/bin" | 35 | FILES:${PN} += "/usr/ofp/bin" |
36 | FILES_${PN}-dbg += "/usr/ofp/bin/.debug" | 36 | FILES:${PN}-dbg += "/usr/ofp/bin/.debug" |
37 | COMPATIBLE_MACHINE = "(ls2088a|ls1088a)" | 37 | COMPATIBLE_MACHINE = "(ls2088a|ls1088a)" |
diff --git a/recipes-extended/ovs-dpdk/ovs-dpdk_2.13.0.bb b/recipes-extended/ovs-dpdk/ovs-dpdk_2.13.0.bb index 9e817579..f9d32773 100644 --- a/recipes-extended/ovs-dpdk/ovs-dpdk_2.13.0.bb +++ b/recipes-extended/ovs-dpdk/ovs-dpdk_2.13.0.bb | |||
@@ -3,7 +3,7 @@ LICENSE = "BSD" | |||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" | 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab" |
4 | 4 | ||
5 | DEPENDS = "dpdk python3-six-native coreutils-native" | 5 | DEPENDS = "dpdk python3-six-native coreutils-native" |
6 | RDEPENDS_${PN} = "bash libcrypto libssl python3" | 6 | RDEPENDS:${PN} = "bash libcrypto libssl python3" |
7 | 7 | ||
8 | inherit python3native | 8 | inherit python3native |
9 | 9 | ||
@@ -42,7 +42,7 @@ do_install() { | |||
42 | chmod 777 -R ${D}${bindir}/ovs-dpdk/* | 42 | chmod 777 -R ${D}${bindir}/ovs-dpdk/* |
43 | } | 43 | } |
44 | 44 | ||
45 | ALLOW_EMPTY_${PN} = "1" | 45 | ALLOW_EMPTY:${PN} = "1" |
46 | INHIBIT_PACKAGE_STRIP = "1" | 46 | INHIBIT_PACKAGE_STRIP = "1" |
47 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 47 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
48 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 48 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-extended/pktgen-dpdk/pktgen-dpdk_19.12.0.bb b/recipes-extended/pktgen-dpdk/pktgen-dpdk_19.12.0.bb index f3a73c35..6a039129 100644 --- a/recipes-extended/pktgen-dpdk/pktgen-dpdk_19.12.0.bb +++ b/recipes-extended/pktgen-dpdk/pktgen-dpdk_19.12.0.bb | |||
@@ -26,7 +26,7 @@ do_install() { | |||
26 | cp -f ${S}/Pktgen.lua ${D}${bindir}/ | 26 | cp -f ${S}/Pktgen.lua ${D}${bindir}/ |
27 | } | 27 | } |
28 | 28 | ||
29 | INSANE_SKIP_${PN} = "ldflags" | 29 | INSANE_SKIP:${PN} = "ldflags" |
30 | INHIBIT_PACKAGE_STRIP = "1" | 30 | INHIBIT_PACKAGE_STRIP = "1" |
31 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 31 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
32 | PARALLEL_MAKE = "" | 32 | PARALLEL_MAKE = "" |
diff --git a/recipes-extended/procps/procps_%.bbappend b/recipes-extended/procps/procps_%.bbappend index face0ccc..43fb349b 100644 --- a/recipes-extended/procps/procps_%.bbappend +++ b/recipes-extended/procps/procps_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | do_install_append_qoriq-ppc() { | 1 | do_install:append:qoriq-ppc() { |
2 | for keyword in \ | 2 | for keyword in \ |
3 | net.ipv4.conf.default.rp_filter \ | 3 | net.ipv4.conf.default.rp_filter \ |
4 | net.ipv4.conf.all.rp_filter \ | 4 | net.ipv4.conf.all.rp_filter \ |
diff --git a/recipes-extended/secure-obj/secure-obj.inc b/recipes-extended/secure-obj/secure-obj.inc index 8a62d9cb..55f20ed5 100644 --- a/recipes-extended/secure-obj/secure-obj.inc +++ b/recipes-extended/secure-obj/secure-obj.inc | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Secure Object" | |||
2 | LICENSE = "BSD" | 2 | LICENSE = "BSD" |
3 | 3 | ||
4 | DEPENDS = "openssl optee-os-qoriq optee-client-qoriq" | 4 | DEPENDS = "openssl optee-os-qoriq optee-client-qoriq" |
5 | RDEPENDS_${PN} = "bash libcrypto libssl" | 5 | RDEPENDS:${PN} = "bash libcrypto libssl" |
6 | 6 | ||
7 | DEPENDS += "python3-pycryptodomex-native" | 7 | DEPENDS += "python3-pycryptodomex-native" |
8 | 8 | ||
@@ -20,9 +20,9 @@ export OPTEE_CLIENT_EXPORT = "${RECIPE_SYSROOT}/usr" | |||
20 | 20 | ||
21 | EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"' | 21 | EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"' |
22 | 22 | ||
23 | ALLOW_EMPTY_${PN} = "1" | 23 | ALLOW_EMPTY:${PN} = "1" |
24 | INHIBIT_PACKAGE_STRIP = "1" | 24 | INHIBIT_PACKAGE_STRIP = "1" |
25 | PARALLEL_MAKE = "" | 25 | PARALLEL_MAKE = "" |
26 | INSANE_SKIP_${PN} = "ldflags" | 26 | INSANE_SKIP:${PN} = "ldflags" |
27 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 27 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
28 | DEBUG_BUILD = "1" | 28 | DEBUG_BUILD = "1" |
diff --git a/recipes-extended/secure-obj/secure-obj_git.bb b/recipes-extended/secure-obj/secure-obj_git.bb index 2d723738..1fd1fea3 100644 --- a/recipes-extended/secure-obj/secure-obj_git.bb +++ b/recipes-extended/secure-obj/secure-obj_git.bb | |||
@@ -4,15 +4,15 @@ LIC_FILES_CHKSUM = "file://README;md5=82b72e88f23cded9dd23f0fb1790b8d2" | |||
4 | 4 | ||
5 | S = "${WORKDIR}/git" | 5 | S = "${WORKDIR}/git" |
6 | 6 | ||
7 | RDEPENDS_{PN} += "secure-obj-module" | 7 | RDEPENDS:{PN} += "secure-obj-module" |
8 | 8 | ||
9 | WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" | 9 | WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" |
10 | export SECURE_STORAGE_PATH = "${S}/secure_storage_ta/ta/" | 10 | export SECURE_STORAGE_PATH = "${S}/secure_storage_ta/ta/" |
11 | export OPTEE_CLIENT_EXPORT = "${RECIPE_SYSROOT}/usr" | 11 | export OPTEE_CLIENT_EXPORT = "${RECIPE_SYSROOT}/usr" |
12 | export CROSS_COMPILE_HOST = "${CROSS_COMPILE}" | 12 | export CROSS_COMPILE_HOST = "${CROSS_COMPILE}" |
13 | export CROSS_COMPILE_TA = "${CROSS_COMPILE}" | 13 | export CROSS_COMPILE_TA = "${CROSS_COMPILE}" |
14 | ARCH_qoriq-arm64 = "aarch64" | 14 | ARCH:qoriq-arm64 = "aarch64" |
15 | ARCH_qoriq-arm = "arm" | 15 | ARCH:qoriq-arm = "arm" |
16 | 16 | ||
17 | do_compile() { | 17 | do_compile() { |
18 | unset LDFLAGS | 18 | unset LDFLAGS |
@@ -41,6 +41,6 @@ do_install() { | |||
41 | rm -rf ${D}${bindir}/test | 41 | rm -rf ${D}${bindir}/test |
42 | } | 42 | } |
43 | 43 | ||
44 | FILES_${PN} += "${base_libdir}/optee_armtz ${libdir}/${ARCH}-linux-gnu/openssl-1.0.0/engines" | 44 | FILES:${PN} += "${base_libdir}/optee_armtz ${libdir}/${ARCH}-linux-gnu/openssl-1.0.0/engines" |
45 | INSANE_SKIP_${PN} = "dev-deps ldflags" | 45 | INSANE_SKIP:${PN} = "dev-deps ldflags" |
46 | INSANE_SKIP_${PN}-dev = "ldflags dev-elf" | 46 | INSANE_SKIP:${PN}-dev = "ldflags dev-elf" |
diff --git a/recipes-extended/testfloat/testfloat_2a.bb b/recipes-extended/testfloat/testfloat_2a.bb index 800cef3d..4ed2ceb3 100644 --- a/recipes-extended/testfloat/testfloat_2a.bb +++ b/recipes-extended/testfloat/testfloat_2a.bb | |||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://testfloat/testfloat.txt;beginline=87;endline=95;md5=b | |||
6 | SRC_URI = " http://www.jhauser.us/arithmetic/TestFloat-2a.tar.Z;name=TestFloat \ | 6 | SRC_URI = " http://www.jhauser.us/arithmetic/TestFloat-2a.tar.Z;name=TestFloat \ |
7 | http://www.jhauser.us/arithmetic/SoftFloat-2b.tar.Z;name=SoftFloat \ | 7 | http://www.jhauser.us/arithmetic/SoftFloat-2b.tar.Z;name=SoftFloat \ |
8 | " | 8 | " |
9 | SRC_URI_append_qoriq-ppc = " file://SoftFloat-powerpc-1.patch \ | 9 | SRC_URI:append:qoriq-ppc = " file://SoftFloat-powerpc-1.patch \ |
10 | file://TestFloat-powerpc-E500v2-SPE-1.patch \ | 10 | file://TestFloat-powerpc-E500v2-SPE-1.patch \ |
11 | file://Yocto-replace-COMPILE_PREFIX-gcc.patch \ | 11 | file://Yocto-replace-COMPILE_PREFIX-gcc.patch \ |
12 | " | 12 | " |
@@ -40,6 +40,6 @@ do_install(){ | |||
40 | install testfloat/powerpc-linux-gcc/testsoftfloat ${D}/${bindir} | 40 | install testfloat/powerpc-linux-gcc/testsoftfloat ${D}/${bindir} |
41 | } | 41 | } |
42 | 42 | ||
43 | COMPATIBLE_HOST_e500v2 = ".*" | 43 | COMPATIBLE_HOST:e500v2 = ".*" |
44 | COMPATIBLE_HOST ?= "(none)" | 44 | COMPATIBLE_HOST ?= "(none)" |
45 | 45 | ||
diff --git a/recipes-extended/tsntool/tsntool_git.bb b/recipes-extended/tsntool/tsntool_git.bb index 8ef79d27..f4f10938 100644 --- a/recipes-extended/tsntool/tsntool_git.bb +++ b/recipes-extended/tsntool/tsntool_git.bb | |||
@@ -14,7 +14,7 @@ S = "${WORKDIR}/git" | |||
14 | 14 | ||
15 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | 15 | do_configure[depends] += "virtual/kernel:do_shared_workdir" |
16 | 16 | ||
17 | do_compile_prepend() { | 17 | do_compile:prepend() { |
18 | mkdir -p ${S}/include/linux | 18 | mkdir -p ${S}/include/linux |
19 | cp -r ${STAGING_KERNEL_DIR}/include/uapi/linux/tsn.h ${S}/include/linux | 19 | cp -r ${STAGING_KERNEL_DIR}/include/uapi/linux/tsn.h ${S}/include/linux |
20 | } | 20 | } |
@@ -25,7 +25,7 @@ do_install() { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | PACKAGES = "${PN}-dbg ${PN}" | 27 | PACKAGES = "${PN}-dbg ${PN}" |
28 | FILES_${PN} = "${libdir}/libtsn.so ${bindir}/*" | 28 | FILES:${PN} = "${libdir}/libtsn.so ${bindir}/*" |
29 | INSANE_SKIP_${PN} += "file-rdeps rpaths dev-so" | 29 | INSANE_SKIP:${PN} += "file-rdeps rpaths dev-so" |
30 | COMPATIBLE_MACHINE = "(qoriq)" | 30 | COMPATIBLE_MACHINE = "(qoriq)" |
31 | PARALLEL_MAKE = "" | 31 | PARALLEL_MAKE = "" |
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-isp.bb b/recipes-fsl/packagegroups/packagegroup-fsl-isp.bb index 4ad257ee..cfcf2897 100644 --- a/recipes-fsl/packagegroups/packagegroup-fsl-isp.bb +++ b/recipes-fsl/packagegroups/packagegroup-fsl-isp.bb | |||
@@ -3,12 +3,12 @@ DESCRIPTION = "Add packages for ISP build" | |||
3 | inherit packagegroup | 3 | inherit packagegroup |
4 | 4 | ||
5 | ISP_PKGS ?= "" | 5 | ISP_PKGS ?= "" |
6 | ISP_PKGS_mx8mp = " \ | 6 | ISP_PKGS:mx8mp = " \ |
7 | isp-imx \ | 7 | isp-imx \ |
8 | basler-camera \ | 8 | basler-camera \ |
9 | basler-camera-dev \ | 9 | basler-camera-dev \ |
10 | kernel-module-isp-vvcam \ | 10 | kernel-module-isp-vvcam \ |
11 | " | 11 | " |
12 | RDEPENDS_${PN} = " \ | 12 | RDEPENDS:${PN} = " \ |
13 | ${ISP_PKGS} \ | 13 | ${ISP_PKGS} \ |
14 | " | 14 | " |
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb b/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb index 968642bf..59f58976 100644 --- a/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb +++ b/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb | |||
@@ -20,7 +20,7 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" | |||
20 | # Distro can override the following VIRTUAL-RUNTIME providers: | 20 | # Distro can override the following VIRTUAL-RUNTIME providers: |
21 | VIRTUAL-RUNTIME_keymaps ?= "keymaps" | 21 | VIRTUAL-RUNTIME_keymaps ?= "keymaps" |
22 | 22 | ||
23 | RDEPENDS_${PN}-base = " \ | 23 | RDEPENDS:${PN}-base = " \ |
24 | bash \ | 24 | bash \ |
25 | imx-uuc \ | 25 | imx-uuc \ |
26 | util-linux \ | 26 | util-linux \ |
@@ -34,14 +34,14 @@ RDEPENDS_${PN}-base = " \ | |||
34 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \ | 34 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \ |
35 | " | 35 | " |
36 | 36 | ||
37 | RDEPENDS_${PN}-mtd = " \ | 37 | RDEPENDS:${PN}-mtd = " \ |
38 | ${PN}-base \ | 38 | ${PN}-base \ |
39 | imx-kobs \ | 39 | imx-kobs \ |
40 | mtd-utils \ | 40 | mtd-utils \ |
41 | mtd-utils-ubifs \ | 41 | mtd-utils-ubifs \ |
42 | " | 42 | " |
43 | 43 | ||
44 | RDEPENDS_${PN}-extfs = " \ | 44 | RDEPENDS:${PN}-extfs = " \ |
45 | ${PN}-base \ | 45 | ${PN}-base \ |
46 | e2fsprogs-mke2fs \ | 46 | e2fsprogs-mke2fs \ |
47 | e2fsprogs-e2fsck \ | 47 | e2fsprogs-e2fsck \ |
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-opencv-imx.bb b/recipes-fsl/packagegroups/packagegroup-fsl-opencv-imx.bb index 8eb5b89a..724d0ff5 100644 --- a/recipes-fsl/packagegroups/packagegroup-fsl-opencv-imx.bb +++ b/recipes-fsl/packagegroups/packagegroup-fsl-opencv-imx.bb | |||
@@ -7,6 +7,6 @@ OPENCV_PKGS = " \ | |||
7 | opencv-samples \ | 7 | opencv-samples \ |
8 | python3-opencv \ | 8 | python3-opencv \ |
9 | " | 9 | " |
10 | RDEPENDS_${PN} = " \ | 10 | RDEPENDS:${PN} = " \ |
11 | ${OPENCV_PKGS} \ | 11 | ${OPENCV_PKGS} \ |
12 | " | 12 | " |
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-qca6174.bb b/recipes-fsl/packagegroups/packagegroup-fsl-qca6174.bb deleted file mode 100644 index aeba7623..00000000 --- a/recipes-fsl/packagegroups/packagegroup-fsl-qca6174.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | # Copyright 2019 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi support" | ||
4 | |||
5 | inherit packagegroup | ||
6 | |||
7 | RDEPENDS_${PN} = " \ | ||
8 | kernel-module-qca6174 \ | ||
9 | firmware-qca6174 \ | ||
10 | " | ||
11 | |||
12 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
13 | COMPATIBLE_HOST_libc-musl = 'null' | ||
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-qca9377.bb b/recipes-fsl/packagegroups/packagegroup-fsl-qca9377.bb deleted file mode 100644 index 43df5a70..00000000 --- a/recipes-fsl/packagegroups/packagegroup-fsl-qca9377.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # Copyright 2019 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi support" | ||
4 | |||
5 | inherit packagegroup | ||
6 | |||
7 | RDEPENDS_${PN} = " \ | ||
8 | kernel-module-qca9377 \ | ||
9 | firmware-qca9377 \ | ||
10 | " | ||
11 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
12 | COMPATIBLE_HOST_libc-musl = 'null' | ||
diff --git a/recipes-graphics/cairo/cairo_%.bbappend b/recipes-graphics/cairo/cairo_%.bbappend index 5b1562ab..2c73c7f3 100644 --- a/recipes-graphics/cairo/cairo_%.bbappend +++ b/recipes-graphics/cairo/cairo_%.bbappend | |||
@@ -1,2 +1,2 @@ | |||
1 | PACKAGECONFIG_append_imxgpu3d = " egl glesv2" | 1 | PACKAGECONFIG:append:imxgpu3d = " egl glesv2" |
2 | PACKAGECONFIG_remove_imxgpu3d = "opengl" | 2 | PACKAGECONFIG:remove:imxgpu3d = "opengl" |
diff --git a/recipes-graphics/drm/libdrm_2.4.102.imx.bb b/recipes-graphics/drm/libdrm_2.4.102.imx.bb index 6935b782..bffef407 100644 --- a/recipes-graphics/drm/libdrm_2.4.102.imx.bb +++ b/recipes-graphics/drm/libdrm_2.4.102.imx.bb | |||
@@ -42,32 +42,32 @@ PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false" | |||
42 | PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev" | 42 | PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev" |
43 | PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native" | 43 | PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native" |
44 | 44 | ||
45 | ALLOW_EMPTY_${PN}-drivers = "1" | 45 | ALLOW_EMPTY:${PN}-drivers = "1" |
46 | PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ | 46 | PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ |
47 | ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \ | 47 | ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \ |
48 | ${PN}-etnaviv" | 48 | ${PN}-etnaviv" |
49 | 49 | ||
50 | RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ | 50 | RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ |
51 | ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \ | 51 | ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \ |
52 | ${PN}-etnaviv" | 52 | ${PN}-etnaviv" |
53 | 53 | ||
54 | FILES_${PN}-tests = "${bindir}/*" | 54 | FILES:${PN}-tests = "${bindir}/*" |
55 | FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*" | 55 | FILES:${PN}-radeon = "${libdir}/libdrm_radeon.so.*" |
56 | FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" | 56 | FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" |
57 | FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*" | 57 | FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*" |
58 | FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*" | 58 | FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*" |
59 | FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*" | 59 | FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*" |
60 | FILES_${PN}-kms = "${libdir}/libkms*.so.*" | 60 | FILES:${PN}-kms = "${libdir}/libkms*.so.*" |
61 | FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*" | 61 | FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*" |
62 | FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids" | 62 | FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids" |
63 | FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*" | 63 | FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*" |
64 | 64 | ||
65 | BBCLASSEXTEND = "native nativesdk" | 65 | BBCLASSEXTEND = "native nativesdk" |
66 | 66 | ||
67 | PACKAGES_prepend_imxgpu = "${PN}-vivante " | 67 | PACKAGES:prepend:imxgpu = "${PN}-vivante " |
68 | RRECOMMENDS_${PN}-drivers_append_imxgpu = " ${PN}-vivante" | 68 | RRECOMMENDS:${PN}-drivers:append:imxgpu = " ${PN}-vivante" |
69 | FILES_${PN}-vivante = "${libdir}/libdrm_vivante.so.*" | 69 | FILES:${PN}-vivante = "${libdir}/libdrm_vivante.so.*" |
70 | PACKAGECONFIG_append_imxgpu = " vivante" | 70 | PACKAGECONFIG:append:imxgpu = " vivante" |
71 | PACKAGECONFIG[vivante] = "-Dvivante=true,-Dvivante=false" | 71 | PACKAGECONFIG[vivante] = "-Dvivante=true,-Dvivante=false" |
72 | 72 | ||
73 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 73 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-graphics/gtk+/gtk+3_%.bbappend b/recipes-graphics/gtk+/gtk+3_%.bbappend index be2bac75..2f108a27 100644 --- a/recipes-graphics/gtk+/gtk+3_%.bbappend +++ b/recipes-graphics/gtk+/gtk+3_%.bbappend | |||
@@ -1,5 +1,5 @@ | |||
1 | DEPENDS_append_imxgpu2d = " virtual/egl" | 1 | DEPENDS:append:imxgpu2d = " virtual/egl" |
2 | 2 | ||
3 | PACKAGECONFIG_remove_imxgpu2d = " \ | 3 | PACKAGECONFIG:remove:imxgpu2d = " \ |
4 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "x11", "", d)} \ | 4 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "x11", "", d)} \ |
5 | " | 5 | " |
diff --git a/recipes-graphics/images/core-image-weston.bbappend b/recipes-graphics/images/core-image-weston.bbappend index 2a3cde69..77d2fe74 100644 --- a/recipes-graphics/images/core-image-weston.bbappend +++ b/recipes-graphics/images/core-image-weston.bbappend | |||
@@ -1,3 +1,3 @@ | |||
1 | # FIXME: i.MX6SL cannot use mesa for Graphics and it lacks GL support, | 1 | # FIXME: i.MX6SL cannot use mesa for Graphics and it lacks GL support, |
2 | # so for now we skip it. | 2 | # so for now we skip it. |
3 | CORE_IMAGE_BASE_INSTALL_remove_mx6sl = "clutter-1.0-examples" | 3 | CORE_IMAGE_BASE_INSTALL:remove:mx6sl = "clutter-1.0-examples" |
diff --git a/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.8.14.bb b/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.9.2.bb index 1176fa1a..e4baefb5 100644 --- a/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.8.14.bb +++ b/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.9.2.bb | |||
@@ -1,15 +1,15 @@ | |||
1 | # Copyright (C) 2016 Freescale Semiconductor | 1 | # Copyright (C) 2016 Freescale Semiconductor |
2 | # Copyright 2017-2019 NXP | 2 | # Copyright 2017-2021 NXP |
3 | # Released under the MIT license (see COPYING.MIT for the terms) | 3 | # Released under the MIT license (see COPYING.MIT for the terms) |
4 | 4 | ||
5 | DESCRIPTION = "GPU G2D library and apps for i.MX with 2D GPU and DPU" | 5 | DESCRIPTION = "GPU G2D library and apps for i.MX with 2D GPU and DPU" |
6 | LICENSE = "Proprietary" | 6 | LICENSE = "Proprietary" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a632fefd1c359980434f9389833cab3a" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=417b82f17fc02b88125331ed312f6f1b" |
8 | PROVIDES += "virtual/libg2d" | 8 | PROVIDES += "virtual/libg2d" |
9 | 9 | ||
10 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" | 10 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" |
11 | SRC_URI[md5sum] = "51b1a54f303bea31325549e9fb1f0d04" | 11 | SRC_URI[md5sum] = "a267c87677d600ecf07d4c8f42941532" |
12 | SRC_URI[sha256sum] = "360012a32353bde233a548f25a8f99b18660059ea2655ab15335a967843ce3b9" | 12 | SRC_URI[sha256sum] = "02e4e649f2af6c867cb666df10f032af48b0907e1529fa6c5958dad7e38aebbe" |
13 | 13 | ||
14 | inherit fsl-eula-unpack | 14 | inherit fsl-eula-unpack |
15 | 15 | ||
@@ -21,15 +21,15 @@ do_install () { | |||
21 | cp -r ${S}/gpu-demos/opt ${D} | 21 | cp -r ${S}/gpu-demos/opt ${D} |
22 | } | 22 | } |
23 | 23 | ||
24 | FILES_${PN} = "${libdir}/libg2d* /opt" | 24 | FILES:${PN} = "${libdir}/libg2d* /opt" |
25 | FILES_${PN}-dev = "${libdir}/libg2d${SOLIBSDEV} ${includedir}" | 25 | FILES:${PN}-dev = "${libdir}/libg2d${SOLIBSDEV} ${includedir}" |
26 | INSANE_SKIP_${PN} += "ldflags" | 26 | INSANE_SKIP:${PN} += "ldflags" |
27 | 27 | ||
28 | RDEPENDS_${PN} = "libgal-imx libdrm" | 28 | RDEPENDS:${PN} = "libgal-imx libdrm" |
29 | 29 | ||
30 | # This is required to provide support for VPU Amphion HEVC tile format | 30 | # This is required to provide support for VPU Amphion HEVC tile format |
31 | # From NXP [MGS-5547] (commit e175d6b4f78deab24d319b852998bef55cdecc99): | 31 | # From NXP [MGS-5547] (commit e175d6b4f78deab24d319b852998bef55cdecc99): |
32 | # VPU Amphion HEVC tile support was added using OpenCL, so add a dependency on libopencl-imx. | 32 | # VPU Amphion HEVC tile support was added using OpenCL, so add a dependency on libopencl-imx. |
33 | RDEPENDS_${PN} += "libopencl-imx" | 33 | RDEPENDS:${PN} += "libopencl-imx" |
34 | 34 | ||
35 | COMPATIBLE_MACHINE = "(imxdpu)" | 35 | COMPATIBLE_MACHINE = "(imxdpu)" |
diff --git a/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace/0001-dlsym-workaround-glibc-2.34-build-failure.patch b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace/0001-dlsym-workaround-glibc-2.34-build-failure.patch new file mode 100644 index 00000000..9f3410d7 --- /dev/null +++ b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace/0001-dlsym-workaround-glibc-2.34-build-failure.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From d11884c88eac803c174f759414d0162154450b6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | ||
3 | Date: Thu, 2 Sep 2021 09:43:33 +0000 | ||
4 | Subject: [PATCH] dlsym: workaround glibc 2.34 build failure | ||
5 | |||
6 | As suggested in [1], upstream component does not have a solution for the | ||
7 | issue, and therefore for glibc version >= 2.34 dlsym wrappers should be | ||
8 | skipped. | ||
9 | |||
10 | Link: [1]: https://github.com/apitrace/apitrace/issues/756 | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | ||
14 | --- | ||
15 | wrappers/dlsym.cpp | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp | ||
19 | index cdf5cfdb..4061afc4 100644 | ||
20 | --- a/wrappers/dlsym.cpp | ||
21 | +++ b/wrappers/dlsym.cpp | ||
22 | @@ -34,7 +34,7 @@ | ||
23 | #include "os.hpp" | ||
24 | |||
25 | |||
26 | -#ifdef __GLIBC__ | ||
27 | +#if defined(__GLIBC__) && !(__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) | ||
28 | |||
29 | |||
30 | #include <dlfcn.h> | ||
31 | -- | ||
32 | 2.17.1 | ||
33 | |||
diff --git a/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb index 65ce9cd5..dfa8dde7 100644 --- a/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb +++ b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb | |||
@@ -4,23 +4,25 @@ LICENSE = "MIT" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50" |
5 | DEPENDS = "imx-gpu-viv zlib libpng procps" | 5 | DEPENDS = "imx-gpu-viv zlib libpng procps" |
6 | 6 | ||
7 | SRC_URI = "git://source.codeaurora.org/external/imx/apitrace-imx.git;protocol=https;branch=imx_9.0" | 7 | SRC_URI = "git://source.codeaurora.org/external/imx/apitrace-imx.git;protocol=https;branch=imx_9.0 \ |
8 | file://0001-dlsym-workaround-glibc-2.34-build-failure.patch \ | ||
9 | " | ||
8 | SRCREV = "c50e6a954e44998f2e3793a8de863e961f8008c6" | 10 | SRCREV = "c50e6a954e44998f2e3793a8de863e961f8008c6" |
9 | 11 | ||
10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
11 | 13 | ||
12 | inherit cmake pkgconfig perlnative python3native | 14 | inherit cmake pkgconfig perlnative python3native |
13 | 15 | ||
14 | PACKAGECONFIG_BACKEND_mx6 = " \ | 16 | PACKAGECONFIG_BACKEND:mx6 = " \ |
15 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'waffle', \ | 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'waffle', \ |
16 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ | 18 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ |
17 | '', d), d)} \ | 19 | '', d), d)} \ |
18 | " | 20 | " |
19 | PACKAGECONFIG_BACKEND_mx7 = "${PACKAGECONFIG_BACKEND_mx6}" | 21 | PACKAGECONFIG_BACKEND:mx7 = "${PACKAGECONFIG_BACKEND:mx6}" |
20 | PACKAGECONFIG_BACKEND_mx8 = "waffle" | 22 | PACKAGECONFIG_BACKEND:mx8 = "waffle" |
21 | 23 | ||
22 | PACKAGECONFIG_GPU2D = "" | 24 | PACKAGECONFIG_GPU2D = "" |
23 | PACKAGECONFIG_GPU2D_imxgpu2d = "vivante" | 25 | PACKAGECONFIG_GPU2D:imxgpu2d = "vivante" |
24 | 26 | ||
25 | PACKAGECONFIG ??= " \ | 27 | PACKAGECONFIG ??= " \ |
26 | egl \ | 28 | egl \ |
@@ -37,7 +39,7 @@ PACKAGECONFIG[vivante] = "-DENABLE_VIVANTE=ON,-DENABLE_VIVANTE=OFF,virtual/libg2 | |||
37 | 39 | ||
38 | SOLIBS = ".so" | 40 | SOLIBS = ".so" |
39 | FILES_SOLIBSDEV = "" | 41 | FILES_SOLIBSDEV = "" |
40 | FILES_${PN} += " \ | 42 | FILES:${PN} += " \ |
41 | ${libdir}/apitrace/scripts/* \ | 43 | ${libdir}/apitrace/scripts/* \ |
42 | ${libdir}/apitrace/wrappers/* \ | 44 | ${libdir}/apitrace/wrappers/* \ |
43 | " | 45 | " |
diff --git a/recipes-graphics/imx-gpu-g2d/imx-gpu-g2d_6.4.3.p1.4.bb b/recipes-graphics/imx-gpu-g2d/imx-gpu-g2d_6.4.3.p2.0.bb index 257ecf16..011901bb 100644 --- a/recipes-graphics/imx-gpu-g2d/imx-gpu-g2d_6.4.3.p1.4.bb +++ b/recipes-graphics/imx-gpu-g2d/imx-gpu-g2d_6.4.3.p2.0.bb | |||
@@ -1,11 +1,11 @@ | |||
1 | # Copyright (C) 2016 Freescale Semiconductor | 1 | # Copyright (C) 2016 Freescale Semiconductor |
2 | # Copyright 2017-2018 NXP | 2 | # Copyright 2017-2021 NXP |
3 | # Copyright 2018 (C) O.S. Systems Software LTDA. | 3 | # Copyright 2018 (C) O.S. Systems Software LTDA. |
4 | # Released under the MIT license (see COPYING.MIT for the terms) | 4 | # Released under the MIT license (see COPYING.MIT for the terms) |
5 | 5 | ||
6 | DESCRIPTION = "GPU G2D library and apps for i.MX with 2D GPU and no DPU" | 6 | DESCRIPTION = "GPU G2D library and apps for i.MX with 2D GPU and no DPU" |
7 | LICENSE = "Proprietary" | 7 | LICENSE = "Proprietary" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=a632fefd1c359980434f9389833cab3a" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=417b82f17fc02b88125331ed312f6f1b" |
9 | 9 | ||
10 | DEPENDS += "libgal-imx" | 10 | DEPENDS += "libgal-imx" |
11 | PROVIDES += "virtual/libg2d" | 11 | PROVIDES += "virtual/libg2d" |
@@ -13,10 +13,10 @@ PROVIDES += "virtual/libg2d" | |||
13 | FSLBIN_NAME = "${PN}-${PV}-${TARGET_ARCH}" | 13 | FSLBIN_NAME = "${PN}-${PV}-${TARGET_ARCH}" |
14 | 14 | ||
15 | SRC_URI = "${FSL_MIRROR}/${FSLBIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" | 15 | SRC_URI = "${FSL_MIRROR}/${FSLBIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" |
16 | SRC_URI[aarch64.md5sum] = "575eac63da712019bfe3ac4c616b2774" | 16 | SRC_URI[aarch64.md5sum] = "baef64e3779f50098b7191e5246ce19f" |
17 | SRC_URI[aarch64.sha256sum] = "017e8c40a51311bb384a427467ec6950f91879b9e36c48074dd29c6ca7db8c4f" | 17 | SRC_URI[aarch64.sha256sum] = "2642a49e088daae4cf568a150d01e7c095995e8a6ff1883c02c3fa6d26d254b3" |
18 | SRC_URI[arm.md5sum] = "9eab89a12949534a5a45050c24ba4cba" | 18 | SRC_URI[arm.md5sum] = "865a92ddf68509a3cff5469536ff201a" |
19 | SRC_URI[arm.sha256sum] = "a5ee498e47e52cbc56292d5ea8d71b5194775c750fa0415a43ea05ddb1acb08a" | 19 | SRC_URI[arm.sha256sum] = "39fe307916e19a0892a514621121086e276a43858af90230372a1344852116a2" |
20 | 20 | ||
21 | S = "${WORKDIR}/${FSLBIN_NAME}" | 21 | S = "${WORKDIR}/${FSLBIN_NAME}" |
22 | 22 | ||
@@ -30,10 +30,10 @@ do_install () { | |||
30 | cp -r ${S}/gpu-demos/opt ${D} | 30 | cp -r ${S}/gpu-demos/opt ${D} |
31 | } | 31 | } |
32 | 32 | ||
33 | FILES_${PN} = "${libdir}/libg2d* /opt" | 33 | FILES:${PN} = "${libdir}/libg2d* /opt" |
34 | FILES_${PN}-dev = "${includedir}" | 34 | FILES:${PN}-dev = "${includedir}" |
35 | INSANE_SKIP_${PN} = "ldflags" | 35 | INSANE_SKIP:${PN} = "ldflags" |
36 | 36 | ||
37 | RDEPENDS_${PN} = "libgal-imx" | 37 | RDEPENDS:${PN} = "libgal-imx" |
38 | 38 | ||
39 | COMPATIBLE_MACHINE = "(imxgpu2d)" | 39 | COMPATIBLE_MACHINE = "(imxgpu2d)" |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc index 91a5542b..7afa0950 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |||
@@ -1,12 +1,12 @@ | |||
1 | # Copyright (C) 2012-2016 Freescale Semiconductor | 1 | # Copyright (C) 2012-2016 Freescale Semiconductor |
2 | # Copyright (C) 2012-2018 O.S. Systems Software LTDA. | 2 | # Copyright (C) 2012-2018 O.S. Systems Software LTDA. |
3 | # Copyright 2017-2020 NXP | 3 | # Copyright 2017-2021 NXP |
4 | # Released under the MIT license (see COPYING.MIT for the terms) | 4 | # Released under the MIT license (see COPYING.MIT for the terms) |
5 | 5 | ||
6 | DESCRIPTION = "GPU driver and apps for i.MX" | 6 | DESCRIPTION = "GPU driver and apps for i.MX" |
7 | SECTION = "libs" | 7 | SECTION = "libs" |
8 | LICENSE = "Proprietary" | 8 | LICENSE = "Proprietary" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=a632fefd1c359980434f9389833cab3a" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=417b82f17fc02b88125331ed312f6f1b" |
10 | 10 | ||
11 | DEPENDS += " \ | 11 | DEPENDS += " \ |
12 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ |
@@ -17,8 +17,8 @@ DEPENDS += " \ | |||
17 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb libxshmfence libxxf86vm', \ | 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb libxshmfence libxxf86vm', \ |
18 | '', d)} \ | 18 | '', d)} \ |
19 | " | 19 | " |
20 | DEPENDS_append_imxdrm = " libdrm wayland" | 20 | DEPENDS:append:imxdrm = " libdrm wayland" |
21 | DEPENDS_append_mx8 = " patchelf-native" | 21 | DEPENDS:append:mx8 = " patchelf-native" |
22 | 22 | ||
23 | # imx-gpu-viv does not provide everything it needs to for virtual/libgl | 23 | # imx-gpu-viv does not provide everything it needs to for virtual/libgl |
24 | # on x11 backend or on Wayland backend with XWayland support. | 24 | # on x11 backend or on Wayland backend with XWayland support. |
@@ -26,19 +26,17 @@ DEPENDS_append_mx8 = " patchelf-native" | |||
26 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}" | 26 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}" |
27 | 27 | ||
28 | EXTRA_PROVIDES = "" | 28 | EXTRA_PROVIDES = "" |
29 | EXTRA_PROVIDES_append_imxgpu3d = " \ | 29 | EXTRA_PROVIDES:append:imxgpu3d = " \ |
30 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'virtual/libgl', \ | 30 | virtual/libgl \ |
31 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libgl', \ | ||
32 | '', d), d)} \ | ||
33 | virtual/libgles1 \ | 31 | virtual/libgles1 \ |
34 | virtual/libgles2 \ | 32 | virtual/libgles2 \ |
35 | " | 33 | " |
36 | EXTRA_PROVIDES_append_mx8 = " \ | 34 | EXTRA_PROVIDES:append:mx8 = " \ |
37 | virtual/libgbm \ | 35 | virtual/libgbm \ |
38 | " | 36 | " |
39 | PROVIDES_OPENVX = "" | 37 | PROVIDES_OPENVX = "" |
40 | PROVIDES_OPENVX_mx8 = "virtual/libopenvx" | 38 | PROVIDES_OPENVX:mx8 = "virtual/libopenvx" |
41 | PROVIDES_OPENVX_mx8mm = "" | 39 | PROVIDES_OPENVX:mx8mm = "" |
42 | PROVIDES += " \ | 40 | PROVIDES += " \ |
43 | imx-gpu-viv \ | 41 | imx-gpu-viv \ |
44 | libgal-imx \ | 42 | libgal-imx \ |
@@ -52,13 +50,13 @@ PROVIDES += " \ | |||
52 | ${EXTRA_PROVIDES} \ | 50 | ${EXTRA_PROVIDES} \ |
53 | " | 51 | " |
54 | 52 | ||
55 | RPROVIDES_${PN}_imxgpu3d += "imx-gpu-viv" | 53 | RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" |
56 | 54 | ||
57 | PE = "1" | 55 | PE = "1" |
58 | 56 | ||
59 | inherit fsl-eula-unpack features_check | 57 | inherit fsl-eula-unpack features_check |
60 | 58 | ||
61 | REQUIRED_DISTRO_FEATURES_mx8 = "wayland" | 59 | REQUIRED_DISTRO_FEATURES:mx8 = "wayland" |
62 | 60 | ||
63 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" | 61 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" |
64 | 62 | ||
@@ -69,7 +67,7 @@ PACKAGECONFIG[valgrind] = "" | |||
69 | 67 | ||
70 | # Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below | 68 | # Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below |
71 | IMX_PACKAGES_GBM = "" | 69 | IMX_PACKAGES_GBM = "" |
72 | IMX_PACKAGES_GBM_mx8 = "libgbm-imx libgbm-imx-dev" | 70 | IMX_PACKAGES_GBM:mx8 = "libgbm-imx libgbm-imx-dev" |
73 | PACKAGES =+ "libclc-imx libclc-imx-dev \ | 71 | PACKAGES =+ "libclc-imx libclc-imx-dev \ |
74 | libgl-imx libgl-imx-dev \ | 72 | libgl-imx libgl-imx-dev \ |
75 | libgles1-imx libgles1-imx-dev \ | 73 | libgles1-imx libgles1-imx-dev \ |
@@ -84,13 +82,11 @@ PACKAGES =+ "libclc-imx libclc-imx-dev \ | |||
84 | libvivante-dri-imx \ | 82 | libvivante-dri-imx \ |
85 | libvsc-imx \ | 83 | libvsc-imx \ |
86 | ${IMX_PACKAGES_GBM} \ | 84 | ${IMX_PACKAGES_GBM} \ |
87 | libwayland-viv-imx libwayland-viv-imx-dev \ | ||
88 | libgc-wayland-protocol-imx libgc-wayland-protocol-imx-dev \ | ||
89 | imx-gpu-viv-tools \ | 85 | imx-gpu-viv-tools \ |
90 | imx-gpu-viv-demos \ | 86 | imx-gpu-viv-demos \ |
91 | libvulkan-imx libvulkan-imx-dev \ | 87 | libvulkan-imx libvulkan-imx-dev \ |
92 | libopenvx-imx libopenvx-imx-dev \ | 88 | libopenvx-imx libopenvx-imx-dev \ |
93 | libnn-imx libnn-imx-dev \ | 89 | libnn-imx \ |
94 | " | 90 | " |
95 | python __anonymous () { | 91 | python __anonymous () { |
96 | has_vivante_kernel_driver_support = (d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT') or '0') | 92 | has_vivante_kernel_driver_support = (d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT') or '0') |
@@ -101,10 +97,11 @@ python __anonymous () { | |||
101 | USE_X11 = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" | 97 | USE_X11 = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" |
102 | USE_WL = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}" | 98 | USE_WL = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}" |
103 | 99 | ||
104 | # Inhibit warnings about files being stripped. | 100 | # The packaged binaries have been stripped of debug info, so disable |
105 | INHIBIT_PACKAGE_STRIP = "1" | 101 | # operations accordingly. |
106 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 102 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
107 | INSANE_SKIP_${BPN} += "already-stripped" | 103 | INHIBIT_PACKAGE_STRIP = "1" |
104 | INHIBIT_SYSROOT_STRIP = "1" | ||
108 | 105 | ||
109 | # FIXME: The provided binary doesn't provide soname. If in future BSP | 106 | # FIXME: The provided binary doesn't provide soname. If in future BSP |
110 | # release the libraries are fixed, we can drop this hack. | 107 | # release the libraries are fixed, we can drop this hack. |
@@ -116,7 +113,7 @@ python __anonymous() { | |||
116 | # the source we cannot fix it. Disable the insane check for now. | 113 | # the source we cannot fix it. Disable the insane check for now. |
117 | packages = d.getVar('PACKAGES').split() | 114 | packages = d.getVar('PACKAGES').split() |
118 | for p in packages: | 115 | for p in packages: |
119 | d.appendVar("INSANE_SKIP_%s" % p, " ldflags") | 116 | d.appendVar("INSANE_SKIP:%s" % p, " ldflags") |
120 | 117 | ||
121 | # For the packages that make up the OpenGL interfaces, inject variables so that | 118 | # For the packages that make up the OpenGL interfaces, inject variables so that |
122 | # they don't get Debian-renamed (which would remove the -imx suffix). | 119 | # they don't get Debian-renamed (which would remove the -imx suffix). |
@@ -125,36 +122,36 @@ python __anonymous() { | |||
125 | ("libgles3",), ("libgbm",)): | 122 | ("libgles3",), ("libgbm",)): |
126 | fullp = p[0] + "-imx" | 123 | fullp = p[0] + "-imx" |
127 | pkgs = "".join(' %s' % i for i in p) | 124 | pkgs = "".join(' %s' % i for i in p) |
128 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | 125 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
129 | d.appendVar("RREPLACES_" + fullp, pkgs) | 126 | d.appendVar("RREPLACES:" + fullp, pkgs) |
130 | d.appendVar("RPROVIDES_" + fullp, pkgs) | 127 | d.appendVar("RPROVIDES:" + fullp, pkgs) |
131 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | 128 | d.appendVar("RCONFLICTS:" + fullp, pkgs) |
132 | 129 | ||
133 | # For -dev, the first element is both the Debian and original name | 130 | # For -dev, the first element is both the Debian and original name |
134 | fullp += "-dev" | 131 | fullp += "-dev" |
135 | pkgs = p[0] + "-dev" | 132 | pkgs = p[0] + "-dev" |
136 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | 133 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
137 | d.appendVar("RREPLACES_" + fullp, pkgs) | 134 | d.appendVar("RREPLACES:" + fullp, pkgs) |
138 | d.appendVar("RPROVIDES_" + fullp, pkgs) | 135 | d.appendVar("RPROVIDES:" + fullp, pkgs) |
139 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | 136 | d.appendVar("RCONFLICTS:" + fullp, pkgs) |
140 | } | 137 | } |
141 | 138 | ||
142 | IS_MX6SL = "0" | 139 | IS_MX6SL = "0" |
143 | IS_MX6SL_mx6sl = "1" | 140 | IS_MX6SL:mx6sl = "1" |
144 | 141 | ||
145 | IS_MX8 = "0" | 142 | IS_MX8 = "0" |
146 | IS_MX8_mx8 = "1" | 143 | IS_MX8:mx8 = "1" |
147 | 144 | ||
148 | PACKAGE_FP_TYPE = "hardfp" | 145 | PACKAGE_FP_TYPE = "hardfp" |
149 | 146 | ||
150 | HAS_GBM = "false" | 147 | HAS_GBM = "false" |
151 | HAS_GBM_mx8 = "true" | 148 | HAS_GBM:mx8 = "true" |
152 | 149 | ||
153 | GLES3_HEADER_REMOVALS = "gl31.h gl32.h" | 150 | GLES3_HEADER_REMOVALS = "gl31.h gl32.h" |
154 | GLES3_HEADER_REMOVALS_mx8m = "gl32.h" | 151 | GLES3_HEADER_REMOVALS:mx8m = "gl32.h" |
155 | GLES3_HEADER_REMOVALS_mx8mm = "gl31.h gl32.h" | 152 | GLES3_HEADER_REMOVALS:mx8mm = "gl31.h gl32.h" |
156 | GLES3_HEADER_REMOVALS_mx8qxp = "" | 153 | GLES3_HEADER_REMOVALS:mx8qxp = "" |
157 | GLES3_HEADER_REMOVALS_mx8qm = "" | 154 | GLES3_HEADER_REMOVALS:mx8qm = "" |
158 | 155 | ||
159 | do_install () { | 156 | do_install () { |
160 | install -d ${D}${libdir} | 157 | install -d ${D}${libdir} |
@@ -240,12 +237,6 @@ do_install () { | |||
240 | rm -f ${D}${includedir}/GLES3/${header} | 237 | rm -f ${D}${includedir}/GLES3/${header} |
241 | done | 238 | done |
242 | 239 | ||
243 | # skip packaging wayland libraries if no support is requested | ||
244 | if [ "${USE_WL}" = "no" ]; then | ||
245 | find ${D}${libdir} -name "libgc_wayland_protocol.*" -exec rm '{}' ';' | ||
246 | find ${D}${libdir} -name "libwayland-viv.*" -exec rm '{}' ';' | ||
247 | fi | ||
248 | |||
249 | # FIXME: MX6SL does not have 3D support; hack it for now | 240 | # FIXME: MX6SL does not have 3D support; hack it for now |
250 | if [ "${IS_MX6SL}" = "1" ]; then | 241 | if [ "${IS_MX6SL}" = "1" ]; then |
251 | rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ | 242 | rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ |
@@ -272,98 +263,88 @@ do_install () { | |||
272 | chown -R root:root "${D}" | 263 | chown -R root:root "${D}" |
273 | } | 264 | } |
274 | 265 | ||
275 | ALLOW_EMPTY_${PN} = "1" | 266 | ALLOW_EMPTY:${PN} = "1" |
276 | 267 | ||
277 | FILES_libclc-imx = "${libdir}/libCLC${SOLIBS}" | 268 | FILES:libclc-imx = "${libdir}/libCLC${SOLIBS} ${includedir}/CL/cl_viv_vx_ext.h" |
278 | FILES_libclc-imx-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" | 269 | FILES:libclc-imx-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" |
279 | 270 | ||
280 | # libEGL.so is used by some demo apps from Freescale | 271 | # libEGL.so is used by some demo apps from Freescale |
281 | INSANE_SKIP_libegl-imx += "dev-so" | 272 | INSANE_SKIP:libegl-imx += "dev-so" |
282 | FILES_libegl-imx = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} " | 273 | FILES:libegl-imx = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} " |
283 | FILES_libegl-imx-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | 274 | FILES:libegl-imx-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" |
284 | 275 | ||
285 | FILES_libgal-imx = "${libdir}/libGAL${SOLIBS} ${libdir}/libGAL_egl${SOLIBS}" | 276 | FILES:libgal-imx = "${libdir}/libGAL${SOLIBS} ${libdir}/libGAL_egl${SOLIBS}" |
286 | FILES_libgal-imx-dev = "${libdir}/libGAL${SOLIBSDEV} ${includedir}/HAL" | 277 | FILES:libgal-imx-dev = "${libdir}/libGAL${SOLIBSDEV} ${includedir}/HAL" |
287 | RDEPENDS_libgal-imx += "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', 'valgrind', '', d)}" | 278 | RDEPENDS:libgal-imx += "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', 'valgrind', '', d)}" |
288 | RPROVIDES_libgal-imx += "libgal-imx" | 279 | RPROVIDES:libgal-imx += "libgal-imx" |
289 | RRECOMMENDS_libgal-imx += "kernel-module-imx-gpu-viv" | 280 | RRECOMMENDS:libgal-imx += "kernel-module-imx-gpu-viv" |
290 | INSANE_SKIP_libgal-imx += "build-deps" | 281 | INSANE_SKIP:libgal-imx += "build-deps" |
291 | 282 | ||
292 | FILES_libvsc-imx = "${libdir}/libVSC${SOLIBS}" | 283 | FILES:libvsc-imx = "${libdir}/libVSC${SOLIBS}" |
293 | 284 | ||
294 | FILES_libgbm-imx_mx8 = "${libdir}/libgbm*${REALSOLIBS} ${libdir}/libgbm${SOLIBSDEV} ${libdir}/libgbm_viv${SOLIBSDEV}" | 285 | FILES:libgbm-imx:mx8 = "${libdir}/libgbm*${REALSOLIBS} ${libdir}/libgbm${SOLIBSDEV} ${libdir}/libgbm_viv${SOLIBSDEV}" |
295 | FILES_libgbm-imx-dev_mx8 = "${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | 286 | FILES:libgbm-imx-dev:mx8 = "${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" |
296 | RDEPENDS_libgbm-imx_append_mx8 = " libdrm" | 287 | RDEPENDS:libgbm-imx:append:mx8 = " libdrm" |
297 | INSANE_SKIP_libgbm-imx += "dev-so" | 288 | INSANE_SKIP:libgbm-imx += "dev-so" |
298 | 289 | ||
299 | FILES_libvulkan-imx = "${libdir}/libvulkan_VSI${REALSOLIBS} ${libdir}/libSPIRV_viv${SOLIBS}" | 290 | FILES:libvulkan-imx = "${libdir}/libvulkan_VSI${REALSOLIBS} ${libdir}/libSPIRV_viv${SOLIBS}" |
300 | FILES_libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" | 291 | FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" |
301 | 292 | ||
302 | FILES_libopenvx-imx = " \ | 293 | FILES:libopenvx-imx = " \ |
303 | ${libdir}/libOpenVX${REALSOLIBS} \ | 294 | ${libdir}/libOpenVX${REALSOLIBS} \ |
304 | ${libdir}/libOpenVXC${SOLIBS} \ | 295 | ${libdir}/libOpenVXC${SOLIBS} \ |
305 | ${libdir}/libOpenVXU${SOLIBS} \ | 296 | ${libdir}/libOpenVXU${SOLIBS} \ |
306 | ${libdir}/libOvx*${SOLIBS} \ | 297 | ${libdir}/libOvx*${SOLIBS} \ |
307 | ${libdir}/libArchModelSw${SOLIBS} \ | 298 | ${libdir}/libArchModelSw${SOLIBS} \ |
308 | " | 299 | " |
309 | FILES_libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}" | 300 | FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}" |
310 | RDEPENDS_libopenvx-imx = "libnn-imx" | 301 | RDEPENDS:libopenvx-imx = "libnn-imx" |
311 | 302 | ||
312 | FILES_libgl-imx = "${libdir}/libGL${REALSOLIBS}" | 303 | FILES:libgl-imx = "${libdir}/libGL${REALSOLIBS}" |
313 | FILES_libgl-imx-dev = "${libdir}/libGL${SOLIBSDEV} ${includedir}/GL" | 304 | FILES:libgl-imx-dev = "${libdir}/libGL${SOLIBSDEV} ${includedir}/GL" |
314 | 305 | ||
315 | # libEGL needs to open libGLESv1.so | 306 | # libEGL needs to open libGLESv1.so |
316 | INSANE_SKIP_libgles1-imx += "dev-so" | 307 | INSANE_SKIP:libgles1-imx += "dev-so" |
317 | FILES_libgles1-imx = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}" | 308 | FILES:libgles1-imx = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}" |
318 | FILES_libgles1-imx-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV} ${libdir}/pkgconfig/glesv1_cm.pc" | 309 | FILES:libgles1-imx-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV} ${libdir}/pkgconfig/glesv1_cm.pc" |
319 | RPROVIDES_libgles1-imx = "libgles-imx" | 310 | RPROVIDES:libgles1-imx = "libgles-imx" |
320 | RPROVIDES_libgles1-imx-dev = "libgles-imx-dev" | 311 | RPROVIDES:libgles1-imx-dev = "libgles-imx-dev" |
321 | 312 | ||
322 | # libEGL needs to open libGLESv2.so | 313 | # libEGL needs to open libGLESv2.so |
323 | INSANE_SKIP_libgles2-imx += "dev-so" | 314 | INSANE_SKIP:libgles2-imx += "dev-so" |
324 | FILES_libgles2-imx = "${libdir}/libGLESv2${REALSOLIBS} ${libdir}/libGLESv2${SOLIBS}" | 315 | FILES:libgles2-imx = "${libdir}/libGLESv2${REALSOLIBS} ${libdir}/libGLESv2${SOLIBS}" |
325 | FILES_libgles2-imx-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV} ${libdir}/pkgconfig/glesv2.pc" | 316 | FILES:libgles2-imx-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV} ${libdir}/pkgconfig/glesv2.pc" |
326 | RDEPENDS_libgles2-imx = "libglslc-imx" | 317 | RDEPENDS:libgles2-imx = "libglslc-imx" |
327 | 318 | ||
328 | FILES_libgles3-imx-dev = "${includedir}/GLES3" | 319 | FILES:libgles3-imx-dev = "${includedir}/GLES3" |
329 | # as long as there is no libgles3: ship libgles3-dev along with | 320 | # as long as there is no libgles3: ship libgles3-dev along with |
330 | # libgles2-dev - otherwise GLES3 headers have to be added manually | 321 | # libgles2-dev - otherwise GLES3 headers have to be added manually |
331 | RDEPENDS_libgles2-imx-dev += "libgles3-imx-dev" | 322 | RDEPENDS:libgles2-imx-dev += "libgles3-imx-dev" |
332 | 323 | ||
333 | FILES_libglslc-imx = "${libdir}/libGLSLC${SOLIBS}" | 324 | FILES:libglslc-imx = "${libdir}/libGLSLC${SOLIBS}" |
334 | FILES_libglslc-imx-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" | 325 | FILES:libglslc-imx-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" |
335 | 326 | ||
336 | FILES_libopencl-imx = "${libdir}/libOpenCL${REALSOLIBS} \ | 327 | FILES:libopencl-imx = "${libdir}/libOpenCL${REALSOLIBS} \ |
337 | ${libdir}/libVivanteOpenCL${SOLIBS} \ | 328 | ${libdir}/libVivanteOpenCL${SOLIBS} \ |
338 | ${libdir}/libLLVM_viv${SOLIBS} \ | 329 | ${libdir}/libLLVM_viv${SOLIBS} \ |
339 | ${sysconfdir}/OpenCL/vendors/Vivante.icd" | 330 | ${sysconfdir}/OpenCL/vendors/Vivante.icd" |
340 | FILES_libopencl-imx-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" | 331 | FILES:libopencl-imx-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" |
341 | RDEPENDS_libopencl-imx= "libclc-imx" | 332 | RDEPENDS:libopencl-imx= "libclc-imx" |
342 | |||
343 | FILES_libopenvg-imx = "${libdir}/libOpenVG*${REALSOLIBS}" | ||
344 | FILES_libopenvg-imx-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV} ${libdir}/pkgconfig/vg.pc" | ||
345 | |||
346 | FILES_libvdk-imx = "${libdir}/libVDK*${REALSOLIBS}" | ||
347 | FILES_libvdk-imx-dev = "${includedir}/*vdk*.h ${libdir}/libVDK${SOLIBSDEV}" | ||
348 | 333 | ||
349 | FILES_libvivante-dri-imx = "${libdir}/dri/vivante_dri.so" | 334 | FILES:libopenvg-imx = "${libdir}/libOpenVG*${REALSOLIBS}" |
350 | RDEPENDS_libvivante-dri-imx = "libdrm" | 335 | FILES:libopenvg-imx-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV} ${libdir}/pkgconfig/vg.pc" |
351 | 336 | ||
352 | INSANE_SKIP_libwayland-viv-imx += "dev-so" | 337 | FILES:libvdk-imx = "${libdir}/libVDK*${REALSOLIBS}" |
353 | FILES_libwayland-viv-imx = "${libdir}/libwayland-viv${REALSOLIBS} ${libdir}/libwayland-viv${SOLIBS}" | 338 | FILES:libvdk-imx-dev = "${includedir}/*vdk*.h ${libdir}/libVDK${SOLIBSDEV}" |
354 | FILES_libwayland-viv-imx-dev = "${includedir}/wayland-viv ${libdir})/libwayland-viv${SOLIBSDEV} ${libdir}/pkgconfig/wayland-viv.pc" | ||
355 | RPROVIDES_libwayland-viv-imx += "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'xf86-video-imx-vivante', '', d)}" | ||
356 | 339 | ||
357 | INSANE_SKIP_libgc-wayland-protocol-imx += "dev-so" | 340 | FILES:libvivante-dri-imx = "${libdir}/dri/vivante_dri.so" |
358 | FILES_libgc-wayland-protocol-imx = "${libdir}/libgc_wayland_protocol${REALSOLIBS} ${libdir}/libgc_wayland_protocol${SOLIBS}" | 341 | RDEPENDS:libvivante-dri-imx = "libdrm" |
359 | FILES_libgc-wayland-protocol-imx-dev = "${libdir}/libgc_wayland_protocol${SOLIBSDEV} ${libdir}/pkgconfig/gc_wayland_protocol.pc" | ||
360 | 342 | ||
361 | FILES_imx-gpu-viv-tools = "${bindir}/gmem_info" | 343 | FILES:imx-gpu-viv-tools = "${bindir}/gmem_info" |
362 | 344 | ||
363 | FILES_imx-gpu-viv-demos = "/opt" | 345 | FILES:imx-gpu-viv-demos = "/opt" |
364 | INSANE_SKIP_imx-gpu-viv-demos += "rpaths dev-deps" | 346 | INSANE_SKIP:imx-gpu-viv-demos += "rpaths dev-deps" |
365 | 347 | ||
366 | FILES_libnn-imx = "${libdir}/libNN*${SOLIBS} ${libdir}/libnn*${SOLIBS} ${libdir}/libneuralnetworks${SOLIBS}" | 348 | FILES:libnn-imx = "${libdir}/libNN*${SOLIBS}" |
367 | FILES_libnn-imx-dev = "${includedir}/nnrt" | ||
368 | 349 | ||
369 | # COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx8)" | 350 | # COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx8)" |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p1.4-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p1.4-aarch64.bb deleted file mode 100644 index b1b4bace..00000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p1.4-aarch64.bb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "2493f1264458ac13572cf328ae78f280" | ||
4 | SRC_URI[sha256sum] = "5f1579ac846dad3464e2e7c7569ea59c89bd12bc61b79344c1210d80e1ea91e1" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "(mx8)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p1.4-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p2.0-aarch32.bb index e6c1f8a3..e534f4e7 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p1.4-aarch32.bb +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p2.0-aarch32.bb | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | require imx-gpu-viv-6.inc | 5 | require imx-gpu-viv-6.inc |
6 | 6 | ||
7 | SRC_URI[md5sum] = "1270a84dcd0d0e985a8bfa9027988fb2" | 7 | SRC_URI[md5sum] = "a5c945615c8145ca4aa3d9a69bfdd2f7" |
8 | SRC_URI[sha256sum] = "ecdd5355f6aa0d154c3ddf575fde28d0212767d852d2843f3a75aba10c65cd46" | 8 | SRC_URI[sha256sum] = "1324b1aaf190110b80ad9a6f6533f4f50dce9e9ab8d49d8503f59764b151d219" |
9 | 9 | ||
10 | COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx7ulp)" | 10 | COMPATIBLE_MACHINE = "(mx6q|mx6dl|mx6sx|mx6sl|mx7ulp)" |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p2.0-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p2.0-aarch64.bb new file mode 100644 index 00000000..ff7f95f5 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.3.p2.0-aarch64.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "ff63b1fb889ae9fe41f0cca14d62b69c" | ||
4 | SRC_URI[sha256sum] = "003c30baefb1655790b475c3cdfa5cefbf81ea89ef37c6649b64f151dd23a52e" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "(mx8)" | ||
diff --git a/recipes-graphics/libepoxy/libepoxy_1.5.%.bbappend b/recipes-graphics/libepoxy/libepoxy_1.5.%.bbappend index 5b82b3f4..71baa53d 100644 --- a/recipes-graphics/libepoxy/libepoxy_1.5.%.bbappend +++ b/recipes-graphics/libepoxy/libepoxy_1.5.%.bbappend | |||
@@ -1,5 +1,5 @@ | |||
1 | # Append EGL_CFLAGS to CFLAGS | 1 | # Append EGL_CFLAGS to CFLAGS |
2 | CFLAGS_append_imxgpu = " \ | 2 | CFLAGS:append:imxgpu = " \ |
3 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_API_FB', d)} \ | 3 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_API_FB', d)} \ |
4 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DWL_EGL_PLATFORM', '', d)} \ | 4 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DWL_EGL_PLATFORM', '', d)} \ |
5 | " | 5 | " |
diff --git a/recipes-graphics/libsdl2/libsdl2_%.bbappend b/recipes-graphics/libsdl2/libsdl2_%.bbappend index 303ea63a..af9c97bb 100644 --- a/recipes-graphics/libsdl2/libsdl2_%.bbappend +++ b/recipes-graphics/libsdl2/libsdl2_%.bbappend | |||
@@ -1,8 +1,8 @@ | |||
1 | # what vivante driver does libsdl2 mean? Anyway it fails with missing functions as | 1 | # what vivante driver does libsdl2 mean? Anyway it fails with missing functions as |
2 | # VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ... | 2 | # VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ... |
3 | EXTRA_OECONF_append_imxgpu2d = " --disable-video-vivante" | 3 | EXTRA_OECONF:append:imxgpu2d = " --disable-video-vivante" |
4 | 4 | ||
5 | CFLAGS_append_imxgpu = " -DLINUX \ | 5 | CFLAGS:append:imxgpu = " -DLINUX \ |
6 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_API_FB', d)} \ | 6 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_API_FB', d)} \ |
7 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DWL_EGL_PLATFORM', '', d)} \ | 7 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DWL_EGL_PLATFORM', '', d)} \ |
8 | " | 8 | " |
diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend index 301f1b59..4b518185 100644 --- a/recipes-graphics/mesa/mesa-demos_%.bbappend +++ b/recipes-graphics/mesa/mesa-demos_%.bbappend | |||
@@ -1,26 +1,26 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
2 | 2 | ||
3 | SRC_URI_append_imxgpu = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \ | 3 | SRC_URI:append:imxgpu = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \ |
4 | file://fix-clear-build-break.patch \ | 4 | file://fix-clear-build-break.patch \ |
5 | file://Add-OpenVG-demos-to-support-wayland.patch" | 5 | file://Add-OpenVG-demos-to-support-wayland.patch" |
6 | 6 | ||
7 | PACKAGECONFIG_REMOVE_IF_2D_ONLY = "" | 7 | PACKAGECONFIG_REMOVE_IF_2D_ONLY = "" |
8 | PACKAGECONFIG_REMOVE_IF_2D_ONLY_imxgpu2d = "gles1 gles2" | 8 | PACKAGECONFIG_REMOVE_IF_2D_ONLY:imxgpu2d = "gles1 gles2" |
9 | PACKAGECONFIG_REMOVE_IF_2D_ONLY_imxgpu3d = "" | 9 | PACKAGECONFIG_REMOVE_IF_2D_ONLY:imxgpu3d = "" |
10 | PACKAGECONFIG_REMOVE_IF_GPU = "" | 10 | PACKAGECONFIG_REMOVE_IF_GPU = "" |
11 | PACKAGECONFIG_REMOVE_IF_GPU_imxgpu = " \ | 11 | PACKAGECONFIG_REMOVE_IF_GPU:imxgpu = " \ |
12 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \ | 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \ |
13 | " | 13 | " |
14 | PACKAGECONFIG_remove = " \ | 14 | PACKAGECONFIG:remove = " \ |
15 | ${PACKAGECONFIG_REMOVE_IF_2D_ONLY} \ | 15 | ${PACKAGECONFIG_REMOVE_IF_2D_ONLY} \ |
16 | ${PACKAGECONFIG_REMOVE_IF_GPU} \ | 16 | ${PACKAGECONFIG_REMOVE_IF_GPU} \ |
17 | " | 17 | " |
18 | 18 | ||
19 | PACKAGECONFIG_APPEND_IF_GPU = "" | 19 | PACKAGECONFIG_APPEND_IF_GPU = "" |
20 | PACKAGECONFIG_APPEND_IF_GPU_imxgpu = " \ | 20 | PACKAGECONFIG_APPEND_IF_GPU:imxgpu = " \ |
21 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d)} \ | 21 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d)} \ |
22 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glut', '', d)} \ | 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glut', '', d)} \ |
23 | " | 23 | " |
24 | PACKAGECONFIG_append = " \ | 24 | PACKAGECONFIG:append = " \ |
25 | ${PACKAGECONFIG_APPEND_IF_GPU} \ | 25 | ${PACKAGECONFIG_APPEND_IF_GPU} \ |
26 | " | 26 | " |
diff --git a/recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb b/recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb index 2a32c448..87d05365 100644 --- a/recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb +++ b/recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb | |||
@@ -12,7 +12,7 @@ SRC_URI = "\ | |||
12 | do_configure[noexec] = "1" | 12 | do_configure[noexec] = "1" |
13 | do_compile[noexec] = "1" | 13 | do_compile[noexec] = "1" |
14 | 14 | ||
15 | do_install_use-mainline-bsp() { | 15 | do_install:use-mainline-bsp() { |
16 | # MESA global envirronment variables | 16 | # MESA global envirronment variables |
17 | 17 | ||
18 | # systemd | 18 | # systemd |
@@ -28,4 +28,4 @@ do_install_use-mainline-bsp() { | |||
28 | fi | 28 | fi |
29 | } | 29 | } |
30 | 30 | ||
31 | ALLOW_EMPTY_${PN} = "1" | 31 | ALLOW_EMPTY:${PN} = "1" |
diff --git a/recipes-graphics/mesa/mesa-gl_%.bbappend b/recipes-graphics/mesa/mesa-gl_%.bbappend index ca1c8f46..dafd27f0 100644 --- a/recipes-graphics/mesa/mesa-gl_%.bbappend +++ b/recipes-graphics/mesa/mesa-gl_%.bbappend | |||
@@ -1 +1 @@ | |||
COMPATIBLE_MACHINE_imxgpu = "(-)" | COMPATIBLE_MACHINE:imxgpu = "(-)" | ||
diff --git a/recipes-graphics/mesa/mesa/0001-dri-add-createImageWithModifiers2-interface.patch b/recipes-graphics/mesa/mesa/0001-dri-add-createImageWithModifiers2-interface.patch deleted file mode 100644 index 261c54cc..00000000 --- a/recipes-graphics/mesa/mesa/0001-dri-add-createImageWithModifiers2-interface.patch +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | From afd8b2f498a417de6ecdbd13045d97c9ecf4391b Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Ser <contact@emersion.fr> | ||
3 | Date: Mon, 14 Dec 2020 18:32:47 +0100 | ||
4 | Subject: [PATCH] dri: add createImageWithModifiers2 interface | ||
5 | |||
6 | With the addition of createImageWithModifiers usage flags were | ||
7 | dropped, as it was believed at the time that modifers will be a | ||
8 | full replacement for the usage flags. This has turned out to be | ||
9 | untrue, as modifiers are not able to describe buffer placement. | ||
10 | |||
11 | Add a new version of the interface, that allows to specifiy | ||
12 | use flags in addition to the modifier. | ||
13 | |||
14 | Signed-off-by: Simon Ser <contact@emersion.fr> | ||
15 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
16 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
17 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
18 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/afd8b2f498a417de6ecdbd13045d97c9ecf4391b] | ||
19 | --- | ||
20 | include/GL/internal/dri_interface.h | 24 +++++++++++++++++++++++- | ||
21 | 1 file changed, 23 insertions(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h | ||
24 | index 9b85e67ce49..a7d9903f94e 100644 | ||
25 | --- a/include/GL/internal/dri_interface.h | ||
26 | +++ b/include/GL/internal/dri_interface.h | ||
27 | @@ -1328,7 +1328,7 @@ struct __DRIdri2ExtensionRec { | ||
28 | * extensions. | ||
29 | */ | ||
30 | #define __DRI_IMAGE "DRI_IMAGE" | ||
31 | -#define __DRI_IMAGE_VERSION 18 | ||
32 | +#define __DRI_IMAGE_VERSION 19 | ||
33 | |||
34 | /** | ||
35 | * These formats correspond to the similarly named MESA_FORMAT_* | ||
36 | @@ -1803,6 +1803,28 @@ struct __DRIimageExtensionRec { | ||
37 | uint32_t flags, | ||
38 | unsigned *error, | ||
39 | void *loaderPrivate); | ||
40 | + | ||
41 | + /** | ||
42 | + * Creates an image with implementation's favorite modifiers and the | ||
43 | + * provided usage flags. | ||
44 | + * | ||
45 | + * This acts like createImageWithModifiers except usage is also specified. | ||
46 | + * | ||
47 | + * The created image should be destroyed with destroyImage(). | ||
48 | + * | ||
49 | + * Returns the new DRIimage. The chosen modifier can be obtained later on | ||
50 | + * and passed back to things like the kernel's AddFB2 interface. | ||
51 | + * | ||
52 | + * \sa __DRIimageRec::createImage | ||
53 | + * | ||
54 | + * \since 19 | ||
55 | + */ | ||
56 | + __DRIimage *(*createImageWithModifiers2)(__DRIscreen *screen, | ||
57 | + int width, int height, int format, | ||
58 | + const uint64_t *modifiers, | ||
59 | + const unsigned int modifier_count, | ||
60 | + unsigned int use, | ||
61 | + void *loaderPrivate); | ||
62 | }; | ||
63 | |||
64 | |||
65 | -- | ||
66 | 2.31.1 | ||
67 | |||
diff --git a/recipes-graphics/mesa/mesa/0002-dri-add-loader_dri_create_image-helper.patch b/recipes-graphics/mesa/mesa/0002-dri-add-loader_dri_create_image-helper.patch deleted file mode 100644 index 1e5d0f69..00000000 --- a/recipes-graphics/mesa/mesa/0002-dri-add-loader_dri_create_image-helper.patch +++ /dev/null | |||
@@ -1,336 +0,0 @@ | |||
1 | From cb9ae4273d680ab34fc2ca933c4f960e7f086275 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:39:32 +0100 | ||
4 | Subject: [PATCH] dri: add loader_dri_create_image helper | ||
5 | |||
6 | The DRI image extension already has two different ways to allocate an | ||
7 | image (with and without a modifier) and will soon grow a third one. | ||
8 | Add a helper, which handles calling the appropriate implementation to | ||
9 | get rid of code duplication in the winsys. | ||
10 | |||
11 | This convert the two obvious call sites (GBM dri and EGL wayland) | ||
12 | that profit from the code dedup. | ||
13 | |||
14 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
15 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
16 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
17 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/cb9ae4273d680ab34fc2ca933c4f960e7f086275] | ||
18 | --- | ||
19 | src/egl/drivers/dri2/platform_wayland.c | 60 +++++++--------------- | ||
20 | src/gbm/backends/dri/gbm_dri.c | 53 +++++-------------- | ||
21 | src/loader/Makefile.sources | 2 + | ||
22 | src/loader/loader_dri_helper.c | 68 +++++++++++++++++++++++++ | ||
23 | src/loader/loader_dri_helper.h | 33 ++++++++++++ | ||
24 | src/loader/meson.build | 2 +- | ||
25 | 6 files changed, 134 insertions(+), 84 deletions(-) | ||
26 | create mode 100644 src/loader/loader_dri_helper.c | ||
27 | create mode 100644 src/loader/loader_dri_helper.h | ||
28 | |||
29 | diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c | ||
30 | index 26b6711952c..180380b4c4c 100644 | ||
31 | --- a/src/egl/drivers/dri2/platform_wayland.c | ||
32 | +++ b/src/egl/drivers/dri2/platform_wayland.c | ||
33 | @@ -40,6 +40,7 @@ | ||
34 | #include <sys/mman.h> | ||
35 | |||
36 | #include "egl_dri2.h" | ||
37 | +#include "loader_dri_helper.h" | ||
38 | #include "loader.h" | ||
39 | #include "util/u_vector.h" | ||
40 | #include "util/anon_file.h" | ||
41 | @@ -578,28 +579,16 @@ get_back_bo(struct dri2_egl_surface *dri2_surf) | ||
42 | dri2_surf->back->linear_copy == NULL) { | ||
43 | /* The LINEAR modifier should be a perfect alias of the LINEAR use | ||
44 | * flag; try the new interface first before the old, then fall back. */ | ||
45 | - if (dri2_dpy->image->base.version >= 15 && | ||
46 | - dri2_dpy->image->createImageWithModifiers) { | ||
47 | - uint64_t linear_mod = DRM_FORMAT_MOD_LINEAR; | ||
48 | - | ||
49 | - dri2_surf->back->linear_copy = | ||
50 | - dri2_dpy->image->createImageWithModifiers(dri2_dpy->dri_screen, | ||
51 | - dri2_surf->base.Width, | ||
52 | - dri2_surf->base.Height, | ||
53 | - linear_dri_image_format, | ||
54 | - &linear_mod, | ||
55 | - 1, | ||
56 | - NULL); | ||
57 | - } else { | ||
58 | - dri2_surf->back->linear_copy = | ||
59 | - dri2_dpy->image->createImage(dri2_dpy->dri_screen, | ||
60 | - dri2_surf->base.Width, | ||
61 | - dri2_surf->base.Height, | ||
62 | - linear_dri_image_format, | ||
63 | - use_flags | | ||
64 | - __DRI_IMAGE_USE_LINEAR, | ||
65 | - NULL); | ||
66 | - } | ||
67 | + uint64_t linear_mod = DRM_FORMAT_MOD_LINEAR; | ||
68 | + | ||
69 | + dri2_surf->back->linear_copy = | ||
70 | + loader_dri_create_image(dri2_dpy->dri_screen, dri2_dpy->image, | ||
71 | + dri2_surf->base.Width, | ||
72 | + dri2_surf->base.Height, | ||
73 | + linear_dri_image_format, | ||
74 | + use_flags | __DRI_IMAGE_USE_LINEAR, | ||
75 | + &linear_mod, 1, NULL); | ||
76 | + | ||
77 | if (dri2_surf->back->linear_copy == NULL) | ||
78 | return -1; | ||
79 | } | ||
80 | @@ -609,26 +598,13 @@ get_back_bo(struct dri2_egl_surface *dri2_surf) | ||
81 | * createImageWithModifiers, then fall back to the old createImage, | ||
82 | * and hope it allocates an image which is acceptable to the winsys. | ||
83 | */ | ||
84 | - if (num_modifiers && dri2_dpy->image->base.version >= 15 && | ||
85 | - dri2_dpy->image->createImageWithModifiers) { | ||
86 | - dri2_surf->back->dri_image = | ||
87 | - dri2_dpy->image->createImageWithModifiers(dri2_dpy->dri_screen, | ||
88 | - dri2_surf->base.Width, | ||
89 | - dri2_surf->base.Height, | ||
90 | - dri_image_format, | ||
91 | - modifiers, | ||
92 | - num_modifiers, | ||
93 | - NULL); | ||
94 | - } else { | ||
95 | - dri2_surf->back->dri_image = | ||
96 | - dri2_dpy->image->createImage(dri2_dpy->dri_screen, | ||
97 | - dri2_surf->base.Width, | ||
98 | - dri2_surf->base.Height, | ||
99 | - dri_image_format, | ||
100 | - dri2_dpy->is_different_gpu ? | ||
101 | - 0 : use_flags, | ||
102 | - NULL); | ||
103 | - } | ||
104 | + dri2_surf->back->dri_image = | ||
105 | + loader_dri_create_image(dri2_dpy->dri_screen, dri2_dpy->image, | ||
106 | + dri2_surf->base.Width, | ||
107 | + dri2_surf->base.Height, | ||
108 | + dri_image_format, | ||
109 | + dri2_dpy->is_different_gpu ? 0 : use_flags, | ||
110 | + modifiers, num_modifiers, NULL); | ||
111 | |||
112 | dri2_surf->back->age = 0; | ||
113 | } | ||
114 | diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c | ||
115 | index 751b2e56497..dff0b3c7ecf 100644 | ||
116 | --- a/src/gbm/backends/dri/gbm_dri.c | ||
117 | +++ b/src/gbm/backends/dri/gbm_dri.c | ||
118 | @@ -47,6 +47,7 @@ | ||
119 | #include "gbm_driint.h" | ||
120 | |||
121 | #include "gbmint.h" | ||
122 | +#include "loader_dri_helper.h" | ||
123 | #include "loader.h" | ||
124 | #include "util/debug.h" | ||
125 | #include "util/macros.h" | ||
126 | @@ -1151,8 +1152,7 @@ gbm_dri_bo_create(struct gbm_device *gbm, | ||
127 | struct gbm_dri_device *dri = gbm_dri_device(gbm); | ||
128 | struct gbm_dri_bo *bo; | ||
129 | int dri_format; | ||
130 | - unsigned dri_use = 0, i; | ||
131 | - bool has_valid_modifier; | ||
132 | + unsigned dri_use = 0; | ||
133 | |||
134 | /* Callers of this may specify a modifier, or a dri usage, but not both. The | ||
135 | * newer modifier interface deprecates the older usage flags. | ||
136 | @@ -1191,50 +1191,21 @@ gbm_dri_bo_create(struct gbm_device *gbm, | ||
137 | /* Gallium drivers requires shared in order to get the handle/stride */ | ||
138 | dri_use |= __DRI_IMAGE_USE_SHARE; | ||
139 | |||
140 | - if (modifiers) { | ||
141 | - if (!dri->image || dri->image->base.version < 14 || | ||
142 | - !dri->image->createImageWithModifiers) { | ||
143 | - errno = ENOSYS; | ||
144 | - goto failed; | ||
145 | - } | ||
146 | - | ||
147 | - /* It's acceptable to create an image with INVALID modifier in the list, | ||
148 | - * but it cannot be on the only modifier (since it will certainly fail | ||
149 | - * later). While we could easily catch this after modifier creation, doing | ||
150 | - * the check here is a convenient debug check likely pointing at whatever | ||
151 | - * interface the client is using to build its modifier list. | ||
152 | - */ | ||
153 | - has_valid_modifier = false; | ||
154 | - for (i = 0; i < count; i++) { | ||
155 | - if (modifiers[i] != DRM_FORMAT_MOD_INVALID) { | ||
156 | - has_valid_modifier = true; | ||
157 | - break; | ||
158 | - } | ||
159 | - } | ||
160 | - if (!has_valid_modifier) { | ||
161 | - errno = EINVAL; | ||
162 | - goto failed; | ||
163 | - } | ||
164 | - | ||
165 | - bo->image = | ||
166 | - dri->image->createImageWithModifiers(dri->screen, | ||
167 | - width, height, | ||
168 | - dri_format, | ||
169 | - modifiers, count, | ||
170 | - bo); | ||
171 | - | ||
172 | - if (bo->image) { | ||
173 | - /* The client passed in a list of invalid modifiers */ | ||
174 | - assert(gbm_dri_bo_get_modifier(&bo->base) != DRM_FORMAT_MOD_INVALID); | ||
175 | - } | ||
176 | - } else { | ||
177 | - bo->image = dri->image->createImage(dri->screen, width, height, | ||
178 | - dri_format, dri_use, bo); | ||
179 | + if (modifiers && (dri->image->base.version < 14 || | ||
180 | + !dri->image->createImageWithModifiers)) { | ||
181 | + errno = ENOSYS; | ||
182 | + return NULL; | ||
183 | } | ||
184 | |||
185 | + bo->image = loader_dri_create_image(dri->screen, dri->image, width, height, | ||
186 | + dri_format, dri_use, modifiers, count, | ||
187 | + bo); | ||
188 | if (bo->image == NULL) | ||
189 | goto failed; | ||
190 | |||
191 | + if (modifiers) | ||
192 | + assert(gbm_dri_bo_get_modifier(&bo->base) != DRM_FORMAT_MOD_INVALID); | ||
193 | + | ||
194 | dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE, | ||
195 | &bo->base.handle.s32); | ||
196 | dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_STRIDE, | ||
197 | diff --git a/src/loader/Makefile.sources b/src/loader/Makefile.sources | ||
198 | index b61ef1cd943..6627222ac30 100644 | ||
199 | --- a/src/loader/Makefile.sources | ||
200 | +++ b/src/loader/Makefile.sources | ||
201 | @@ -1,4 +1,6 @@ | ||
202 | LOADER_C_FILES := \ | ||
203 | + loader_dri_helper.c \ | ||
204 | + loader_dri_helper.h \ | ||
205 | loader.c \ | ||
206 | loader.h \ | ||
207 | pci_id_driver_map.c \ | ||
208 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
209 | new file mode 100644 | ||
210 | index 00000000000..21419f087d6 | ||
211 | --- /dev/null | ||
212 | +++ b/src/loader/loader_dri_helper.c | ||
213 | @@ -0,0 +1,68 @@ | ||
214 | +/* | ||
215 | + * Permission to use, copy, modify, distribute, and sell this software and its | ||
216 | + * documentation for any purpose is hereby granted without fee, provided that | ||
217 | + * the above copyright notice appear in all copies and that both that copyright | ||
218 | + * notice and this permission notice appear in supporting documentation, and | ||
219 | + * that the name of the copyright holders not be used in advertising or | ||
220 | + * publicity pertaining to distribution of the software without specific, | ||
221 | + * written prior permission. The copyright holders make no representations | ||
222 | + * about the suitability of this software for any purpose. It is provided "as | ||
223 | + * is" without express or implied warranty. | ||
224 | + * | ||
225 | + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
226 | + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | ||
227 | + * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
228 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
229 | + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
230 | + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | ||
231 | + * OF THIS SOFTWARE. | ||
232 | + */ | ||
233 | + | ||
234 | +#include <errno.h> | ||
235 | +#include <stdbool.h> | ||
236 | +#include <stdio.h> | ||
237 | +#include <sys/types.h> | ||
238 | + | ||
239 | +#include <GL/gl.h> /* dri_interface needs GL types */ | ||
240 | +#include <GL/internal/dri_interface.h> | ||
241 | + | ||
242 | +#include "drm-uapi/drm_fourcc.h" | ||
243 | +#include "loader_dri_helper.h" | ||
244 | + | ||
245 | +__DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
246 | + const __DRIimageExtension *image, | ||
247 | + uint32_t width, uint32_t height, | ||
248 | + uint32_t dri_format, uint32_t dri_usage, | ||
249 | + const uint64_t *modifiers, | ||
250 | + unsigned int modifiers_count, | ||
251 | + void *loaderPrivate) | ||
252 | +{ | ||
253 | + if (modifiers && | ||
254 | + image->base.version > 14 && image->createImageWithModifiers) { | ||
255 | + bool has_valid_modifier = false; | ||
256 | + int i; | ||
257 | + | ||
258 | + /* It's acceptable to create an image with INVALID modifier in the list, | ||
259 | + * but it cannot be on the only modifier (since it will certainly fail | ||
260 | + * later). While we could easily catch this after modifier creation, doing | ||
261 | + * the check here is a convenient debug check likely pointing at whatever | ||
262 | + * interface the client is using to build its modifier list. | ||
263 | + */ | ||
264 | + for (i = 0; i < modifiers_count; i++) { | ||
265 | + if (modifiers[i] != DRM_FORMAT_MOD_INVALID) { | ||
266 | + has_valid_modifier = true; | ||
267 | + break; | ||
268 | + } | ||
269 | + } | ||
270 | + if (!has_valid_modifier) | ||
271 | + return NULL; | ||
272 | + | ||
273 | + return image->createImageWithModifiers(screen, width, height, | ||
274 | + dri_format, modifiers, | ||
275 | + modifiers_count, loaderPrivate); | ||
276 | + } | ||
277 | + | ||
278 | + /* No modifier given or fallback to the legacy createImage allowed */ | ||
279 | + return image->createImage(screen, width, height, dri_format, dri_usage, | ||
280 | + loaderPrivate); | ||
281 | +} | ||
282 | diff --git a/src/loader/loader_dri_helper.h b/src/loader/loader_dri_helper.h | ||
283 | new file mode 100644 | ||
284 | index 00000000000..e0aae69477b | ||
285 | --- /dev/null | ||
286 | +++ b/src/loader/loader_dri_helper.h | ||
287 | @@ -0,0 +1,33 @@ | ||
288 | +/* | ||
289 | + * Permission to use, copy, modify, distribute, and sell this software and its | ||
290 | + * documentation for any purpose is hereby granted without fee, provided that | ||
291 | + * the above copyright notice appear in all copies and that both that copyright | ||
292 | + * notice and this permission notice appear in supporting documentation, and | ||
293 | + * that the name of the copyright holders not be used in advertising or | ||
294 | + * publicity pertaining to distribution of the software without specific, | ||
295 | + * written prior permission. The copyright holders make no representations | ||
296 | + * about the suitability of this software for any purpose. It is provided "as | ||
297 | + * is" without express or implied warranty. | ||
298 | + * | ||
299 | + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
300 | + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | ||
301 | + * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
302 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
303 | + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
304 | + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | ||
305 | + * OF THIS SOFTWARE. | ||
306 | + */ | ||
307 | + | ||
308 | +#include <stdbool.h> | ||
309 | +#include <sys/types.h> | ||
310 | + | ||
311 | +#include <GL/gl.h> /* dri_interface needs GL types */ | ||
312 | +#include <GL/internal/dri_interface.h> | ||
313 | + | ||
314 | +__DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
315 | + const __DRIimageExtension *image, | ||
316 | + uint32_t width, uint32_t height, | ||
317 | + uint32_t dri_format, uint32_t dri_usage, | ||
318 | + const uint64_t *modifiers, | ||
319 | + unsigned int modifiers_count, | ||
320 | + void *loaderPrivate); | ||
321 | diff --git a/src/loader/meson.build b/src/loader/meson.build | ||
322 | index 34a43e33f09..57a93c3aa17 100644 | ||
323 | --- a/src/loader/meson.build | ||
324 | +++ b/src/loader/meson.build | ||
325 | @@ -47,7 +47,7 @@ endif | ||
326 | |||
327 | libloader = static_library( | ||
328 | 'loader', | ||
329 | - ['loader.c', 'pci_id_driver_map.c'], | ||
330 | + ['loader_dri_helper.c', 'loader.c', 'pci_id_driver_map.c'], | ||
331 | c_args : loader_c_args, | ||
332 | gnu_symbol_visibility : 'hidden', | ||
333 | include_directories : [inc_include, inc_src, inc_util], | ||
334 | -- | ||
335 | 2.31.1 | ||
336 | |||
diff --git a/recipes-graphics/mesa/mesa/0003-loader-dri3-convert-to-loader_dri_create_image.patch b/recipes-graphics/mesa/mesa/0003-loader-dri3-convert-to-loader_dri_create_image.patch deleted file mode 100644 index daba1a50..00000000 --- a/recipes-graphics/mesa/mesa/0003-loader-dri3-convert-to-loader_dri_create_image.patch +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | From 8fd5b16efc60ad666b05ec745109d0a482b6157b Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:52:28 +0100 | ||
4 | Subject: [PATCH] loader/dri3: convert to loader_dri_create_image | ||
5 | |||
6 | Get rid of the code duplication and makes it easier to hook in a | ||
7 | new createImageWithModifiers2, but obscures the code flow a bit. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/8fd5b16efc60ad666b05ec745109d0a482b6157b] | ||
13 | --- | ||
14 | src/loader/loader_dri3_helper.c | 40 ++++++++++----------------------- | ||
15 | 1 file changed, 12 insertions(+), 28 deletions(-) | ||
16 | |||
17 | diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c | ||
18 | index 6c4b704ae5b..c5e340e6942 100644 | ||
19 | --- a/src/loader/loader_dri3_helper.c | ||
20 | +++ b/src/loader/loader_dri3_helper.c | ||
21 | @@ -34,6 +34,7 @@ | ||
22 | |||
23 | #include <X11/Xlib-xcb.h> | ||
24 | |||
25 | +#include "loader_dri_helper.h" | ||
26 | #include "loader_dri3_helper.h" | ||
27 | #include "util/macros.h" | ||
28 | #include "drm-uapi/drm_fourcc.h" | ||
29 | @@ -1314,6 +1315,8 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format, | ||
30 | struct xshmfence *shm_fence; | ||
31 | int buffer_fds[4], fence_fd; | ||
32 | int num_planes = 0; | ||
33 | + uint64_t *modifiers = NULL; | ||
34 | + uint32_t count = 0; | ||
35 | int i, mod; | ||
36 | int ret; | ||
37 | |||
38 | @@ -1348,8 +1351,6 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format, | ||
39 | xcb_dri3_get_supported_modifiers_cookie_t mod_cookie; | ||
40 | xcb_dri3_get_supported_modifiers_reply_t *mod_reply; | ||
41 | xcb_generic_error_t *error = NULL; | ||
42 | - uint64_t *modifiers = NULL; | ||
43 | - uint32_t count = 0; | ||
44 | |||
45 | mod_cookie = xcb_dri3_get_supported_modifiers(draw->conn, | ||
46 | draw->window, | ||
47 | @@ -1395,34 +1396,17 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format, | ||
48 | } | ||
49 | |||
50 | free(mod_reply); | ||
51 | - | ||
52 | - /* don't use createImageWithModifiers() if we have no | ||
53 | - * modifiers, other things depend on the use flags when | ||
54 | - * there are no modifiers to know that a buffer can be | ||
55 | - * shared. | ||
56 | - */ | ||
57 | - if (modifiers) { | ||
58 | - buffer->image = draw->ext->image->createImageWithModifiers(draw->dri_screen, | ||
59 | - width, height, | ||
60 | - format, | ||
61 | - modifiers, | ||
62 | - count, | ||
63 | - buffer); | ||
64 | - } | ||
65 | - | ||
66 | - free(modifiers); | ||
67 | } | ||
68 | #endif | ||
69 | - if (!buffer->image) | ||
70 | - buffer->image = draw->ext->image->createImage(draw->dri_screen, | ||
71 | - width, height, | ||
72 | - format, | ||
73 | - __DRI_IMAGE_USE_SHARE | | ||
74 | - __DRI_IMAGE_USE_SCANOUT | | ||
75 | - __DRI_IMAGE_USE_BACKBUFFER | | ||
76 | - (draw->is_protected_content ? | ||
77 | - __DRI_IMAGE_USE_PROTECTED : 0), | ||
78 | - buffer); | ||
79 | + buffer->image = loader_dri_create_image(draw->dri_screen, draw->ext->image, | ||
80 | + width, height, format, | ||
81 | + __DRI_IMAGE_USE_SHARE | | ||
82 | + __DRI_IMAGE_USE_SCANOUT | | ||
83 | + __DRI_IMAGE_USE_BACKBUFFER | | ||
84 | + (draw->is_protected_content ? | ||
85 | + __DRI_IMAGE_USE_PROTECTED : 0), | ||
86 | + modifiers, count, buffer); | ||
87 | + free(modifiers); | ||
88 | |||
89 | pixmap_buffer = buffer->image; | ||
90 | |||
91 | -- | ||
92 | 2.31.1 | ||
93 | |||
diff --git a/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch b/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch deleted file mode 100644 index c80978a7..00000000 --- a/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From c03e79d7831f253b16d6f52f2fb959eb02257a8b Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:59:21 +0100 | ||
4 | Subject: [PATCH] loader/dri: hook up createImageWithModifiers2 | ||
5 | |||
6 | Call into the new modifiers with usage createImage variant when available | ||
7 | to provide the DRI implementation with more context about the allocation. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/c03e79d7831f253b16d6f52f2fb959eb02257a8b] | ||
13 | --- | ||
14 | src/loader/loader_dri_helper.c | 12 +++++++++--- | ||
15 | 1 file changed, 9 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
18 | index 21419f087d6..972ca2da26a 100644 | ||
19 | --- a/src/loader/loader_dri_helper.c | ||
20 | +++ b/src/loader/loader_dri_helper.c | ||
21 | @@ -57,9 +57,15 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
22 | if (!has_valid_modifier) | ||
23 | return NULL; | ||
24 | |||
25 | - return image->createImageWithModifiers(screen, width, height, | ||
26 | - dri_format, modifiers, | ||
27 | - modifiers_count, loaderPrivate); | ||
28 | + if (image->base.version >= 19 && image->createImageWithModifiers2) | ||
29 | + return image->createImageWithModifiers2(screen, width, height, | ||
30 | + dri_format, modifiers, | ||
31 | + modifiers_count, dri_usage, | ||
32 | + loaderPrivate); | ||
33 | + else | ||
34 | + return image->createImageWithModifiers(screen, width, height, | ||
35 | + dri_format, modifiers, | ||
36 | + modifiers_count, loaderPrivate); | ||
37 | } | ||
38 | |||
39 | /* No modifier given or fallback to the legacy createImage allowed */ | ||
40 | -- | ||
41 | 2.31.1 | ||
42 | |||
diff --git a/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch b/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch deleted file mode 100644 index 57251ed7..00000000 --- a/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 3701cb9439058e71c1981bd80c5a9e1383815b08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 14:26:23 +0100 | ||
4 | Subject: [PATCH] gallium/dri: copy image use in dup_image | ||
5 | |||
6 | Don't lose the use flags when dup'ing an image. | ||
7 | |||
8 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
9 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
10 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
11 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/3701cb9439058e71c1981bd80c5a9e1383815b08] | ||
12 | --- | ||
13 | src/gallium/frontends/dri/dri2.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c | ||
17 | index 9999b31b022..08a9ed9693c 100644 | ||
18 | --- a/src/gallium/frontends/dri/dri2.c | ||
19 | +++ b/src/gallium/frontends/dri/dri2.c | ||
20 | @@ -1326,6 +1326,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate) | ||
21 | img->dri_format = image->dri_format; | ||
22 | /* This should be 0 for sub images, but dup is also used for base images. */ | ||
23 | img->dri_components = image->dri_components; | ||
24 | + img->use = image->use; | ||
25 | img->loader_private = loaderPrivate; | ||
26 | img->sPriv = image->sPriv; | ||
27 | |||
28 | -- | ||
29 | 2.31.1 | ||
30 | |||
diff --git a/recipes-graphics/mesa/mesa/0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch b/recipes-graphics/mesa/mesa/0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch deleted file mode 100644 index 765cc0ac..00000000 --- a/recipes-graphics/mesa/mesa/0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 77fcf700826d6637e4e407c73c209f3b1718a26e Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Thu, 20 May 2021 18:07:12 +0200 | ||
4 | Subject: [PATCH] dri: don't call modifier interfaces when modifiers_count is 0 | ||
5 | |||
6 | The wayland EGL platform sets the modifier count to 0 in some cases | ||
7 | to signal that modifiers should not be used, even if a list of modifiers | ||
8 | is present. The loader_dri_create_image helper didn't handle this case | ||
9 | properly and called the modifierful driver interface with a 0 modifier | ||
10 | count, leading to the obvious outcome of the driver being unable to | ||
11 | allocate an image. | ||
12 | |||
13 | Fixes: cb9ae4273d68 ("dri: add loader_dri_create_image helper") | ||
14 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
15 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10903> | ||
16 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/77fcf700826d6637e4e407c73c209f3b1718a26e] | ||
17 | --- | ||
18 | src/loader/loader_dri_helper.c | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
22 | index 972ca2da26a..ff6ce35953f 100644 | ||
23 | --- a/src/loader/loader_dri_helper.c | ||
24 | +++ b/src/loader/loader_dri_helper.c | ||
25 | @@ -37,7 +37,7 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
26 | unsigned int modifiers_count, | ||
27 | void *loaderPrivate) | ||
28 | { | ||
29 | - if (modifiers && | ||
30 | + if (modifiers && modifiers_count > 0 && | ||
31 | image->base.version > 14 && image->createImageWithModifiers) { | ||
32 | bool has_valid_modifier = false; | ||
33 | int i; | ||
34 | -- | ||
35 | 2.31.1 | ||
36 | |||
diff --git a/recipes-graphics/mesa/mesa/0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch b/recipes-graphics/mesa/mesa/0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch deleted file mode 100644 index 43bd86bd..00000000 --- a/recipes-graphics/mesa/mesa/0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 3824429da0e0e68b78534b1e0ab7e386bcb2b2e2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 14:59:52 +0100 | ||
4 | Subject: [PATCH] frontend/dri: add EXPLICIT_FLUSH hint in | ||
5 | dri2_resource_get_param | ||
6 | |||
7 | dri2_resource_get_param() is called from two different places right now. | ||
8 | Only one of them adds the EXPLICIT_FLUSH hint to the handle usage, which | ||
9 | may disable the optimizations provided by this hint without a reason. | ||
10 | |||
11 | Make sure to always add this hint when appropriate. | ||
12 | |||
13 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
14 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7603> | ||
15 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/3824429da0e0e68b78534b1e0ab7e386bcb2b2e2] | ||
16 | --- | ||
17 | src/gallium/frontends/dri/dri2.c | 6 +++--- | ||
18 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
19 | |||
20 | diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c | ||
21 | index 0220513368e..8ed47c25825 100644 | ||
22 | --- a/src/gallium/frontends/dri/dri2.c | ||
23 | +++ b/src/gallium/frontends/dri/dri2.c | ||
24 | @@ -1252,6 +1252,9 @@ dri2_resource_get_param(__DRIimage *image, enum pipe_resource_param param, | ||
25 | if (!pscreen->resource_get_param) | ||
26 | return false; | ||
27 | |||
28 | + if (image->use & __DRI_IMAGE_USE_BACKBUFFER) | ||
29 | + handle_usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH; | ||
30 | + | ||
31 | return pscreen->resource_get_param(pscreen, NULL, image->texture, | ||
32 | image->plane, 0, 0, param, handle_usage, | ||
33 | value); | ||
34 | @@ -1296,9 +1299,6 @@ dri2_query_image_by_resource_param(__DRIimage *image, int attrib, int *value) | ||
35 | |||
36 | handle_usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE; | ||
37 | |||
38 | - if (image->use & __DRI_IMAGE_USE_BACKBUFFER) | ||
39 | - handle_usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH; | ||
40 | - | ||
41 | if (!dri2_resource_get_param(image, param, handle_usage, &res_param)) | ||
42 | return false; | ||
43 | |||
44 | -- | ||
45 | 2.31.1 | ||
46 | |||
diff --git a/recipes-graphics/mesa/mesa/0008-etnaviv-remove-double-assigment-of-surface-texture.patch b/recipes-graphics/mesa/mesa/0008-etnaviv-remove-double-assigment-of-surface-texture.patch deleted file mode 100644 index 7f43be10..00000000 --- a/recipes-graphics/mesa/mesa/0008-etnaviv-remove-double-assigment-of-surface-texture.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 1c539bbb06f318d2bd0f93701b532f77894e391d Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 15:03:37 +0100 | ||
4 | Subject: [PATCH] etnaviv: remove double assigment of surface->texture | ||
5 | |||
6 | surf->base.texture is already assigned earlier via a proper | ||
7 | pipe_resource_reference call. Remove the superfluous assignement. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7603> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/1c539bbb06f318d2bd0f93701b532f77894e391d] | ||
13 | --- | ||
14 | src/gallium/drivers/etnaviv/etnaviv_surface.c | 1 - | ||
15 | 1 file changed, 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_surface.c b/src/gallium/drivers/etnaviv/etnaviv_surface.c | ||
18 | index c78973bdb09..52a937652d2 100644 | ||
19 | --- a/src/gallium/drivers/etnaviv/etnaviv_surface.c | ||
20 | +++ b/src/gallium/drivers/etnaviv/etnaviv_surface.c | ||
21 | @@ -112,7 +112,6 @@ etna_create_surface(struct pipe_context *pctx, struct pipe_resource *prsc, | ||
22 | etna_screen_resource_alloc_ts(pctx->screen, rsc); | ||
23 | } | ||
24 | |||
25 | - surf->base.texture = &rsc->base; | ||
26 | surf->base.format = templat->format; | ||
27 | surf->base.width = rsc->levels[level].width; | ||
28 | surf->base.height = rsc->levels[level].height; | ||
29 | -- | ||
30 | 2.31.1 | ||
31 | |||
diff --git a/recipes-graphics/mesa/mesa/0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch b/recipes-graphics/mesa/mesa/0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch deleted file mode 100644 index 4534cd5a..00000000 --- a/recipes-graphics/mesa/mesa/0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch +++ /dev/null | |||
@@ -1,168 +0,0 @@ | |||
1 | From 7b9d8d1936d72af6fd1bfd30afed354bb76b4c0c Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 15:05:55 +0100 | ||
4 | Subject: [PATCH] etnaviv: flush used render buffers on context flush when | ||
5 | neccessary | ||
6 | |||
7 | Some resources like backbuffers are explicitly flushed by the frontend | ||
8 | at the appropriate time, others however won't get flushed explicitly. | ||
9 | Remember those resources when they get emitted as a render buffer and | ||
10 | flush them on a context flush to make their content visible to other | ||
11 | entities sharing the buffer. | ||
12 | |||
13 | We still keep the optimized path for most resources where the frontend | ||
14 | promises to do the flushing for us and only enable implicit flushing | ||
15 | when a buffer handle is exported/imported without the | ||
16 | PIPE_HANDLE_USAGE_EXPLICIT_FLUSH flag set. | ||
17 | |||
18 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
19 | Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> | ||
20 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7603> | ||
21 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/7b9d8d1936d72af6fd1bfd30afed354bb76b4c0c] | ||
22 | --- | ||
23 | src/gallium/drivers/etnaviv/etnaviv_context.c | 16 ++++++++++++++++ | ||
24 | src/gallium/drivers/etnaviv/etnaviv_context.h | 3 +++ | ||
25 | src/gallium/drivers/etnaviv/etnaviv_resource.c | 7 +++++++ | ||
26 | src/gallium/drivers/etnaviv/etnaviv_resource.h | 2 ++ | ||
27 | src/gallium/drivers/etnaviv/etnaviv_state.c | 18 ++++++++++++++++++ | ||
28 | 5 files changed, 46 insertions(+) | ||
29 | |||
30 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.c b/src/gallium/drivers/etnaviv/etnaviv_context.c | ||
31 | index 4dd9e427ea1..581edc78d2f 100644 | ||
32 | --- a/src/gallium/drivers/etnaviv/etnaviv_context.c | ||
33 | +++ b/src/gallium/drivers/etnaviv/etnaviv_context.c | ||
34 | @@ -129,6 +129,9 @@ etna_context_destroy(struct pipe_context *pctx) | ||
35 | _mesa_set_destroy(ctx->used_resources_write, NULL); | ||
36 | |||
37 | } | ||
38 | + if (ctx->flush_resources) | ||
39 | + _mesa_set_destroy(ctx->flush_resources, NULL); | ||
40 | + | ||
41 | mtx_unlock(&ctx->lock); | ||
42 | |||
43 | if (ctx->dummy_desc_bo) | ||
44 | @@ -490,6 +493,14 @@ etna_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence, | ||
45 | list_for_each_entry(struct etna_acc_query, aq, &ctx->active_acc_queries, node) | ||
46 | etna_acc_query_suspend(aq, ctx); | ||
47 | |||
48 | + /* flush all resources that need an implicit flush */ | ||
49 | + set_foreach(ctx->flush_resources, entry) { | ||
50 | + struct pipe_resource *prsc = (struct pipe_resource *)entry->key; | ||
51 | + | ||
52 | + pctx->flush_resource(pctx, prsc); | ||
53 | + } | ||
54 | + _mesa_set_clear(ctx->flush_resources, NULL); | ||
55 | + | ||
56 | etna_cmd_stream_flush(ctx->stream, ctx->in_fence_fd, | ||
57 | (flags & PIPE_FLUSH_FENCE_FD) ? &out_fence_fd : NULL); | ||
58 | |||
59 | @@ -596,6 +607,11 @@ etna_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) | ||
60 | if (!ctx->used_resources_write) | ||
61 | goto fail; | ||
62 | |||
63 | + ctx->flush_resources = _mesa_set_create(NULL, _mesa_hash_pointer, | ||
64 | + _mesa_key_pointer_equal); | ||
65 | + if (!ctx->flush_resources) | ||
66 | + goto fail; | ||
67 | + | ||
68 | mtx_init(&ctx->lock, mtx_recursive); | ||
69 | |||
70 | /* context ctxate setup */ | ||
71 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.h b/src/gallium/drivers/etnaviv/etnaviv_context.h | ||
72 | index 72000f2122b..21e4d3f33ca 100644 | ||
73 | --- a/src/gallium/drivers/etnaviv/etnaviv_context.h | ||
74 | +++ b/src/gallium/drivers/etnaviv/etnaviv_context.h | ||
75 | @@ -206,6 +206,9 @@ struct etna_context { | ||
76 | struct set *used_resources_read; | ||
77 | struct set *used_resources_write; | ||
78 | |||
79 | + /* resources that must be flushed implicitly at the context flush time */ | ||
80 | + struct set *flush_resources; | ||
81 | + | ||
82 | mtx_t lock; | ||
83 | }; | ||
84 | |||
85 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c | ||
86 | index ae4f24b9b44..0c8c28e66aa 100644 | ||
87 | --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c | ||
88 | +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c | ||
89 | @@ -265,6 +265,7 @@ etna_resource_alloc(struct pipe_screen *pscreen, unsigned layout, | ||
90 | rsc->base.nr_samples = nr_samples; | ||
91 | rsc->layout = layout; | ||
92 | rsc->halign = halign; | ||
93 | + rsc->explicit_flush = true; | ||
94 | |||
95 | pipe_reference_init(&rsc->base.reference, 1); | ||
96 | util_range_init(&rsc->valid_buffer_range); | ||
97 | @@ -519,6 +520,9 @@ etna_resource_from_handle(struct pipe_screen *pscreen, | ||
98 | rsc->layout = modifier_to_layout(handle->modifier); | ||
99 | rsc->halign = TEXTURE_HALIGN_FOUR; | ||
100 | |||
101 | + if (usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) | ||
102 | + rsc->explicit_flush = true; | ||
103 | + | ||
104 | level->width = tmpl->width0; | ||
105 | level->height = tmpl->height0; | ||
106 | level->depth = tmpl->depth0; | ||
107 | @@ -584,6 +588,9 @@ etna_resource_get_handle(struct pipe_screen *pscreen, | ||
108 | handle->offset = rsc->levels[0].offset; | ||
109 | handle->modifier = layout_to_modifier(rsc->layout); | ||
110 | |||
111 | + if (!(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH)) | ||
112 | + rsc->explicit_flush = false; | ||
113 | + | ||
114 | if (handle->type == WINSYS_HANDLE_TYPE_SHARED) { | ||
115 | return etna_bo_get_name(rsc->bo, &handle->handle) == 0; | ||
116 | } else if (handle->type == WINSYS_HANDLE_TYPE_KMS) { | ||
117 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.h b/src/gallium/drivers/etnaviv/etnaviv_resource.h | ||
118 | index cb83e891d34..167cf4ed069 100644 | ||
119 | --- a/src/gallium/drivers/etnaviv/etnaviv_resource.h | ||
120 | +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.h | ||
121 | @@ -93,6 +93,8 @@ struct etna_resource { | ||
122 | struct pipe_resource *texture; | ||
123 | /* for when PE doesn't support the base layout */ | ||
124 | struct pipe_resource *render; | ||
125 | + /* frontend flushes resource via an explicit call to flush_resource */ | ||
126 | + bool explicit_flush; | ||
127 | |||
128 | enum etna_resource_status status; | ||
129 | |||
130 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c | ||
131 | index 44b1c4f8fab..1ad839799f2 100644 | ||
132 | --- a/src/gallium/drivers/etnaviv/etnaviv_state.c | ||
133 | +++ b/src/gallium/drivers/etnaviv/etnaviv_state.c | ||
134 | @@ -753,6 +753,21 @@ etna_update_zsa(struct etna_context *ctx) | ||
135 | return true; | ||
136 | } | ||
137 | |||
138 | +static bool | ||
139 | +etna_record_flush_resources(struct etna_context *ctx) | ||
140 | +{ | ||
141 | + struct pipe_framebuffer_state *fb = &ctx->framebuffer_s; | ||
142 | + | ||
143 | + if (fb->nr_cbufs > 0) { | ||
144 | + struct etna_surface *surf = etna_surface(fb->cbufs[0]); | ||
145 | + | ||
146 | + if (!etna_resource(surf->prsc)->explicit_flush) | ||
147 | + _mesa_set_add(ctx->flush_resources, surf->prsc); | ||
148 | + } | ||
149 | + | ||
150 | + return true; | ||
151 | +} | ||
152 | + | ||
153 | struct etna_state_updater { | ||
154 | bool (*update)(struct etna_context *ctx); | ||
155 | uint32_t dirty; | ||
156 | @@ -780,6 +795,9 @@ static const struct etna_state_updater etna_state_updates[] = { | ||
157 | }, | ||
158 | { | ||
159 | etna_update_zsa, ETNA_DIRTY_ZSA | ETNA_DIRTY_SHADER, | ||
160 | + }, | ||
161 | + { | ||
162 | + etna_record_flush_resources, ETNA_DIRTY_FRAMEBUFFER, | ||
163 | } | ||
164 | }; | ||
165 | |||
166 | -- | ||
167 | 2.31.1 | ||
168 | |||
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index 423ee63e..acddfbc6 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend | |||
@@ -1,21 +1,8 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | 1 | PROVIDES:remove:imxgpu = "virtual/egl" |
2 | SRC_URI_append_use-mainline-bsp = " \ | 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" |
3 | file://0001-dri-add-createImageWithModifiers2-interface.patch \ | 3 | |
4 | file://0002-dri-add-loader_dri_create_image-helper.patch \ | 4 | PACKAGECONFIG:remove:imxgpu = "egl gbm" |
5 | file://0003-loader-dri3-convert-to-loader_dri_create_image.patch \ | 5 | PACKAGECONFIG:remove:imxgpu3d = "gles" |
6 | file://0004-loader-dri-hook-up-createImageWithModifiers2.patch \ | ||
7 | file://0005-gallium-dri-copy-image-use-in-dup_image.patch \ | ||
8 | file://0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch \ | ||
9 | file://0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch \ | ||
10 | file://0008-etnaviv-remove-double-assigment-of-surface-texture.patch \ | ||
11 | file://0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch \ | ||
12 | " | ||
13 | |||
14 | PROVIDES_remove_imxgpu = "virtual/egl" | ||
15 | PROVIDES_remove_imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" | ||
16 | |||
17 | PACKAGECONFIG_remove_imxgpu = "egl gbm" | ||
18 | PACKAGECONFIG_remove_imxgpu3d = "gles" | ||
19 | 6 | ||
20 | # FIXME: mesa should support 'x11-no-tls' option | 7 | # FIXME: mesa should support 'x11-no-tls' option |
21 | python () { | 8 | python () { |
@@ -28,13 +15,13 @@ python () { | |||
28 | } | 15 | } |
29 | 16 | ||
30 | # Enable Etnaviv and Freedreno support | 17 | # Enable Etnaviv and Freedreno support |
31 | PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno" | 18 | PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv kmsro freedreno" |
32 | 19 | ||
33 | # For NXP BSP, GPU drivers don't support dri | 20 | # For NXP BSP, GPU drivers don't support dri |
34 | PACKAGECONFIG_remove_imxgpu_use-nxp-bsp = "dri" | 21 | PACKAGECONFIG:remove:imxgpu:use-nxp-bsp = "dri" |
35 | 22 | ||
36 | # mainline/etnaviv: | 23 | # mainline/etnaviv: |
37 | RRECOMMENDS_${PN}-megadriver_append_use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" | 24 | RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" |
38 | 25 | ||
39 | BACKEND = \ | 26 | BACKEND = \ |
40 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | 27 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ |
@@ -42,7 +29,7 @@ BACKEND = \ | |||
42 | 'fb', d), d)}" | 29 | 'fb', d), d)}" |
43 | 30 | ||
44 | # FIXME: Dirty hack to allow use of Vivante GPU libGL binary | 31 | # FIXME: Dirty hack to allow use of Vivante GPU libGL binary |
45 | do_install_append_imxgpu3d () { | 32 | do_install:append:imxgpu3d () { |
46 | rm -f ${D}${libdir}/libGL.* \ | 33 | rm -f ${D}${libdir}/libGL.* \ |
47 | ${D}${includedir}/GL/gl.h \ | 34 | ${D}${includedir}/GL/gl.h \ |
48 | ${D}${includedir}/GL/glcorearb.h \ | 35 | ${D}${includedir}/GL/glcorearb.h \ |
@@ -54,6 +41,6 @@ do_install_append_imxgpu3d () { | |||
54 | fi | 41 | fi |
55 | } | 42 | } |
56 | 43 | ||
57 | do_install_append_imxgpu () { | 44 | do_install:append:imxgpu () { |
58 | rm -rf ${D}${includedir}/KHR | 45 | rm -rf ${D}${includedir}/KHR |
59 | } | 46 | } |
diff --git a/recipes-graphics/vulkan/vulkan-loader_%.bbappend b/recipes-graphics/vulkan/vulkan-loader_%.bbappend index 28e1dc32..90776168 100644 --- a/recipes-graphics/vulkan/vulkan-loader_%.bbappend +++ b/recipes-graphics/vulkan/vulkan-loader_%.bbappend | |||
@@ -1,3 +1,3 @@ | |||
1 | # The i.MX implementation is dynamically loaded, so it requires an | 1 | # The i.MX implementation is dynamically loaded, so it requires an |
2 | # explicit runtime dependency. | 2 | # explicit runtime dependency. |
3 | RRECOMMENDS_${PN}_append_imxgpu = " libvulkan-imx" | 3 | RRECOMMENDS:${PN}:append:imxgpu = " libvulkan-imx" |
diff --git a/recipes-graphics/waffle/waffle_%.bbappend b/recipes-graphics/waffle/waffle_%.bbappend index 9d090bcf..380273a8 100644 --- a/recipes-graphics/waffle/waffle_%.bbappend +++ b/recipes-graphics/waffle/waffle_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
2 | 2 | ||
3 | SRC_URI += " \ | 3 | SRC_URI += " \ |
4 | file://0001-meson-Add-missing-wayland-dependency-on-EGL.patch \ | 4 | file://0001-meson-Add-missing-wayland-dependency-on-EGL.patch \ |
@@ -6,11 +6,11 @@ SRC_URI += " \ | |||
6 | " | 6 | " |
7 | 7 | ||
8 | PACKAGECONFIG_IMXGPU_X11 = "" | 8 | PACKAGECONFIG_IMXGPU_X11 = "" |
9 | PACKAGECONFIG_IMXGPU_X11_imxgpu3d = "x11-egl glx" | 9 | PACKAGECONFIG_IMXGPU_X11:imxgpu3d = "x11-egl glx" |
10 | PACKAGECONFIG_IMXGPU_GBM = "gbm" | 10 | PACKAGECONFIG_IMXGPU_GBM = "gbm" |
11 | PACKAGECONFIG_IMXGPU_GBM_mx6 = "" | 11 | PACKAGECONFIG_IMXGPU_GBM:mx6 = "" |
12 | PACKAGECONFIG_IMXGPU_GBM_mx7 = "" | 12 | PACKAGECONFIG_IMXGPU_GBM:mx7 = "" |
13 | PACKAGECONFIG_imxgpu = " \ | 13 | PACKAGECONFIG:imxgpu = " \ |
14 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ |
15 | bb.utils.contains('DISTRO_FEATURES', 'x11', '${PACKAGECONFIG_IMXGPU_X11}', \ | 15 | bb.utils.contains('DISTRO_FEATURES', 'x11', '${PACKAGECONFIG_IMXGPU_X11}', \ |
16 | '', d), d)} \ | 16 | '', d), d)} \ |
diff --git a/recipes-graphics/wayland/wayland-protocols_1.20.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.20.imx.bb index 852b3160..0d1f4726 100644 --- a/recipes-graphics/wayland/wayland-protocols_1.20.imx.bb +++ b/recipes-graphics/wayland/wayland-protocols_1.20.imx.bb | |||
@@ -16,7 +16,7 @@ S = "${WORKDIR}/git" | |||
16 | inherit autotools pkgconfig | 16 | inherit autotools pkgconfig |
17 | 17 | ||
18 | PACKAGES = "${PN}" | 18 | PACKAGES = "${PN}" |
19 | FILES_${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" | 19 | FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" |
20 | 20 | ||
21 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 21 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
22 | COMPATIBLE_MACHINE = "(imxfbdev|imxgpu)" | 22 | COMPATIBLE_MACHINE = "(imxfbdev|imxgpu)" |
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index ebd98268..5710e9b5 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
@@ -1,24 +1,24 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
2 | 2 | ||
3 | # OpenGL is not required for parts with GPU support for 2D but not 3D | 3 | # OpenGL is not required for parts with GPU support for 2D but not 3D |
4 | IMX_REQUIRED_DISTRO_FEATURES_REMOVE = "" | 4 | IMX_REQUIRED_DISTRO_FEATURES_REMOVE = "" |
5 | IMX_REQUIRED_DISTRO_FEATURES_REMOVE_imxgpu2d = "opengl" | 5 | IMX_REQUIRED_DISTRO_FEATURES_REMOVE:imxgpu2d = "opengl" |
6 | IMX_REQUIRED_DISTRO_FEATURES_REMOVE_imxgpu3d = "" | 6 | IMX_REQUIRED_DISTRO_FEATURES_REMOVE:imxgpu3d = "" |
7 | REQUIRED_DISTRO_FEATURES_remove = "${IMX_REQUIRED_DISTRO_FEATURES_REMOVE}" | 7 | REQUIRED_DISTRO_FEATURES:remove = "${IMX_REQUIRED_DISTRO_FEATURES_REMOVE}" |
8 | 8 | ||
9 | SRC_URI_append_mx6sl = " file://weston.config" | 9 | SRC_URI:append:mx6sl = " file://weston.config" |
10 | 10 | ||
11 | # To customize weston.ini, start by setting the desired assignment in weston.ini, | 11 | # To customize weston.ini, start by setting the desired assignment in weston.ini, |
12 | # commented out. For example: | 12 | # commented out. For example: |
13 | # #xwayland=true | 13 | # #xwayland=true |
14 | # Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS. | 14 | # Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS. |
15 | INI_UNCOMMENT_ASSIGNMENTS_append_imx = " \ | 15 | INI_UNCOMMENT_ASSIGNMENTS:append:imx = " \ |
16 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland=true', '', d)} \ | 16 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland=true', '', d)} \ |
17 | " | 17 | " |
18 | INI_UNCOMMENT_ASSIGNMENTS_append_mx8 = " \ | 18 | INI_UNCOMMENT_ASSIGNMENTS:append:mx8 = " \ |
19 | repaint-window=16 \ | 19 | repaint-window=16 \ |
20 | " | 20 | " |
21 | INI_UNCOMMENT_ASSIGNMENTS_append_mx8mq = " \ | 21 | INI_UNCOMMENT_ASSIGNMENTS:append:mx8mq = " \ |
22 | gbm-format=argb8888 \ | 22 | gbm-format=argb8888 \ |
23 | \\[shell\\] \ | 23 | \\[shell\\] \ |
24 | size=1920x1080 \ | 24 | size=1920x1080 \ |
@@ -27,10 +27,10 @@ INI_UNCOMMENT_ASSIGNMENTS_append_mx8mq = " \ | |||
27 | # FIXME: The 8QM and 8QXP SoCs have better performance without G2D so don't enable it | 27 | # FIXME: The 8QM and 8QXP SoCs have better performance without G2D so don't enable it |
28 | # Ideally, this should be seamless and Vivante ought to handle it internally and take the fastest | 28 | # Ideally, this should be seamless and Vivante ought to handle it internally and take the fastest |
29 | # rendering code. | 29 | # rendering code. |
30 | INI_UNCOMMENT_USE_G2D_imxgpu2d ?= "use-g2d=1" | 30 | INI_UNCOMMENT_USE_G2D:imxgpu2d ?= "use-g2d=1" |
31 | INI_UNCOMMENT_USE_G2D_mx8qm = "" | 31 | INI_UNCOMMENT_USE_G2D:mx8qm = "" |
32 | INI_UNCOMMENT_USE_G2D_mx8qxp = "" | 32 | INI_UNCOMMENT_USE_G2D:mx8qxp = "" |
33 | INI_UNCOMMENT_ASSIGNMENTS_append_imxgpu2d = " \ | 33 | INI_UNCOMMENT_ASSIGNMENTS:append:imxgpu2d = " \ |
34 | ${INI_UNCOMMENT_USE_G2D} \ | 34 | ${INI_UNCOMMENT_USE_G2D} \ |
35 | " | 35 | " |
36 | 36 | ||
@@ -41,7 +41,7 @@ uncomment() { | |||
41 | sed -i -e 's,^#'"$1"','"$1"',g' $2 | 41 | sed -i -e 's,^#'"$1"','"$1"',g' $2 |
42 | } | 42 | } |
43 | 43 | ||
44 | do_install_append() { | 44 | do_install:append() { |
45 | if [ -f "${WORKDIR}/weston.config" ]; then | 45 | if [ -f "${WORKDIR}/weston.config" ]; then |
46 | install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston | 46 | install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston |
47 | fi | 47 | fi |
diff --git a/recipes-graphics/wayland/weston_9.0.0.imx.bb b/recipes-graphics/wayland/weston_9.0.0.imx.bb index 026f27ce..76296c8e 100644 --- a/recipes-graphics/wayland/weston_9.0.0.imx.bb +++ b/recipes-graphics/wayland/weston_9.0.0.imx.bb | |||
@@ -20,7 +20,7 @@ SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | |||
20 | file://0001-tests-include-fcntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch \ | 20 | file://0001-tests-include-fcntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch \ |
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI_append_libc-musl = " file://dont-use-plane-add-prop.patch " | 23 | SRC_URI:append:libc-musl = " file://dont-use-plane-add-prop.patch " |
24 | 24 | ||
25 | SRC_URI[sha256sum] = "5cf5d6ce192e0eb15c1fc861a436bf21b5bb3b91dbdabbdebe83e1f83aa098fe" | 25 | SRC_URI[sha256sum] = "5cf5d6ce192e0eb15c1fc861a436bf21b5bb3b91dbdabbdebe83e1f83aa098fe" |
26 | 26 | ||
@@ -97,7 +97,7 @@ PACKAGECONFIG[shell-ivi] = "-Dshell-ivi=true,-Dshell-ivi=false" | |||
97 | # JPEG image loading support | 97 | # JPEG image loading support |
98 | PACKAGECONFIG[image-jpeg] = "-Dimage-jpeg=true,-Dimage-jpeg=false, jpeg" | 98 | PACKAGECONFIG[image-jpeg] = "-Dimage-jpeg=true,-Dimage-jpeg=false, jpeg" |
99 | 99 | ||
100 | do_install_append() { | 100 | do_install:append() { |
101 | # Weston doesn't need the .la files to load modules, so wipe them | 101 | # Weston doesn't need the .la files to load modules, so wipe them |
102 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la | 102 | rm -f ${D}/${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.la |
103 | 103 | ||
@@ -122,23 +122,23 @@ do_install_append() { | |||
122 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ | 122 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ |
123 | libweston-${WESTON_MAJOR_VERSION} ${PN}-examples" | 123 | libweston-${WESTON_MAJOR_VERSION} ${PN}-examples" |
124 | 124 | ||
125 | FILES_${PN}-dev += "${libdir}/${BPN}/libexec_weston.so" | 125 | FILES:${PN}-dev += "${libdir}/${BPN}/libexec_weston.so" |
126 | FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so* ${datadir}" | 126 | FILES:${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so* ${datadir}" |
127 | 127 | ||
128 | FILES_libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so" | 128 | FILES:libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so" |
129 | SUMMARY_libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'." | 129 | SUMMARY:libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'." |
130 | 130 | ||
131 | FILES_${PN}-examples = "${bindir}/*" | 131 | FILES:${PN}-examples = "${bindir}/*" |
132 | 132 | ||
133 | FILES_${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" | 133 | FILES:${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so" |
134 | RDEPENDS_${PN}-xwayland += "xwayland" | 134 | RDEPENDS:${PN}-xwayland += "xwayland" |
135 | 135 | ||
136 | RDEPENDS_${PN} += "xkeyboard-config" | 136 | RDEPENDS:${PN} += "xkeyboard-config" |
137 | RRECOMMENDS_${PN} = "weston-init liberation-fonts" | 137 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" |
138 | RRECOMMENDS_${PN}-dev += "wayland-protocols" | 138 | RRECOMMENDS:${PN}-dev += "wayland-protocols" |
139 | 139 | ||
140 | USERADD_PACKAGES = "${PN}" | 140 | USERADD_PACKAGES = "${PN}" |
141 | GROUPADD_PARAM_${PN} = "--system weston-launch" | 141 | GROUPADD_PARAM:${PN} = "--system weston-launch" |
142 | 142 | ||
143 | ########### End of OE-core copy ########### | 143 | ########### End of OE-core copy ########### |
144 | 144 | ||
@@ -160,23 +160,23 @@ S = "${WORKDIR}/git" | |||
160 | 160 | ||
161 | # Disable OpenGL for parts with GPU support for 2D but not 3D | 161 | # Disable OpenGL for parts with GPU support for 2D but not 3D |
162 | REQUIRED_DISTRO_FEATURES = "opengl" | 162 | REQUIRED_DISTRO_FEATURES = "opengl" |
163 | REQUIRED_DISTRO_FEATURES_imxgpu2d = "" | 163 | REQUIRED_DISTRO_FEATURES:imxgpu2d = "" |
164 | REQUIRED_DISTRO_FEATURES_imxgpu3d = "opengl" | 164 | REQUIRED_DISTRO_FEATURES:imxgpu3d = "opengl" |
165 | PACKAGECONFIG_OPENGL = "opengl" | 165 | PACKAGECONFIG_OPENGL = "opengl" |
166 | PACKAGECONFIG_OPENGL_imxgpu2d = "" | 166 | PACKAGECONFIG_OPENGL:imxgpu2d = "" |
167 | PACKAGECONFIG_OPENGL_imxgpu3d = "opengl" | 167 | PACKAGECONFIG_OPENGL:imxgpu3d = "opengl" |
168 | 168 | ||
169 | PACKAGECONFIG_remove = "wayland x11" | 169 | PACKAGECONFIG:remove = "wayland x11" |
170 | PACKAGECONFIG_append = " ${@bb.utils.filter('DISTRO_FEATURES', '${PACKAGECONFIG_OPENGL}', d)}" | 170 | PACKAGECONFIG:append = " ${@bb.utils.filter('DISTRO_FEATURES', '${PACKAGECONFIG_OPENGL}', d)}" |
171 | 171 | ||
172 | PACKAGECONFIG_remove_imxfbdev = "kms" | 172 | PACKAGECONFIG:remove:imxfbdev = "kms" |
173 | PACKAGECONFIG_append_imxfbdev = " fbdev clients" | 173 | PACKAGECONFIG:append:imxfbdev = " fbdev clients" |
174 | PACKAGECONFIG_append_imxgpu = " imxgpu" | 174 | PACKAGECONFIG:append:imxgpu = " imxgpu" |
175 | PACKAGECONFIG_append_imxgpu2d = " imxg2d" | 175 | PACKAGECONFIG:append:imxgpu2d = " imxg2d" |
176 | 176 | ||
177 | # Clients support | 177 | # Clients support |
178 | SIMPLE_CLIENTS = "all" | 178 | SIMPLE_CLIENTS = "all" |
179 | SIMPLE_CLIENTS_imxfbdev = "damage,im,egl,shm,touch,dmabuf-v4l" | 179 | SIMPLE_CLIENTS:imxfbdev = "damage,im,egl,shm,touch,dmabuf-v4l" |
180 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcursor" | 180 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcursor" |
181 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLE_CLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" | 181 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLE_CLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" |
182 | # Weston with i.MX GPU support | 182 | # Weston with i.MX GPU support |
diff --git a/recipes-graphics/xinput-calibrator/pointercal-xinput_%.bbappend b/recipes-graphics/xinput-calibrator/pointercal-xinput_%.bbappend index a9c60f3e..d112b274 100644 --- a/recipes-graphics/xinput-calibrator/pointercal-xinput_%.bbappend +++ b/recipes-graphics/xinput-calibrator/pointercal-xinput_%.bbappend | |||
@@ -1,2 +1,2 @@ | |||
1 | # Append path for freescale layer to include bsp pointercal.xinput | 1 | # Append path for freescale layer to include bsp pointercal.xinput |
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
diff --git a/recipes-graphics/xorg-driver/xf86-video-imx-vivante_6.4.0.p0.0.bb b/recipes-graphics/xorg-driver/xf86-video-imx-vivante_6.4.0.p0.0.bb index 069008c0..6944184f 100644 --- a/recipes-graphics/xorg-driver/xf86-video-imx-vivante_6.4.0.p0.0.bb +++ b/recipes-graphics/xorg-driver/xf86-video-imx-vivante_6.4.0.p0.0.bb | |||
@@ -34,7 +34,7 @@ TARGET_CC_ARCH += "${LDFLAGS}" | |||
34 | 34 | ||
35 | PACKAGES =+ "xserver-xorg-extension-viv-autohdmi" | 35 | PACKAGES =+ "xserver-xorg-extension-viv-autohdmi" |
36 | 36 | ||
37 | do_install_append () { | 37 | do_install:append () { |
38 | install -d ${D}${includedir} | 38 | install -d ${D}${includedir} |
39 | cp -axr ${S}/EXA/src/vivante_gal/vivante_priv.h ${D}${includedir} | 39 | cp -axr ${S}/EXA/src/vivante_gal/vivante_priv.h ${D}${includedir} |
40 | cp -axr ${S}/EXA/src/vivante_gal/vivante_gal.h ${D}${includedir} | 40 | cp -axr ${S}/EXA/src/vivante_gal/vivante_gal.h ${D}${includedir} |
@@ -45,7 +45,7 @@ do_install_append () { | |||
45 | find ${D}${includedir} -type f -exec chmod 660 {} \; | 45 | find ${D}${includedir} -type f -exec chmod 660 {} \; |
46 | } | 46 | } |
47 | 47 | ||
48 | RDEPENDS_${PN} += "libvivante-dri-imx \ | 48 | RDEPENDS:${PN} += "libvivante-dri-imx \ |
49 | xserver-xorg-module-exa \ | 49 | xserver-xorg-module-exa \ |
50 | mesa-driver-swrast \ | 50 | mesa-driver-swrast \ |
51 | xserver-xorg-extension-dri \ | 51 | xserver-xorg-extension-dri \ |
@@ -55,11 +55,11 @@ RDEPENDS_${PN} += "libvivante-dri-imx \ | |||
55 | REALSOLIBS := "${SOLIBS}" | 55 | REALSOLIBS := "${SOLIBS}" |
56 | SOLIBS = "${SOLIBSDEV}" | 56 | SOLIBS = "${SOLIBSDEV}" |
57 | 57 | ||
58 | FILES_${PN} = "${libdir}/*/*/*/vivante_drv${SOLIBS}" | 58 | FILES:${PN} = "${libdir}/*/*/*/vivante_drv${SOLIBS}" |
59 | FILES_${PN}-dev = "${includedir} /usr/src ${libdir}/libfsl_x11_ext${SOLIBSDEV}" | 59 | FILES:${PN}-dev = "${includedir} /usr/src ${libdir}/libfsl_x11_ext${SOLIBSDEV}" |
60 | FILES_${PN}-dbg = "${libdir}/*/*/*/.debug ${libdir}/.debug/libfsl_x11_ext${SOLIBS} ${exec_prefix}/bin/.debug/autohdmi" | 60 | FILES:${PN}-dbg = "${libdir}/*/*/*/.debug ${libdir}/.debug/libfsl_x11_ext${SOLIBS} ${exec_prefix}/bin/.debug/autohdmi" |
61 | 61 | ||
62 | FILES_xserver-xorg-extension-viv-autohdmi = " ${libdir}/libfsl_x11_ext${SOLIBS} ${exec_prefix}/bin/autohdmi ${sysconfdir}/init.d/rc.autohdmi" | 62 | FILES:xserver-xorg-extension-viv-autohdmi = " ${libdir}/libfsl_x11_ext${SOLIBS} ${exec_prefix}/bin/autohdmi ${sysconfdir}/init.d/rc.autohdmi" |
63 | 63 | ||
64 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 64 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
65 | COMPATIBLE_MACHINE = "(mx6|mx7ulp)" | 65 | COMPATIBLE_MACHINE = "(mx6|mx7ulp)" |
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend index ceb438e3..3fe677b3 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend | |||
@@ -1,2 +1,2 @@ | |||
1 | # Append path for freescale layer to include bsp xorg.conf | 1 | # Append path for freescale layer to include bsp xorg.conf |
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch new file mode 100644 index 00000000..e0958558 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 3a6fe85a5f123f53319b5be8a69666174cad09cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Julien Isorce <julien.isorce@gmail.com> | ||
3 | Date: Thu, 6 Sep 2018 15:38:13 -0700 | ||
4 | Subject: [PATCH 1/8] xfree86: define FOURCC_NV12 and XVIMAGE_NV12 | ||
5 | |||
6 | Useful for glamor. | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Signed-off-by: Julien Isorce <jisorce@oblong.com> | ||
10 | Tested-by: Olivier Fourdan <ofourdan@redhat.com> | ||
11 | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> | ||
12 | --- | ||
13 | hw/xfree86/common/fourcc.h | 20 ++++++++++++++++++++ | ||
14 | 1 file changed, 20 insertions(+) | ||
15 | |||
16 | diff --git a/hw/xfree86/common/fourcc.h b/hw/xfree86/common/fourcc.h | ||
17 | index e6126b7fe..a19e6869e 100644 | ||
18 | --- a/hw/xfree86/common/fourcc.h | ||
19 | +++ b/hw/xfree86/common/fourcc.h | ||
20 | @@ -156,4 +156,24 @@ | ||
21 | XvTopToBottom \ | ||
22 | } | ||
23 | |||
24 | +#define FOURCC_NV12 0x3231564e | ||
25 | +#define XVIMAGE_NV12 \ | ||
26 | + { \ | ||
27 | + FOURCC_NV12, \ | ||
28 | + XvYUV, \ | ||
29 | + LSBFirst, \ | ||
30 | + {'N','V','1','2', \ | ||
31 | + 0x00,0x00,0x00,0x10,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71}, \ | ||
32 | + 12, \ | ||
33 | + XvPlanar, \ | ||
34 | + 2, \ | ||
35 | + 0, 0, 0, 0, \ | ||
36 | + 8, 8, 8, \ | ||
37 | + 1, 2, 2, \ | ||
38 | + 1, 2, 2, \ | ||
39 | + {'Y','U','V', \ | ||
40 | + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, \ | ||
41 | + XvTopToBottom \ | ||
42 | + } | ||
43 | + | ||
44 | #endif /* _XF86_FOURCC_H_ */ | ||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0002-glamor-add-support-for-GL_RG.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0002-glamor-add-support-for-GL_RG.patch new file mode 100644 index 00000000..78988373 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0002-glamor-add-support-for-GL_RG.patch | |||
@@ -0,0 +1,116 @@ | |||
1 | From 7f46b31e3d80ca769f68a4ffb201d0fc4801ea93 Mon Sep 17 00:00:00 2001 | ||
2 | From: Julien Isorce <julien.isorce@gmail.com> | ||
3 | Date: Thu, 6 Sep 2018 15:38:14 -0700 | ||
4 | Subject: [PATCH 2/8] glamor: add support for GL_RG | ||
5 | |||
6 | Allow to upload the CbCr plane of an NV12 image into a GL texture. | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | Signed-off-by: Julien Isorce <jisorce@oblong.com> | ||
10 | Tested-by: Olivier Fourdan <ofourdan@redhat.com> | ||
11 | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> | ||
12 | --- | ||
13 | glamor/glamor.c | 2 ++ | ||
14 | glamor/glamor.h | 1 + | ||
15 | glamor/glamor_priv.h | 4 +++- | ||
16 | glamor/glamor_transfer.c | 10 ++++++++-- | ||
17 | glamor/glamor_utils.h | 4 ++++ | ||
18 | 5 files changed, 18 insertions(+), 3 deletions(-) | ||
19 | |||
20 | diff --git a/glamor/glamor.c b/glamor/glamor.c | ||
21 | index abefef614..3e9cf284c 100644 | ||
22 | --- a/glamor/glamor.c | ||
23 | +++ b/glamor/glamor.c | ||
24 | @@ -222,6 +222,8 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, | ||
25 | |||
26 | pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
27 | |||
28 | + pixmap_priv->is_cbcr = (usage == GLAMOR_CREATE_FORMAT_CBCR); | ||
29 | + | ||
30 | format = gl_iformat_for_pixmap(pixmap); | ||
31 | |||
32 | pitch = (((w * pixmap->drawable.bitsPerPixel + 7) / 8) + 3) & ~3; | ||
33 | diff --git a/glamor/glamor.h b/glamor/glamor.h | ||
34 | index be04bf858..e5992aa56 100644 | ||
35 | --- a/glamor/glamor.h | ||
36 | +++ b/glamor/glamor.h | ||
37 | @@ -129,6 +129,7 @@ extern _X_EXPORT Bool glamor_destroy_pixmap(PixmapPtr pixmap); | ||
38 | #define GLAMOR_CREATE_FBO_NO_FBO 0x103 | ||
39 | #define GLAMOR_CREATE_NO_LARGE 0x105 | ||
40 | #define GLAMOR_CREATE_PIXMAP_NO_TEXTURE 0x106 | ||
41 | +#define GLAMOR_CREATE_FORMAT_CBCR 0x107 | ||
42 | |||
43 | /* @glamor_egl_exchange_buffers: Exchange the underlying buffers(KHR image,fbo). | ||
44 | * | ||
45 | diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h | ||
46 | index 4353a99f1..a14aaf624 100644 | ||
47 | --- a/glamor/glamor_priv.h | ||
48 | +++ b/glamor/glamor_priv.h | ||
49 | @@ -380,6 +380,8 @@ typedef struct glamor_pixmap_private { | ||
50 | * names. | ||
51 | */ | ||
52 | glamor_pixmap_fbo **fbo_array; | ||
53 | + | ||
54 | + Bool is_cbcr; | ||
55 | } glamor_pixmap_private; | ||
56 | |||
57 | extern DevPrivateKeyRec glamor_pixmap_private_key; | ||
58 | @@ -902,7 +904,7 @@ int glamor_xv_put_image(glamor_port_private *port_priv, | ||
59 | Bool sync, | ||
60 | RegionPtr clipBoxes); | ||
61 | void glamor_xv_core_init(ScreenPtr screen); | ||
62 | -void glamor_xv_render(glamor_port_private *port_priv); | ||
63 | +void glamor_xv_render(glamor_port_private *port_priv, int id); | ||
64 | |||
65 | #include "glamor_utils.h" | ||
66 | |||
67 | diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c | ||
68 | index ebb5101d1..421ed3a5f 100644 | ||
69 | --- a/glamor/glamor_transfer.c | ||
70 | +++ b/glamor/glamor_transfer.c | ||
71 | @@ -27,6 +27,7 @@ | ||
72 | void | ||
73 | glamor_format_for_pixmap(PixmapPtr pixmap, GLenum *format, GLenum *type) | ||
74 | { | ||
75 | + glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap); | ||
76 | switch (pixmap->drawable.depth) { | ||
77 | case 24: | ||
78 | case 32: | ||
79 | @@ -38,8 +39,13 @@ glamor_format_for_pixmap(PixmapPtr pixmap, GLenum *format, GLenum *type) | ||
80 | *type = GL_UNSIGNED_INT_2_10_10_10_REV; | ||
81 | break; | ||
82 | case 16: | ||
83 | - *format = GL_RGB; | ||
84 | - *type = GL_UNSIGNED_SHORT_5_6_5; | ||
85 | + if (priv->is_cbcr) { | ||
86 | + *format = priv->fbo->format; | ||
87 | + *type = GL_UNSIGNED_BYTE; | ||
88 | + } else { | ||
89 | + *format = GL_RGB; | ||
90 | + *type = GL_UNSIGNED_SHORT_5_6_5; | ||
91 | + } | ||
92 | break; | ||
93 | case 15: | ||
94 | *format = GL_BGRA; | ||
95 | diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h | ||
96 | index 0d5674d63..1890c1fe5 100644 | ||
97 | --- a/glamor/glamor_utils.h | ||
98 | +++ b/glamor/glamor_utils.h | ||
99 | @@ -613,10 +613,14 @@ gl_iformat_for_pixmap(PixmapPtr pixmap) | ||
100 | { | ||
101 | glamor_screen_private *glamor_priv = | ||
102 | glamor_get_screen_private((pixmap)->drawable.pScreen); | ||
103 | + glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
104 | |||
105 | if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP && | ||
106 | ((pixmap)->drawable.depth == 1 || (pixmap)->drawable.depth == 8)) { | ||
107 | return glamor_priv->one_channel_format; | ||
108 | + } else if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP && | ||
109 | + (pixmap)->drawable.depth == 16 && pixmap_priv->is_cbcr) { | ||
110 | + return GL_RG; | ||
111 | } else if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP && | ||
112 | (pixmap)->drawable.depth == 30) { | ||
113 | return GL_RGB10_A2; | ||
114 | -- | ||
115 | 2.17.1 | ||
116 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0003-glamor-add-support-for-NV12-in-Xv.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0003-glamor-add-support-for-NV12-in-Xv.patch new file mode 100644 index 00000000..855d1938 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0003-glamor-add-support-for-NV12-in-Xv.patch | |||
@@ -0,0 +1,322 @@ | |||
1 | From 17a3528162304f1586329aabd606d3498bfe48a5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Julien Isorce <julien.isorce@gmail.com> | ||
3 | Date: Tue, 11 Sep 2018 10:28:33 -0700 | ||
4 | Subject: [PATCH 3/8] glamor: add support for NV12 in Xv | ||
5 | |||
6 | Useful when video decoders only output NV12. Currently | ||
7 | glamor Xv only supports I420 and YV12. | ||
8 | |||
9 | Note that Intel's sna supports I420, YV12, YUY2, UYVY, NV12. | ||
10 | |||
11 | Test: xvinfo | grep NV12 | ||
12 | Test: gst-launch-1.0 videotestsrc ! video/x-raw, format=NV12 ! xvimagesink | ||
13 | |||
14 | v2: Combine the two texture2Ds on u_sampler. | ||
15 | |||
16 | Upstream-Status: Backport | ||
17 | Signed-off-by: Julien Isorce <jisorce@oblong.com> | ||
18 | Tested-by: Olivier Fourdan <ofourdan@redhat.com> | ||
19 | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> | ||
20 | --- | ||
21 | glamor/glamor_xv.c | 180 ++++++++++++++++++++++++++++++++++++++------- | ||
22 | 1 file changed, 155 insertions(+), 25 deletions(-) | ||
23 | |||
24 | diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c | ||
25 | index 62fc4fff5..6fef6ed0d 100644 | ||
26 | --- a/glamor/glamor_xv.c | ||
27 | +++ b/glamor/glamor_xv.c | ||
28 | @@ -59,8 +59,40 @@ typedef struct tagREF_TRANSFORM { | ||
29 | #define RTFContrast(a) (1.0 + ((a)*1.0)/1000.0) | ||
30 | #define RTFHue(a) (((a)*3.1416)/1000.0) | ||
31 | |||
32 | -static const glamor_facet glamor_facet_xv_planar = { | ||
33 | - .name = "xv_planar", | ||
34 | +static const glamor_facet glamor_facet_xv_planar_2 = { | ||
35 | + .name = "xv_planar_2", | ||
36 | + | ||
37 | + .version = 120, | ||
38 | + | ||
39 | + .source_name = "v_texcoord0", | ||
40 | + .vs_vars = ("attribute vec2 position;\n" | ||
41 | + "attribute vec2 v_texcoord0;\n" | ||
42 | + "varying vec2 tcs;\n"), | ||
43 | + .vs_exec = (GLAMOR_POS(gl_Position, position) | ||
44 | + " tcs = v_texcoord0;\n"), | ||
45 | + | ||
46 | + .fs_vars = ("uniform sampler2D y_sampler;\n" | ||
47 | + "uniform sampler2D u_sampler;\n" | ||
48 | + "uniform vec4 offsetyco;\n" | ||
49 | + "uniform vec4 ucogamma;\n" | ||
50 | + "uniform vec4 vco;\n" | ||
51 | + "varying vec2 tcs;\n"), | ||
52 | + .fs_exec = ( | ||
53 | + " float sample;\n" | ||
54 | + " vec2 sample_uv;\n" | ||
55 | + " vec4 temp1;\n" | ||
56 | + " sample = texture2D(y_sampler, tcs).w;\n" | ||
57 | + " temp1.xyz = offsetyco.www * vec3(sample) + offsetyco.xyz;\n" | ||
58 | + " sample_uv = texture2D(u_sampler, tcs).xy;\n" | ||
59 | + " temp1.xyz = ucogamma.xyz * vec3(sample_uv.x) + temp1.xyz;\n" | ||
60 | + " temp1.xyz = clamp(vco.xyz * vec3(sample_uv.y) + temp1.xyz, 0.0, 1.0);\n" | ||
61 | + " temp1.w = 1.0;\n" | ||
62 | + " gl_FragColor = temp1;\n" | ||
63 | + ), | ||
64 | +}; | ||
65 | + | ||
66 | +static const glamor_facet glamor_facet_xv_planar_3 = { | ||
67 | + .name = "xv_planar_3", | ||
68 | |||
69 | .version = 120, | ||
70 | |||
71 | @@ -110,26 +142,50 @@ Atom glamorBrightness, glamorContrast, glamorSaturation, glamorHue, | ||
72 | XvImageRec glamor_xv_images[] = { | ||
73 | XVIMAGE_YV12, | ||
74 | XVIMAGE_I420, | ||
75 | + XVIMAGE_NV12 | ||
76 | }; | ||
77 | int glamor_xv_num_images = ARRAY_SIZE(glamor_xv_images); | ||
78 | |||
79 | static void | ||
80 | -glamor_init_xv_shader(ScreenPtr screen) | ||
81 | +glamor_init_xv_shader(ScreenPtr screen, int id) | ||
82 | { | ||
83 | glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
84 | GLint sampler_loc; | ||
85 | + const glamor_facet *glamor_facet_xv_planar = NULL; | ||
86 | + | ||
87 | + switch (id) { | ||
88 | + case FOURCC_YV12: | ||
89 | + case FOURCC_I420: | ||
90 | + glamor_facet_xv_planar = &glamor_facet_xv_planar_3; | ||
91 | + break; | ||
92 | + case FOURCC_NV12: | ||
93 | + glamor_facet_xv_planar = &glamor_facet_xv_planar_2; | ||
94 | + break; | ||
95 | + default: | ||
96 | + break; | ||
97 | + } | ||
98 | |||
99 | glamor_build_program(screen, | ||
100 | &glamor_priv->xv_prog, | ||
101 | - &glamor_facet_xv_planar, NULL, NULL, NULL); | ||
102 | + glamor_facet_xv_planar, NULL, NULL, NULL); | ||
103 | |||
104 | glUseProgram(glamor_priv->xv_prog.prog); | ||
105 | sampler_loc = glGetUniformLocation(glamor_priv->xv_prog.prog, "y_sampler"); | ||
106 | glUniform1i(sampler_loc, 0); | ||
107 | sampler_loc = glGetUniformLocation(glamor_priv->xv_prog.prog, "u_sampler"); | ||
108 | glUniform1i(sampler_loc, 1); | ||
109 | - sampler_loc = glGetUniformLocation(glamor_priv->xv_prog.prog, "v_sampler"); | ||
110 | - glUniform1i(sampler_loc, 2); | ||
111 | + | ||
112 | + switch (id) { | ||
113 | + case FOURCC_YV12: | ||
114 | + case FOURCC_I420: | ||
115 | + sampler_loc = glGetUniformLocation(glamor_priv->xv_prog.prog, "v_sampler"); | ||
116 | + glUniform1i(sampler_loc, 2); | ||
117 | + break; | ||
118 | + case FOURCC_NV12: | ||
119 | + break; | ||
120 | + default: | ||
121 | + break; | ||
122 | + } | ||
123 | |||
124 | } | ||
125 | |||
126 | @@ -227,6 +283,21 @@ glamor_xv_query_image_attributes(int id, | ||
127 | offsets[2] = size; | ||
128 | size += tmp; | ||
129 | break; | ||
130 | + case FOURCC_NV12: | ||
131 | + *w = ALIGN(*w, 2); | ||
132 | + *h = ALIGN(*h, 2); | ||
133 | + size = ALIGN(*w, 4); | ||
134 | + if (pitches) | ||
135 | + pitches[0] = size; | ||
136 | + size *= *h; | ||
137 | + if (offsets) | ||
138 | + offsets[1] = offsets[2] = size; | ||
139 | + tmp = ALIGN(*w, 4); | ||
140 | + if (pitches) | ||
141 | + pitches[1] = pitches[2] = tmp; | ||
142 | + tmp *= (*h >> 1); | ||
143 | + size += tmp; | ||
144 | + break; | ||
145 | } | ||
146 | return size; | ||
147 | } | ||
148 | @@ -240,7 +311,7 @@ static REF_TRANSFORM trans[2] = { | ||
149 | }; | ||
150 | |||
151 | void | ||
152 | -glamor_xv_render(glamor_port_private *port_priv) | ||
153 | +glamor_xv_render(glamor_port_private *port_priv, int id) | ||
154 | { | ||
155 | ScreenPtr screen = port_priv->pPixmap->drawable.pScreen; | ||
156 | glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
157 | @@ -264,7 +335,7 @@ glamor_xv_render(glamor_port_private *port_priv) | ||
158 | int dst_box_index; | ||
159 | |||
160 | if (!glamor_priv->xv_prog.prog) | ||
161 | - glamor_init_xv_shader(screen); | ||
162 | + glamor_init_xv_shader(screen, id); | ||
163 | |||
164 | cont = RTFContrast(port_priv->contrast); | ||
165 | bright = RTFBrightness(port_priv->brightness); | ||
166 | @@ -293,6 +364,8 @@ glamor_xv_render(glamor_port_private *port_priv) | ||
167 | glamor_get_pixmap_private(port_priv->src_pix[i]); | ||
168 | pixmap_priv_get_scale(src_pixmap_priv[i], &src_xscale[i], | ||
169 | &src_yscale[i]); | ||
170 | + } else { | ||
171 | + src_pixmap_priv[i] = NULL; | ||
172 | } | ||
173 | } | ||
174 | glamor_make_current(glamor_priv); | ||
175 | @@ -319,12 +392,21 @@ glamor_xv_render(glamor_port_private *port_priv) | ||
176 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); | ||
177 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); | ||
178 | |||
179 | - glActiveTexture(GL_TEXTURE2); | ||
180 | - glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[2]->fbo->tex); | ||
181 | - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | ||
182 | - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | ||
183 | - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); | ||
184 | - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); | ||
185 | + switch (id) { | ||
186 | + case FOURCC_YV12: | ||
187 | + case FOURCC_I420: | ||
188 | + glActiveTexture(GL_TEXTURE2); | ||
189 | + glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[2]->fbo->tex); | ||
190 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | ||
191 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | ||
192 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); | ||
193 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); | ||
194 | + break; | ||
195 | + case FOURCC_NV12: | ||
196 | + break; | ||
197 | + default: | ||
198 | + break; | ||
199 | + } | ||
200 | |||
201 | glEnableVertexAttribArray(GLAMOR_VERTEX_POS); | ||
202 | glEnableVertexAttribArray(GLAMOR_VERTEX_SOURCE); | ||
203 | @@ -336,7 +418,7 @@ glamor_xv_render(glamor_port_private *port_priv) | ||
204 | /* Set up a single primitive covering the area being drawn. We'll | ||
205 | * clip it to port_priv->clip using GL scissors instead of just | ||
206 | * emitting a GL_QUAD per box, because this way we hopefully avoid | ||
207 | - * diagonal tearing between the two trangles used to rasterize a | ||
208 | + * diagonal tearing between the two triangles used to rasterize a | ||
209 | * GL_QUAD. | ||
210 | */ | ||
211 | i = 0; | ||
212 | @@ -417,6 +499,7 @@ glamor_xv_put_image(glamor_port_private *port_priv, | ||
213 | RegionPtr clipBoxes) | ||
214 | { | ||
215 | ScreenPtr pScreen = pDrawable->pScreen; | ||
216 | + glamor_screen_private *glamor_priv = glamor_get_screen_private(pScreen); | ||
217 | int srcPitch, srcPitch2; | ||
218 | int top, nlines; | ||
219 | int s2offset, s3offset, tmp; | ||
220 | @@ -425,9 +508,16 @@ glamor_xv_put_image(glamor_port_private *port_priv, | ||
221 | s2offset = s3offset = srcPitch2 = 0; | ||
222 | |||
223 | if (!port_priv->src_pix[0] || | ||
224 | - (width != port_priv->src_pix_w || height != port_priv->src_pix_h)) { | ||
225 | + (width != port_priv->src_pix_w || height != port_priv->src_pix_h) || | ||
226 | + (port_priv->src_pix[2] && id == FOURCC_NV12) || | ||
227 | + (!port_priv->src_pix[2] && id != FOURCC_NV12)) { | ||
228 | int i; | ||
229 | |||
230 | + if (glamor_priv->xv_prog.prog) { | ||
231 | + glDeleteProgram(glamor_priv->xv_prog.prog); | ||
232 | + glamor_priv->xv_prog.prog = 0; | ||
233 | + } | ||
234 | + | ||
235 | for (i = 0; i < 3; i++) | ||
236 | if (port_priv->src_pix[i]) | ||
237 | glamor_destroy_pixmap(port_priv->src_pix[i]); | ||
238 | @@ -435,17 +525,34 @@ glamor_xv_put_image(glamor_port_private *port_priv, | ||
239 | port_priv->src_pix[0] = | ||
240 | glamor_create_pixmap(pScreen, width, height, 8, | ||
241 | GLAMOR_CREATE_FBO_NO_FBO); | ||
242 | - port_priv->src_pix[1] = | ||
243 | - glamor_create_pixmap(pScreen, width >> 1, height >> 1, 8, | ||
244 | - GLAMOR_CREATE_FBO_NO_FBO); | ||
245 | - port_priv->src_pix[2] = | ||
246 | - glamor_create_pixmap(pScreen, width >> 1, height >> 1, 8, | ||
247 | - GLAMOR_CREATE_FBO_NO_FBO); | ||
248 | + | ||
249 | + switch (id) { | ||
250 | + case FOURCC_YV12: | ||
251 | + case FOURCC_I420: | ||
252 | + port_priv->src_pix[1] = | ||
253 | + glamor_create_pixmap(pScreen, width >> 1, height >> 1, 8, | ||
254 | + GLAMOR_CREATE_FBO_NO_FBO); | ||
255 | + port_priv->src_pix[2] = | ||
256 | + glamor_create_pixmap(pScreen, width >> 1, height >> 1, 8, | ||
257 | + GLAMOR_CREATE_FBO_NO_FBO); | ||
258 | + if (!port_priv->src_pix[2]) | ||
259 | + return BadAlloc; | ||
260 | + break; | ||
261 | + case FOURCC_NV12: | ||
262 | + port_priv->src_pix[1] = | ||
263 | + glamor_create_pixmap(pScreen, width >> 1, height >> 1, 16, | ||
264 | + GLAMOR_CREATE_FBO_NO_FBO | | ||
265 | + GLAMOR_CREATE_FORMAT_CBCR); | ||
266 | + port_priv->src_pix[2] = NULL; | ||
267 | + break; | ||
268 | + default: | ||
269 | + return BadMatch; | ||
270 | + } | ||
271 | + | ||
272 | port_priv->src_pix_w = width; | ||
273 | port_priv->src_pix_h = height; | ||
274 | |||
275 | - if (!port_priv->src_pix[0] || !port_priv->src_pix[1] || | ||
276 | - !port_priv->src_pix[2]) | ||
277 | + if (!port_priv->src_pix[0] || !port_priv->src_pix[1]) | ||
278 | return BadAlloc; | ||
279 | } | ||
280 | |||
281 | @@ -489,6 +596,29 @@ glamor_xv_put_image(glamor_port_private *port_priv, | ||
282 | 0, 0, 0, 0, | ||
283 | buf + s3offset, srcPitch2); | ||
284 | break; | ||
285 | + case FOURCC_NV12: | ||
286 | + srcPitch = ALIGN(width, 4); | ||
287 | + s2offset = srcPitch * height; | ||
288 | + s2offset += ((top >> 1) * srcPitch); | ||
289 | + | ||
290 | + full_box.x1 = 0; | ||
291 | + full_box.y1 = 0; | ||
292 | + full_box.x2 = width; | ||
293 | + full_box.y2 = nlines; | ||
294 | + | ||
295 | + half_box.x1 = 0; | ||
296 | + half_box.y1 = 0; | ||
297 | + half_box.x2 = width; | ||
298 | + half_box.y2 = (nlines + 1) >> 1; | ||
299 | + | ||
300 | + glamor_upload_boxes(port_priv->src_pix[0], &full_box, 1, | ||
301 | + 0, 0, 0, 0, | ||
302 | + buf + (top * srcPitch), srcPitch); | ||
303 | + | ||
304 | + glamor_upload_boxes(port_priv->src_pix[1], &half_box, 1, | ||
305 | + 0, 0, 0, 0, | ||
306 | + buf + s2offset, srcPitch); | ||
307 | + break; | ||
308 | default: | ||
309 | return BadMatch; | ||
310 | } | ||
311 | @@ -511,7 +641,7 @@ glamor_xv_put_image(glamor_port_private *port_priv, | ||
312 | port_priv->w = width; | ||
313 | port_priv->h = height; | ||
314 | port_priv->pDraw = pDrawable; | ||
315 | - glamor_xv_render(port_priv); | ||
316 | + glamor_xv_render(port_priv, id); | ||
317 | return Success; | ||
318 | } | ||
319 | |||
320 | -- | ||
321 | 2.17.1 | ||
322 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0004-glamor-Remove-unused-format_for_pixmap-helper.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0004-glamor-Remove-unused-format_for_pixmap-helper.patch new file mode 100644 index 00000000..c116576f --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0004-glamor-Remove-unused-format_for_pixmap-helper.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 69892ca6a623057ed4e3be0c22cb7fd812425024 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com> | ||
3 | Date: Wed, 19 Dec 2018 10:11:22 +0100 | ||
4 | Subject: [PATCH 4/8] glamor: Remove unused format_for_pixmap helper | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | Reviewed-by: Eric Anholt <eric@anholt.net> | ||
8 | --- | ||
9 | glamor/glamor_utils.h | 6 ------ | ||
10 | 1 file changed, 6 deletions(-) | ||
11 | |||
12 | diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h | ||
13 | index 1890c1fe5..8a147ca7e 100644 | ||
14 | --- a/glamor/glamor_utils.h | ||
15 | +++ b/glamor/glamor_utils.h | ||
16 | @@ -629,12 +629,6 @@ gl_iformat_for_pixmap(PixmapPtr pixmap) | ||
17 | } | ||
18 | } | ||
19 | |||
20 | -static inline CARD32 | ||
21 | -format_for_pixmap(PixmapPtr pixmap) | ||
22 | -{ | ||
23 | - return format_for_depth((pixmap)->drawable.depth); | ||
24 | -} | ||
25 | - | ||
26 | #define REVERT_NONE 0 | ||
27 | #define REVERT_NORMAL 1 | ||
28 | #define REVERT_UPLOADING_A1 3 | ||
29 | -- | ||
30 | 2.17.1 | ||
31 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0005-glamor-Stop-trying-to-store-the-pixmap-s-format-in-g.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0005-glamor-Stop-trying-to-store-the-pixmap-s-format-in-g.patch new file mode 100644 index 00000000..9a0aa7ab --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0005-glamor-Stop-trying-to-store-the-pixmap-s-format-in-g.patch | |||
@@ -0,0 +1,132 @@ | |||
1 | From 2498f6712c3b551c4d8104628aff78246b5cd6c8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Eric Anholt <eric@anholt.net> | ||
3 | Date: Tue, 26 Mar 2019 15:58:59 -0700 | ||
4 | Subject: [PATCH 5/8] glamor: Stop trying to store the pixmap's "format" in | ||
5 | glamor_pixmap_fbo. | ||
6 | |||
7 | "format" is a bit of a confused term (internalformat vs GL format), | ||
8 | and all we really needed was "is this GL_RED?" | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | Signed-off-by: Eric Anholt <eric@anholt.net> | ||
12 | --- | ||
13 | glamor/glamor.c | 3 +-- | ||
14 | glamor/glamor_fbo.c | 7 ++++--- | ||
15 | glamor/glamor_priv.h | 13 ++----------- | ||
16 | glamor/glamor_render.c | 2 +- | ||
17 | glamor/glamor_transfer.c | 2 +- | ||
18 | 5 files changed, 9 insertions(+), 18 deletions(-) | ||
19 | |||
20 | diff --git a/glamor/glamor.c b/glamor/glamor.c | ||
21 | index 3e9cf284c..c36b6ea74 100644 | ||
22 | --- a/glamor/glamor.c | ||
23 | +++ b/glamor/glamor.c | ||
24 | @@ -184,8 +184,7 @@ glamor_bind_texture(glamor_screen_private *glamor_priv, GLenum texture, | ||
25 | /* Is the operand a GL_RED fbo? | ||
26 | */ | ||
27 | |||
28 | - if (glamor_fbo_red_is_alpha(glamor_priv, fbo)) { | ||
29 | - | ||
30 | + if (fbo->is_red) { | ||
31 | /* If destination is also GL_RED, then preserve the bits in | ||
32 | * the R channel */ | ||
33 | |||
34 | diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c | ||
35 | index f939a6c2f..58eb97bf4 100644 | ||
36 | --- a/glamor/glamor_fbo.c | ||
37 | +++ b/glamor/glamor_fbo.c | ||
38 | @@ -95,7 +95,7 @@ glamor_pixmap_ensure_fb(glamor_screen_private *glamor_priv, | ||
39 | |||
40 | glamor_pixmap_fbo * | ||
41 | glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
42 | - int w, int h, GLenum format, GLint tex, int flag) | ||
43 | + int w, int h, Bool is_red, GLint tex, int flag) | ||
44 | { | ||
45 | glamor_pixmap_fbo *fbo; | ||
46 | |||
47 | @@ -106,7 +106,7 @@ glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
48 | fbo->tex = tex; | ||
49 | fbo->width = w; | ||
50 | fbo->height = h; | ||
51 | - fbo->format = format; | ||
52 | + fbo->is_red = is_red; | ||
53 | |||
54 | if (flag != GLAMOR_CREATE_FBO_NO_FBO) { | ||
55 | if (glamor_pixmap_ensure_fb(glamor_priv, fbo) != 0) { | ||
56 | @@ -163,7 +163,8 @@ glamor_create_fbo(glamor_screen_private *glamor_priv, | ||
57 | if (!tex) /* Texture creation failed due to GL_OUT_OF_MEMORY */ | ||
58 | return NULL; | ||
59 | |||
60 | - return glamor_create_fbo_from_tex(glamor_priv, w, h, format, tex, flag); | ||
61 | + return glamor_create_fbo_from_tex(glamor_priv, w, h, format == GL_RED, | ||
62 | + tex, flag); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h | ||
67 | index a14aaf624..e70d349da 100644 | ||
68 | --- a/glamor/glamor_priv.h | ||
69 | +++ b/glamor/glamor_priv.h | ||
70 | @@ -317,8 +317,7 @@ typedef struct glamor_pixmap_fbo { | ||
71 | GLuint fb; /**< GL FBO name */ | ||
72 | int width; /**< width in pixels */ | ||
73 | int height; /**< height in pixels */ | ||
74 | - GLenum format; /**< GL format used to create the texture. */ | ||
75 | - GLenum type; /**< GL type used to create the texture. */ | ||
76 | + Bool is_red; | ||
77 | } glamor_pixmap_fbo; | ||
78 | |||
79 | typedef struct glamor_pixmap_clipped_regions { | ||
80 | @@ -533,7 +532,7 @@ glamor_pixmap_fbo *glamor_pixmap_detach_fbo(glamor_pixmap_private * | ||
81 | void glamor_pixmap_attach_fbo(PixmapPtr pixmap, glamor_pixmap_fbo *fbo); | ||
82 | glamor_pixmap_fbo *glamor_create_fbo_from_tex(glamor_screen_private * | ||
83 | glamor_priv, int w, int h, | ||
84 | - GLenum format, GLint tex, | ||
85 | + Bool is_red, GLint tex, | ||
86 | int flag); | ||
87 | glamor_pixmap_fbo *glamor_create_fbo(glamor_screen_private *glamor_priv, int w, | ||
88 | int h, GLenum format, int flag); | ||
89 | @@ -549,14 +548,6 @@ static inline Bool glamor_picture_is_alpha(PicturePtr picture) | ||
90 | return picture->format == PICT_a1 || picture->format == PICT_a8; | ||
91 | } | ||
92 | |||
93 | -/* Return whether 'fbo' is storing alpha bits in the red channel */ | ||
94 | -static inline Bool | ||
95 | -glamor_fbo_red_is_alpha(glamor_screen_private *glamor_priv, glamor_pixmap_fbo *fbo) | ||
96 | -{ | ||
97 | - /* True when the format is GL_RED (that can only happen when our one channel format is GL_RED */ | ||
98 | - return fbo->format == GL_RED; | ||
99 | -} | ||
100 | - | ||
101 | /* Return whether 'picture' is storing alpha bits in the red channel */ | ||
102 | static inline Bool | ||
103 | glamor_picture_red_is_alpha(PicturePtr picture) | ||
104 | diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c | ||
105 | index d5737018f..6db6bfbc3 100644 | ||
106 | --- a/glamor/glamor_render.c | ||
107 | +++ b/glamor/glamor_render.c | ||
108 | @@ -529,7 +529,7 @@ glamor_set_composite_texture(glamor_screen_private *glamor_priv, int unit, | ||
109 | * sometimes get zero bits in the R channel, which is harmless. | ||
110 | */ | ||
111 | glamor_bind_texture(glamor_priv, GL_TEXTURE0 + unit, fbo, | ||
112 | - glamor_fbo_red_is_alpha(glamor_priv, dest_priv->fbo)); | ||
113 | + dest_priv->fbo->is_red); | ||
114 | repeat_type = picture->repeatType; | ||
115 | switch (picture->repeatType) { | ||
116 | case RepeatNone: | ||
117 | diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c | ||
118 | index 421ed3a5f..215752d7b 100644 | ||
119 | --- a/glamor/glamor_transfer.c | ||
120 | +++ b/glamor/glamor_transfer.c | ||
121 | @@ -40,7 +40,7 @@ glamor_format_for_pixmap(PixmapPtr pixmap, GLenum *format, GLenum *type) | ||
122 | break; | ||
123 | case 16: | ||
124 | if (priv->is_cbcr) { | ||
125 | - *format = priv->fbo->format; | ||
126 | + *format = GL_RG; | ||
127 | *type = GL_UNSIGNED_BYTE; | ||
128 | } else { | ||
129 | *format = GL_RGB; | ||
130 | -- | ||
131 | 2.17.1 | ||
132 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0006-glamor-Plumb-the-pixmap-through-fbo-creation-instead.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0006-glamor-Plumb-the-pixmap-through-fbo-creation-instead.patch new file mode 100644 index 00000000..66d2877c --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0006-glamor-Plumb-the-pixmap-through-fbo-creation-instead.patch | |||
@@ -0,0 +1,265 @@ | |||
1 | From 3c14a16e1b4277aa00a2b23d5758d99dc20ca819 Mon Sep 17 00:00:00 2001 | ||
2 | From: Eric Anholt <eric@anholt.net> | ||
3 | Date: Tue, 26 Mar 2019 16:57:24 -0700 | ||
4 | Subject: [PATCH 6/8] glamor: Plumb the pixmap through fbo creation instead of | ||
5 | a "format" | ||
6 | |||
7 | For GLES, we're going to need a lot more logic for picking the | ||
8 | iformat/format/type of texture setup, so we'll want the pixmap's depth | ||
9 | and is_cbcr flag. | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | Signed-off-by: Eric Anholt <eric@anholt.net> | ||
13 | --- | ||
14 | glamor/glamor.c | 20 +++++++------------- | ||
15 | glamor/glamor_fbo.c | 33 +++++++++++++++++++-------------- | ||
16 | glamor/glamor_picture.c | 2 +- | ||
17 | glamor/glamor_priv.h | 12 ++++++------ | ||
18 | 4 files changed, 33 insertions(+), 34 deletions(-) | ||
19 | |||
20 | diff --git a/glamor/glamor.c b/glamor/glamor.c | ||
21 | index c36b6ea74..f618c2128 100644 | ||
22 | --- a/glamor/glamor.c | ||
23 | +++ b/glamor/glamor.c | ||
24 | @@ -106,7 +106,6 @@ glamor_set_pixmap_texture(PixmapPtr pixmap, unsigned int tex) | ||
25 | glamor_pixmap_private *pixmap_priv; | ||
26 | glamor_screen_private *glamor_priv; | ||
27 | glamor_pixmap_fbo *fbo; | ||
28 | - GLenum format; | ||
29 | |||
30 | glamor_priv = glamor_get_screen_private(screen); | ||
31 | pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
32 | @@ -116,9 +115,9 @@ glamor_set_pixmap_texture(PixmapPtr pixmap, unsigned int tex) | ||
33 | glamor_destroy_fbo(glamor_priv, fbo); | ||
34 | } | ||
35 | |||
36 | - format = gl_iformat_for_pixmap(pixmap); | ||
37 | - fbo = glamor_create_fbo_from_tex(glamor_priv, pixmap->drawable.width, | ||
38 | - pixmap->drawable.height, format, tex, 0); | ||
39 | + fbo = glamor_create_fbo_from_tex(glamor_priv, pixmap, | ||
40 | + pixmap->drawable.width, | ||
41 | + pixmap->drawable.height, tex, 0); | ||
42 | |||
43 | if (fbo == NULL) { | ||
44 | ErrorF("XXX fail to create fbo.\n"); | ||
45 | @@ -204,7 +203,6 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, | ||
46 | glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
47 | glamor_pixmap_fbo *fbo = NULL; | ||
48 | int pitch; | ||
49 | - GLenum format; | ||
50 | |||
51 | if (w > 32767 || h > 32767) | ||
52 | return NullPixmap; | ||
53 | @@ -223,8 +221,6 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, | ||
54 | |||
55 | pixmap_priv->is_cbcr = (usage == GLAMOR_CREATE_FORMAT_CBCR); | ||
56 | |||
57 | - format = gl_iformat_for_pixmap(pixmap); | ||
58 | - | ||
59 | pitch = (((w * pixmap->drawable.bitsPerPixel + 7) / 8) + 3) & ~3; | ||
60 | screen->ModifyPixmapHeader(pixmap, w, h, 0, 0, pitch, NULL); | ||
61 | |||
62 | @@ -238,12 +234,12 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, | ||
63 | glamor_check_fbo_size(glamor_priv, w, h)) | ||
64 | { | ||
65 | glamor_init_pixmap_private_small(pixmap, pixmap_priv); | ||
66 | - fbo = glamor_create_fbo(glamor_priv, w, h, format, usage); | ||
67 | + fbo = glamor_create_fbo(glamor_priv, pixmap, w, h, usage); | ||
68 | } else { | ||
69 | int tile_size = glamor_priv->max_fbo_size; | ||
70 | DEBUGF("Create LARGE pixmap %p width %d height %d, tile size %d\n", | ||
71 | pixmap, w, h, tile_size); | ||
72 | - fbo = glamor_create_fbo_array(glamor_priv, w, h, format, usage, | ||
73 | + fbo = glamor_create_fbo_array(glamor_priv, pixmap, usage, | ||
74 | tile_size, tile_size, pixmap_priv); | ||
75 | } | ||
76 | |||
77 | @@ -860,8 +856,7 @@ _glamor_fds_from_pixmap(ScreenPtr screen, PixmapPtr pixmap, int *fds, | ||
78 | switch (pixmap_priv->type) { | ||
79 | case GLAMOR_TEXTURE_DRM: | ||
80 | case GLAMOR_TEXTURE_ONLY: | ||
81 | - if (!glamor_pixmap_ensure_fbo(pixmap, pixmap->drawable.depth == 30 ? | ||
82 | - GL_RGB10_A2 : GL_RGBA, 0)) | ||
83 | + if (!glamor_pixmap_ensure_fbo(pixmap, 0)) | ||
84 | return 0; | ||
85 | |||
86 | if (modifier) { | ||
87 | @@ -937,8 +932,7 @@ glamor_name_from_pixmap(PixmapPtr pixmap, CARD16 *stride, CARD32 *size) | ||
88 | switch (pixmap_priv->type) { | ||
89 | case GLAMOR_TEXTURE_DRM: | ||
90 | case GLAMOR_TEXTURE_ONLY: | ||
91 | - if (!glamor_pixmap_ensure_fbo(pixmap, pixmap->drawable.depth == 30 ? | ||
92 | - GL_RGB10_A2 : GL_RGBA, 0)) | ||
93 | + if (!glamor_pixmap_ensure_fbo(pixmap, 0)) | ||
94 | return -1; | ||
95 | return glamor_egl_fd_name_from_pixmap(pixmap->drawable.pScreen, | ||
96 | pixmap, stride, size); | ||
97 | diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c | ||
98 | index 58eb97bf4..75f7e2baa 100644 | ||
99 | --- a/glamor/glamor_fbo.c | ||
100 | +++ b/glamor/glamor_fbo.c | ||
101 | @@ -95,8 +95,9 @@ glamor_pixmap_ensure_fb(glamor_screen_private *glamor_priv, | ||
102 | |||
103 | glamor_pixmap_fbo * | ||
104 | glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
105 | - int w, int h, Bool is_red, GLint tex, int flag) | ||
106 | + PixmapPtr pixmap, int w, int h, GLint tex, int flag) | ||
107 | { | ||
108 | + GLenum format = gl_iformat_for_pixmap(pixmap); | ||
109 | glamor_pixmap_fbo *fbo; | ||
110 | |||
111 | fbo = calloc(1, sizeof(*fbo)); | ||
112 | @@ -106,7 +107,7 @@ glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
113 | fbo->tex = tex; | ||
114 | fbo->width = w; | ||
115 | fbo->height = h; | ||
116 | - fbo->is_red = is_red; | ||
117 | + fbo->is_red = format == GL_RED; | ||
118 | |||
119 | if (flag != GLAMOR_CREATE_FBO_NO_FBO) { | ||
120 | if (glamor_pixmap_ensure_fb(glamor_priv, fbo) != 0) { | ||
121 | @@ -120,13 +121,15 @@ glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
122 | |||
123 | static int | ||
124 | _glamor_create_tex(glamor_screen_private *glamor_priv, | ||
125 | - int w, int h, GLenum format) | ||
126 | + PixmapPtr pixmap, int w, int h) | ||
127 | { | ||
128 | + GLenum iformat = gl_iformat_for_pixmap(pixmap); | ||
129 | + GLenum format = iformat; | ||
130 | unsigned int tex; | ||
131 | - GLenum iformat = format; | ||
132 | |||
133 | if (format == GL_RGB10_A2) | ||
134 | format = GL_RGBA; | ||
135 | + | ||
136 | glamor_make_current(glamor_priv); | ||
137 | glGenTextures(1, &tex); | ||
138 | glBindTexture(GL_TEXTURE_2D, tex); | ||
139 | @@ -156,14 +159,14 @@ _glamor_create_tex(glamor_screen_private *glamor_priv, | ||
140 | |||
141 | glamor_pixmap_fbo * | ||
142 | glamor_create_fbo(glamor_screen_private *glamor_priv, | ||
143 | - int w, int h, GLenum format, int flag) | ||
144 | + PixmapPtr pixmap, int w, int h, int flag) | ||
145 | { | ||
146 | - GLint tex = _glamor_create_tex(glamor_priv, w, h, format); | ||
147 | + GLint tex = _glamor_create_tex(glamor_priv, pixmap, w, h); | ||
148 | |||
149 | if (!tex) /* Texture creation failed due to GL_OUT_OF_MEMORY */ | ||
150 | return NULL; | ||
151 | |||
152 | - return glamor_create_fbo_from_tex(glamor_priv, w, h, format == GL_RED, | ||
153 | + return glamor_create_fbo_from_tex(glamor_priv, pixmap, w, h, | ||
154 | tex, flag); | ||
155 | } | ||
156 | |||
157 | @@ -173,10 +176,12 @@ glamor_create_fbo(glamor_screen_private *glamor_priv, | ||
158 | */ | ||
159 | glamor_pixmap_fbo * | ||
160 | glamor_create_fbo_array(glamor_screen_private *glamor_priv, | ||
161 | - int w, int h, GLenum format, int flag, | ||
162 | + PixmapPtr pixmap, int flag, | ||
163 | int block_w, int block_h, | ||
164 | glamor_pixmap_private *priv) | ||
165 | { | ||
166 | + int w = pixmap->drawable.width; | ||
167 | + int h = pixmap->drawable.height; | ||
168 | int block_wcnt; | ||
169 | int block_hcnt; | ||
170 | glamor_pixmap_fbo **fbo_array; | ||
171 | @@ -216,8 +221,8 @@ glamor_create_fbo_array(glamor_screen_private *glamor_priv, | ||
172 | box_array[i * block_wcnt + j].x2 - box_array[i * block_wcnt + | ||
173 | j].x1; | ||
174 | fbo_array[i * block_wcnt + j] = glamor_create_fbo(glamor_priv, | ||
175 | + pixmap, | ||
176 | fbo_w, fbo_h, | ||
177 | - format, | ||
178 | GLAMOR_CREATE_PIXMAP_FIXUP); | ||
179 | if (fbo_array[i * block_wcnt + j] == NULL) | ||
180 | goto cleanup; | ||
181 | @@ -315,7 +320,7 @@ glamor_pixmap_destroy_fbo(PixmapPtr pixmap) | ||
182 | } | ||
183 | |||
184 | Bool | ||
185 | -glamor_pixmap_ensure_fbo(PixmapPtr pixmap, GLenum format, int flag) | ||
186 | +glamor_pixmap_ensure_fbo(PixmapPtr pixmap, int flag) | ||
187 | { | ||
188 | glamor_screen_private *glamor_priv; | ||
189 | glamor_pixmap_private *pixmap_priv; | ||
190 | @@ -325,8 +330,8 @@ glamor_pixmap_ensure_fbo(PixmapPtr pixmap, GLenum format, int flag) | ||
191 | pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
192 | if (pixmap_priv->fbo == NULL) { | ||
193 | |||
194 | - fbo = glamor_create_fbo(glamor_priv, pixmap->drawable.width, | ||
195 | - pixmap->drawable.height, format, flag); | ||
196 | + fbo = glamor_create_fbo(glamor_priv, pixmap, pixmap->drawable.width, | ||
197 | + pixmap->drawable.height, flag); | ||
198 | if (fbo == NULL) | ||
199 | return FALSE; | ||
200 | |||
201 | @@ -336,8 +341,8 @@ glamor_pixmap_ensure_fbo(PixmapPtr pixmap, GLenum format, int flag) | ||
202 | /* We do have a fbo, but it may lack of fb or tex. */ | ||
203 | if (!pixmap_priv->fbo->tex) | ||
204 | pixmap_priv->fbo->tex = | ||
205 | - _glamor_create_tex(glamor_priv, pixmap->drawable.width, | ||
206 | - pixmap->drawable.height, format); | ||
207 | + _glamor_create_tex(glamor_priv, pixmap, pixmap->drawable.width, | ||
208 | + pixmap->drawable.height); | ||
209 | |||
210 | if (flag != GLAMOR_CREATE_FBO_NO_FBO && pixmap_priv->fbo->fb == 0) | ||
211 | if (glamor_pixmap_ensure_fb(glamor_priv, pixmap_priv->fbo) != 0) | ||
212 | diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c | ||
213 | index 685d8d618..e6d387d42 100644 | ||
214 | --- a/glamor/glamor_picture.c | ||
215 | +++ b/glamor/glamor_picture.c | ||
216 | @@ -340,7 +340,7 @@ glamor_upload_picture_to_texture(PicturePtr picture) | ||
217 | else | ||
218 | iformat = format; | ||
219 | |||
220 | - if (!glamor_pixmap_ensure_fbo(pixmap, iformat, GLAMOR_CREATE_FBO_NO_FBO)) { | ||
221 | + if (!glamor_pixmap_ensure_fbo(pixmap, GLAMOR_CREATE_FBO_NO_FBO)) { | ||
222 | ret = FALSE; | ||
223 | goto fail; | ||
224 | } | ||
225 | diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h | ||
226 | index e70d349da..a87caec9b 100644 | ||
227 | --- a/glamor/glamor_priv.h | ||
228 | +++ b/glamor/glamor_priv.h | ||
229 | @@ -531,11 +531,11 @@ glamor_pixmap_fbo *glamor_pixmap_detach_fbo(glamor_pixmap_private * | ||
230 | pixmap_priv); | ||
231 | void glamor_pixmap_attach_fbo(PixmapPtr pixmap, glamor_pixmap_fbo *fbo); | ||
232 | glamor_pixmap_fbo *glamor_create_fbo_from_tex(glamor_screen_private * | ||
233 | - glamor_priv, int w, int h, | ||
234 | - Bool is_red, GLint tex, | ||
235 | + glamor_priv, PixmapPtr pixmap, | ||
236 | + int w, int h, GLint tex, | ||
237 | int flag); | ||
238 | -glamor_pixmap_fbo *glamor_create_fbo(glamor_screen_private *glamor_priv, int w, | ||
239 | - int h, GLenum format, int flag); | ||
240 | +glamor_pixmap_fbo *glamor_create_fbo(glamor_screen_private *glamor_priv, | ||
241 | + PixmapPtr pixmap, int w, int h, int flag); | ||
242 | void glamor_destroy_fbo(glamor_screen_private *glamor_priv, | ||
243 | glamor_pixmap_fbo *fbo); | ||
244 | void glamor_pixmap_destroy_fbo(PixmapPtr pixmap); | ||
245 | @@ -563,7 +563,7 @@ void glamor_bind_texture(glamor_screen_private *glamor_priv, | ||
246 | Bool destination_red); | ||
247 | |||
248 | glamor_pixmap_fbo *glamor_create_fbo_array(glamor_screen_private *glamor_priv, | ||
249 | - int w, int h, GLenum format, | ||
250 | + PixmapPtr pixmap, | ||
251 | int flag, int block_w, int block_h, | ||
252 | glamor_pixmap_private *); | ||
253 | |||
254 | @@ -673,7 +673,7 @@ glamor_put_vbo_space(ScreenPtr screen); | ||
255 | * the fbo has valid texture and attach to a valid fb. | ||
256 | * If the fbo already has a valid glfbo then do nothing. | ||
257 | */ | ||
258 | -Bool glamor_pixmap_ensure_fbo(PixmapPtr pixmap, GLenum format, int flag); | ||
259 | +Bool glamor_pixmap_ensure_fbo(PixmapPtr pixmap, int flag); | ||
260 | |||
261 | glamor_pixmap_clipped_regions * | ||
262 | glamor_compute_clipped_regions(PixmapPtr pixmap, | ||
263 | -- | ||
264 | 2.17.1 | ||
265 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0007-glamor-Switch-the-gl_flavor-to-a-boolean-is_gles.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0007-glamor-Switch-the-gl_flavor-to-a-boolean-is_gles.patch new file mode 100644 index 00000000..f2947f32 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0007-glamor-Switch-the-gl_flavor-to-a-boolean-is_gles.patch | |||
@@ -0,0 +1,287 @@ | |||
1 | From 3a03576d672d24f19fdb930b08afde9a3a3f55da Mon Sep 17 00:00:00 2001 | ||
2 | From: Eric Anholt <eric@anholt.net> | ||
3 | Date: Tue, 26 Mar 2019 15:02:38 -0700 | ||
4 | Subject: [PATCH 7/8] glamor: Switch the gl_flavor to a boolean is_gles. | ||
5 | |||
6 | There are only 2 flavors we are distinguishing -- GL versions are | ||
7 | handled separately. | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | Signed-off-by: Eric Anholt <eric@anholt.net> | ||
11 | --- | ||
12 | glamor/glamor.c | 20 +++++++++----------- | ||
13 | glamor/glamor_picture.c | 22 +++++++++++----------- | ||
14 | glamor/glamor_pixmap.c | 2 +- | ||
15 | glamor/glamor_priv.h | 7 +------ | ||
16 | glamor/glamor_program.c | 2 +- | ||
17 | glamor/glamor_render.c | 2 +- | ||
18 | glamor/glamor_utils.h | 6 +++--- | ||
19 | 7 files changed, 27 insertions(+), 34 deletions(-) | ||
20 | |||
21 | diff --git a/glamor/glamor.c b/glamor/glamor.c | ||
22 | index f618c2128..019edbbb1 100644 | ||
23 | --- a/glamor/glamor.c | ||
24 | +++ b/glamor/glamor.c | ||
25 | @@ -505,10 +505,8 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
26 | |||
27 | glamor_make_current(glamor_priv); | ||
28 | |||
29 | - if (epoxy_is_desktop_gl()) | ||
30 | - glamor_priv->gl_flavor = GLAMOR_GL_DESKTOP; | ||
31 | - else | ||
32 | - glamor_priv->gl_flavor = GLAMOR_GL_ES2; | ||
33 | + if (!epoxy_is_desktop_gl()) | ||
34 | + glamor_priv->is_gles = TRUE; | ||
35 | |||
36 | gl_version = epoxy_gl_version(); | ||
37 | |||
38 | @@ -540,7 +538,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
39 | } | ||
40 | glamor_priv->glsl_version = glsl_major * 100 + glsl_minor; | ||
41 | |||
42 | - if (glamor_priv->gl_flavor == GLAMOR_GL_ES2) { | ||
43 | + if (glamor_priv->is_gles) { | ||
44 | /* Force us back to the base version of our programs on an ES | ||
45 | * context, anyway. Basically glamor only uses desktop 1.20 | ||
46 | * or 1.30 currently. 1.30's new features are also present in | ||
47 | @@ -564,7 +562,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
48 | * have support for it, with most of the ones lacking it being on | ||
49 | * Windows with Intel 4-series (G45) graphics or older. | ||
50 | */ | ||
51 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
52 | + if (!glamor_priv->is_gles) { | ||
53 | if (gl_version < 21) { | ||
54 | ErrorF("Require OpenGL version 2.1 or later.\n"); | ||
55 | goto fail; | ||
56 | @@ -610,7 +608,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
57 | } | ||
58 | |||
59 | glamor_priv->has_rw_pbo = FALSE; | ||
60 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) | ||
61 | + if (!glamor_priv->is_gles) | ||
62 | glamor_priv->has_rw_pbo = TRUE; | ||
63 | |||
64 | glamor_priv->has_khr_debug = epoxy_has_gl_extension("GL_KHR_debug"); | ||
65 | @@ -628,11 +626,11 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
66 | glamor_priv->has_nv_texture_barrier = | ||
67 | epoxy_has_gl_extension("GL_NV_texture_barrier"); | ||
68 | glamor_priv->has_unpack_subimage = | ||
69 | - glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP || | ||
70 | + !glamor_priv->is_gles || | ||
71 | epoxy_gl_version() >= 30 || | ||
72 | epoxy_has_gl_extension("GL_EXT_unpack_subimage"); | ||
73 | glamor_priv->has_pack_subimage = | ||
74 | - glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP || | ||
75 | + !glamor_priv->is_gles || | ||
76 | epoxy_gl_version() >= 30 || | ||
77 | epoxy_has_gl_extension("GL_NV_pack_subimage"); | ||
78 | glamor_priv->has_dual_blend = | ||
79 | @@ -643,7 +641,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
80 | |||
81 | glamor_setup_debug_output(screen); | ||
82 | |||
83 | - glamor_priv->use_quads = (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) && | ||
84 | + glamor_priv->use_quads = !glamor_priv->is_gles && | ||
85 | !glamor_priv->is_core_profile; | ||
86 | |||
87 | /* Driver-specific hack: Avoid using GL_QUADS on VC4, where | ||
88 | @@ -665,7 +663,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
89 | |||
90 | glamor_priv->has_texture_swizzle = | ||
91 | (epoxy_has_gl_extension("GL_ARB_texture_swizzle") || | ||
92 | - (glamor_priv->gl_flavor != GLAMOR_GL_DESKTOP && gl_version >= 30)); | ||
93 | + (glamor_priv->is_gles && gl_version >= 30)); | ||
94 | |||
95 | glamor_priv->one_channel_format = GL_ALPHA; | ||
96 | if (epoxy_has_gl_extension("GL_ARB_texture_rg") && | ||
97 | diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c | ||
98 | index e6d387d42..ed2decc83 100644 | ||
99 | --- a/glamor/glamor_picture.c | ||
100 | +++ b/glamor/glamor_picture.c | ||
101 | @@ -90,7 +90,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
102 | |||
103 | case PICT_b8g8r8x8: | ||
104 | case PICT_b8g8r8a8: | ||
105 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
106 | + if (!glamor_priv->is_gles) { | ||
107 | *tex_format = GL_BGRA; | ||
108 | *tex_type = GL_UNSIGNED_INT_8_8_8_8; | ||
109 | } else { | ||
110 | @@ -109,7 +109,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
111 | |||
112 | case PICT_x8r8g8b8: | ||
113 | case PICT_a8r8g8b8: | ||
114 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
115 | + if (!glamor_priv->is_gles) { | ||
116 | *tex_format = GL_BGRA; | ||
117 | *tex_type = GL_UNSIGNED_INT_8_8_8_8_REV; | ||
118 | } else { | ||
119 | @@ -128,7 +128,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
120 | case PICT_x8b8g8r8: | ||
121 | case PICT_a8b8g8r8: | ||
122 | *tex_format = GL_RGBA; | ||
123 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
124 | + if (!glamor_priv->is_gles) { | ||
125 | *tex_type = GL_UNSIGNED_INT_8_8_8_8_REV; | ||
126 | } else { | ||
127 | *tex_format = GL_RGBA; | ||
128 | @@ -141,7 +141,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
129 | |||
130 | case PICT_x2r10g10b10: | ||
131 | case PICT_a2r10g10b10: | ||
132 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
133 | + if (!glamor_priv->is_gles) { | ||
134 | *tex_format = GL_BGRA; | ||
135 | *tex_type = GL_UNSIGNED_INT_2_10_10_10_REV; | ||
136 | } else { | ||
137 | @@ -151,7 +151,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
138 | |||
139 | case PICT_x2b10g10r10: | ||
140 | case PICT_a2b10g10r10: | ||
141 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
142 | + if (!glamor_priv->is_gles) { | ||
143 | *tex_format = GL_RGBA; | ||
144 | *tex_type = GL_UNSIGNED_INT_2_10_10_10_REV; | ||
145 | } else { | ||
146 | @@ -165,7 +165,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
147 | break; | ||
148 | case PICT_b5g6r5: | ||
149 | *tex_format = GL_RGB; | ||
150 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
151 | + if (!glamor_priv->is_gles) { | ||
152 | *tex_type = GL_UNSIGNED_SHORT_5_6_5_REV; | ||
153 | } else { | ||
154 | *tex_type = GL_UNSIGNED_SHORT_5_6_5; | ||
155 | @@ -177,7 +177,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
156 | case PICT_x1b5g5r5: | ||
157 | case PICT_a1b5g5r5: | ||
158 | *tex_format = GL_RGBA; | ||
159 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
160 | + if (!glamor_priv->is_gles) { | ||
161 | *tex_type = GL_UNSIGNED_SHORT_1_5_5_5_REV; | ||
162 | } else { | ||
163 | return FALSE; | ||
164 | @@ -186,7 +186,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
165 | |||
166 | case PICT_x1r5g5b5: | ||
167 | case PICT_a1r5g5b5: | ||
168 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
169 | + if (!glamor_priv->is_gles) { | ||
170 | *tex_format = GL_BGRA; | ||
171 | *tex_type = GL_UNSIGNED_SHORT_1_5_5_5_REV; | ||
172 | } else { | ||
173 | @@ -201,7 +201,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
174 | |||
175 | case PICT_x4r4g4b4: | ||
176 | case PICT_a4r4g4b4: | ||
177 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
178 | + if (!glamor_priv->is_gles) { | ||
179 | *tex_format = GL_BGRA; | ||
180 | *tex_type = GL_UNSIGNED_SHORT_4_4_4_4_REV; | ||
181 | } else { | ||
182 | @@ -213,7 +213,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
183 | |||
184 | case PICT_x4b4g4r4: | ||
185 | case PICT_a4b4g4r4: | ||
186 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { | ||
187 | + if (!glamor_priv->is_gles) { | ||
188 | *tex_format = GL_RGBA; | ||
189 | *tex_type = GL_UNSIGNED_SHORT_4_4_4_4_REV; | ||
190 | } else { | ||
191 | @@ -335,7 +335,7 @@ glamor_upload_picture_to_texture(PicturePtr picture) | ||
192 | stride = pixman_image_get_stride(converted_image); | ||
193 | } | ||
194 | |||
195 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) | ||
196 | + if (!glamor_priv->is_gles) | ||
197 | iformat = gl_iformat_for_pixmap(pixmap); | ||
198 | else | ||
199 | iformat = format; | ||
200 | diff --git a/glamor/glamor_pixmap.c b/glamor/glamor_pixmap.c | ||
201 | index 166bde509..9aa169cdc 100644 | ||
202 | --- a/glamor/glamor_pixmap.c | ||
203 | +++ b/glamor/glamor_pixmap.c | ||
204 | @@ -124,7 +124,7 @@ glamor_set_alu(ScreenPtr screen, unsigned char alu) | ||
205 | { | ||
206 | glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
207 | |||
208 | - if (glamor_priv->gl_flavor == GLAMOR_GL_ES2) { | ||
209 | + if (glamor_priv->is_gles) { | ||
210 | if (alu != GXcopy) | ||
211 | return FALSE; | ||
212 | else | ||
213 | diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h | ||
214 | index a87caec9b..8e8433ff3 100644 | ||
215 | --- a/glamor/glamor_priv.h | ||
216 | +++ b/glamor/glamor_priv.h | ||
217 | @@ -155,11 +155,6 @@ enum gradient_shader { | ||
218 | struct glamor_screen_private; | ||
219 | struct glamor_pixmap_private; | ||
220 | |||
221 | -enum glamor_gl_flavor { | ||
222 | - GLAMOR_GL_DESKTOP, // OPENGL API | ||
223 | - GLAMOR_GL_ES2 // OPENGL ES2.0 API | ||
224 | -}; | ||
225 | - | ||
226 | #define GLAMOR_COMPOSITE_VBO_VERT_CNT (64*1024) | ||
227 | |||
228 | struct glamor_saved_procs { | ||
229 | @@ -185,7 +180,7 @@ struct glamor_saved_procs { | ||
230 | }; | ||
231 | |||
232 | typedef struct glamor_screen_private { | ||
233 | - enum glamor_gl_flavor gl_flavor; | ||
234 | + Bool is_gles; | ||
235 | int glsl_version; | ||
236 | Bool has_pack_invert; | ||
237 | Bool has_fbo_blit; | ||
238 | diff --git a/glamor/glamor_program.c b/glamor/glamor_program.c | ||
239 | index 830deb38b..b0a9d07a4 100644 | ||
240 | --- a/glamor/glamor_program.c | ||
241 | +++ b/glamor/glamor_program.c | ||
242 | @@ -459,7 +459,7 @@ glamor_set_blend(CARD8 op, glamor_program_alpha alpha, PicturePtr dst) | ||
243 | break; | ||
244 | } | ||
245 | |||
246 | - if (glamor_priv->gl_flavor != GLAMOR_GL_ES2) | ||
247 | + if (!glamor_priv->is_gles) | ||
248 | glDisable(GL_COLOR_LOGIC_OP); | ||
249 | |||
250 | if (op == PictOpSrc) | ||
251 | diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c | ||
252 | index 6db6bfbc3..d3859e4d1 100644 | ||
253 | --- a/glamor/glamor_render.c | ||
254 | +++ b/glamor/glamor_render.c | ||
255 | @@ -1091,7 +1091,7 @@ glamor_composite_set_shader_blend(glamor_screen_private *glamor_priv, | ||
256 | } | ||
257 | } | ||
258 | |||
259 | - if (glamor_priv->gl_flavor != GLAMOR_GL_ES2) | ||
260 | + if (!glamor_priv->is_gles) | ||
261 | glDisable(GL_COLOR_LOGIC_OP); | ||
262 | |||
263 | if (op_info->source_blend == GL_ONE && op_info->dest_blend == GL_ZERO) { | ||
264 | diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h | ||
265 | index 8a147ca7e..cbb808294 100644 | ||
266 | --- a/glamor/glamor_utils.h | ||
267 | +++ b/glamor/glamor_utils.h | ||
268 | @@ -615,13 +615,13 @@ gl_iformat_for_pixmap(PixmapPtr pixmap) | ||
269 | glamor_get_screen_private((pixmap)->drawable.pScreen); | ||
270 | glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
271 | |||
272 | - if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP && | ||
273 | + if (!glamor_priv->is_gles && | ||
274 | ((pixmap)->drawable.depth == 1 || (pixmap)->drawable.depth == 8)) { | ||
275 | return glamor_priv->one_channel_format; | ||
276 | - } else if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP && | ||
277 | + } else if (!glamor_priv->is_gles && | ||
278 | (pixmap)->drawable.depth == 16 && pixmap_priv->is_cbcr) { | ||
279 | return GL_RG; | ||
280 | - } else if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP && | ||
281 | + } else if (!glamor_priv->is_gles && | ||
282 | (pixmap)->drawable.depth == 30) { | ||
283 | return GL_RGB10_A2; | ||
284 | } else { | ||
285 | -- | ||
286 | 2.17.1 | ||
287 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0008-glamor-Introduce-a-central-place-for-our-pixmap-form.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0008-glamor-Introduce-a-central-place-for-our-pixmap-form.patch new file mode 100644 index 00000000..dd82340a --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0008-glamor-Introduce-a-central-place-for-our-pixmap-form.patch | |||
@@ -0,0 +1,669 @@ | |||
1 | From b75296bee6ab3578f3a13cfb6de5d77ec02b9047 Mon Sep 17 00:00:00 2001 | ||
2 | From: Eric Anholt <eric@anholt.net> | ||
3 | Date: Tue, 26 Mar 2019 15:10:49 -0700 | ||
4 | Subject: [PATCH 8/8] glamor: Introduce a central place for our pixmap | ||
5 | format/type handling. | ||
6 | |||
7 | We had various helper functions trying to come up with the | ||
8 | internalformat/format/type/render formats for pixmaps, and it's much | ||
9 | nicer to just detect what those should be once at startup. This gives | ||
10 | us a chance to do the right thing for GLES. | ||
11 | |||
12 | It also, notably, fixes our format/type for depth 15 and 16 setup for | ||
13 | desktop GL, so that we actually allocate 16bpp (GL_RGB/565) on most | ||
14 | drivers instead of 32bpp (GL_RGB/UBYTE). | ||
15 | |||
16 | GLES still has regressions over desktop (2 regressions in llvmpipe | ||
17 | XTS, many in rendercheck), but I think this is a good baseline. | ||
18 | |||
19 | Upstream-Status: Backport | ||
20 | Signed-off-by: Eric Anholt <eric@anholt.net> | ||
21 | --- | ||
22 | glamor/glamor.c | 167 ++++++++++++++++++++++++++++++++++++-- | ||
23 | glamor/glamor_fbo.c | 16 ++-- | ||
24 | glamor/glamor_picture.c | 7 +- | ||
25 | glamor/glamor_priv.h | 22 ++++- | ||
26 | glamor/glamor_render.c | 7 +- | ||
27 | glamor/glamor_spans.c | 14 ++-- | ||
28 | glamor/glamor_transfer.c | 56 ++----------- | ||
29 | glamor/glamor_transfer.h | 3 - | ||
30 | glamor/glamor_transform.c | 5 +- | ||
31 | glamor/glamor_utils.h | 57 ------------- | ||
32 | 10 files changed, 209 insertions(+), 145 deletions(-) | ||
33 | |||
34 | diff --git a/glamor/glamor.c b/glamor/glamor.c | ||
35 | index 019edbbb1..3450113e0 100644 | ||
36 | --- a/glamor/glamor.c | ||
37 | +++ b/glamor/glamor.c | ||
38 | @@ -212,7 +212,7 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, | ||
39 | w <= glamor_priv->glyph_max_dim && | ||
40 | h <= glamor_priv->glyph_max_dim) | ||
41 | || (w == 0 && h == 0) | ||
42 | - || !glamor_check_pixmap_fbo_depth(depth))) | ||
43 | + || !glamor_priv->formats[depth].format)) | ||
44 | return fbCreatePixmap(screen, w, h, depth, usage); | ||
45 | else | ||
46 | pixmap = fbCreatePixmap(screen, 0, 0, depth, usage); | ||
47 | @@ -440,6 +440,165 @@ glamor_setup_debug_output(ScreenPtr screen) | ||
48 | glEnable(GL_DEBUG_OUTPUT); | ||
49 | } | ||
50 | |||
51 | +const struct glamor_format * | ||
52 | +glamor_format_for_pixmap(PixmapPtr pixmap) | ||
53 | +{ | ||
54 | + ScreenPtr pScreen = pixmap->drawable.pScreen; | ||
55 | + glamor_screen_private *glamor_priv = glamor_get_screen_private(pScreen); | ||
56 | + glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
57 | + | ||
58 | + if (pixmap_priv->is_cbcr) | ||
59 | + return &glamor_priv->cbcr_format; | ||
60 | + else | ||
61 | + return &glamor_priv->formats[pixmap->drawable.depth]; | ||
62 | +} | ||
63 | + | ||
64 | +static void | ||
65 | +glamor_add_format(ScreenPtr screen, int depth, CARD32 render_format, | ||
66 | + GLenum internalformat, GLenum format, GLenum type) | ||
67 | +{ | ||
68 | + glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
69 | + struct glamor_format *f = &glamor_priv->formats[depth]; | ||
70 | + | ||
71 | + /* If we're trying to run on GLES, make sure that we get the read | ||
72 | + * formats that we're expecting, since glamor_transfer relies on | ||
73 | + * them matching to get data back out. To avoid this limitation, we | ||
74 | + * would need to have a more general glReadPixels() path in | ||
75 | + * glamor_transfer that re-encoded the bits to the pixel format that | ||
76 | + * we intended after. | ||
77 | + * | ||
78 | + * Note that we can't just create a pixmap because we're in | ||
79 | + * screeninit. | ||
80 | + */ | ||
81 | + if (glamor_priv->is_gles) { | ||
82 | + unsigned fbo, tex; | ||
83 | + int read_format, read_type; | ||
84 | + GLenum status; | ||
85 | + | ||
86 | + glGenTextures(1, &tex); | ||
87 | + glBindTexture(GL_TEXTURE_2D, tex); | ||
88 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); | ||
89 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); | ||
90 | + glTexImage2D(GL_TEXTURE_2D, 0, internalformat, 1, 1, 0, | ||
91 | + format, type, NULL); | ||
92 | + | ||
93 | + glGenFramebuffers(1, &fbo); | ||
94 | + glBindFramebuffer(GL_FRAMEBUFFER, fbo); | ||
95 | + glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, | ||
96 | + GL_TEXTURE_2D, tex, 0); | ||
97 | + status = glCheckFramebufferStatus(GL_FRAMEBUFFER); | ||
98 | + if (status != GL_FRAMEBUFFER_COMPLETE) { | ||
99 | + ErrorF("glamor: Test fbo for depth %d incomplete. " | ||
100 | + "Falling back to software.\n", depth); | ||
101 | + glDeleteTextures(1, &tex); | ||
102 | + glDeleteFramebuffers(1, &fbo); | ||
103 | + return; | ||
104 | + } | ||
105 | + | ||
106 | + glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT, &read_format); | ||
107 | + glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_TYPE, &read_type); | ||
108 | + | ||
109 | + glDeleteTextures(1, &tex); | ||
110 | + glDeleteFramebuffers(1, &fbo); | ||
111 | + | ||
112 | + if (format != read_format || type != read_type) { | ||
113 | + ErrorF("glamor: Implementation returned 0x%x/0x%x read format/type " | ||
114 | + "for depth %d, expected 0x%x/0x%x. " | ||
115 | + "Falling back to software.\n", | ||
116 | + read_format, read_type, depth, format, type); | ||
117 | + return; | ||
118 | + } | ||
119 | + } | ||
120 | + | ||
121 | + f->depth = depth; | ||
122 | + f->render_format = render_format; | ||
123 | + f->internalformat = internalformat; | ||
124 | + f->format = format; | ||
125 | + f->type = type; | ||
126 | +} | ||
127 | + | ||
128 | +/* Set up the GL format/types that glamor will use for the various depths | ||
129 | + * | ||
130 | + * X11's pixel data doesn't have channels, but to store our data in GL | ||
131 | + * we have to pick some sort of format to move X11 pixel data in and | ||
132 | + * out with in glamor_transfer.c. For X11 core operations, other than | ||
133 | + * GL logic ops (non-GXcopy GC ops) what the driver chooses internally | ||
134 | + * doesn't matter as long as it doesn't drop any bits (we expect them | ||
135 | + * to generally expand, if anything). For Render, we can expect | ||
136 | + * clients to tend to render with PictFormats matching our channel | ||
137 | + * layouts here since ultimately X11 pixels tend to end up on the | ||
138 | + * screen. The render implementation will fall back to fb if the | ||
139 | + * channels don't match. | ||
140 | + * | ||
141 | + * Note that these formats don't affect what glamor_egl.c or | ||
142 | + * Xwayland's EGL layer choose for surfaces exposed through DRI or | ||
143 | + * scanout. For now, those layers need to match what we're choosing | ||
144 | + * here, or channels will end up swizzled around. Similarly, the | ||
145 | + * driver's visual masks also need to match what we're doing here. | ||
146 | + */ | ||
147 | +static void | ||
148 | +glamor_setup_formats(ScreenPtr screen) | ||
149 | +{ | ||
150 | + glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
151 | + | ||
152 | + /* Prefer r8 textures since they're required by GLES3 and core, | ||
153 | + * only falling back to a8 if we can't do them. | ||
154 | + */ | ||
155 | + if (glamor_priv->is_gles || epoxy_has_gl_extension("GL_ARB_texture_rg")) { | ||
156 | + glamor_add_format(screen, 8, PICT_a8, | ||
157 | + GL_R8, GL_RED, GL_UNSIGNED_BYTE); | ||
158 | + } else { | ||
159 | + glamor_add_format(screen, 8, PICT_a8, | ||
160 | + GL_ALPHA, GL_ALPHA, GL_UNSIGNED_BYTE); | ||
161 | + } | ||
162 | + | ||
163 | + if (glamor_priv->is_gles) { | ||
164 | + /* For 15bpp, GLES supports format/type RGBA/5551, rather than | ||
165 | + * bgra/1555_rev. GL_EXT_bgra lets the impl say the color | ||
166 | + * read format/type is bgra/1555 even if we had to create it | ||
167 | + * with rgba/5551, with Mesa does. That means we can't use | ||
168 | + * the same format/type for TexSubImage and readpixels. | ||
169 | + * | ||
170 | + * Instead, just store 16 bits using the trusted 565 path, and | ||
171 | + * disable render accel for now. | ||
172 | + */ | ||
173 | + glamor_add_format(screen, 15, PICT_x1r5g5b5, | ||
174 | + GL_RGB5_A1, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1); | ||
175 | + } else { | ||
176 | + glamor_add_format(screen, 15, PICT_x1r5g5b5, | ||
177 | + GL_RGBA, GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV); | ||
178 | + } | ||
179 | + | ||
180 | + glamor_add_format(screen, 16, PICT_r5g6b5, | ||
181 | + GL_RGB, GL_RGB, GL_UNSIGNED_SHORT_5_6_5); | ||
182 | + | ||
183 | + if (glamor_priv->is_gles) { | ||
184 | + assert(X_BYTE_ORDER == X_LITTLE_ENDIAN); | ||
185 | + glamor_add_format(screen, 24, PICT_x8b8g8r8, | ||
186 | + GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE); | ||
187 | + glamor_add_format(screen, 32, PICT_a8b8g8r8, | ||
188 | + GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE); | ||
189 | + } else { | ||
190 | + glamor_add_format(screen, 24, PICT_x8r8g8b8, | ||
191 | + GL_RGBA, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV); | ||
192 | + glamor_add_format(screen, 32, PICT_a8r8g8b8, | ||
193 | + GL_RGBA, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV); | ||
194 | + } | ||
195 | + | ||
196 | + if (glamor_priv->is_gles) { | ||
197 | + glamor_add_format(screen, 30, PICT_x2b10g10r10, | ||
198 | + GL_RGB10_A2, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV); | ||
199 | + } else { | ||
200 | + glamor_add_format(screen, 30, PICT_x2r10g10b10, | ||
201 | + GL_RGB10_A2, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV); | ||
202 | + } | ||
203 | + | ||
204 | + glamor_priv->cbcr_format.depth = 16; | ||
205 | + glamor_priv->cbcr_format.internalformat = GL_RG8; | ||
206 | + glamor_priv->cbcr_format.format = GL_RG; | ||
207 | + glamor_priv->cbcr_format.type = GL_UNSIGNED_BYTE; | ||
208 | +} | ||
209 | + | ||
210 | /** Set up glamor for an already-configured GL context. */ | ||
211 | Bool | ||
212 | glamor_init(ScreenPtr screen, unsigned int flags) | ||
213 | @@ -665,11 +824,7 @@ glamor_init(ScreenPtr screen, unsigned int flags) | ||
214 | (epoxy_has_gl_extension("GL_ARB_texture_swizzle") || | ||
215 | (glamor_priv->is_gles && gl_version >= 30)); | ||
216 | |||
217 | - glamor_priv->one_channel_format = GL_ALPHA; | ||
218 | - if (epoxy_has_gl_extension("GL_ARB_texture_rg") && | ||
219 | - glamor_priv->has_texture_swizzle) { | ||
220 | - glamor_priv->one_channel_format = GL_RED; | ||
221 | - } | ||
222 | + glamor_setup_formats(screen); | ||
223 | |||
224 | glamor_set_debug_level(&glamor_debug_level); | ||
225 | |||
226 | diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c | ||
227 | index 75f7e2baa..dfb3f754d 100644 | ||
228 | --- a/glamor/glamor_fbo.c | ||
229 | +++ b/glamor/glamor_fbo.c | ||
230 | @@ -97,7 +97,7 @@ glamor_pixmap_fbo * | ||
231 | glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
232 | PixmapPtr pixmap, int w, int h, GLint tex, int flag) | ||
233 | { | ||
234 | - GLenum format = gl_iformat_for_pixmap(pixmap); | ||
235 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
236 | glamor_pixmap_fbo *fbo; | ||
237 | |||
238 | fbo = calloc(1, sizeof(*fbo)); | ||
239 | @@ -107,7 +107,7 @@ glamor_create_fbo_from_tex(glamor_screen_private *glamor_priv, | ||
240 | fbo->tex = tex; | ||
241 | fbo->width = w; | ||
242 | fbo->height = h; | ||
243 | - fbo->is_red = format == GL_RED; | ||
244 | + fbo->is_red = f->format == GL_RED; | ||
245 | |||
246 | if (flag != GLAMOR_CREATE_FBO_NO_FBO) { | ||
247 | if (glamor_pixmap_ensure_fb(glamor_priv, fbo) != 0) { | ||
248 | @@ -123,23 +123,19 @@ static int | ||
249 | _glamor_create_tex(glamor_screen_private *glamor_priv, | ||
250 | PixmapPtr pixmap, int w, int h) | ||
251 | { | ||
252 | - GLenum iformat = gl_iformat_for_pixmap(pixmap); | ||
253 | - GLenum format = iformat; | ||
254 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
255 | unsigned int tex; | ||
256 | |||
257 | - if (format == GL_RGB10_A2) | ||
258 | - format = GL_RGBA; | ||
259 | - | ||
260 | glamor_make_current(glamor_priv); | ||
261 | glGenTextures(1, &tex); | ||
262 | glBindTexture(GL_TEXTURE_2D, tex); | ||
263 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); | ||
264 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); | ||
265 | - if (format == glamor_priv->one_channel_format && format == GL_RED) | ||
266 | + if (f->format == GL_RED) | ||
267 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_A, GL_RED); | ||
268 | glamor_priv->suppress_gl_out_of_memory_logging = true; | ||
269 | - glTexImage2D(GL_TEXTURE_2D, 0, iformat, w, h, 0, | ||
270 | - format, GL_UNSIGNED_BYTE, NULL); | ||
271 | + glTexImage2D(GL_TEXTURE_2D, 0, f->internalformat, w, h, 0, | ||
272 | + f->format, f->type, NULL); | ||
273 | glamor_priv->suppress_gl_out_of_memory_logging = false; | ||
274 | |||
275 | if (glGetError() == GL_OUT_OF_MEMORY) { | ||
276 | diff --git a/glamor/glamor_picture.c b/glamor/glamor_picture.c | ||
277 | index ed2decc83..33b3bebd9 100644 | ||
278 | --- a/glamor/glamor_picture.c | ||
279 | +++ b/glamor/glamor_picture.c | ||
280 | @@ -83,7 +83,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
281 | |||
282 | switch (format) { | ||
283 | case PICT_a1: | ||
284 | - *tex_format = glamor_priv->one_channel_format; | ||
285 | + *tex_format = glamor_priv->formats[1].format; | ||
286 | *tex_type = GL_UNSIGNED_BYTE; | ||
287 | *temp_format = PICT_a8; | ||
288 | break; | ||
289 | @@ -195,7 +195,7 @@ glamor_get_tex_format_type_from_pictformat(ScreenPtr pScreen, | ||
290 | break; | ||
291 | |||
292 | case PICT_a8: | ||
293 | - *tex_format = glamor_priv->one_channel_format; | ||
294 | + *tex_format = glamor_priv->formats[8].format; | ||
295 | *tex_type = GL_UNSIGNED_BYTE; | ||
296 | break; | ||
297 | |||
298 | @@ -286,6 +286,7 @@ glamor_upload_picture_to_texture(PicturePtr picture) | ||
299 | Bool ret = TRUE; | ||
300 | Bool needs_swizzle; | ||
301 | pixman_image_t *converted_image = NULL; | ||
302 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
303 | |||
304 | assert(glamor_pixmap_is_memory(pixmap)); | ||
305 | assert(!pixmap_priv->fbo); | ||
306 | @@ -336,7 +337,7 @@ glamor_upload_picture_to_texture(PicturePtr picture) | ||
307 | } | ||
308 | |||
309 | if (!glamor_priv->is_gles) | ||
310 | - iformat = gl_iformat_for_pixmap(pixmap); | ||
311 | + iformat = f->internalformat; | ||
312 | else | ||
313 | iformat = format; | ||
314 | |||
315 | diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h | ||
316 | index 8e8433ff3..b8e2b932e 100644 | ||
317 | --- a/glamor/glamor_priv.h | ||
318 | +++ b/glamor/glamor_priv.h | ||
319 | @@ -157,6 +157,21 @@ struct glamor_pixmap_private; | ||
320 | |||
321 | #define GLAMOR_COMPOSITE_VBO_VERT_CNT (64*1024) | ||
322 | |||
323 | +struct glamor_format { | ||
324 | + /** X Server's "depth" value */ | ||
325 | + int depth; | ||
326 | + /** GL internalformat for creating textures of this type */ | ||
327 | + GLenum internalformat; | ||
328 | + /** GL format transferring pixels in/out of textures of this type. */ | ||
329 | + GLenum format; | ||
330 | + /** GL type transferring pixels in/out of textures of this type. */ | ||
331 | + GLenum type; | ||
332 | + /* Render PICT_* matching GL's channel layout for pixels | ||
333 | + * transferred using format/type. | ||
334 | + */ | ||
335 | + CARD32 render_format; | ||
336 | +}; | ||
337 | + | ||
338 | struct glamor_saved_procs { | ||
339 | CloseScreenProcPtr close_screen; | ||
340 | CreateGCProcPtr create_gc; | ||
341 | @@ -199,7 +214,8 @@ typedef struct glamor_screen_private { | ||
342 | Bool can_copyplane; | ||
343 | int max_fbo_size; | ||
344 | |||
345 | - GLuint one_channel_format; | ||
346 | + struct glamor_format formats[33]; | ||
347 | + struct glamor_format cbcr_format; | ||
348 | |||
349 | /* glamor point shader */ | ||
350 | glamor_program point_prog; | ||
351 | @@ -537,6 +553,8 @@ void glamor_pixmap_destroy_fbo(PixmapPtr pixmap); | ||
352 | Bool glamor_pixmap_fbo_fixup(ScreenPtr screen, PixmapPtr pixmap); | ||
353 | void glamor_pixmap_clear_fbo(glamor_screen_private *glamor_priv, glamor_pixmap_fbo *fbo); | ||
354 | |||
355 | +const struct glamor_format *glamor_format_for_pixmap(PixmapPtr pixmap); | ||
356 | + | ||
357 | /* Return whether 'picture' is alpha-only */ | ||
358 | static inline Bool glamor_picture_is_alpha(PicturePtr picture) | ||
359 | { | ||
360 | @@ -549,7 +567,7 @@ glamor_picture_red_is_alpha(PicturePtr picture) | ||
361 | { | ||
362 | /* True when the picture is alpha only and the screen is using GL_RED for alpha pictures */ | ||
363 | return glamor_picture_is_alpha(picture) && | ||
364 | - glamor_get_screen_private(picture->pDrawable->pScreen)->one_channel_format == GL_RED; | ||
365 | + glamor_get_screen_private(picture->pDrawable->pScreen)->formats[8].format == GL_RED; | ||
366 | } | ||
367 | |||
368 | void glamor_bind_texture(glamor_screen_private *glamor_priv, | ||
369 | diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c | ||
370 | index d3859e4d1..a8dc3924b 100644 | ||
371 | --- a/glamor/glamor_render.c | ||
372 | +++ b/glamor/glamor_render.c | ||
373 | @@ -772,12 +772,15 @@ static Bool | ||
374 | glamor_render_format_is_supported(PicturePtr picture) | ||
375 | { | ||
376 | PictFormatShort storage_format; | ||
377 | + glamor_screen_private *glamor_priv; | ||
378 | |||
379 | /* Source-only pictures should always work */ | ||
380 | if (!picture->pDrawable) | ||
381 | return TRUE; | ||
382 | |||
383 | - storage_format = format_for_depth(picture->pDrawable->depth); | ||
384 | + glamor_priv = glamor_get_screen_private(picture->pDrawable->pScreen); | ||
385 | + storage_format = | ||
386 | + glamor_priv->formats[picture->pDrawable->depth].render_format; | ||
387 | |||
388 | switch (picture->format) { | ||
389 | case PICT_x2r10g10b10: | ||
390 | @@ -898,7 +901,7 @@ glamor_composite_choose_shader(CARD8 op, | ||
391 | } | ||
392 | |||
393 | if (dest_pixmap->drawable.bitsPerPixel <= 8 && | ||
394 | - glamor_priv->one_channel_format == GL_RED) { | ||
395 | + glamor_priv->formats[8].format == GL_RED) { | ||
396 | key.dest_swizzle = SHADER_DEST_SWIZZLE_ALPHA_TO_RED; | ||
397 | } else { | ||
398 | key.dest_swizzle = SHADER_DEST_SWIZZLE_DEFAULT; | ||
399 | diff --git a/glamor/glamor_spans.c b/glamor/glamor_spans.c | ||
400 | index b3c028d67..b5f297d2f 100644 | ||
401 | --- a/glamor/glamor_spans.c | ||
402 | +++ b/glamor/glamor_spans.c | ||
403 | @@ -187,9 +187,8 @@ glamor_get_spans_gl(DrawablePtr drawable, int wmax, | ||
404 | int box_index; | ||
405 | int n; | ||
406 | char *d; | ||
407 | - GLenum type; | ||
408 | - GLenum format; | ||
409 | int off_x, off_y; | ||
410 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
411 | |||
412 | pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
413 | if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv)) | ||
414 | @@ -197,8 +196,6 @@ glamor_get_spans_gl(DrawablePtr drawable, int wmax, | ||
415 | |||
416 | glamor_get_drawable_deltas(drawable, pixmap, &off_x, &off_y); | ||
417 | |||
418 | - glamor_format_for_pixmap(pixmap, &format, &type); | ||
419 | - | ||
420 | glamor_make_current(glamor_priv); | ||
421 | |||
422 | glamor_pixmap_loop(pixmap_priv, box_index) { | ||
423 | @@ -234,7 +231,8 @@ glamor_get_spans_gl(DrawablePtr drawable, int wmax, | ||
424 | if (y >= box->y2) | ||
425 | continue; | ||
426 | |||
427 | - glReadPixels(x1 - box->x1, y - box->y1, x2 - x1, 1, format, type, l); | ||
428 | + glReadPixels(x1 - box->x1, y - box->y1, x2 - x1, 1, | ||
429 | + f->format, f->type, l); | ||
430 | } | ||
431 | } | ||
432 | |||
433 | @@ -269,11 +267,10 @@ glamor_set_spans_gl(DrawablePtr drawable, GCPtr gc, char *src, | ||
434 | glamor_screen_private *glamor_priv = glamor_get_screen_private(screen); | ||
435 | PixmapPtr pixmap = glamor_get_drawable_pixmap(drawable); | ||
436 | glamor_pixmap_private *pixmap_priv; | ||
437 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
438 | int box_index; | ||
439 | int n; | ||
440 | char *s; | ||
441 | - GLenum type; | ||
442 | - GLenum format; | ||
443 | int off_x, off_y; | ||
444 | |||
445 | pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
446 | @@ -287,7 +284,6 @@ glamor_set_spans_gl(DrawablePtr drawable, GCPtr gc, char *src, | ||
447 | goto bail; | ||
448 | |||
449 | glamor_get_drawable_deltas(drawable, pixmap, &off_x, &off_y); | ||
450 | - glamor_format_for_pixmap(pixmap, &format, &type); | ||
451 | |||
452 | glamor_make_current(glamor_priv); | ||
453 | |||
454 | @@ -348,7 +344,7 @@ glamor_set_spans_gl(DrawablePtr drawable, GCPtr gc, char *src, | ||
455 | |||
456 | glTexSubImage2D(GL_TEXTURE_2D, 0, | ||
457 | x1 - box->x1, y1 - box->y1, x2 - x1, 1, | ||
458 | - format, type, | ||
459 | + f->format, f->type, | ||
460 | l); | ||
461 | } | ||
462 | s += PixmapBytePad(w, drawable->depth); | ||
463 | diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c | ||
464 | index 215752d7b..e706e0fb4 100644 | ||
465 | --- a/glamor/glamor_transfer.c | ||
466 | +++ b/glamor/glamor_transfer.c | ||
467 | @@ -23,44 +23,6 @@ | ||
468 | #include "glamor_priv.h" | ||
469 | #include "glamor_transfer.h" | ||
470 | |||
471 | -/* XXX a kludge for now */ | ||
472 | -void | ||
473 | -glamor_format_for_pixmap(PixmapPtr pixmap, GLenum *format, GLenum *type) | ||
474 | -{ | ||
475 | - glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap); | ||
476 | - switch (pixmap->drawable.depth) { | ||
477 | - case 24: | ||
478 | - case 32: | ||
479 | - *format = GL_BGRA; | ||
480 | - *type = GL_UNSIGNED_INT_8_8_8_8_REV; | ||
481 | - break; | ||
482 | - case 30: | ||
483 | - *format = GL_BGRA; | ||
484 | - *type = GL_UNSIGNED_INT_2_10_10_10_REV; | ||
485 | - break; | ||
486 | - case 16: | ||
487 | - if (priv->is_cbcr) { | ||
488 | - *format = GL_RG; | ||
489 | - *type = GL_UNSIGNED_BYTE; | ||
490 | - } else { | ||
491 | - *format = GL_RGB; | ||
492 | - *type = GL_UNSIGNED_SHORT_5_6_5; | ||
493 | - } | ||
494 | - break; | ||
495 | - case 15: | ||
496 | - *format = GL_BGRA; | ||
497 | - *type = GL_UNSIGNED_SHORT_1_5_5_5_REV; | ||
498 | - break; | ||
499 | - case 8: | ||
500 | - *format = glamor_get_screen_private(pixmap->drawable.pScreen)->one_channel_format; | ||
501 | - *type = GL_UNSIGNED_BYTE; | ||
502 | - break; | ||
503 | - default: | ||
504 | - FatalError("Invalid pixmap depth %d\n", pixmap->drawable.depth); | ||
505 | - break; | ||
506 | - } | ||
507 | -} | ||
508 | - | ||
509 | /* | ||
510 | * Write a region of bits into a pixmap | ||
511 | */ | ||
512 | @@ -75,10 +37,7 @@ glamor_upload_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox, | ||
513 | glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap); | ||
514 | int box_index; | ||
515 | int bytes_per_pixel = pixmap->drawable.bitsPerPixel >> 3; | ||
516 | - GLenum type; | ||
517 | - GLenum format; | ||
518 | - | ||
519 | - glamor_format_for_pixmap(pixmap, &format, &type); | ||
520 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
521 | |||
522 | glamor_make_current(glamor_priv); | ||
523 | |||
524 | @@ -116,14 +75,14 @@ glamor_upload_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox, | ||
525 | glTexSubImage2D(GL_TEXTURE_2D, 0, | ||
526 | x1 - box->x1, y1 - box->y1, | ||
527 | x2 - x1, y2 - y1, | ||
528 | - format, type, | ||
529 | + f->format, f->type, | ||
530 | bits + ofs); | ||
531 | } else { | ||
532 | for (; y1 < y2; y1++, ofs += byte_stride) | ||
533 | glTexSubImage2D(GL_TEXTURE_2D, 0, | ||
534 | x1 - box->x1, y1 - box->y1, | ||
535 | x2 - x1, 1, | ||
536 | - format, type, | ||
537 | + f->format, f->type, | ||
538 | bits + ofs); | ||
539 | } | ||
540 | } | ||
541 | @@ -178,10 +137,7 @@ glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox, | ||
542 | glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap); | ||
543 | int box_index; | ||
544 | int bytes_per_pixel = pixmap->drawable.bitsPerPixel >> 3; | ||
545 | - GLenum type; | ||
546 | - GLenum format; | ||
547 | - | ||
548 | - glamor_format_for_pixmap(pixmap, &format, &type); | ||
549 | + const struct glamor_format *f = glamor_format_for_pixmap(pixmap); | ||
550 | |||
551 | glamor_make_current(glamor_priv); | ||
552 | |||
553 | @@ -216,10 +172,10 @@ glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox, | ||
554 | |||
555 | if (glamor_priv->has_pack_subimage || | ||
556 | x2 - x1 == byte_stride / bytes_per_pixel) { | ||
557 | - glReadPixels(x1 - box->x1, y1 - box->y1, x2 - x1, y2 - y1, format, type, bits + ofs); | ||
558 | + glReadPixels(x1 - box->x1, y1 - box->y1, x2 - x1, y2 - y1, f->format, f->type, bits + ofs); | ||
559 | } else { | ||
560 | for (; y1 < y2; y1++, ofs += byte_stride) | ||
561 | - glReadPixels(x1 - box->x1, y1 - box->y1, x2 - x1, 1, format, type, bits + ofs); | ||
562 | + glReadPixels(x1 - box->x1, y1 - box->y1, x2 - x1, 1, f->format, f->type, bits + ofs); | ||
563 | } | ||
564 | } | ||
565 | } | ||
566 | diff --git a/glamor/glamor_transfer.h b/glamor/glamor_transfer.h | ||
567 | index de8186a70..a6137b3ff 100644 | ||
568 | --- a/glamor/glamor_transfer.h | ||
569 | +++ b/glamor/glamor_transfer.h | ||
570 | @@ -23,9 +23,6 @@ | ||
571 | #ifndef _GLAMOR_TRANSFER_H_ | ||
572 | #define _GLAMOR_TRANSFER_H_ | ||
573 | |||
574 | -void | ||
575 | -glamor_format_for_pixmap(PixmapPtr pixmap, GLenum *format, GLenum *type); | ||
576 | - | ||
577 | void | ||
578 | glamor_upload_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox, | ||
579 | int dx_src, int dy_src, | ||
580 | diff --git a/glamor/glamor_transform.c b/glamor/glamor_transform.c | ||
581 | index 2d5a634a8..348d00be1 100644 | ||
582 | --- a/glamor/glamor_transform.c | ||
583 | +++ b/glamor/glamor_transform.c | ||
584 | @@ -121,10 +121,9 @@ glamor_set_color_depth(ScreenPtr pScreen, | ||
585 | |||
586 | glamor_get_rgba_from_pixel(pixel, | ||
587 | &color[0], &color[1], &color[2], &color[3], | ||
588 | - format_for_depth(depth)); | ||
589 | + glamor_priv->formats[depth].render_format); | ||
590 | |||
591 | - if ((depth == 1 || depth == 8) && | ||
592 | - glamor_priv->one_channel_format == GL_RED) | ||
593 | + if ((depth <= 8) && glamor_priv->formats[8].format == GL_RED) | ||
594 | color[0] = color[3]; | ||
595 | |||
596 | glUniform4fv(uniform, 1, color); | ||
597 | diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h | ||
598 | index cbb808294..651faf2fe 100644 | ||
599 | --- a/glamor/glamor_utils.h | ||
600 | +++ b/glamor/glamor_utils.h | ||
601 | @@ -570,65 +570,8 @@ | ||
602 | && (_w_) <= _glamor_->max_fbo_size \ | ||
603 | && (_h_) <= _glamor_->max_fbo_size) | ||
604 | |||
605 | -/* For 1bpp pixmap, we don't store it as texture. */ | ||
606 | -#define glamor_check_pixmap_fbo_depth(_depth_) ( \ | ||
607 | - _depth_ == 8 \ | ||
608 | - || _depth_ == 15 \ | ||
609 | - || _depth_ == 16 \ | ||
610 | - || _depth_ == 24 \ | ||
611 | - || _depth_ == 30 \ | ||
612 | - || _depth_ == 32) | ||
613 | - | ||
614 | #define GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv) (pixmap_priv->gl_fbo == GLAMOR_FBO_NORMAL) | ||
615 | |||
616 | -/** | ||
617 | - * Borrow from uxa. | ||
618 | - */ | ||
619 | -static inline CARD32 | ||
620 | -format_for_depth(int depth) | ||
621 | -{ | ||
622 | - switch (depth) { | ||
623 | - case 1: | ||
624 | - return PICT_a1; | ||
625 | - case 4: | ||
626 | - return PICT_a4; | ||
627 | - case 8: | ||
628 | - return PICT_a8; | ||
629 | - case 15: | ||
630 | - return PICT_x1r5g5b5; | ||
631 | - case 16: | ||
632 | - return PICT_r5g6b5; | ||
633 | - default: | ||
634 | - case 24: | ||
635 | - return PICT_x8r8g8b8; | ||
636 | - case 30: | ||
637 | - return PICT_x2r10g10b10; | ||
638 | - case 32: | ||
639 | - return PICT_a8r8g8b8; | ||
640 | - } | ||
641 | -} | ||
642 | - | ||
643 | -static inline GLenum | ||
644 | -gl_iformat_for_pixmap(PixmapPtr pixmap) | ||
645 | -{ | ||
646 | - glamor_screen_private *glamor_priv = | ||
647 | - glamor_get_screen_private((pixmap)->drawable.pScreen); | ||
648 | - glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap); | ||
649 | - | ||
650 | - if (!glamor_priv->is_gles && | ||
651 | - ((pixmap)->drawable.depth == 1 || (pixmap)->drawable.depth == 8)) { | ||
652 | - return glamor_priv->one_channel_format; | ||
653 | - } else if (!glamor_priv->is_gles && | ||
654 | - (pixmap)->drawable.depth == 16 && pixmap_priv->is_cbcr) { | ||
655 | - return GL_RG; | ||
656 | - } else if (!glamor_priv->is_gles && | ||
657 | - (pixmap)->drawable.depth == 30) { | ||
658 | - return GL_RGB10_A2; | ||
659 | - } else { | ||
660 | - return GL_RGBA; | ||
661 | - } | ||
662 | -} | ||
663 | - | ||
664 | #define REVERT_NONE 0 | ||
665 | #define REVERT_NORMAL 1 | ||
666 | #define REVERT_UPLOADING_A1 3 | ||
667 | -- | ||
668 | 2.17.1 | ||
669 | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend index 22d950c7..be3c3817 100644 --- a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend | |||
@@ -1,16 +1,24 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" |
2 | 2 | ||
3 | SRC_URI_append_use-mainline-bsp = " file://0001-Allow-to-enable-atomic-in-modesetting-DDX.patch" | 3 | SRC_URI:append:use-mainline-bsp = " file://0001-Allow-to-enable-atomic-in-modesetting-DDX.patch" |
4 | SRC_URI_append_imxgpu = " \ | 4 | SRC_URI:append:imxgpu = " \ |
5 | file://0003-Remove-check-for-useSIGIO-option.patch \ | 5 | file://0003-Remove-check-for-useSIGIO-option.patch \ |
6 | file://0001-MGS-5186-Per-Specification-EGL_NATIVE_PIXMAP_KHR-req.patch \ | 6 | file://0001-MGS-5186-Per-Specification-EGL_NATIVE_PIXMAP_KHR-req.patch \ |
7 | file://0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch \ | 7 | file://0001-glamor-glamor_egl.c-EGL_NATIVE_PIXMAP_KHR-do-not-req.patch \ |
8 | file://0001-prefer-to-use-GLES2-for-glamor-EGL-config.patch \ | 8 | file://0001-prefer-to-use-GLES2-for-glamor-EGL-config.patch \ |
9 | file://0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch \ | 9 | file://0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch \ |
10 | file://0001-xfree86-define-FOURCC_NV12-and-XVIMAGE_NV12.patch \ | ||
11 | file://0002-glamor-add-support-for-GL_RG.patch \ | ||
12 | file://0003-glamor-add-support-for-NV12-in-Xv.patch \ | ||
13 | file://0004-glamor-Remove-unused-format_for_pixmap-helper.patch \ | ||
14 | file://0005-glamor-Stop-trying-to-store-the-pixmap-s-format-in-g.patch \ | ||
15 | file://0006-glamor-Plumb-the-pixmap-through-fbo-creation-instead.patch \ | ||
16 | file://0007-glamor-Switch-the-gl_flavor-to-a-boolean-is_gles.patch \ | ||
17 | file://0008-glamor-Introduce-a-central-place-for-our-pixmap-form.patch \ | ||
10 | " | 18 | " |
11 | 19 | ||
12 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" | 20 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" |
13 | IMX_OPENGL_PKGCONFIGS_REMOVE_imxgpu = "glamor" | 21 | IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" |
14 | OPENGL_PKGCONFIGS_remove_mx6 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" | 22 | OPENGL_PKGCONFIGS:remove:mx6 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" |
15 | OPENGL_PKGCONFIGS_remove_mx7 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" | 23 | OPENGL_PKGCONFIGS:remove:mx7 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" |
16 | OPENGL_PKGCONFIGS_remove_imxdrm = "dri glx" | 24 | OPENGL_PKGCONFIGS:remove:imxdrm = "dri glx" |
diff --git a/recipes-graphics/xwayland/xwayland_%.bbappend b/recipes-graphics/xwayland/xwayland_%.bbappend index c26bb20d..b3e79e09 100644 --- a/recipes-graphics/xwayland/xwayland_%.bbappend +++ b/recipes-graphics/xwayland/xwayland_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" | 1 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" |
2 | IMX_OPENGL_PKGCONFIGS_REMOVE_imxgpu = "glamor" | 2 | IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" |
3 | OPENGL_PKGCONFIGS_remove_mx6 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" | 3 | OPENGL_PKGCONFIGS:remove:mx6 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" |
4 | OPENGL_PKGCONFIGS_remove_mx7 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" | 4 | OPENGL_PKGCONFIGS:remove:mx7 = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" |
diff --git a/recipes-kernel/ceetm/ceetm_git.bb b/recipes-kernel/ceetm/ceetm_git.bb index 2e92ad49..00790c8e 100644 --- a/recipes-kernel/ceetm/ceetm_git.bb +++ b/recipes-kernel/ceetm/ceetm_git.bb | |||
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=bac620b9883d38a84dfb73ca7122d915" | |||
4 | 4 | ||
5 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ceetm;nobranch=1" | 5 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/ceetm;nobranch=1" |
6 | SRCREV = "6a7f2ec2091df2f4380cb8d25a36c399aed5af1b" | 6 | SRCREV = "6a7f2ec2091df2f4380cb8d25a36c399aed5af1b" |
7 | SRC_URI_append = " file://0001-Makefile-update-CFLAGS.patch \ | 7 | SRC_URI:append = " file://0001-Makefile-update-CFLAGS.patch \ |
8 | file://0001-use-new-api-tc_print_rate.patch \ | 8 | file://0001-use-new-api-tc_print_rate.patch \ |
9 | " | 9 | " |
10 | DEPENDS = "iproute2" | 10 | DEPENDS = "iproute2" |
@@ -22,7 +22,7 @@ do_install(){ | |||
22 | cp ${S}/q_ceetm.so ${D}/${libdir}/tc/ | 22 | cp ${S}/q_ceetm.so ${D}/${libdir}/tc/ |
23 | } | 23 | } |
24 | 24 | ||
25 | FILES_${PN} += "${libdir}/tc" | 25 | FILES:${PN} += "${libdir}/tc" |
26 | INHIBIT_PACKAGE_STRIP = "1" | 26 | INHIBIT_PACKAGE_STRIP = "1" |
27 | 27 | ||
28 | COMPATIBLE_MACHINE = "(qoriq)" | 28 | COMPATIBLE_MACHINE = "(qoriq)" |
diff --git a/recipes-kernel/kernel-modules/kernel-module-ar_git.bb b/recipes-kernel/kernel-modules/kernel-module-ar_git.bb index feddc8fa..f2cd1a57 100644 --- a/recipes-kernel/kernel-modules/kernel-module-ar_git.bb +++ b/recipes-kernel/kernel-modules/kernel-module-ar_git.bb | |||
@@ -14,7 +14,7 @@ export KERNEL_PATH | |||
14 | 14 | ||
15 | INHIBIT_PACKAGE_STRIP = "1" | 15 | INHIBIT_PACKAGE_STRIP = "1" |
16 | 16 | ||
17 | do_compile_prepend() { | 17 | do_compile:prepend() { |
18 | sed -i -e 's,EXTRA_CFLAGS += -I$(PWD),EXTRA_CFLAGS += -I${S},' ${S}/armodule/source/Makefile | 18 | sed -i -e 's,EXTRA_CFLAGS += -I$(PWD),EXTRA_CFLAGS += -I${S},' ${S}/armodule/source/Makefile |
19 | } | 19 | } |
20 | 20 | ||
@@ -25,8 +25,8 @@ do_install(){ | |||
25 | cp -f ${S}/bin/ar_* ${D}${bindir}/ | 25 | cp -f ${S}/bin/ar_* ${D}${bindir}/ |
26 | } | 26 | } |
27 | 27 | ||
28 | FILES_${PN} += "${bindir}/" | 28 | FILES:${PN} += "${bindir}/" |
29 | INSANE_SKIP_${PN} = "ldflags" | 29 | INSANE_SKIP:${PN} = "ldflags" |
30 | COMPATIBLE_MACHINE = "(t1040|t1042)" | 30 | COMPATIBLE_MACHINE = "(t1040|t1042)" |
31 | 31 | ||
32 | CLEANBROKEN = "1" | 32 | CLEANBROKEN = "1" |
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p1.4.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p2.0.bb index 581bef95..a8b890fe 100644 --- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p1.4.bb +++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p2.0.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | # Copyright (C) 2015-2016 Freescale Semiconductor | 1 | # Copyright (C) 2015-2016 Freescale Semiconductor |
2 | # Copyright (C) 2017-2020 NXP | 2 | # Copyright (C) 2017-2021 NXP |
3 | 3 | ||
4 | SUMMARY = "Kernel loadable module for Vivante GPU" | 4 | SUMMARY = "Kernel loadable module for Vivante GPU" |
5 | DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \ | 5 | DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \ |
@@ -7,14 +7,14 @@ allowing flexibility to use a newer graphics release with an older kernel." | |||
7 | LICENSE = "GPLv2" | 7 | LICENSE = "GPLv2" |
8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" | 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
9 | 9 | ||
10 | SRCBRANCH = "imx_5.4.70_2.3.0" | 10 | SRCBRANCH = "lf-5.10.y" |
11 | LOCALVERSION = "-imx_5.4.70_2.3.2" | 11 | LOCALVERSION = "-5.10.52-2.1.0" |
12 | KERNEL_SRC ?= "git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https" | 12 | KERNEL_SRC ?= "git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https" |
13 | SRC_URI = " \ | 13 | SRC_URI = " \ |
14 | ${KERNEL_SRC};branch=${SRCBRANCH};subpath=drivers/mxc/gpu-viv;destsuffix=git/src \ | 14 | ${KERNEL_SRC};branch=${SRCBRANCH};subpath=drivers/mxc/gpu-viv;destsuffix=git/src \ |
15 | file://Add-makefile.patch \ | 15 | file://Add-makefile.patch \ |
16 | " | 16 | " |
17 | SRCREV = "13b3c469663da0c79d385ce15887f6b5805f060d" | 17 | SRCREV = "5b2559d9d66b0b9561fc42dd8007dfe4569573df" |
18 | 18 | ||
19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
20 | 20 | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-ipc-multi_git.bb b/recipes-kernel/kernel-modules/kernel-module-ipc-multi_git.bb index 74e01bd9..c2effd01 100644 --- a/recipes-kernel/kernel-modules/kernel-module-ipc-multi_git.bb +++ b/recipes-kernel/kernel-modules/kernel-module-ipc-multi_git.bb | |||
@@ -7,7 +7,7 @@ do_install(){ | |||
7 | install -m 755 ${S}/kernel/*.ko ${D}/usr/driver/IPC/multi_rat | 7 | install -m 755 ${S}/kernel/*.ko ${D}/usr/driver/IPC/multi_rat |
8 | } | 8 | } |
9 | 9 | ||
10 | FILES_${PN} += "/usr/driver/IPC/multi_rat/*.ko" | 10 | FILES:${PN} += "/usr/driver/IPC/multi_rat/*.ko" |
11 | FILES_${PN}-dbg += "/usr/driver/IPC/multi_rat/.debug" | 11 | FILES:${PN}-dbg += "/usr/driver/IPC/multi_rat/.debug" |
12 | 12 | ||
13 | COMPATIBLE_MACHINE = "(b4860qds|b4420qds)" | 13 | COMPATIBLE_MACHINE = "(b4860qds|b4420qds)" |
diff --git a/recipes-kernel/kernel-modules/kernel-module-ipc-single_git.bb b/recipes-kernel/kernel-modules/kernel-module-ipc-single_git.bb index 86155423..23418175 100644 --- a/recipes-kernel/kernel-modules/kernel-module-ipc-single_git.bb +++ b/recipes-kernel/kernel-modules/kernel-module-ipc-single_git.bb | |||
@@ -7,7 +7,7 @@ do_install(){ | |||
7 | install -m 755 ${S}/kernel/*.ko ${D}/usr/driver/IPC/single_rat | 7 | install -m 755 ${S}/kernel/*.ko ${D}/usr/driver/IPC/single_rat |
8 | } | 8 | } |
9 | 9 | ||
10 | FILES_${PN} += "/usr/driver/IPC/single_rat/*.ko" | 10 | FILES:${PN} += "/usr/driver/IPC/single_rat/*.ko" |
11 | FILES_${PN}-dbg += "/usr/driver/IPC/single_rat/.debug" | 11 | FILES:${PN}-dbg += "/usr/driver/IPC/single_rat/.debug" |
12 | 12 | ||
13 | COMPATIBLE_MACHINE = "(b4860qds|b4420qds)" | 13 | COMPATIBLE_MACHINE = "(b4860qds|b4420qds)" |
diff --git a/recipes-kernel/kernel-modules/kernel-module-ipc.inc b/recipes-kernel/kernel-modules/kernel-module-ipc.inc index 350ba186..903c53a4 100644 --- a/recipes-kernel/kernel-modules/kernel-module-ipc.inc +++ b/recipes-kernel/kernel-modules/kernel-module-ipc.inc | |||
@@ -11,7 +11,7 @@ SRCREV = "74d662707558290f070f9589177db730444bc435" | |||
11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
12 | 12 | ||
13 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | 13 | do_configure[depends] += "virtual/kernel:do_shared_workdir" |
14 | do_compile_prepend () { | 14 | do_compile:prepend () { |
15 | cd ${S}/kernel | 15 | cd ${S}/kernel |
16 | } | 16 | } |
17 | 17 | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-qca6174_3.0.bb b/recipes-kernel/kernel-modules/kernel-module-qca6174_3.0.bb deleted file mode 100644 index f78a4c5b..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-qca6174_3.0.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | require kernel-module-qcacld-lea.inc | ||
2 | |||
3 | SUMMARY = "Qualcomm WiFi driver for QCA module 6174" | ||
4 | |||
5 | EXTRA_OEMAKE += " \ | ||
6 | CONFIG_ROME_IF=pci \ | ||
7 | CONFIG_WLAN_FEATURE_11W=y \ | ||
8 | CONFIG_WLAN_FEATURE_FILS=y \ | ||
9 | CONFIG_WLAN_WAPI_MODE_11AC_DISABLE=y \ | ||
10 | MODNAME=qca6174 \ | ||
11 | CONFIG_WLAN_FEATURE_DSRC=y \ | ||
12 | " | ||
13 | |||
14 | RDEPENDS_${PN} += "firmware-qca6174" | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-qca9377_3.1.bb b/recipes-kernel/kernel-modules/kernel-module-qca9377_3.1.bb deleted file mode 100644 index fbc87ea2..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-qca9377_3.1.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | require kernel-module-qcacld-lea.inc | ||
2 | |||
3 | SUMMARY = "Qualcomm WiFi driver for QCA module 9377" | ||
4 | |||
5 | EXTRA_OEMAKE += " \ | ||
6 | CONFIG_CLD_HL_SDIO_CORE=y \ | ||
7 | CONFIG_FEATURE_COEX_PTA_CONFIG_ENABLE=y \ | ||
8 | CONFIG_PER_VDEV_TX_DESC_POOL=1 \ | ||
9 | CONFIG_QCA_LL_TX_FLOW_CT=1 \ | ||
10 | CONFIG_QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK=y \ | ||
11 | CONFIG_WLAN_FEATURE_FILS=y \ | ||
12 | CONFIG_WLAN_WAPI_MODE_11AC_DISABLE=y \ | ||
13 | MODNAME=qca9377 \ | ||
14 | SAP_AUTH_OFFLOAD=1 \ | ||
15 | " | ||
16 | |||
17 | RDEPENDS_${PN} += "firmware-qca9377" | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-qcacld-lea.inc b/recipes-kernel/kernel-modules/kernel-module-qcacld-lea.inc deleted file mode 100644 index 0b23a47c..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-qcacld-lea.inc +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | SUMMARY = "Qualcomm WiFi driver for QCA module 9377 and 6174" | ||
2 | LICENSE = "BSD & GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://CORE/HDD/src/wlan_hdd_main.c;beginline=1;endline=20;md5=ec8d62116b13db773825ebf7cf91be1d;" | ||
4 | |||
5 | QCACLD_SRC ?= "git://source.codeaurora.org/external/imx/qcacld-2.0-imx.git;protocol=https" | ||
6 | SRC_URI = "${QCACLD_SRC};branch=IMX_CNSS.LEA.NRT_3.0_KRL5.4" | ||
7 | SRCREV = "7dc91e5977f31d60741c55682564788c0f930163" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | inherit module | ||
12 | |||
13 | EXTRA_OEMAKE += " \ | ||
14 | CONFIG_CFG80211_INTERNAL_REGDB=y \ | ||
15 | CONFIG_HDD_WLAN_WAIT_TIME=10000 \ | ||
16 | CONFIG_LINUX_QCMBR=y \ | ||
17 | CONFIG_NON_QC_PLATFORM=y \ | ||
18 | CONFIG_PMF_SUPPORT=y \ | ||
19 | TARGET_BUILD_VARIANT=user \ | ||
20 | " | ||
21 | |||
22 | COMPATIBLE_MACHINE = "(imx)" | ||
23 | COMPATIBLE_HOST_libc-musl = 'null' | ||
diff --git a/recipes-kernel/linux/linux-fslc-imx/imx/defconfig b/recipes-kernel/linux/linux-fslc-imx/imx/defconfig index 3029043b..6ca0833e 100644 --- a/recipes-kernel/linux/linux-fslc-imx/imx/defconfig +++ b/recipes-kernel/linux/linux-fslc-imx/imx/defconfig | |||
@@ -17,14 +17,10 @@ CONFIG_USER_NS=y | |||
17 | CONFIG_RELAY=y | 17 | CONFIG_RELAY=y |
18 | CONFIG_BLK_DEV_INITRD=y | 18 | CONFIG_BLK_DEV_INITRD=y |
19 | CONFIG_EXPERT=y | 19 | CONFIG_EXPERT=y |
20 | CONFIG_KALLSYMS_ALL=y | ||
21 | CONFIG_PERF_EVENTS=y | 20 | CONFIG_PERF_EVENTS=y |
22 | # CONFIG_SLUB_DEBUG is not set | 21 | # CONFIG_SLUB_DEBUG is not set |
23 | # CONFIG_COMPAT_BRK is not set | 22 | # CONFIG_COMPAT_BRK is not set |
24 | CONFIG_ARCH_MXC=y | 23 | CONFIG_ARCH_MXC=y |
25 | CONFIG_SOC_IMX50=y | ||
26 | CONFIG_SOC_IMX51=y | ||
27 | CONFIG_SOC_IMX53=y | ||
28 | CONFIG_SOC_IMX6Q=y | 24 | CONFIG_SOC_IMX6Q=y |
29 | CONFIG_SOC_IMX6SL=y | 25 | CONFIG_SOC_IMX6SL=y |
30 | CONFIG_SOC_IMX6SLL=y | 26 | CONFIG_SOC_IMX6SLL=y |
@@ -32,7 +28,6 @@ CONFIG_SOC_IMX6SX=y | |||
32 | CONFIG_SOC_IMX6UL=y | 28 | CONFIG_SOC_IMX6UL=y |
33 | CONFIG_SOC_IMX7D=y | 29 | CONFIG_SOC_IMX7D=y |
34 | CONFIG_SOC_IMX7ULP=y | 30 | CONFIG_SOC_IMX7ULP=y |
35 | CONFIG_SOC_VF610=y | ||
36 | CONFIG_SMP=y | 31 | CONFIG_SMP=y |
37 | CONFIG_VMSPLIT_2G=y | 32 | CONFIG_VMSPLIT_2G=y |
38 | CONFIG_ARM_PSCI=y | 33 | CONFIG_ARM_PSCI=y |
@@ -49,7 +44,6 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y | |||
49 | CONFIG_CPUFREQ_DT=y | 44 | CONFIG_CPUFREQ_DT=y |
50 | CONFIG_ARM_IMX6Q_CPUFREQ=y | 45 | CONFIG_ARM_IMX6Q_CPUFREQ=y |
51 | CONFIG_ARM_IMX_CPUFREQ_DT=y | 46 | CONFIG_ARM_IMX_CPUFREQ_DT=y |
52 | CONFIG_ARM_IMX7ULP_CPUFREQ=y | ||
53 | CONFIG_CPU_IDLE=y | 47 | CONFIG_CPU_IDLE=y |
54 | CONFIG_ARM_CPUIDLE=y | 48 | CONFIG_ARM_CPUIDLE=y |
55 | CONFIG_ARM_PSCI_CPUIDLE=y | 49 | CONFIG_ARM_PSCI_CPUIDLE=y |
@@ -64,7 +58,6 @@ CONFIG_MODULE_SRCVERSION_ALL=y | |||
64 | # CONFIG_BLK_DEV_BSG is not set | 58 | # CONFIG_BLK_DEV_BSG is not set |
65 | CONFIG_BINFMT_MISC=m | 59 | CONFIG_BINFMT_MISC=m |
66 | CONFIG_CMA=y | 60 | CONFIG_CMA=y |
67 | CONFIG_SECCOMP=y | ||
68 | CONFIG_NET=y | 61 | CONFIG_NET=y |
69 | CONFIG_PACKET=y | 62 | CONFIG_PACKET=y |
70 | CONFIG_UNIX=y | 63 | CONFIG_UNIX=y |
@@ -125,7 +118,6 @@ CONFIG_MTD_DATAFLASH=y | |||
125 | CONFIG_MTD_SST25L=y | 118 | CONFIG_MTD_SST25L=y |
126 | CONFIG_MTD_RAW_NAND=y | 119 | CONFIG_MTD_RAW_NAND=y |
127 | CONFIG_MTD_NAND_GPMI_NAND=y | 120 | CONFIG_MTD_NAND_GPMI_NAND=y |
128 | CONFIG_MTD_NAND_VF610_NFC=y | ||
129 | CONFIG_MTD_NAND_MXC=y | 121 | CONFIG_MTD_NAND_MXC=y |
130 | CONFIG_MTD_SPI_NOR=y | 122 | CONFIG_MTD_SPI_NOR=y |
131 | # CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set | 123 | # CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set |
@@ -160,7 +152,7 @@ CONFIG_NETDEVICES=y | |||
160 | CONFIG_CS89x0=y | 152 | CONFIG_CS89x0=y |
161 | CONFIG_CS89x0_PLATFORM=y | 153 | CONFIG_CS89x0_PLATFORM=y |
162 | # CONFIG_NET_VENDOR_FARADAY is not set | 154 | # CONFIG_NET_VENDOR_FARADAY is not set |
163 | CONFIG_E1000E=y | 155 | # CONFIG_NET_VENDOR_INTEL is not set |
164 | # CONFIG_NET_VENDOR_MARVELL is not set | 156 | # CONFIG_NET_VENDOR_MARVELL is not set |
165 | # CONFIG_NET_VENDOR_MICREL is not set | 157 | # CONFIG_NET_VENDOR_MICREL is not set |
166 | # CONFIG_NET_VENDOR_MICROCHIP is not set | 158 | # CONFIG_NET_VENDOR_MICROCHIP is not set |
@@ -170,9 +162,8 @@ CONFIG_SMC91X=y | |||
170 | CONFIG_SMC911X=y | 162 | CONFIG_SMC911X=y |
171 | CONFIG_SMSC911X=y | 163 | CONFIG_SMSC911X=y |
172 | # CONFIG_NET_VENDOR_STMICRO is not set | 164 | # CONFIG_NET_VENDOR_STMICRO is not set |
173 | CONFIG_AT803X_PHY=y | ||
174 | CONFIG_MICREL_PHY=y | 165 | CONFIG_MICREL_PHY=y |
175 | CONFIG_SMSC_PHY=y | 166 | CONFIG_AT803X_PHY=y |
176 | CONFIG_USB_PEGASUS=m | 167 | CONFIG_USB_PEGASUS=m |
177 | CONFIG_USB_RTL8150=m | 168 | CONFIG_USB_RTL8150=m |
178 | CONFIG_USB_RTL8152=y | 169 | CONFIG_USB_RTL8152=y |
@@ -181,9 +172,7 @@ CONFIG_USB_USBNET=y | |||
181 | CONFIG_USB_NET_CDC_EEM=m | 172 | CONFIG_USB_NET_CDC_EEM=m |
182 | CONFIG_USB_NET_SMSC95XX=y | 173 | CONFIG_USB_NET_SMSC95XX=y |
183 | CONFIG_USB_NET_MCS7830=y | 174 | CONFIG_USB_NET_MCS7830=y |
184 | CONFIG_BRCMFMAC=m | ||
185 | CONFIG_HOSTAP=y | 175 | CONFIG_HOSTAP=y |
186 | CONFIG_MXMWIFIEX=m | ||
187 | CONFIG_WL12XX=m | 176 | CONFIG_WL12XX=m |
188 | CONFIG_WL18XX=m | 177 | CONFIG_WL18XX=m |
189 | CONFIG_WLCORE_SDIO=m | 178 | CONFIG_WLCORE_SDIO=m |
@@ -197,9 +186,14 @@ CONFIG_MOUSE_PS2=m | |||
197 | CONFIG_MOUSE_PS2_ELANTECH=y | 186 | CONFIG_MOUSE_PS2_ELANTECH=y |
198 | CONFIG_INPUT_TOUCHSCREEN=y | 187 | CONFIG_INPUT_TOUCHSCREEN=y |
199 | CONFIG_TOUCHSCREEN_ADS7846=y | 188 | CONFIG_TOUCHSCREEN_ADS7846=y |
189 | CONFIG_TOUCHSCREEN_AD7879=y | ||
190 | CONFIG_TOUCHSCREEN_AD7879_I2C=y | ||
191 | CONFIG_TOUCHSCREEN_ATMEL_MXT=y | ||
192 | CONFIG_TOUCHSCREEN_DA9052=y | ||
200 | CONFIG_TOUCHSCREEN_EGALAX=y | 193 | CONFIG_TOUCHSCREEN_EGALAX=y |
201 | CONFIG_TOUCHSCREEN_ELAN_TS=y | 194 | CONFIG_TOUCHSCREEN_ELAN_TS=y |
202 | CONFIG_TOUCHSCREEN_GOODIX=y | 195 | CONFIG_TOUCHSCREEN_GOODIX=y |
196 | CONFIG_TOUCHSCREEN_ILI210X=y | ||
203 | CONFIG_TOUCHSCREEN_MAX11801=y | 197 | CONFIG_TOUCHSCREEN_MAX11801=y |
204 | CONFIG_TOUCHSCREEN_IMX6UL_TSC=y | 198 | CONFIG_TOUCHSCREEN_IMX6UL_TSC=y |
205 | CONFIG_TOUCHSCREEN_EDT_FT5X06=y | 199 | CONFIG_TOUCHSCREEN_EDT_FT5X06=y |
@@ -238,12 +232,12 @@ CONFIG_SPI_FSL_LPSPI=y | |||
238 | CONFIG_SPI_FSL_QUADSPI=y | 232 | CONFIG_SPI_FSL_QUADSPI=y |
239 | CONFIG_SPI_GPIO=y | 233 | CONFIG_SPI_GPIO=y |
240 | CONFIG_SPI_IMX=y | 234 | CONFIG_SPI_IMX=y |
241 | CONFIG_SPI_FSL_DSPI=y | ||
242 | CONFIG_SPI_SPIDEV=y | 235 | CONFIG_SPI_SPIDEV=y |
243 | CONFIG_SPI_SLAVE=y | 236 | CONFIG_SPI_SLAVE=y |
244 | CONFIG_SPI_SLAVE_TIME=y | 237 | CONFIG_SPI_SLAVE_TIME=y |
245 | CONFIG_SPI_SLAVE_SYSTEM_CONTROL=y | 238 | CONFIG_SPI_SLAVE_SYSTEM_CONTROL=y |
246 | CONFIG_GPIO_SYSFS=y | 239 | CONFIG_GPIO_SYSFS=y |
240 | CONFIG_GPIO_MXC=y | ||
247 | CONFIG_GPIO_SIOX=m | 241 | CONFIG_GPIO_SIOX=m |
248 | CONFIG_GPIO_IMX_RPMSG=y | 242 | CONFIG_GPIO_IMX_RPMSG=y |
249 | CONFIG_GPIO_MAX732X=y | 243 | CONFIG_GPIO_MAX732X=y |
@@ -282,6 +276,7 @@ CONFIG_MFD_MAX17135=y | |||
282 | CONFIG_MFD_RN5T618=y | 276 | CONFIG_MFD_RN5T618=y |
283 | CONFIG_MFD_SI476X_CORE=y | 277 | CONFIG_MFD_SI476X_CORE=y |
284 | CONFIG_MFD_STMPE=y | 278 | CONFIG_MFD_STMPE=y |
279 | CONFIG_REGULATOR=y | ||
285 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | 280 | CONFIG_REGULATOR_FIXED_VOLTAGE=y |
286 | CONFIG_REGULATOR_ANATOP=y | 281 | CONFIG_REGULATOR_ANATOP=y |
287 | CONFIG_REGULATOR_DA9052=y | 282 | CONFIG_REGULATOR_DA9052=y |
@@ -298,12 +293,9 @@ CONFIG_RC_CORE=y | |||
298 | CONFIG_RC_DEVICES=y | 293 | CONFIG_RC_DEVICES=y |
299 | CONFIG_IR_GPIO_CIR=y | 294 | CONFIG_IR_GPIO_CIR=y |
300 | CONFIG_MEDIA_SUPPORT=y | 295 | CONFIG_MEDIA_SUPPORT=y |
301 | CONFIG_MEDIA_CAMERA_SUPPORT=y | ||
302 | CONFIG_MEDIA_RADIO_SUPPORT=y | ||
303 | CONFIG_MEDIA_CONTROLLER=y | ||
304 | CONFIG_VIDEO_V4L2_SUBDEV_API=y | ||
305 | CONFIG_MEDIA_USB_SUPPORT=y | 296 | CONFIG_MEDIA_USB_SUPPORT=y |
306 | CONFIG_USB_VIDEO_CLASS=m | 297 | CONFIG_USB_VIDEO_CLASS=m |
298 | CONFIG_RADIO_SI476X=y | ||
307 | CONFIG_V4L_PLATFORM_DRIVERS=y | 299 | CONFIG_V4L_PLATFORM_DRIVERS=y |
308 | CONFIG_VIDEO_MUX=y | 300 | CONFIG_VIDEO_MUX=y |
309 | CONFIG_VIDEO_MXC_CAPTURE=m | 301 | CONFIG_VIDEO_MXC_CAPTURE=m |
@@ -322,15 +314,14 @@ CONFIG_VIDEO_MXC_PXP_V4L2=y | |||
322 | CONFIG_V4L_MEM2MEM_DRIVERS=y | 314 | CONFIG_V4L_MEM2MEM_DRIVERS=y |
323 | CONFIG_VIDEO_CODA=m | 315 | CONFIG_VIDEO_CODA=m |
324 | CONFIG_VIDEO_IMX_PXP=y | 316 | CONFIG_VIDEO_IMX_PXP=y |
325 | CONFIG_RADIO_SI476X=y | ||
326 | CONFIG_VIDEO_ADV7180=m | 317 | CONFIG_VIDEO_ADV7180=m |
327 | CONFIG_VIDEO_OV2680=m | 318 | CONFIG_VIDEO_OV2680=m |
328 | CONFIG_VIDEO_OV5645=m | 319 | CONFIG_VIDEO_OV5645=m |
329 | CONFIG_DRM=y | 320 | CONFIG_DRM=y |
330 | CONFIG_DRM_MSM=y | ||
331 | CONFIG_DRM_PANEL_LVDS=y | 321 | CONFIG_DRM_PANEL_LVDS=y |
332 | CONFIG_DRM_PANEL_SIMPLE=y | 322 | CONFIG_DRM_PANEL_SIMPLE=y |
333 | CONFIG_DRM_PANEL_SEIKO_43WVF1G=y | 323 | CONFIG_DRM_PANEL_SEIKO_43WVF1G=y |
324 | CONFIG_DRM_TI_TFP410=y | ||
334 | CONFIG_FB_MXS=y | 325 | CONFIG_FB_MXS=y |
335 | CONFIG_FB_MXC_SYNC_PANEL=y | 326 | CONFIG_FB_MXC_SYNC_PANEL=y |
336 | CONFIG_FB_MXC_OVERLAY=y | 327 | CONFIG_FB_MXC_OVERLAY=y |
@@ -359,28 +350,31 @@ CONFIG_SOUND=y | |||
359 | CONFIG_SND=y | 350 | CONFIG_SND=y |
360 | CONFIG_SND_USB_AUDIO=m | 351 | CONFIG_SND_USB_AUDIO=m |
361 | CONFIG_SND_SOC=y | 352 | CONFIG_SND_SOC=y |
353 | CONFIG_SND_SOC_FSL_ASRC=y | ||
354 | CONFIG_SND_SOC_FSL_MQS=y | ||
355 | CONFIG_SND_SOC_FSL_RPMSG=y | ||
362 | CONFIG_SND_IMX_SOC=y | 356 | CONFIG_SND_IMX_SOC=y |
363 | CONFIG_SND_SOC_EUKREA_TLV320=y | 357 | CONFIG_SND_SOC_EUKREA_TLV320=y |
364 | CONFIG_SND_SOC_IMX_WM8960=y | ||
365 | CONFIG_SND_SOC_IMX_SII902X=y | 358 | CONFIG_SND_SOC_IMX_SII902X=y |
366 | CONFIG_SND_SOC_IMX_WM8958=y | 359 | CONFIG_SND_SOC_IMX_WM8958=y |
367 | CONFIG_SND_SOC_IMX_CS42888=y | ||
368 | CONFIG_SND_SOC_IMX_WM8962=y | ||
369 | CONFIG_SND_SOC_IMX_RPMSG=y | 360 | CONFIG_SND_SOC_IMX_RPMSG=y |
370 | CONFIG_SND_SOC_IMX_ES8328=y | 361 | CONFIG_SND_SOC_IMX_ES8328=y |
371 | CONFIG_SND_SOC_IMX_SGTL5000=y | 362 | CONFIG_SND_SOC_IMX_SGTL5000=y |
372 | CONFIG_SND_SOC_IMX_MQS=y | ||
373 | CONFIG_SND_SOC_IMX_SPDIF=y | 363 | CONFIG_SND_SOC_IMX_SPDIF=y |
374 | CONFIG_SND_SOC_IMX_MC13783=y | 364 | CONFIG_SND_SOC_IMX_MC13783=y |
365 | CONFIG_SND_SOC_FSL_ASOC_CARD=y | ||
375 | CONFIG_SND_SOC_IMX_SI476X=y | 366 | CONFIG_SND_SOC_IMX_SI476X=y |
376 | CONFIG_SND_SOC_IMX_HDMI=y | 367 | CONFIG_SND_SOC_IMX_HDMI=y |
377 | CONFIG_SND_SOC_AC97_CODEC=y | 368 | CONFIG_SND_SOC_AC97_CODEC=y |
369 | CONFIG_SND_SOC_CS42XX8_I2C=y | ||
378 | CONFIG_SND_SOC_TLV320AIC3X=y | 370 | CONFIG_SND_SOC_TLV320AIC3X=y |
371 | CONFIG_SND_SOC_WM8960=y | ||
372 | CONFIG_SND_SOC_RPMSG_WM8960=y | ||
373 | CONFIG_SND_SOC_WM8962=y | ||
379 | CONFIG_SND_SIMPLE_CARD=y | 374 | CONFIG_SND_SIMPLE_CARD=y |
380 | CONFIG_HID_MULTITOUCH=y | 375 | CONFIG_HID_MULTITOUCH=y |
381 | CONFIG_USB=y | 376 | CONFIG_USB=y |
382 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y | 377 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y |
383 | CONFIG_USB_OTG_WHITELIST=y | ||
384 | CONFIG_USB_EHCI_HCD=y | 378 | CONFIG_USB_EHCI_HCD=y |
385 | CONFIG_USB_EHCI_MXC=y | 379 | CONFIG_USB_EHCI_MXC=y |
386 | CONFIG_USB_HCD_TEST_MODE=y | 380 | CONFIG_USB_HCD_TEST_MODE=y |
@@ -447,6 +441,7 @@ CONFIG_RTC_DRV_ISL1208=y | |||
447 | CONFIG_RTC_DRV_PCF8523=y | 441 | CONFIG_RTC_DRV_PCF8523=y |
448 | CONFIG_RTC_DRV_PCF8563=y | 442 | CONFIG_RTC_DRV_PCF8563=y |
449 | CONFIG_RTC_DRV_M41T80=y | 443 | CONFIG_RTC_DRV_M41T80=y |
444 | CONFIG_RTC_DRV_RC5T619=y | ||
450 | CONFIG_RTC_DRV_DA9063=y | 445 | CONFIG_RTC_DRV_DA9063=y |
451 | CONFIG_RTC_DRV_MC13XXX=y | 446 | CONFIG_RTC_DRV_MC13XXX=y |
452 | CONFIG_RTC_DRV_MXC=y | 447 | CONFIG_RTC_DRV_MXC=y |
@@ -464,12 +459,12 @@ CONFIG_STAGING=y | |||
464 | CONFIG_STAGING_MEDIA=y | 459 | CONFIG_STAGING_MEDIA=y |
465 | CONFIG_COMMON_CLK_PWM=y | 460 | CONFIG_COMMON_CLK_PWM=y |
466 | CONFIG_MAILBOX=y | 461 | CONFIG_MAILBOX=y |
467 | CONFIG_IMX_MBOX=y | ||
468 | CONFIG_REMOTEPROC=y | 462 | CONFIG_REMOTEPROC=y |
469 | CONFIG_IMX_REMOTEPROC=y | 463 | CONFIG_IMX_REMOTEPROC=y |
470 | CONFIG_EXTCON_USB_GPIO=y | 464 | CONFIG_EXTCON_USB_GPIO=y |
471 | CONFIG_IIO=y | 465 | CONFIG_IIO=y |
472 | CONFIG_IMX7D_ADC=y | 466 | CONFIG_IMX7D_ADC=y |
467 | CONFIG_RN5T618_ADC=y | ||
473 | CONFIG_VF610_ADC=y | 468 | CONFIG_VF610_ADC=y |
474 | CONFIG_PWM=y | 469 | CONFIG_PWM=y |
475 | CONFIG_PWM_FSL_FTM=y | 470 | CONFIG_PWM_FSL_FTM=y |
@@ -478,7 +473,6 @@ CONFIG_PWM_IMX_TPM=y | |||
478 | CONFIG_PHY_MIXEL_LVDS=y | 473 | CONFIG_PHY_MIXEL_LVDS=y |
479 | CONFIG_PHY_MIXEL_LVDS_COMBO=y | 474 | CONFIG_PHY_MIXEL_LVDS_COMBO=y |
480 | CONFIG_NVMEM_IMX_OCOTP=y | 475 | CONFIG_NVMEM_IMX_OCOTP=y |
481 | CONFIG_NVMEM_VF610_OCOTP=y | ||
482 | CONFIG_NVMEM_SNVS_LPGPR=y | 476 | CONFIG_NVMEM_SNVS_LPGPR=y |
483 | CONFIG_TEE=y | 477 | CONFIG_TEE=y |
484 | CONFIG_OPTEE=y | 478 | CONFIG_OPTEE=y |
@@ -511,12 +505,15 @@ CONFIG_ZISOFS=y | |||
511 | CONFIG_UDF_FS=m | 505 | CONFIG_UDF_FS=m |
512 | CONFIG_MSDOS_FS=m | 506 | CONFIG_MSDOS_FS=m |
513 | CONFIG_VFAT_FS=y | 507 | CONFIG_VFAT_FS=y |
508 | CONFIG_TMPFS=y | ||
514 | CONFIG_TMPFS_POSIX_ACL=y | 509 | CONFIG_TMPFS_POSIX_ACL=y |
515 | CONFIG_JFFS2_FS=y | 510 | CONFIG_JFFS2_FS=y |
516 | CONFIG_UBIFS_FS=y | 511 | CONFIG_UBIFS_FS=y |
517 | CONFIG_NFS_FS=y | 512 | CONFIG_NFS_FS=y |
518 | CONFIG_NFS_V3_ACL=y | 513 | CONFIG_NFS_V3_ACL=y |
519 | CONFIG_NFS_V4=y | 514 | CONFIG_NFS_V4=y |
515 | CONFIG_NFS_V4_1=y | ||
516 | CONFIG_NFS_V4_2=y | ||
520 | CONFIG_ROOT_NFS=y | 517 | CONFIG_ROOT_NFS=y |
521 | CONFIG_NLS_DEFAULT="cp437" | 518 | CONFIG_NLS_DEFAULT="cp437" |
522 | CONFIG_NLS_CODEPAGE_437=y | 519 | CONFIG_NLS_CODEPAGE_437=y |
@@ -533,7 +530,9 @@ CONFIG_CRYPTO_CFB=m | |||
533 | CONFIG_CRYPTO_CTS=m | 530 | CONFIG_CRYPTO_CTS=m |
534 | CONFIG_CRYPTO_LRW=m | 531 | CONFIG_CRYPTO_LRW=m |
535 | CONFIG_CRYPTO_OFB=m | 532 | CONFIG_CRYPTO_OFB=m |
536 | CONFIG_CRYPTO_XTS=y | 533 | CONFIG_CRYPTO_PCBC=m |
534 | CONFIG_CRYPTO_XCBC=m | ||
535 | CONFIG_CRYPTO_VMAC=m | ||
537 | CONFIG_CRYPTO_MD4=m | 536 | CONFIG_CRYPTO_MD4=m |
538 | CONFIG_CRYPTO_MD5=m | 537 | CONFIG_CRYPTO_MD5=m |
539 | CONFIG_CRYPTO_RMD128=m | 538 | CONFIG_CRYPTO_RMD128=m |
@@ -542,35 +541,32 @@ CONFIG_CRYPTO_RMD256=m | |||
542 | CONFIG_CRYPTO_RMD320=m | 541 | CONFIG_CRYPTO_RMD320=m |
543 | CONFIG_CRYPTO_SHA512=m | 542 | CONFIG_CRYPTO_SHA512=m |
544 | CONFIG_CRYPTO_SHA3=m | 543 | CONFIG_CRYPTO_SHA3=m |
544 | CONFIG_CRYPTO_SM3=m | ||
545 | CONFIG_CRYPTO_STREEBOG=m | ||
545 | CONFIG_CRYPTO_TGR192=m | 546 | CONFIG_CRYPTO_TGR192=m |
546 | CONFIG_CRYPTO_WP512=m | 547 | CONFIG_CRYPTO_WP512=m |
548 | CONFIG_CRYPTO_ANUBIS=m | ||
549 | CONFIG_CRYPTO_ARC4=m | ||
547 | CONFIG_CRYPTO_BLOWFISH=m | 550 | CONFIG_CRYPTO_BLOWFISH=m |
548 | CONFIG_CRYPTO_CAMELLIA=m | 551 | CONFIG_CRYPTO_CAMELLIA=m |
549 | CONFIG_CRYPTO_CAST5=m | 552 | CONFIG_CRYPTO_CAST5=m |
550 | CONFIG_CRYPTO_CAST6=m | 553 | CONFIG_CRYPTO_CAST6=m |
551 | CONFIG_CRYPTO_DES=m | 554 | CONFIG_CRYPTO_DES=m |
552 | CONFIG_CRYPTO_SERPENT=m | ||
553 | CONFIG_CRYPTO_TWOFISH=m | ||
554 | CONFIG_CRYPTO_DEV_FSL_CAAM=y | ||
555 | CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y | ||
556 | CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=m | ||
557 | CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y | ||
558 | CONFIG_CRYPTO_DEV_SAHARA=y | ||
559 | CONFIG_CRYPTO_DEV_MXS_DCP=y | ||
560 | CONFIG_CRYPTO_PCBC=m | ||
561 | CONFIG_CRYPTO_XCBC=m | ||
562 | CONFIG_CRYPTO_VMAC=m | ||
563 | CONFIG_CRYPTO_SM3=m | ||
564 | CONFIG_CRYPTO_STREEBOG=m | ||
565 | CONFIG_CRYPTO_ANUBIS=m | ||
566 | CONFIG_CRYPTO_FCRYPT=m | 555 | CONFIG_CRYPTO_FCRYPT=m |
567 | CONFIG_CRYPTO_KHAZAD=m | 556 | CONFIG_CRYPTO_KHAZAD=m |
568 | CONFIG_CRYPTO_SALSA20=m | 557 | CONFIG_CRYPTO_SALSA20=m |
569 | CONFIG_CRYPTO_SEED=m | 558 | CONFIG_CRYPTO_SEED=m |
559 | CONFIG_CRYPTO_SERPENT=m | ||
570 | CONFIG_CRYPTO_SM4=m | 560 | CONFIG_CRYPTO_SM4=m |
571 | CONFIG_CRYPTO_TEA=m | 561 | CONFIG_CRYPTO_TEA=m |
562 | CONFIG_CRYPTO_TWOFISH=m | ||
572 | CONFIG_CRYPTO_ANSI_CPRNG=m | 563 | CONFIG_CRYPTO_ANSI_CPRNG=m |
573 | CONFIG_CRYPTO_SHA1=m | 564 | CONFIG_CRYPTO_USER_API_RNG=m |
565 | CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=m | ||
566 | CONFIG_CRYPTO_DEV_FSL_CAAM=m | ||
567 | CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=m | ||
568 | CONFIG_CRYPTO_DEV_SAHARA=y | ||
569 | CONFIG_CRYPTO_DEV_MXS_DCP=y | ||
574 | CONFIG_CRC_CCITT=m | 570 | CONFIG_CRC_CCITT=m |
575 | CONFIG_CRC_T10DIF=y | 571 | CONFIG_CRC_T10DIF=y |
576 | CONFIG_CRC7=m | 572 | CONFIG_CRC7=m |
@@ -580,9 +576,9 @@ CONFIG_FONTS=y | |||
580 | CONFIG_FONT_8x8=y | 576 | CONFIG_FONT_8x8=y |
581 | CONFIG_FONT_8x16=y | 577 | CONFIG_FONT_8x16=y |
582 | CONFIG_PRINTK_TIME=y | 578 | CONFIG_PRINTK_TIME=y |
583 | CONFIG_DEBUG_FS=y | 579 | # CONFIG_DEBUG_BUGVERBOSE is not set |
584 | CONFIG_MAGIC_SYSRQ=y | 580 | CONFIG_MAGIC_SYSRQ=y |
581 | CONFIG_DEBUG_FS=y | ||
585 | # CONFIG_SCHED_DEBUG is not set | 582 | # CONFIG_SCHED_DEBUG is not set |
586 | # CONFIG_DEBUG_PREEMPT is not set | 583 | # CONFIG_DEBUG_PREEMPT is not set |
587 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
588 | # CONFIG_FTRACE is not set | 584 | # CONFIG_FTRACE is not set |
diff --git a/recipes-kernel/linux/linux-fslc-imx/mx8/defconfig b/recipes-kernel/linux/linux-fslc-imx/mx8/defconfig index dbe4597f..ab8c97e3 100644 --- a/recipes-kernel/linux/linux-fslc-imx/mx8/defconfig +++ b/recipes-kernel/linux/linux-fslc-imx/mx8/defconfig | |||
@@ -7,15 +7,12 @@ CONFIG_PREEMPT=y | |||
7 | CONFIG_IRQ_TIME_ACCOUNTING=y | 7 | CONFIG_IRQ_TIME_ACCOUNTING=y |
8 | CONFIG_BSD_PROCESS_ACCT=y | 8 | CONFIG_BSD_PROCESS_ACCT=y |
9 | CONFIG_BSD_PROCESS_ACCT_V3=y | 9 | CONFIG_BSD_PROCESS_ACCT_V3=y |
10 | CONFIG_TASKSTATS=y | ||
11 | CONFIG_TASK_DELAY_ACCT=y | ||
12 | CONFIG_TASK_XACCT=y | 10 | CONFIG_TASK_XACCT=y |
13 | CONFIG_TASK_IO_ACCOUNTING=y | 11 | CONFIG_TASK_IO_ACCOUNTING=y |
14 | CONFIG_IKCONFIG=y | 12 | CONFIG_IKCONFIG=y |
15 | CONFIG_IKCONFIG_PROC=y | 13 | CONFIG_IKCONFIG_PROC=y |
16 | CONFIG_NUMA_BALANCING=y | 14 | CONFIG_NUMA_BALANCING=y |
17 | CONFIG_MEMCG=y | 15 | CONFIG_MEMCG=y |
18 | CONFIG_MEMCG_SWAP=y | ||
19 | CONFIG_BLK_CGROUP=y | 16 | CONFIG_BLK_CGROUP=y |
20 | CONFIG_CGROUP_PIDS=y | 17 | CONFIG_CGROUP_PIDS=y |
21 | CONFIG_CGROUP_HUGETLB=y | 18 | CONFIG_CGROUP_HUGETLB=y |
@@ -36,9 +33,10 @@ CONFIG_ARCH_S32=y | |||
36 | CONFIG_SOC_S32V234=y | 33 | CONFIG_SOC_S32V234=y |
37 | CONFIG_ARM64_VA_BITS_48=y | 34 | CONFIG_ARM64_VA_BITS_48=y |
38 | CONFIG_SCHED_MC=y | 35 | CONFIG_SCHED_MC=y |
36 | CONFIG_SCHED_SMT=y | ||
39 | CONFIG_NUMA=y | 37 | CONFIG_NUMA=y |
40 | CONFIG_SECCOMP=y | ||
41 | CONFIG_KEXEC=y | 38 | CONFIG_KEXEC=y |
39 | CONFIG_KEXEC_FILE=y | ||
42 | CONFIG_CRASH_DUMP=y | 40 | CONFIG_CRASH_DUMP=y |
43 | CONFIG_XEN=y | 41 | CONFIG_XEN=y |
44 | CONFIG_FORCE_MAX_ZONEORDER=14 | 42 | CONFIG_FORCE_MAX_ZONEORDER=14 |
@@ -47,6 +45,7 @@ CONFIG_RANDOMIZE_BASE=y | |||
47 | CONFIG_PM_DEBUG=y | 45 | CONFIG_PM_DEBUG=y |
48 | CONFIG_PM_TEST_SUSPEND=y | 46 | CONFIG_PM_TEST_SUSPEND=y |
49 | CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y | 47 | CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y |
48 | CONFIG_ENERGY_MODEL=y | ||
50 | CONFIG_ARM_CPUIDLE=y | 49 | CONFIG_ARM_CPUIDLE=y |
51 | CONFIG_ARM_PSCI_CPUIDLE=y | 50 | CONFIG_ARM_PSCI_CPUIDLE=y |
52 | CONFIG_CPU_FREQ=y | 51 | CONFIG_CPU_FREQ=y |
@@ -61,16 +60,15 @@ CONFIG_ACPI_CPPC_CPUFREQ=m | |||
61 | CONFIG_ARM_SCPI_CPUFREQ=y | 60 | CONFIG_ARM_SCPI_CPUFREQ=y |
62 | CONFIG_ARM_IMX_CPUFREQ_DT=y | 61 | CONFIG_ARM_IMX_CPUFREQ_DT=y |
63 | CONFIG_QORIQ_CPUFREQ=y | 62 | CONFIG_QORIQ_CPUFREQ=y |
63 | CONFIG_ARM_SCMI_PROTOCOL=y | ||
64 | CONFIG_ARM_SCPI_PROTOCOL=y | 64 | CONFIG_ARM_SCPI_PROTOCOL=y |
65 | CONFIG_EFI_CAPSULE_LOADER=y | 65 | CONFIG_EFI_CAPSULE_LOADER=y |
66 | CONFIG_IMX_DSP=y | 66 | CONFIG_IMX_DSP=y |
67 | CONFIG_IMX_SCU=y | 67 | CONFIG_IMX_SCU=y |
68 | CONFIG_IMX_SCU_PD=y | 68 | CONFIG_IMX_SCU_PD=y |
69 | CONFIG_IMX_SECO_MU=y | ||
70 | CONFIG_ACPI=y | 69 | CONFIG_ACPI=y |
71 | CONFIG_ACPI_APEI=y | 70 | CONFIG_ACPI_APEI=y |
72 | CONFIG_ACPI_APEI_GHES=y | 71 | CONFIG_ACPI_APEI_GHES=y |
73 | CONFIG_ACPI_APEI_PCIEAER=y | ||
74 | CONFIG_ACPI_APEI_MEMORY_FAILURE=y | 72 | CONFIG_ACPI_APEI_MEMORY_FAILURE=y |
75 | CONFIG_ACPI_APEI_EINJ=y | 73 | CONFIG_ACPI_APEI_EINJ=y |
76 | CONFIG_VIRTUALIZATION=y | 74 | CONFIG_VIRTUALIZATION=y |
@@ -125,20 +123,30 @@ CONFIG_IP6_NF_NAT=m | |||
125 | CONFIG_IP6_NF_TARGET_MASQUERADE=m | 123 | CONFIG_IP6_NF_TARGET_MASQUERADE=m |
126 | CONFIG_BRIDGE=m | 124 | CONFIG_BRIDGE=m |
127 | CONFIG_BRIDGE_VLAN_FILTERING=y | 125 | CONFIG_BRIDGE_VLAN_FILTERING=y |
126 | CONFIG_NET_DSA=m | ||
128 | CONFIG_VLAN_8021Q_GVRP=y | 127 | CONFIG_VLAN_8021Q_GVRP=y |
129 | CONFIG_VLAN_8021Q_MVRP=y | 128 | CONFIG_VLAN_8021Q_MVRP=y |
130 | CONFIG_LLC2=y | 129 | CONFIG_LLC2=y |
131 | CONFIG_NET_SCHED=y | 130 | CONFIG_NET_SCHED=y |
132 | CONFIG_NET_SCH_MULTIQ=y | 131 | CONFIG_NET_SCH_MULTIQ=m |
133 | CONFIG_NET_SCH_CBS=y | 132 | CONFIG_NET_SCH_CBS=m |
134 | CONFIG_NET_SCH_TAPRIO=y | 133 | CONFIG_NET_SCH_ETF=m |
135 | CONFIG_NET_SCH_MQPRIO=y | 134 | CONFIG_NET_SCH_TAPRIO=m |
136 | CONFIG_NET_CLS_BASIC=y | 135 | CONFIG_NET_SCH_MQPRIO=m |
137 | CONFIG_NET_CLS_TCINDEX=y | 136 | CONFIG_NET_SCH_INGRESS=m |
137 | CONFIG_NET_CLS_BASIC=m | ||
138 | CONFIG_NET_CLS_TCINDEX=m | ||
139 | CONFIG_NET_CLS_FLOWER=m | ||
140 | CONFIG_NET_CLS_ACT=y | ||
141 | CONFIG_NET_ACT_GACT=m | ||
142 | CONFIG_NET_ACT_MIRRED=m | ||
143 | CONFIG_NET_ACT_GATE=m | ||
138 | CONFIG_TSN=y | 144 | CONFIG_TSN=y |
139 | CONFIG_NET_SWITCHDEV=y | 145 | CONFIG_QRTR=m |
146 | CONFIG_QRTR_SMD=m | ||
147 | CONFIG_QRTR_TUN=m | ||
140 | CONFIG_BPF_JIT=y | 148 | CONFIG_BPF_JIT=y |
141 | CONFIG_NET_PKTGEN=y | 149 | CONFIG_NET_PKTGEN=m |
142 | CONFIG_CAN=m | 150 | CONFIG_CAN=m |
143 | CONFIG_CAN_FLEXCAN=m | 151 | CONFIG_CAN_FLEXCAN=m |
144 | CONFIG_BT=y | 152 | CONFIG_BT=y |
@@ -148,8 +156,6 @@ CONFIG_BT_BNEP=y | |||
148 | CONFIG_BT_BNEP_MC_FILTER=y | 156 | CONFIG_BT_BNEP_MC_FILTER=y |
149 | CONFIG_BT_BNEP_PROTO_FILTER=y | 157 | CONFIG_BT_BNEP_PROTO_FILTER=y |
150 | CONFIG_BT_HIDP=y | 158 | CONFIG_BT_HIDP=y |
151 | # CONFIG_BT_HS is not set | ||
152 | # CONFIG_BT_LE is not set | ||
153 | CONFIG_BT_LEDS=y | 159 | CONFIG_BT_LEDS=y |
154 | # CONFIG_BT_DEBUGFS is not set | 160 | # CONFIG_BT_DEBUGFS is not set |
155 | CONFIG_BT_HCIBTUSB=m | 161 | CONFIG_BT_HCIBTUSB=m |
@@ -168,9 +174,13 @@ CONFIG_MAC80211=y | |||
168 | CONFIG_MAC80211_LEDS=y | 174 | CONFIG_MAC80211_LEDS=y |
169 | CONFIG_NET_9P=y | 175 | CONFIG_NET_9P=y |
170 | CONFIG_NET_9P_VIRTIO=y | 176 | CONFIG_NET_9P_VIRTIO=y |
177 | CONFIG_NFC=m | ||
178 | CONFIG_NFC_NCI=m | ||
179 | CONFIG_NFC_S3FWRN5_I2C=m | ||
171 | CONFIG_PCI=y | 180 | CONFIG_PCI=y |
172 | CONFIG_PCIEPORTBUS=y | 181 | CONFIG_PCIEPORTBUS=y |
173 | CONFIG_PCI_IOV=y | 182 | CONFIG_PCI_IOV=y |
183 | CONFIG_PCI_PASID=y | ||
174 | CONFIG_HOTPLUG_PCI=y | 184 | CONFIG_HOTPLUG_PCI=y |
175 | CONFIG_HOTPLUG_PCI_ACPI=y | 185 | CONFIG_HOTPLUG_PCI_ACPI=y |
176 | CONFIG_PCI_HOST_GENERIC=y | 186 | CONFIG_PCI_HOST_GENERIC=y |
@@ -184,11 +194,11 @@ CONFIG_PCI_IMX6_EP=y | |||
184 | CONFIG_PCI_LAYERSCAPE=y | 194 | CONFIG_PCI_LAYERSCAPE=y |
185 | CONFIG_PCI_HISI=y | 195 | CONFIG_PCI_HISI=y |
186 | CONFIG_PCIE_KIRIN=y | 196 | CONFIG_PCIE_KIRIN=y |
197 | CONFIG_PCI_MESON=m | ||
187 | CONFIG_PCIE_LAYERSCAPE_GEN4=y | 198 | CONFIG_PCIE_LAYERSCAPE_GEN4=y |
188 | CONFIG_PCI_ENDPOINT=y | 199 | CONFIG_PCI_ENDPOINT=y |
189 | CONFIG_PCI_ENDPOINT_CONFIGFS=y | 200 | CONFIG_PCI_ENDPOINT_CONFIGFS=y |
190 | CONFIG_PCI_EPF_TEST=y | 201 | CONFIG_PCI_EPF_TEST=y |
191 | CONFIG_IMX_MIC_EPF=m | ||
192 | CONFIG_DEVTMPFS=y | 202 | CONFIG_DEVTMPFS=y |
193 | CONFIG_DEVTMPFS_MOUNT=y | 203 | CONFIG_DEVTMPFS_MOUNT=y |
194 | CONFIG_FW_LOADER_USER_HELPER=y | 204 | CONFIG_FW_LOADER_USER_HELPER=y |
@@ -196,7 +206,6 @@ CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y | |||
196 | CONFIG_BRCMSTB_GISB_ARB=y | 206 | CONFIG_BRCMSTB_GISB_ARB=y |
197 | CONFIG_SIMPLE_PM_BUS=y | 207 | CONFIG_SIMPLE_PM_BUS=y |
198 | CONFIG_VEXPRESS_CONFIG=y | 208 | CONFIG_VEXPRESS_CONFIG=y |
199 | CONFIG_FSL_MC_BUS=y | ||
200 | CONFIG_FSL_MC_UAPI_SUPPORT=y | 209 | CONFIG_FSL_MC_UAPI_SUPPORT=y |
201 | CONFIG_MTD=y | 210 | CONFIG_MTD=y |
202 | CONFIG_MTD_CMDLINE_PARTS=y | 211 | CONFIG_MTD_CMDLINE_PARTS=y |
@@ -226,20 +235,15 @@ CONFIG_SENSORS_FXOS8700=y | |||
226 | CONFIG_SENSORS_FXAS2100X=y | 235 | CONFIG_SENSORS_FXAS2100X=y |
227 | CONFIG_SRAM=y | 236 | CONFIG_SRAM=y |
228 | CONFIG_PCI_ENDPOINT_TEST=y | 237 | CONFIG_PCI_ENDPOINT_TEST=y |
229 | CONFIG_EEPROM_AT24=y | 238 | CONFIG_EEPROM_AT24=m |
230 | CONFIG_EEPROM_AT25=m | 239 | CONFIG_EEPROM_AT25=m |
231 | CONFIG_SCIF_BUS=m | 240 | CONFIG_UACCE=m |
232 | CONFIG_VOP_BUS=m | ||
233 | CONFIG_IMX_MIC_HOST=m | ||
234 | CONFIG_IMX_MIC_CARD=m | ||
235 | CONFIG_SCIF=m | ||
236 | CONFIG_MIC_COSM=m | ||
237 | CONFIG_VOP=m | ||
238 | # CONFIG_SCSI_PROC_FS is not set | 241 | # CONFIG_SCSI_PROC_FS is not set |
239 | CONFIG_BLK_DEV_SD=y | 242 | CONFIG_BLK_DEV_SD=y |
240 | CONFIG_SCSI_SAS_ATA=y | 243 | CONFIG_SCSI_SAS_ATA=y |
241 | CONFIG_SCSI_HISI_SAS=y | 244 | CONFIG_SCSI_HISI_SAS=y |
242 | CONFIG_SCSI_HISI_SAS_PCI=y | 245 | CONFIG_SCSI_HISI_SAS_PCI=y |
246 | CONFIG_MEGARAID_SAS=y | ||
243 | CONFIG_SCSI_MPT3SAS=m | 247 | CONFIG_SCSI_MPT3SAS=m |
244 | CONFIG_SCSI_UFSHCD=y | 248 | CONFIG_SCSI_UFSHCD=y |
245 | CONFIG_SCSI_UFSHCD_PLATFORM=y | 249 | CONFIG_SCSI_UFSHCD_PLATFORM=y |
@@ -265,16 +269,23 @@ CONFIG_MACVTAP=m | |||
265 | CONFIG_TUN=y | 269 | CONFIG_TUN=y |
266 | CONFIG_VETH=m | 270 | CONFIG_VETH=m |
267 | CONFIG_VIRTIO_NET=y | 271 | CONFIG_VIRTIO_NET=y |
272 | CONFIG_NET_DSA_MSCC_FELIX=m | ||
268 | CONFIG_AMD_XGBE=y | 273 | CONFIG_AMD_XGBE=y |
269 | CONFIG_ATL1C=m | 274 | CONFIG_ATL1C=m |
275 | CONFIG_BCMGENET=m | ||
270 | CONFIG_BNX2X=m | 276 | CONFIG_BNX2X=m |
271 | CONFIG_MACB=y | 277 | CONFIG_MACB=y |
272 | CONFIG_THUNDER_NIC_PF=y | 278 | CONFIG_THUNDER_NIC_PF=y |
273 | CONFIG_FEC=y | 279 | CONFIG_FEC=y |
274 | CONFIG_FSL_SDK_DPAA_ETH=y | 280 | CONFIG_FEC_UIO=y |
281 | CONFIG_FSL_FMAN=y | ||
282 | CONFIG_FSL_DPAA_ETH=y | ||
275 | CONFIG_FSL_DPAA2_ETH=y | 283 | CONFIG_FSL_DPAA2_ETH=y |
284 | CONFIG_FSL_DPAA2_MAC=y | ||
276 | CONFIG_FSL_ENETC=y | 285 | CONFIG_FSL_ENETC=y |
277 | CONFIG_FSL_ENETC_VF=y | 286 | CONFIG_FSL_ENETC_VF=y |
287 | CONFIG_FSL_ENETC_QOS=y | ||
288 | CONFIG_ENETC_TSN=y | ||
278 | CONFIG_HIX5HD2_GMAC=y | 289 | CONFIG_HIX5HD2_GMAC=y |
279 | CONFIG_HNS_DSAF=y | 290 | CONFIG_HNS_DSAF=y |
280 | CONFIG_HNS_ENET=y | 291 | CONFIG_HNS_ENET=y |
@@ -292,37 +303,38 @@ CONFIG_MLX5_CORE=m | |||
292 | CONFIG_MLX5_CORE_EN=y | 303 | CONFIG_MLX5_CORE_EN=y |
293 | CONFIG_MSCC_OCELOT_SWITCH=y | 304 | CONFIG_MSCC_OCELOT_SWITCH=y |
294 | CONFIG_QCOM_EMAC=m | 305 | CONFIG_QCOM_EMAC=m |
306 | CONFIG_RMNET=m | ||
295 | CONFIG_SMC91X=y | 307 | CONFIG_SMC91X=y |
296 | CONFIG_SMSC911X=y | 308 | CONFIG_SMSC911X=y |
297 | CONFIG_STMMAC_ETH=y | 309 | CONFIG_STMMAC_ETH=y |
298 | CONFIG_MDIO_BITBANG=y | 310 | CONFIG_DWMAC_GENERIC=m |
299 | CONFIG_MDIO_BUS_MUX_MULTIPLEXER=y | ||
300 | CONFIG_AQUANTIA_PHY=y | 311 | CONFIG_AQUANTIA_PHY=y |
301 | CONFIG_AT803X_PHY=y | 312 | CONFIG_BROADCOM_PHY=m |
302 | CONFIG_INPHI_PHY=y | 313 | CONFIG_INPHI_PHY=y |
303 | CONFIG_MARVELL_PHY=m | 314 | CONFIG_MARVELL_PHY=m |
304 | CONFIG_MARVELL_10G_PHY=m | 315 | CONFIG_MARVELL_10G_PHY=m |
305 | CONFIG_MICREL_PHY=y | 316 | CONFIG_MICREL_PHY=y |
306 | CONFIG_MICROSEMI_PHY=y | 317 | CONFIG_MICROSEMI_PHY=y |
307 | CONFIG_NXP_TJA11XX_PHY=y | 318 | CONFIG_NXP_TJA11XX_PHY=y |
319 | CONFIG_AT803X_PHY=y | ||
308 | CONFIG_REALTEK_PHY=y | 320 | CONFIG_REALTEK_PHY=y |
309 | CONFIG_ROCKCHIP_PHY=y | 321 | CONFIG_ROCKCHIP_PHY=y |
310 | CONFIG_VITESSE_PHY=y | 322 | CONFIG_VITESSE_PHY=y |
323 | CONFIG_MDIO_BITBANG=y | ||
324 | CONFIG_MDIO_BUS_MUX_MULTIPLEXER=y | ||
325 | CONFIG_MDIO_BUS_MUX_MMIOREG=y | ||
311 | CONFIG_USB_PEGASUS=m | 326 | CONFIG_USB_PEGASUS=m |
312 | CONFIG_USB_RTL8150=m | 327 | CONFIG_USB_RTL8150=m |
313 | CONFIG_USB_RTL8152=m | 328 | CONFIG_USB_RTL8152=y |
314 | CONFIG_USB_LAN78XX=m | 329 | CONFIG_USB_LAN78XX=m |
315 | CONFIG_USB_USBNET=m | 330 | CONFIG_USB_USBNET=y |
316 | CONFIG_USB_NET_DM9601=m | 331 | CONFIG_USB_NET_DM9601=m |
317 | CONFIG_USB_NET_SR9800=m | 332 | CONFIG_USB_NET_SR9800=m |
318 | CONFIG_USB_NET_SMSC75XX=m | 333 | CONFIG_USB_NET_SMSC75XX=m |
319 | CONFIG_USB_NET_SMSC95XX=m | 334 | CONFIG_USB_NET_SMSC95XX=m |
320 | CONFIG_USB_NET_PLUSB=m | 335 | CONFIG_USB_NET_PLUSB=m |
321 | CONFIG_USB_NET_MCS7830=m | 336 | CONFIG_USB_NET_MCS7830=m |
322 | CONFIG_BRCMFMAC=m | ||
323 | CONFIG_BRCMFMAC_PCIE=y | ||
324 | CONFIG_HOSTAP=y | 337 | CONFIG_HOSTAP=y |
325 | CONFIG_MXMWIFIEX=m | ||
326 | CONFIG_WL18XX=m | 338 | CONFIG_WL18XX=m |
327 | CONFIG_WLCORE_SDIO=m | 339 | CONFIG_WLCORE_SDIO=m |
328 | CONFIG_XEN_NETDEV_BACKEND=m | 340 | CONFIG_XEN_NETDEV_BACKEND=m |
@@ -332,6 +344,7 @@ CONFIG_KEYBOARD_ADC=m | |||
332 | CONFIG_KEYBOARD_GPIO=y | 344 | CONFIG_KEYBOARD_GPIO=y |
333 | CONFIG_KEYBOARD_SNVS_PWRKEY=y | 345 | CONFIG_KEYBOARD_SNVS_PWRKEY=y |
334 | CONFIG_KEYBOARD_IMX_SC_PWRKEY=y | 346 | CONFIG_KEYBOARD_IMX_SC_PWRKEY=y |
347 | CONFIG_KEYBOARD_RPMSG=y | ||
335 | CONFIG_KEYBOARD_CROS_EC=y | 348 | CONFIG_KEYBOARD_CROS_EC=y |
336 | CONFIG_INPUT_TOUCHSCREEN=y | 349 | CONFIG_INPUT_TOUCHSCREEN=y |
337 | CONFIG_TOUCHSCREEN_ATMEL_MXT=m | 350 | CONFIG_TOUCHSCREEN_ATMEL_MXT=m |
@@ -378,7 +391,10 @@ CONFIG_I2C_RPBUS=y | |||
378 | CONFIG_I2C_CROS_EC_TUNNEL=y | 391 | CONFIG_I2C_CROS_EC_TUNNEL=y |
379 | CONFIG_XEN_I2C_BACKEND=y | 392 | CONFIG_XEN_I2C_BACKEND=y |
380 | CONFIG_I2C_SLAVE=y | 393 | CONFIG_I2C_SLAVE=y |
394 | CONFIG_I3C=y | ||
395 | CONFIG_SVC_I3C_MASTER=y | ||
381 | CONFIG_SPI=y | 396 | CONFIG_SPI=y |
397 | CONFIG_SPI_CADENCE_QUADSPI=y | ||
382 | CONFIG_SPI_FSL_LPSPI=y | 398 | CONFIG_SPI_FSL_LPSPI=y |
383 | CONFIG_SPI_FSL_QUADSPI=y | 399 | CONFIG_SPI_FSL_QUADSPI=y |
384 | CONFIG_SPI_NXP_FLEXSPI=y | 400 | CONFIG_SPI_NXP_FLEXSPI=y |
@@ -400,29 +416,34 @@ CONFIG_PINCTRL_IMX8MQ=y | |||
400 | CONFIG_PINCTRL_IMX8QM=y | 416 | CONFIG_PINCTRL_IMX8QM=y |
401 | CONFIG_PINCTRL_IMX8QXP=y | 417 | CONFIG_PINCTRL_IMX8QXP=y |
402 | CONFIG_PINCTRL_IMX8DXL=y | 418 | CONFIG_PINCTRL_IMX8DXL=y |
419 | CONFIG_PINCTRL_IMX8ULP=y | ||
403 | CONFIG_PINCTRL_S32V234=y | 420 | CONFIG_PINCTRL_S32V234=y |
404 | CONFIG_GPIOLIB=y | ||
405 | CONFIG_GPIO_SYSFS=y | 421 | CONFIG_GPIO_SYSFS=y |
422 | CONFIG_GPIO_ALTERA=m | ||
406 | CONFIG_GPIO_DWAPB=y | 423 | CONFIG_GPIO_DWAPB=y |
424 | CONFIG_GPIO_IMX_RPMSG=y | ||
407 | CONFIG_GPIO_MB86S7X=y | 425 | CONFIG_GPIO_MB86S7X=y |
408 | CONFIG_GPIO_MPC8XXX=y | 426 | CONFIG_GPIO_MPC8XXX=y |
409 | CONFIG_GPIO_PL061=y | 427 | CONFIG_GPIO_PL061=y |
428 | CONFIG_GPIO_WCD934X=m | ||
410 | CONFIG_GPIO_XGENE=y | 429 | CONFIG_GPIO_XGENE=y |
411 | CONFIG_GPIO_MAX732X=y | 430 | CONFIG_GPIO_MAX732X=y |
412 | CONFIG_GPIO_PCA953X=y | 431 | CONFIG_GPIO_PCA953X=y |
413 | CONFIG_GPIO_PCA953X_IRQ=y | 432 | CONFIG_GPIO_PCA953X_IRQ=y |
433 | CONFIG_GPIO_BD9571MWV=m | ||
414 | CONFIG_GPIO_MAX77620=y | 434 | CONFIG_GPIO_MAX77620=y |
415 | CONFIG_POWER_AVS=y | 435 | CONFIG_GPIO_SL28CPLD=m |
416 | CONFIG_POWER_RESET_BRCMSTB=y | 436 | CONFIG_POWER_RESET_BRCMSTB=y |
417 | CONFIG_POWER_RESET_VEXPRESS=y | ||
418 | CONFIG_POWER_RESET_XGENE=y | 437 | CONFIG_POWER_RESET_XGENE=y |
419 | CONFIG_POWER_RESET_SYSCON=y | 438 | CONFIG_POWER_RESET_SYSCON=y |
420 | CONFIG_SYSCON_REBOOT_MODE=y | 439 | CONFIG_SYSCON_REBOOT_MODE=y |
421 | CONFIG_BATTERY_SBS=m | 440 | CONFIG_BATTERY_SBS=m |
422 | CONFIG_BATTERY_BQ27XXX=y | 441 | CONFIG_BATTERY_BQ27XXX=y |
423 | CONFIG_SENSORS_ARM_SCPI=y | 442 | CONFIG_SENSORS_ARM_SCPI=y |
443 | CONFIG_SENSORS_FP9931=y | ||
424 | CONFIG_SENSORS_LM90=m | 444 | CONFIG_SENSORS_LM90=m |
425 | CONFIG_SENSORS_PWM_FAN=m | 445 | CONFIG_SENSORS_PWM_FAN=m |
446 | CONFIG_SENSORS_SL28CPLD=m | ||
426 | CONFIG_SENSORS_INA2XX=m | 447 | CONFIG_SENSORS_INA2XX=m |
427 | CONFIG_SENSORS_INA3221=m | 448 | CONFIG_SENSORS_INA3221=m |
428 | CONFIG_THERMAL_WRITABLE_TRIPS=y | 449 | CONFIG_THERMAL_WRITABLE_TRIPS=y |
@@ -430,25 +451,30 @@ CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y | |||
430 | CONFIG_CPU_THERMAL=y | 451 | CONFIG_CPU_THERMAL=y |
431 | CONFIG_THERMAL_EMULATION=y | 452 | CONFIG_THERMAL_EMULATION=y |
432 | CONFIG_IMX_SC_THERMAL=y | 453 | CONFIG_IMX_SC_THERMAL=y |
433 | CONFIG_DEVICE_THERMAL=y | ||
434 | CONFIG_IMX8MM_THERMAL=y | 454 | CONFIG_IMX8MM_THERMAL=y |
455 | CONFIG_DEVICE_THERMAL=y | ||
435 | CONFIG_QORIQ_THERMAL=y | 456 | CONFIG_QORIQ_THERMAL=y |
436 | CONFIG_WATCHDOG=y | 457 | CONFIG_WATCHDOG=y |
458 | CONFIG_SL28CPLD_WATCHDOG=m | ||
437 | CONFIG_ARM_SP805_WATCHDOG=y | 459 | CONFIG_ARM_SP805_WATCHDOG=y |
438 | CONFIG_ARM_SBSA_WATCHDOG=y | 460 | CONFIG_ARM_SBSA_WATCHDOG=y |
439 | CONFIG_DW_WATCHDOG=y | 461 | CONFIG_DW_WATCHDOG=y |
440 | CONFIG_IMX2_WDT=y | 462 | CONFIG_IMX2_WDT=y |
441 | CONFIG_IMX_SC_WDT=y | 463 | CONFIG_IMX_SC_WDT=y |
464 | CONFIG_IMX7ULP_WDT=y | ||
465 | CONFIG_ARM_SMC_WATCHDOG=y | ||
442 | CONFIG_XEN_WDT=y | 466 | CONFIG_XEN_WDT=y |
443 | CONFIG_MFD_BD9571MWV=y | 467 | CONFIG_MFD_BD9571MWV=y |
444 | CONFIG_MFD_AXP20X_I2C=y | 468 | CONFIG_MFD_AXP20X_I2C=y |
445 | CONFIG_MFD_IMX_AUDIOMIX=y | 469 | CONFIG_MFD_IMX_MIX=y |
446 | CONFIG_MFD_HI6421_PMIC=y | 470 | CONFIG_MFD_HI6421_PMIC=y |
471 | CONFIG_MFD_FP9931=y | ||
447 | CONFIG_MFD_MAX77620=y | 472 | CONFIG_MFD_MAX77620=y |
448 | CONFIG_MFD_RK808=y | 473 | CONFIG_MFD_RK808=y |
449 | CONFIG_MFD_SEC_CORE=y | 474 | CONFIG_MFD_SEC_CORE=y |
475 | CONFIG_MFD_SL28CPLD=y | ||
450 | CONFIG_MFD_ROHM_BD718XX=y | 476 | CONFIG_MFD_ROHM_BD718XX=y |
451 | CONFIG_MFD_PCA9450=y | 477 | CONFIG_MFD_WCD934X=m |
452 | CONFIG_REGULATOR=y | 478 | CONFIG_REGULATOR=y |
453 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | 479 | CONFIG_REGULATOR_FIXED_VOLTAGE=y |
454 | CONFIG_REGULATOR_AXP20X=y | 480 | CONFIG_REGULATOR_AXP20X=y |
@@ -459,6 +485,7 @@ CONFIG_REGULATOR_GPIO=y | |||
459 | CONFIG_REGULATOR_HI6421V530=y | 485 | CONFIG_REGULATOR_HI6421V530=y |
460 | CONFIG_REGULATOR_MAX77620=y | 486 | CONFIG_REGULATOR_MAX77620=y |
461 | CONFIG_REGULATOR_MAX8973=y | 487 | CONFIG_REGULATOR_MAX8973=y |
488 | CONFIG_REGULATOR_FP9931=y | ||
462 | CONFIG_REGULATOR_PCA9450=y | 489 | CONFIG_REGULATOR_PCA9450=y |
463 | CONFIG_REGULATOR_PFUZE100=y | 490 | CONFIG_REGULATOR_PFUZE100=y |
464 | CONFIG_REGULATOR_PWM=y | 491 | CONFIG_REGULATOR_PWM=y |
@@ -485,19 +512,22 @@ CONFIG_MEDIA_SUPPORT=y | |||
485 | CONFIG_MEDIA_CAMERA_SUPPORT=y | 512 | CONFIG_MEDIA_CAMERA_SUPPORT=y |
486 | CONFIG_MEDIA_ANALOG_TV_SUPPORT=y | 513 | CONFIG_MEDIA_ANALOG_TV_SUPPORT=y |
487 | CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y | 514 | CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y |
488 | CONFIG_MEDIA_CONTROLLER=y | 515 | CONFIG_MEDIA_SDR_SUPPORT=y |
489 | CONFIG_VIDEO_V4L2_SUBDEV_API=y | 516 | CONFIG_MEDIA_PLATFORM_SUPPORT=y |
490 | # CONFIG_DVB_NET is not set | 517 | # CONFIG_DVB_NET is not set |
491 | CONFIG_MEDIA_USB_SUPPORT=y | 518 | CONFIG_MEDIA_USB_SUPPORT=y |
492 | CONFIG_USB_VIDEO_CLASS=m | 519 | CONFIG_USB_VIDEO_CLASS=m |
493 | CONFIG_V4L_PLATFORM_DRIVERS=y | 520 | CONFIG_V4L_PLATFORM_DRIVERS=y |
494 | CONFIG_VIDEO_MX8_CAPTURE=y | ||
495 | CONFIG_VIDEO_MXC_CAPTURE=y | 521 | CONFIG_VIDEO_MXC_CAPTURE=y |
522 | CONFIG_VIDEO_MX8_CAPTURE=y | ||
496 | CONFIG_VIDEO_MXC_CSI_CAMERA=y | 523 | CONFIG_VIDEO_MXC_CSI_CAMERA=y |
497 | CONFIG_MXC_MIPI_CSI=y | 524 | CONFIG_MXC_MIPI_CSI=y |
498 | CONFIG_MXC_CAMERA_OV5640_MIPI_V2=y | 525 | CONFIG_MXC_CAMERA_OV5640_MIPI_V2=y |
499 | CONFIG_V4L_MEM2MEM_DRIVERS=y | 526 | CONFIG_V4L_MEM2MEM_DRIVERS=y |
527 | CONFIG_SDR_PLATFORM_DRIVERS=y | ||
528 | CONFIG_VIDEO_IMX219=m | ||
500 | CONFIG_VIDEO_OV5640=y | 529 | CONFIG_VIDEO_OV5640=y |
530 | CONFIG_VIDEO_OV5645=m | ||
501 | CONFIG_IMX_DPU_CORE=y | 531 | CONFIG_IMX_DPU_CORE=y |
502 | CONFIG_IMX_LCDIF_CORE=y | 532 | CONFIG_IMX_LCDIF_CORE=y |
503 | CONFIG_IMX_LCDIFV3_CORE=y | 533 | CONFIG_IMX_LCDIFV3_CORE=y |
@@ -505,21 +535,34 @@ CONFIG_DRM=y | |||
505 | CONFIG_DRM_I2C_NXP_TDA998X=m | 535 | CONFIG_DRM_I2C_NXP_TDA998X=m |
506 | CONFIG_DRM_MALI_DISPLAY=m | 536 | CONFIG_DRM_MALI_DISPLAY=m |
507 | CONFIG_DRM_NOUVEAU=m | 537 | CONFIG_DRM_NOUVEAU=m |
538 | CONFIG_DRM_RCAR_DW_HDMI=m | ||
508 | CONFIG_DRM_RCAR_LVDS=m | 539 | CONFIG_DRM_RCAR_LVDS=m |
540 | CONFIG_DRM_PANEL_LVDS=m | ||
509 | CONFIG_DRM_PANEL_SIMPLE=y | 541 | CONFIG_DRM_PANEL_SIMPLE=y |
510 | CONFIG_DRM_PANEL_RAYDIUM_RM67191=y | 542 | CONFIG_DRM_PANEL_RAYDIUM_RM67191=y |
543 | CONFIG_DRM_PANEL_RAYDIUM_RM68200=y | ||
511 | CONFIG_DRM_PANEL_SEIKO_43WVF1G=y | 544 | CONFIG_DRM_PANEL_SEIKO_43WVF1G=y |
545 | CONFIG_DRM_PANEL_SITRONIX_ST7703=m | ||
546 | CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m | ||
512 | CONFIG_DRM_PANEL_WKS_101WX001=y | 547 | CONFIG_DRM_PANEL_WKS_101WX001=y |
548 | CONFIG_DRM_DISPLAY_CONNECTOR=m | ||
549 | CONFIG_DRM_LONTIUM_LT9611=m | ||
513 | CONFIG_DRM_FSL_IMX_LVDS_BRIDGE=y | 550 | CONFIG_DRM_FSL_IMX_LVDS_BRIDGE=y |
551 | CONFIG_DRM_NWL_MIPI_DSI=y | ||
514 | CONFIG_DRM_NXP_SEIKO_43WVFIG=y | 552 | CONFIG_DRM_NXP_SEIKO_43WVFIG=y |
515 | CONFIG_DRM_SII902X=m | 553 | CONFIG_DRM_SII902X=m |
554 | CONFIG_DRM_SIMPLE_BRIDGE=m | ||
555 | CONFIG_DRM_THINE_THC63LVD1024=m | ||
556 | CONFIG_DRM_TI_SN65DSI86=m | ||
516 | CONFIG_DRM_I2C_ADV7511=y | 557 | CONFIG_DRM_I2C_ADV7511=y |
517 | CONFIG_DRM_NWL_MIPI_DSI=y | 558 | CONFIG_DRM_I2C_ADV7511_AUDIO=y |
518 | CONFIG_DRM_CDNS_HDMI_CEC=y | 559 | CONFIG_DRM_CDNS_HDMI_CEC=y |
560 | CONFIG_DRM_DW_HDMI_AHB_AUDIO=m | ||
519 | CONFIG_DRM_DW_HDMI_I2S_AUDIO=m | 561 | CONFIG_DRM_DW_HDMI_I2S_AUDIO=m |
520 | CONFIG_DRM_DW_HDMI_GP_AUDIO=y | 562 | CONFIG_DRM_DW_HDMI_GP_AUDIO=y |
521 | CONFIG_DRM_DW_HDMI_CEC=y | 563 | CONFIG_DRM_DW_HDMI_CEC=y |
522 | CONFIG_DRM_ITE_IT6263=y | 564 | CONFIG_DRM_ITE_IT6263=y |
565 | CONFIG_DRM_ITE_IT6161=y | ||
523 | CONFIG_DRM_IMX=y | 566 | CONFIG_DRM_IMX=y |
524 | CONFIG_DRM_IMX_LCDIF_MUX_DISPLAY=y | 567 | CONFIG_DRM_IMX_LCDIF_MUX_DISPLAY=y |
525 | CONFIG_DRM_IMX_PARALLEL_DISPLAY=y | 568 | CONFIG_DRM_IMX_PARALLEL_DISPLAY=y |
@@ -530,6 +573,7 @@ CONFIG_DRM_IMX8QXP_LDB=y | |||
530 | CONFIG_DRM_IMX8MP_LDB=y | 573 | CONFIG_DRM_IMX8MP_LDB=y |
531 | CONFIG_DRM_IMX_HDMI=y | 574 | CONFIG_DRM_IMX_HDMI=y |
532 | CONFIG_DRM_IMX_SEC_DSIM=y | 575 | CONFIG_DRM_IMX_SEC_DSIM=y |
576 | CONFIG_DRM_IMX_DCNANO=y | ||
533 | CONFIG_DRM_IMX_DCSS=y | 577 | CONFIG_DRM_IMX_DCSS=y |
534 | CONFIG_DRM_IMX_CDNS_MHDP=y | 578 | CONFIG_DRM_IMX_CDNS_MHDP=y |
535 | CONFIG_DRM_ETNAVIV=m | 579 | CONFIG_DRM_ETNAVIV=m |
@@ -541,7 +585,7 @@ CONFIG_DRM_LIMA=m | |||
541 | CONFIG_DRM_PANFROST=m | 585 | CONFIG_DRM_PANFROST=m |
542 | CONFIG_FB_ARMCLCD=y | 586 | CONFIG_FB_ARMCLCD=y |
543 | CONFIG_FB_EFI=y | 587 | CONFIG_FB_EFI=y |
544 | CONFIG_BACKLIGHT_GENERIC=m | 588 | CONFIG_FB_MXC_EINK_V2_PANEL=y |
545 | CONFIG_BACKLIGHT_PWM=y | 589 | CONFIG_BACKLIGHT_PWM=y |
546 | CONFIG_BACKLIGHT_LP855X=m | 590 | CONFIG_BACKLIGHT_LP855X=m |
547 | CONFIG_LOGO=y | 591 | CONFIG_LOGO=y |
@@ -552,45 +596,62 @@ CONFIG_SND=y | |||
552 | CONFIG_SND_DYNAMIC_MINORS=y | 596 | CONFIG_SND_DYNAMIC_MINORS=y |
553 | CONFIG_SND_USB_AUDIO=m | 597 | CONFIG_SND_USB_AUDIO=m |
554 | CONFIG_SND_SOC=y | 598 | CONFIG_SND_SOC=y |
599 | CONFIG_SND_SOC_FSL_ASRC=y | ||
600 | CONFIG_SND_SOC_FSL_MQS=y | ||
555 | CONFIG_SND_SOC_FSL_EASRC=y | 601 | CONFIG_SND_SOC_FSL_EASRC=y |
602 | CONFIG_SND_SOC_FSL_ESAI_CLIENT=y | ||
603 | CONFIG_SND_SOC_FSL_RPMSG=y | ||
556 | CONFIG_SND_IMX_SOC=y | 604 | CONFIG_SND_IMX_SOC=y |
557 | CONFIG_SND_SOC_IMX_AK4458=y | 605 | CONFIG_SND_SOC_IMX_AK4458=y |
558 | CONFIG_SND_SOC_IMX_AK5558=y | 606 | CONFIG_SND_SOC_IMX_AK5558=y |
559 | CONFIG_SND_SOC_IMX_AK4497=y | 607 | CONFIG_SND_SOC_IMX_AK4497=y |
560 | CONFIG_SND_SOC_IMX_WM8960=y | ||
561 | CONFIG_SND_SOC_IMX_WM8524=y | ||
562 | CONFIG_SND_SOC_IMX_CS42888=y | ||
563 | CONFIG_SND_SOC_IMX_MICFIL=y | 608 | CONFIG_SND_SOC_IMX_MICFIL=y |
564 | CONFIG_SND_SOC_IMX_RPMSG=y | 609 | CONFIG_SND_SOC_IMX_RPMSG=y |
565 | CONFIG_SND_SOC_IMX_MQS=y | ||
566 | CONFIG_SND_SOC_IMX_SPDIF=y | 610 | CONFIG_SND_SOC_IMX_SPDIF=y |
611 | CONFIG_SND_SOC_FSL_ASOC_CARD=y | ||
567 | CONFIG_SND_SOC_IMX_AUDMIX=y | 612 | CONFIG_SND_SOC_IMX_AUDMIX=y |
613 | CONFIG_SND_SOC_IMX_XCVR=y | ||
614 | CONFIG_SND_SOC_IMX_PCM512X=y | ||
568 | CONFIG_SND_SOC_IMX_PDM_MIC=y | 615 | CONFIG_SND_SOC_IMX_PDM_MIC=y |
569 | CONFIG_SND_SOC_IMX_DSP=y | 616 | CONFIG_SND_SOC_IMX_DSP=y |
570 | CONFIG_SND_SOC_IMX_CDNHDMI=y | 617 | CONFIG_SND_SOC_IMX_CDNHDMI=y |
571 | CONFIG_SND_SOC_IMX_XCVR=y | ||
572 | CONFIG_SND_SOC_IMX_PCM512X=y | ||
573 | CONFIG_SND_SOC_SOF_TOPLEVEL=y | 618 | CONFIG_SND_SOC_SOF_TOPLEVEL=y |
574 | CONFIG_SND_SOC_SOF_OF=m | 619 | CONFIG_SND_SOC_SOF_OF=m |
620 | CONFIG_SND_SOC_SOF_COMPRESS=y | ||
575 | CONFIG_SND_SOC_SOF_IMX_TOPLEVEL=y | 621 | CONFIG_SND_SOC_SOF_IMX_TOPLEVEL=y |
576 | CONFIG_SND_SOC_SOF_IMX8_SUPPORT=m | 622 | CONFIG_SND_SOC_SOF_IMX8_SUPPORT=y |
577 | CONFIG_SND_SOC_SOF_IMX8M_SUPPORT=m | 623 | CONFIG_SND_SOC_SOF_IMX8M_SUPPORT=y |
624 | CONFIG_SND_SOC_SOF_IMX8ULP_SUPPORT=y | ||
625 | CONFIG_SND_SOC_SOF_IMX8ULP=y | ||
578 | CONFIG_SND_SOC_AK4613=m | 626 | CONFIG_SND_SOC_AK4613=m |
579 | CONFIG_SND_SOC_BT_SCO=y | 627 | CONFIG_SND_SOC_BT_SCO=y |
628 | CONFIG_SND_SOC_CROS_EC_CODEC=m | ||
629 | CONFIG_SND_SOC_CS42XX8_I2C=y | ||
580 | CONFIG_SND_SOC_DMIC=m | 630 | CONFIG_SND_SOC_DMIC=m |
581 | CONFIG_SND_SOC_ES7134=m | 631 | CONFIG_SND_SOC_ES7134=m |
582 | CONFIG_SND_SOC_ES7241=m | 632 | CONFIG_SND_SOC_ES7241=m |
583 | CONFIG_SND_SOC_MAX98357A=m | 633 | CONFIG_SND_SOC_MAX98357A=m |
634 | CONFIG_SND_SOC_MAX98927=m | ||
584 | CONFIG_SND_SOC_PCM3168A_I2C=m | 635 | CONFIG_SND_SOC_PCM3168A_I2C=m |
585 | CONFIG_SND_SOC_SGTL5000=m | 636 | CONFIG_SND_SOC_SGTL5000=m |
637 | CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m | ||
586 | CONFIG_SND_SOC_SPDIF=m | 638 | CONFIG_SND_SOC_SPDIF=m |
587 | CONFIG_SND_SOC_TAS571X=m | 639 | CONFIG_SND_SOC_TAS571X=m |
640 | CONFIG_SND_SOC_WCD934X=m | ||
641 | CONFIG_SND_SOC_WM8524=y | ||
642 | CONFIG_SND_SOC_WM8904=m | ||
643 | CONFIG_SND_SOC_WM8960=y | ||
644 | CONFIG_SND_SOC_RPMSG_WM8960=y | ||
645 | CONFIG_SND_SOC_RPMSG_WM8960_I2C=y | ||
646 | CONFIG_SND_SOC_RPMSG_AK4497=y | ||
647 | CONFIG_SND_SOC_WSA881X=m | ||
588 | CONFIG_SND_SIMPLE_CARD=y | 648 | CONFIG_SND_SIMPLE_CARD=y |
589 | CONFIG_SND_AUDIO_GRAPH_CARD=y | 649 | CONFIG_SND_AUDIO_GRAPH_CARD=y |
650 | CONFIG_SND_ALOOP=m | ||
590 | CONFIG_I2C_HID=m | 651 | CONFIG_I2C_HID=m |
652 | CONFIG_USB_CONN_GPIO=y | ||
591 | CONFIG_USB=y | 653 | CONFIG_USB=y |
592 | CONFIG_USB_OTG=y | 654 | CONFIG_USB_OTG=y |
593 | CONFIG_USB_OTG_WHITELIST=y | ||
594 | CONFIG_USB_XHCI_HCD=y | 655 | CONFIG_USB_XHCI_HCD=y |
595 | CONFIG_USB_EHCI_HCD=y | 656 | CONFIG_USB_EHCI_HCD=y |
596 | CONFIG_USB_EHCI_HCD_PLATFORM=y | 657 | CONFIG_USB_EHCI_HCD_PLATFORM=y |
@@ -650,6 +711,8 @@ CONFIG_USB_G_SERIAL=m | |||
650 | CONFIG_TYPEC=y | 711 | CONFIG_TYPEC=y |
651 | CONFIG_TYPEC_TCPM=y | 712 | CONFIG_TYPEC_TCPM=y |
652 | CONFIG_TYPEC_TCPCI=y | 713 | CONFIG_TYPEC_TCPCI=y |
714 | CONFIG_TYPEC_FUSB302=m | ||
715 | CONFIG_TYPEC_HD3SS3220=m | ||
653 | CONFIG_TYPEC_SWITCH_GPIO=y | 716 | CONFIG_TYPEC_SWITCH_GPIO=y |
654 | CONFIG_MMC=y | 717 | CONFIG_MMC=y |
655 | CONFIG_MMC_BLOCK_MINORS=32 | 718 | CONFIG_MMC_BLOCK_MINORS=32 |
@@ -668,11 +731,13 @@ CONFIG_MMC_DW_EXYNOS=y | |||
668 | CONFIG_MMC_DW_HI3798CV200=y | 731 | CONFIG_MMC_DW_HI3798CV200=y |
669 | CONFIG_MMC_DW_K3=y | 732 | CONFIG_MMC_DW_K3=y |
670 | CONFIG_MMC_SDHCI_XENON=y | 733 | CONFIG_MMC_SDHCI_XENON=y |
734 | CONFIG_MMC_SDHCI_AM654=y | ||
671 | CONFIG_NEW_LEDS=y | 735 | CONFIG_NEW_LEDS=y |
672 | CONFIG_LEDS_CLASS=y | 736 | CONFIG_LEDS_CLASS=y |
673 | CONFIG_LEDS_GPIO=y | 737 | CONFIG_LEDS_GPIO=y |
674 | CONFIG_LEDS_PWM=y | 738 | CONFIG_LEDS_PWM=y |
675 | CONFIG_LEDS_SYSCON=y | 739 | CONFIG_LEDS_SYSCON=y |
740 | CONFIG_LEDS_TRIGGER_TIMER=y | ||
676 | CONFIG_LEDS_TRIGGER_DISK=y | 741 | CONFIG_LEDS_TRIGGER_DISK=y |
677 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 742 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y |
678 | CONFIG_LEDS_TRIGGER_CPU=y | 743 | CONFIG_LEDS_TRIGGER_CPU=y |
@@ -682,22 +747,26 @@ CONFIG_EDAC=y | |||
682 | CONFIG_EDAC_GHES=y | 747 | CONFIG_EDAC_GHES=y |
683 | CONFIG_EDAC_SYNOPSYS=y | 748 | CONFIG_EDAC_SYNOPSYS=y |
684 | CONFIG_RTC_CLASS=y | 749 | CONFIG_RTC_CLASS=y |
685 | CONFIG_RTC_DRV_DS1307=y | 750 | CONFIG_RTC_DRV_DS1307=m |
686 | CONFIG_RTC_DRV_MAX77686=y | 751 | CONFIG_RTC_DRV_MAX77686=y |
687 | CONFIG_RTC_DRV_RK808=m | 752 | CONFIG_RTC_DRV_RK808=m |
688 | CONFIG_RTC_DRV_PCF85363=y | 753 | CONFIG_RTC_DRV_PCF85363=m |
689 | CONFIG_RTC_DRV_RX8581=m | 754 | CONFIG_RTC_DRV_RX8581=m |
755 | CONFIG_RTC_DRV_RV8803=m | ||
690 | CONFIG_RTC_DRV_S5M=y | 756 | CONFIG_RTC_DRV_S5M=y |
691 | CONFIG_RTC_DRV_DS3232=y | 757 | CONFIG_RTC_DRV_DS3232=y |
692 | CONFIG_RTC_DRV_PCF2127=y | 758 | CONFIG_RTC_DRV_PCF2127=m |
693 | CONFIG_RTC_DRV_EFI=y | 759 | CONFIG_RTC_DRV_EFI=y |
694 | CONFIG_RTC_DRV_CROS_EC=y | 760 | CONFIG_RTC_DRV_CROS_EC=y |
761 | CONFIG_RTC_DRV_FSL_FTM_ALARM=y | ||
695 | CONFIG_RTC_DRV_PL031=y | 762 | CONFIG_RTC_DRV_PL031=y |
696 | CONFIG_RTC_DRV_SNVS=y | 763 | CONFIG_RTC_DRV_SNVS=y |
697 | CONFIG_RTC_DRV_IMX_SC=y | 764 | CONFIG_RTC_DRV_IMX_SC=y |
765 | CONFIG_RTC_DRV_IMX_RPMSG=y | ||
698 | CONFIG_DMADEVICES=y | 766 | CONFIG_DMADEVICES=y |
699 | CONFIG_BCM_SBA_RAID=m | 767 | CONFIG_BCM_SBA_RAID=m |
700 | CONFIG_FSL_EDMA=y | 768 | CONFIG_FSL_EDMA=y |
769 | CONFIG_FSL_QDMA=m | ||
701 | CONFIG_FSL_EDMA_V3=y | 770 | CONFIG_FSL_EDMA_V3=y |
702 | CONFIG_IMX_SDMA=y | 771 | CONFIG_IMX_SDMA=y |
703 | CONFIG_MV_XOR_V2=y | 772 | CONFIG_MV_XOR_V2=y |
@@ -705,7 +774,12 @@ CONFIG_MXS_DMA=y | |||
705 | CONFIG_PL330_DMA=y | 774 | CONFIG_PL330_DMA=y |
706 | CONFIG_QCOM_HIDMA_MGMT=y | 775 | CONFIG_QCOM_HIDMA_MGMT=y |
707 | CONFIG_QCOM_HIDMA=y | 776 | CONFIG_QCOM_HIDMA=y |
777 | CONFIG_FSL_DPAA2_QDMA=m | ||
708 | CONFIG_DMATEST=y | 778 | CONFIG_DMATEST=y |
779 | CONFIG_DMABUF_HEAPS=y | ||
780 | CONFIG_DMABUF_HEAPS_SYSTEM=y | ||
781 | CONFIG_DMABUF_HEAPS_CMA=y | ||
782 | CONFIG_DMABUF_HEAPS_DSP=y | ||
709 | CONFIG_UIO=y | 783 | CONFIG_UIO=y |
710 | CONFIG_UIO_PCI_GENERIC=y | 784 | CONFIG_UIO_PCI_GENERIC=y |
711 | CONFIG_UIO_IVSHMEM=y | 785 | CONFIG_UIO_IVSHMEM=y |
@@ -715,6 +789,7 @@ CONFIG_VFIO_FSL_MC=y | |||
715 | CONFIG_VIRTIO_PCI=y | 789 | CONFIG_VIRTIO_PCI=y |
716 | CONFIG_VIRTIO_BALLOON=y | 790 | CONFIG_VIRTIO_BALLOON=y |
717 | CONFIG_VIRTIO_MMIO=y | 791 | CONFIG_VIRTIO_MMIO=y |
792 | CONFIG_VIRTIO_IVSHMEM=y | ||
718 | CONFIG_XEN_GNTDEV=y | 793 | CONFIG_XEN_GNTDEV=y |
719 | CONFIG_XEN_GRANT_DEV_ALLOC=y | 794 | CONFIG_XEN_GRANT_DEV_ALLOC=y |
720 | CONFIG_STAGING=y | 795 | CONFIG_STAGING=y |
@@ -726,27 +801,27 @@ CONFIG_ION_SYSTEM_HEAP=y | |||
726 | CONFIG_ION_CMA_HEAP=y | 801 | CONFIG_ION_CMA_HEAP=y |
727 | CONFIG_FSL_DPAA2=y | 802 | CONFIG_FSL_DPAA2=y |
728 | CONFIG_FSL_DPAA2_ETHSW=y | 803 | CONFIG_FSL_DPAA2_ETHSW=y |
729 | CONFIG_FSL_DPAA2_MAC=y | ||
730 | CONFIG_FSL_SDK_DPA=y | ||
731 | CONFIG_FSL_PPFE=y | 804 | CONFIG_FSL_PPFE=y |
732 | CONFIG_FSL_PPFE_UTIL_DISABLED=y | 805 | CONFIG_FSL_PPFE_UTIL_DISABLED=y |
733 | CONFIG_MFD_CROS_EC=y | 806 | CONFIG_CHROME_PLATFORMS=y |
807 | CONFIG_CROS_EC=y | ||
734 | CONFIG_CROS_EC_I2C=y | 808 | CONFIG_CROS_EC_I2C=y |
735 | CONFIG_CROS_EC_SPI=y | 809 | CONFIG_CROS_EC_SPI=y |
736 | CONFIG_COMMON_CLK_VERSATILE=y | 810 | CONFIG_CROS_EC_CHARDEV=m |
737 | CONFIG_CLK_SP810=y | ||
738 | CONFIG_CLK_VEXPRESS_OSC=y | ||
739 | CONFIG_COMMON_CLK_RK808=y | 811 | CONFIG_COMMON_CLK_RK808=y |
740 | CONFIG_COMMON_CLK_SCPI=y | 812 | CONFIG_COMMON_CLK_SCPI=y |
741 | CONFIG_COMMON_CLK_CS2000_CP=y | 813 | CONFIG_COMMON_CLK_CS2000_CP=y |
814 | CONFIG_COMMON_CLK_FSL_SAI=y | ||
742 | CONFIG_COMMON_CLK_S2MPS11=y | 815 | CONFIG_COMMON_CLK_S2MPS11=y |
743 | CONFIG_COMMON_CLK_XGENE=y | 816 | CONFIG_COMMON_CLK_XGENE=y |
744 | CONFIG_COMMON_CLK_PWM=y | 817 | CONFIG_COMMON_CLK_PWM=y |
818 | CONFIG_COMMON_CLK_VC5=y | ||
745 | CONFIG_CLK_IMX8MM=y | 819 | CONFIG_CLK_IMX8MM=y |
746 | CONFIG_CLK_IMX8MN=y | 820 | CONFIG_CLK_IMX8MN=y |
747 | CONFIG_CLK_IMX8MP=y | 821 | CONFIG_CLK_IMX8MP=y |
748 | CONFIG_CLK_IMX8MQ=y | 822 | CONFIG_CLK_IMX8MQ=y |
749 | CONFIG_CLK_IMX8QXP=y | 823 | CONFIG_CLK_IMX8QXP=y |
824 | CONFIG_CLK_IMX8ULP=y | ||
750 | CONFIG_HWSPINLOCK=y | 825 | CONFIG_HWSPINLOCK=y |
751 | CONFIG_ARM_MHU=y | 826 | CONFIG_ARM_MHU=y |
752 | CONFIG_IMX_MBOX=y | 827 | CONFIG_IMX_MBOX=y |
@@ -755,32 +830,50 @@ CONFIG_ARM_SMMU=y | |||
755 | CONFIG_ARM_SMMU_V3=y | 830 | CONFIG_ARM_SMMU_V3=y |
756 | CONFIG_REMOTEPROC=y | 831 | CONFIG_REMOTEPROC=y |
757 | CONFIG_IMX_REMOTEPROC=y | 832 | CONFIG_IMX_REMOTEPROC=y |
833 | CONFIG_IMX_DSP_REMOTEPROC=y | ||
834 | CONFIG_RPMSG_CHAR=y | ||
758 | CONFIG_RPMSG_QCOM_GLINK_RPM=y | 835 | CONFIG_RPMSG_QCOM_GLINK_RPM=y |
836 | CONFIG_SOUNDWIRE=m | ||
837 | CONFIG_SOUNDWIRE_QCOM=m | ||
759 | CONFIG_SOC_BRCMSTB=y | 838 | CONFIG_SOC_BRCMSTB=y |
839 | CONFIG_FSL_DPAA=y | ||
760 | CONFIG_FSL_MC_DPIO=y | 840 | CONFIG_FSL_MC_DPIO=y |
841 | CONFIG_FSL_RCPM=y | ||
761 | CONFIG_FSL_QIXIS=y | 842 | CONFIG_FSL_QIXIS=y |
762 | CONFIG_IMX_SCU_SOC=y | ||
763 | CONFIG_SECVIO_SC=y | ||
764 | CONFIG_SOC_TI=y | 843 | CONFIG_SOC_TI=y |
844 | CONFIG_EXTCON_PTN5150=m | ||
765 | CONFIG_EXTCON_USB_GPIO=y | 845 | CONFIG_EXTCON_USB_GPIO=y |
766 | CONFIG_EXTCON_USBC_CROS_EC=y | 846 | CONFIG_EXTCON_USBC_CROS_EC=y |
767 | CONFIG_IIO=y | 847 | CONFIG_IIO=y |
768 | CONFIG_IMX8QXP_ADC=y | 848 | CONFIG_IMX8QXP_ADC=y |
849 | CONFIG_MAX9611=m | ||
850 | CONFIG_QCOM_SPMI_ADC5=m | ||
769 | CONFIG_IIO_CROS_EC_SENSORS_CORE=m | 851 | CONFIG_IIO_CROS_EC_SENSORS_CORE=m |
770 | CONFIG_IIO_CROS_EC_SENSORS=m | 852 | CONFIG_IIO_CROS_EC_SENSORS=m |
771 | CONFIG_IIO_CROS_EC_LIGHT_PROX=m | 853 | CONFIG_IIO_CROS_EC_LIGHT_PROX=m |
772 | CONFIG_IIO_CROS_EC_BARO=m | 854 | CONFIG_IIO_CROS_EC_BARO=m |
855 | CONFIG_IIO_ST_LSM6DSX=y | ||
773 | CONFIG_PWM=y | 856 | CONFIG_PWM=y |
774 | CONFIG_PWM_CROS_EC=m | 857 | CONFIG_PWM_CROS_EC=m |
858 | CONFIG_PWM_FSL_FTM=m | ||
775 | CONFIG_PWM_IMX27=y | 859 | CONFIG_PWM_IMX27=y |
860 | CONFIG_PWM_RPCHIP=y | ||
861 | CONFIG_PWM_SL28CPLD=m | ||
862 | CONFIG_SL28CPLD_INTC=y | ||
863 | CONFIG_MST_IRQ=y | ||
864 | CONFIG_RESET_BRCMSTB_RESCAL=y | ||
865 | CONFIG_RESET_IMX7=y | ||
866 | CONFIG_RESET_IMX8ULP_SIM=y | ||
776 | CONFIG_PHY_XGENE=y | 867 | CONFIG_PHY_XGENE=y |
777 | CONFIG_PHY_MIXEL_LVDS=y | 868 | CONFIG_PHY_MIXEL_LVDS=y |
778 | CONFIG_PHY_MIXEL_LVDS_COMBO=y | 869 | CONFIG_PHY_MIXEL_LVDS_COMBO=y |
870 | CONFIG_PHY_CADENCE_SALVO=y | ||
779 | CONFIG_PHY_FSL_IMX8MP_LVDS=y | 871 | CONFIG_PHY_FSL_IMX8MP_LVDS=y |
780 | CONFIG_PHY_MIXEL_MIPI_DPHY=y | 872 | CONFIG_PHY_MIXEL_MIPI_DPHY=y |
781 | CONFIG_PHY_SAMSUNG_HDMI_PHY=y | 873 | CONFIG_PHY_SAMSUNG_HDMI_PHY=y |
782 | CONFIG_PHY_QCOM_USB_HS=y | 874 | CONFIG_PHY_QCOM_USB_HS=y |
783 | CONFIG_PHY_SAMSUNG_USB2=y | 875 | CONFIG_PHY_SAMSUNG_USB2=y |
876 | CONFIG_ARM_SMMU_V3_PMU=m | ||
784 | CONFIG_FSL_IMX8_DDR_PMU=y | 877 | CONFIG_FSL_IMX8_DDR_PMU=y |
785 | CONFIG_HISI_PMU=y | 878 | CONFIG_HISI_PMU=y |
786 | CONFIG_NVMEM_IMX_OCOTP=y | 879 | CONFIG_NVMEM_IMX_OCOTP=y |
@@ -793,9 +886,10 @@ CONFIG_OF_FPGA_REGION=m | |||
793 | CONFIG_TEE=y | 886 | CONFIG_TEE=y |
794 | CONFIG_OPTEE=y | 887 | CONFIG_OPTEE=y |
795 | CONFIG_MUX_MMIO=y | 888 | CONFIG_MUX_MMIO=y |
889 | CONFIG_SLIM_QCOM_CTRL=m | ||
890 | CONFIG_INTERCONNECT=y | ||
796 | CONFIG_MXC_SIM=y | 891 | CONFIG_MXC_SIM=y |
797 | CONFIG_MXC_EMVSIM=y | 892 | CONFIG_MXC_EMVSIM=y |
798 | CONFIG_MXC_MLB150=y | ||
799 | CONFIG_EXT2_FS=y | 893 | CONFIG_EXT2_FS=y |
800 | CONFIG_EXT3_FS=y | 894 | CONFIG_EXT3_FS=y |
801 | CONFIG_EXT4_FS_POSIX_ACL=y | 895 | CONFIG_EXT4_FS_POSIX_ACL=y |
@@ -833,20 +927,18 @@ CONFIG_CRYPTO_CTS=m | |||
833 | CONFIG_CRYPTO_LRW=m | 927 | CONFIG_CRYPTO_LRW=m |
834 | CONFIG_CRYPTO_OFB=m | 928 | CONFIG_CRYPTO_OFB=m |
835 | CONFIG_CRYPTO_PCBC=m | 929 | CONFIG_CRYPTO_PCBC=m |
836 | CONFIG_CRYPTO_XTS=y | ||
837 | CONFIG_CRYPTO_XCBC=m | 930 | CONFIG_CRYPTO_XCBC=m |
838 | CONFIG_CRYPTO_VMAC=m | 931 | CONFIG_CRYPTO_VMAC=m |
839 | CONFIG_CRYPTO_MD4=m | 932 | CONFIG_CRYPTO_MD4=m |
840 | CONFIG_CRYPTO_MD5=m | ||
841 | CONFIG_CRYPTO_RMD128=m | 933 | CONFIG_CRYPTO_RMD128=m |
842 | CONFIG_CRYPTO_RMD160=m | 934 | CONFIG_CRYPTO_RMD160=m |
843 | CONFIG_CRYPTO_RMD256=m | 935 | CONFIG_CRYPTO_RMD256=m |
844 | CONFIG_CRYPTO_RMD320=m | 936 | CONFIG_CRYPTO_RMD320=m |
845 | CONFIG_CRYPTO_SHA512=m | ||
846 | CONFIG_CRYPTO_STREEBOG=m | 937 | CONFIG_CRYPTO_STREEBOG=m |
847 | CONFIG_CRYPTO_TGR192=m | 938 | CONFIG_CRYPTO_TGR192=m |
848 | CONFIG_CRYPTO_WP512=m | 939 | CONFIG_CRYPTO_WP512=m |
849 | CONFIG_CRYPTO_ANUBIS=m | 940 | CONFIG_CRYPTO_ANUBIS=m |
941 | CONFIG_CRYPTO_ARC4=m | ||
850 | CONFIG_CRYPTO_BLOWFISH=m | 942 | CONFIG_CRYPTO_BLOWFISH=m |
851 | CONFIG_CRYPTO_CAMELLIA=m | 943 | CONFIG_CRYPTO_CAMELLIA=m |
852 | CONFIG_CRYPTO_CAST5=m | 944 | CONFIG_CRYPTO_CAST5=m |
@@ -856,26 +948,35 @@ CONFIG_CRYPTO_KHAZAD=m | |||
856 | CONFIG_CRYPTO_SALSA20=m | 948 | CONFIG_CRYPTO_SALSA20=m |
857 | CONFIG_CRYPTO_SEED=m | 949 | CONFIG_CRYPTO_SEED=m |
858 | CONFIG_CRYPTO_SERPENT=m | 950 | CONFIG_CRYPTO_SERPENT=m |
859 | CONFIG_CRYPTO_SM4=m | ||
860 | CONFIG_CRYPTO_TEA=m | 951 | CONFIG_CRYPTO_TEA=m |
861 | CONFIG_CRYPTO_TWOFISH=m | 952 | CONFIG_CRYPTO_TWOFISH=m |
862 | CONFIG_CRYPTO_ANSI_CPRNG=y | 953 | CONFIG_CRYPTO_ANSI_CPRNG=y |
863 | CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y | 954 | CONFIG_CRYPTO_USER_API_RNG=m |
864 | CONFIG_CRYPTO_DEV_FSL_CAAM=y | 955 | CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=m |
865 | CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y | 956 | CONFIG_CRYPTO_DEV_FSL_CAAM=m |
866 | CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=m | 957 | CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=m |
867 | CONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM=y | 958 | CONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM=m |
959 | CONFIG_CRYPTO_DEV_CCREE=m | ||
960 | CONFIG_CRYPTO_DEV_HISI_SEC2=m | ||
961 | CONFIG_CRYPTO_DEV_HISI_ZIP=m | ||
962 | CONFIG_CRYPTO_DEV_HISI_HPRE=m | ||
963 | CONFIG_CRYPTO_DEV_AMLOGIC_GXL=m | ||
868 | CONFIG_INDIRECT_PIO=y | 964 | CONFIG_INDIRECT_PIO=y |
869 | CONFIG_CMA_SIZE_MBYTES=320 | 965 | CONFIG_CRC_CCITT=m |
966 | CONFIG_CMA_SIZE_MBYTES=32 | ||
870 | CONFIG_PRINTK_TIME=y | 967 | CONFIG_PRINTK_TIME=y |
871 | CONFIG_DEBUG_INFO=y | 968 | CONFIG_DEBUG_INFO=y |
872 | CONFIG_DEBUG_FS=y | ||
873 | CONFIG_MAGIC_SYSRQ=y | 969 | CONFIG_MAGIC_SYSRQ=y |
970 | CONFIG_DEBUG_FS=y | ||
874 | CONFIG_DEBUG_KERNEL=y | 971 | CONFIG_DEBUG_KERNEL=y |
875 | # CONFIG_SCHED_DEBUG is not set | 972 | # CONFIG_SCHED_DEBUG is not set |
876 | # CONFIG_DEBUG_PREEMPT is not set | 973 | # CONFIG_DEBUG_PREEMPT is not set |
877 | # CONFIG_FTRACE is not set | 974 | # CONFIG_FTRACE is not set |
878 | CONFIG_MEMTEST=y | ||
879 | CONFIG_CORESIGHT=y | 975 | CONFIG_CORESIGHT=y |
880 | CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y | 976 | CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y |
881 | CONFIG_CORESIGHT_SOURCE_ETM4X=y | 977 | CONFIG_CORESIGHT_SOURCE_ETM4X=y |
978 | CONFIG_MEMTEST=y | ||
979 | CONFIG_MXC_PXP_V3=y | ||
980 | CONFIG_CRYPTO_USER_API_HASH=m | ||
981 | CONFIG_CRYPTO_USER_API_SKCIPHER=m | ||
982 | CONFIG_CRYPTO_USER_API_AEAD=m | ||
diff --git a/recipes-kernel/linux/linux-fslc-imx_5.10.bb b/recipes-kernel/linux/linux-fslc-imx_5.10.bb new file mode 100644 index 00000000..66fcbd6b --- /dev/null +++ b/recipes-kernel/linux/linux-fslc-imx_5.10.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
2 | # | ||
3 | # SPDX-License-Identifier: MIT | ||
4 | # | ||
5 | |||
6 | SUMMARY = "Linux Kernel provided by NXP and supported by Community" | ||
7 | DESCRIPTION = "Linux Kernel provided by NXP as the part of release distribution. \ | ||
8 | Main focus is set on i.MX Family Reference Boards. \ | ||
9 | It includes support for many NXP Proprietary IPs (GPU, VPU, IPU). \ | ||
10 | Latest stable Kernel patchlevel is applied and maintained by Community." | ||
11 | |||
12 | ############################################################################### | ||
13 | # This recipe (and corresponding kernel repository and branch) receives updates | ||
14 | # from 3 different sources: | ||
15 | # 1. Stable [linux-5.10.y] branch updates of korg; | ||
16 | # 2. NXP-specific updates via branch [5.10-2.1.x-imx] shared via CodeAurora forum; | ||
17 | # 3. Critical patches, which are not (yet) integrated into either of 2 above | ||
18 | # sources, but are required to be applied to the kernel tree. | ||
19 | # | ||
20 | # Therefore, there is a need to keep track on the patches which are introduced | ||
21 | # from every source. This could be achieved in this recipe by filling the | ||
22 | # below list with the information once the update is performed from any source. | ||
23 | # | ||
24 | # Once the critical patch gets merged into the stable branch, or NXP-specific | ||
25 | # patches would be covered by the tag - individual entries from sections below | ||
26 | # could be removed. | ||
27 | # | ||
28 | # ------------------------------------------------------------------------------ | ||
29 | # 1. Stable (tag or SHA(s)) | ||
30 | # ------------------------------------------------------------------------------ | ||
31 | # tag: v5.10.69 | ||
32 | # | ||
33 | # ------------------------------------------------------------------------------ | ||
34 | # 2. NXP-specific (tag or SHA(s)) | ||
35 | # ------------------------------------------------------------------------------ | ||
36 | # tag: lf-5.10.52-2.1.0 | ||
37 | # | ||
38 | # ------------------------------------------------------------------------------ | ||
39 | # 3. Critical patches (SHA(s)) | ||
40 | # ------------------------------------------------------------------------------ | ||
41 | # fb3e7593ee84 ("irq-imx-irqsteer: fix compile error if CONFIG_PM_SLEEP is not set") | ||
42 | # 96613ac4e960 ("arm: imx: include i.MX6SX DDR freq implementation for i.MX6UL") | ||
43 | # 36fea22d04f4 ("arm: imx: do not include smp_wfe_imx6.S for i.MX6SX") | ||
44 | # f86c8a4736f2 ("arm: imx: enable HAVE_IMX_BUSFREQ for i.MX6") | ||
45 | # 05f7280c8648 ("arm: imx: do not build busfreq without HAVE_IMX_BUSFREQ") | ||
46 | # | ||
47 | # NOTE to upgraders: | ||
48 | # This recipe should NOT collect individual patches, they should be applied to | ||
49 | # the linux-fslc kernel tree on the corresponding branch, and tracking | ||
50 | # information should be properly filled in above. | ||
51 | ############################################################################### | ||
52 | |||
53 | include linux-fslc.inc | ||
54 | |||
55 | LICENSE = "GPLv2" | ||
56 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
57 | |||
58 | KBRANCH = "5.10-2.1.x-imx" | ||
59 | SRCREV = "54bd61ba352bffaf33ee2c956f140a565c9e2201" | ||
60 | |||
61 | # PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition | ||
62 | # required by kernel-yocto.bbclass. | ||
63 | # | ||
64 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and | ||
65 | # should be updated once patchlevel is merged. | ||
66 | LINUX_VERSION = "5.10.69" | ||
67 | |||
68 | # Local version indicates the branch name in the NXP kernel tree where patches are collected from. | ||
69 | LOCALVERSION = "-5.10.52-2.1.0" | ||
70 | |||
71 | DEFAULT_PREFERENCE = "1" | ||
72 | |||
73 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-kernel/linux/linux-fslc-imx_5.4.bb b/recipes-kernel/linux/linux-fslc-imx_5.4.bb deleted file mode 100644 index b7a5cd82..00000000 --- a/recipes-kernel/linux/linux-fslc-imx_5.4.bb +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
2 | # | ||
3 | # SPDX-License-Identifier: MIT | ||
4 | # | ||
5 | |||
6 | SUMMARY = "Linux Kernel provided by NXP and supported by Community" | ||
7 | DESCRIPTION = "Linux Kernel provided by NXP as the part of release distribution. \ | ||
8 | Main focus is set on i.MX Family Reference Boards. \ | ||
9 | It includes support for many NXP Proprietary IPs (GPU, VPU, IPU). \ | ||
10 | Latest stable Kernel patchlevel is applied and maintained by Community." | ||
11 | |||
12 | ############################################################################### | ||
13 | # This recipe (and corresponding kernel repository and branch) receives updates | ||
14 | # from 3 different sources: | ||
15 | # 1. Stable [linux-5.4.y] branch updates of korg; | ||
16 | # 2. NXP-specific updates via branch [5.4-2.2.x-imx] shared via CodeAurora forum; | ||
17 | # 3. Critical patches, which are not (yet) integrated into either of 2 above | ||
18 | # sources, but are required to be applied to the kernel tree. | ||
19 | # | ||
20 | # Therefore, there is a need to keep track on the patches which are introduced | ||
21 | # from every source. This could be achieved in this recipe by filling the | ||
22 | # below list with the information once the update is performed from any source. | ||
23 | # | ||
24 | # Once the critical patch gets merged into the stable branch, or NXP-specific | ||
25 | # patches would be covered by the tag - individual entries from sections below | ||
26 | # could be removed. | ||
27 | # | ||
28 | # ------------------------------------------------------------------------------ | ||
29 | # 1. Stable (tag or SHA(s)) | ||
30 | # ------------------------------------------------------------------------------ | ||
31 | # tag: v5.4.134 | ||
32 | # | ||
33 | # ------------------------------------------------------------------------------ | ||
34 | # 2. NXP-specific (tag or SHA(s)) | ||
35 | # ------------------------------------------------------------------------------ | ||
36 | # tag: rel_imx_5.4.70_2.3.2 | ||
37 | # | ||
38 | # ------------------------------------------------------------------------------ | ||
39 | # 3. Critical patches (SHA(s)) | ||
40 | # ------------------------------------------------------------------------------ | ||
41 | # 48afde5dc8ee LF-2692: clk: imx: scu: Do not enable runtime PM for CPU clks | ||
42 | # dc760ca6a531 MLK-25468: seco_mu: hook v2x reset event | ||
43 | # fee1ade052eb MPSDK-172 remoteproc: imx_rproc: Re-building communication channels when a remote crashes | ||
44 | # b93083071e9f MLK-23277: 8qm: Fix SW workaround for i.MX8QM TKT340553 | ||
45 | # edfc37d93d8d MLK-25444: arch: arm64: dts: imx8dxl: Fix lcdif nodes | ||
46 | # 319f1755edf3 MLK-25105-2: dts: arm64: imx8mp-ab2: use AK5552 compatible for sound card | ||
47 | # 1e306d7fbb17 MLK-25105-1: dts: arm64: imx8mp-ab2: ensure SAI3 RX not in sync with TX | ||
48 | # 67355ffc4af7 MLK-25103: ASoC: wm8524: avoid EPROBE_DEFER log | ||
49 | # 090f71d23f8f clk: imx: add mux ops for i.MX8M composite clk | ||
50 | # a7466010c566 LF-3623: media: imx8: isi: fix Can't match soc version | ||
51 | # 398435ef11d7 MLK-25427 arm64: dts: imx8mp: add power-domains to irqsteer hdmi | ||
52 | # 3125360c70f2 LF-3132: dmaengine: imx-sdma: raise up channel0 priority after resume | ||
53 | # eddc2ac1d148 MLK-25116-2: dmaengine: imx-sdma: correct iram_pool check point | ||
54 | # c53ff3924c06 MLK-25116-1: dmaengine: imx-sdma: save iram pool for bd allocated | ||
55 | # 09370995212a MLK-25426 remoteproc: imx_rproc: fix firmware reload | ||
56 | # b598b85172f7 irq-imx-irqsteer: fix compile error if CONFIG_PM_SLEEP is not set | ||
57 | # 845099bfd0b8 fbdev: fix fbinfo flag dropped upstream | ||
58 | # 847bfb09bb3b arm64: dts: imx8m: change ocotp node name on i.MX8M SoCs | ||
59 | # d7ca6973c6d4 arm64: dts: imx8mm: Remove incorrect fallback compatible for ocotp | ||
60 | # 539d19f12066 arm: imx: include i.MX6SX DDR freq implementation for i.MX6UL | ||
61 | # 169b71ce3f8a arm: imx: do not include smp_wfe_imx6.S for i.MX6SX | ||
62 | # 60be4c625594 arm: imx: enable HAVE_IMX_BUSFREQ for i.MX6 | ||
63 | # f393781fa575 arm: imx: do not build busfreq without HAVE_IMX_BUSFREQ | ||
64 | # e0e74faf6af4 ARM: dts: imx6ul-kontron-n6x1x-s: Remove an obsolete comment and fix indentation | ||
65 | # ad24781aecc3 ARM: dts: imx6ul-kontron-n6x1x-s: Add vbus-supply and overcurrent polarity to usb nodes | ||
66 | # d56aa09ed0e0 ARM: dts: imx6ul-kontron-n6x1x: Add 'chosen' node with 'stdout-path' | ||
67 | # 923bc9e57b24 ARM: dts: Add support for two more Kontron evalkit boards 'N6311 S' and 'N6411 S' | ||
68 | # f952a6404d10 ARM: dts: imx6ul-kontron-n6310-s: Move common nodes to a separate file | ||
69 | # 1fdb6565a632 ARM: dts: Add support for two more Kontron SoMs N6311 and N6411 | ||
70 | # 4fb833f01c30 ARM: dts: imx6ul-kontron-n6310: Move common SoM nodes to a separate file | ||
71 | # 54c975dabcde ARM: imx: Fix boot crash if ocotp is not found | ||
72 | # 1041cd02b33c ARM: imx: Correct ocotp id for serial number support of i.MX6ULL/ULZ SoCs | ||
73 | # 974b100d789c soc: imx-scu: Using existing serial_number instead of UID | ||
74 | # 6fbfed9afe99 soc: imx8: Using existing serial_number instead of UID | ||
75 | # 64d8ea803af5 ARM: imx: Add serial number support for i.MX6/7 SoCs | ||
76 | # | ||
77 | # NOTE to upgraders: | ||
78 | # This recipe should NOT collect individual patches, they should be applied to | ||
79 | # the linux-fslc kernel tree on the corresponding branch, and tracking | ||
80 | # information should be properly filled in above. | ||
81 | ############################################################################### | ||
82 | |||
83 | include linux-fslc.inc | ||
84 | |||
85 | LICENSE = "GPLv2" | ||
86 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | ||
87 | |||
88 | KBRANCH = "5.4-2.3.x-imx" | ||
89 | SRCREV = "e3b082933caab27829e775606708381fe1b7c3ba" | ||
90 | |||
91 | # PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition | ||
92 | # required by kernel-yocto.bbclass. | ||
93 | # | ||
94 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and | ||
95 | # should be updated once patchlevel is merged. | ||
96 | LINUX_VERSION = "5.4.134" | ||
97 | |||
98 | # Local version indicates the branch name in the NXP kernel tree where patches are collected from. | ||
99 | LOCALVERSION = "-5.4.70-2.3.0" | ||
100 | |||
101 | DEFAULT_PREFERENCE = "1" | ||
102 | |||
103 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-kernel/linux/linux-fslc-lts-mfgtool_5.10.bb b/recipes-kernel/linux/linux-fslc-lts-mfgtool_5.10.bb index 63527d13..95dd72fb 100644 --- a/recipes-kernel/linux/linux-fslc-lts-mfgtool_5.10.bb +++ b/recipes-kernel/linux/linux-fslc-lts-mfgtool_5.10.bb | |||
@@ -6,7 +6,7 @@ DESCRIPTION = "Linux Kernel provided and supported by the Freescale Community \ | |||
6 | that produces a Manufacturing Tool compatible Linux Kernel to be used in updater \ | 6 | that produces a Manufacturing Tool compatible Linux Kernel to be used in updater \ |
7 | environment" | 7 | environment" |
8 | 8 | ||
9 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-fslc:" | 9 | FILESEXTRAPATHS:prepend := "${THISDIR}/linux-fslc:" |
10 | require linux-fslc-lts_${PV}.bb | 10 | require linux-fslc-lts_${PV}.bb |
11 | require linux-mfgtool.inc | 11 | require linux-mfgtool.inc |
12 | 12 | ||
diff --git a/recipes-kernel/linux/linux-fslc-lts_5.10.bb b/recipes-kernel/linux/linux-fslc-lts_5.10.bb index 6af937a7..fee8859f 100644 --- a/recipes-kernel/linux/linux-fslc-lts_5.10.bb +++ b/recipes-kernel/linux/linux-fslc-lts_5.10.bb | |||
@@ -19,9 +19,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | |||
19 | # | 19 | # |
20 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and | 20 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and |
21 | # should be updated once patchlevel is merged. | 21 | # should be updated once patchlevel is merged. |
22 | LINUX_VERSION = "5.10.52" | 22 | LINUX_VERSION = "5.10.67" |
23 | 23 | ||
24 | KBRANCH = "5.10.x+fslc" | 24 | KBRANCH = "5.10.x+fslc" |
25 | SRCREV = "cb67a3e29a88e06e2891f8e2aac289305d8f08ff" | 25 | SRCREV = "5d6224bd7e38de87fa7dcef0046e6f7377d68660" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf|use-mainline-bsp)" | 27 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf|use-mainline-bsp)" |
diff --git a/recipes-kernel/linux/linux-fslc-mfgtool_5.12.bb b/recipes-kernel/linux/linux-fslc-mfgtool_5.14.bb index c155ebb9..09d35c91 100644 --- a/recipes-kernel/linux/linux-fslc-mfgtool_5.12.bb +++ b/recipes-kernel/linux/linux-fslc-mfgtool_5.14.bb | |||
@@ -6,7 +6,7 @@ DESCRIPTION = "Linux Kernel provided and supported by the Freescale Community \ | |||
6 | that produces a Manufacturing Tool compatible Linux Kernel to be used in updater \ | 6 | that produces a Manufacturing Tool compatible Linux Kernel to be used in updater \ |
7 | environment" | 7 | environment" |
8 | 8 | ||
9 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-fslc:" | 9 | FILESEXTRAPATHS:prepend := "${THISDIR}/linux-fslc:" |
10 | require linux-fslc_${PV}.bb | 10 | require linux-fslc_${PV}.bb |
11 | require linux-mfgtool.inc | 11 | require linux-mfgtool.inc |
12 | 12 | ||
diff --git a/recipes-kernel/linux/linux-fslc/armv8a/defconfig b/recipes-kernel/linux/linux-fslc/armv8a/defconfig index 612b48fd..65a142a3 100644 --- a/recipes-kernel/linux/linux-fslc/armv8a/defconfig +++ b/recipes-kernel/linux/linux-fslc/armv8a/defconfig | |||
@@ -29,8 +29,10 @@ CONFIG_KALLSYMS_ALL=y | |||
29 | CONFIG_PROFILING=y | 29 | CONFIG_PROFILING=y |
30 | CONFIG_ARCH_ACTIONS=y | 30 | CONFIG_ARCH_ACTIONS=y |
31 | CONFIG_ARCH_AGILEX=y | 31 | CONFIG_ARCH_AGILEX=y |
32 | CONFIG_ARCH_N5X=y | ||
32 | CONFIG_ARCH_SUNXI=y | 33 | CONFIG_ARCH_SUNXI=y |
33 | CONFIG_ARCH_ALPINE=y | 34 | CONFIG_ARCH_ALPINE=y |
35 | CONFIG_ARCH_APPLE=y | ||
34 | CONFIG_ARCH_BCM2835=y | 36 | CONFIG_ARCH_BCM2835=y |
35 | CONFIG_ARCH_BCM4908=y | 37 | CONFIG_ARCH_BCM4908=y |
36 | CONFIG_ARCH_BCM_IPROC=y | 38 | CONFIG_ARCH_BCM_IPROC=y |
@@ -41,6 +43,7 @@ CONFIG_ARCH_K3=y | |||
41 | CONFIG_ARCH_LAYERSCAPE=y | 43 | CONFIG_ARCH_LAYERSCAPE=y |
42 | CONFIG_ARCH_LG1K=y | 44 | CONFIG_ARCH_LG1K=y |
43 | CONFIG_ARCH_HISI=y | 45 | CONFIG_ARCH_HISI=y |
46 | CONFIG_ARCH_KEEMBAY=y | ||
44 | CONFIG_ARCH_MEDIATEK=y | 47 | CONFIG_ARCH_MEDIATEK=y |
45 | CONFIG_ARCH_MESON=y | 48 | CONFIG_ARCH_MESON=y |
46 | CONFIG_ARCH_MVEBU=y | 49 | CONFIG_ARCH_MVEBU=y |
@@ -50,7 +53,7 @@ CONFIG_ARCH_RENESAS=y | |||
50 | CONFIG_ARCH_ROCKCHIP=y | 53 | CONFIG_ARCH_ROCKCHIP=y |
51 | CONFIG_ARCH_S32=y | 54 | CONFIG_ARCH_S32=y |
52 | CONFIG_ARCH_SEATTLE=y | 55 | CONFIG_ARCH_SEATTLE=y |
53 | CONFIG_ARCH_STRATIX10=y | 56 | CONFIG_ARCH_INTEL_SOCFPGA=y |
54 | CONFIG_ARCH_SYNQUACER=y | 57 | CONFIG_ARCH_SYNQUACER=y |
55 | CONFIG_ARCH_TEGRA=y | 58 | CONFIG_ARCH_TEGRA=y |
56 | CONFIG_ARCH_SPRD=y | 59 | CONFIG_ARCH_SPRD=y |
@@ -226,6 +229,7 @@ CONFIG_PCI_HOST_THUNDER_PEM=y | |||
226 | CONFIG_PCI_HOST_THUNDER_ECAM=y | 229 | CONFIG_PCI_HOST_THUNDER_ECAM=y |
227 | CONFIG_PCIE_ROCKCHIP_HOST=m | 230 | CONFIG_PCIE_ROCKCHIP_HOST=m |
228 | CONFIG_PCIE_BRCMSTB=m | 231 | CONFIG_PCIE_BRCMSTB=m |
232 | CONFIG_PCI_IMX6=y | ||
229 | CONFIG_PCI_LAYERSCAPE=y | 233 | CONFIG_PCI_LAYERSCAPE=y |
230 | CONFIG_PCIE_LAYERSCAPE_GEN4=y | 234 | CONFIG_PCIE_LAYERSCAPE_GEN4=y |
231 | CONFIG_PCI_HISI=y | 235 | CONFIG_PCI_HISI=y |
@@ -286,6 +290,7 @@ CONFIG_SCSI_UFSHCD=y | |||
286 | CONFIG_SCSI_UFSHCD_PLATFORM=y | 290 | CONFIG_SCSI_UFSHCD_PLATFORM=y |
287 | CONFIG_SCSI_UFS_QCOM=m | 291 | CONFIG_SCSI_UFS_QCOM=m |
288 | CONFIG_SCSI_UFS_HISI=y | 292 | CONFIG_SCSI_UFS_HISI=y |
293 | CONFIG_SCSI_UFS_EXYNOS=y | ||
289 | CONFIG_ATA=y | 294 | CONFIG_ATA=y |
290 | CONFIG_SATA_AHCI=y | 295 | CONFIG_SATA_AHCI=y |
291 | CONFIG_SATA_AHCI_PLATFORM=y | 296 | CONFIG_SATA_AHCI_PLATFORM=y |
@@ -360,7 +365,7 @@ CONFIG_MESON_GXL_PHY=m | |||
360 | CONFIG_MICREL_PHY=y | 365 | CONFIG_MICREL_PHY=y |
361 | CONFIG_MICROSEMI_PHY=y | 366 | CONFIG_MICROSEMI_PHY=y |
362 | CONFIG_AT803X_PHY=y | 367 | CONFIG_AT803X_PHY=y |
363 | CONFIG_REALTEK_PHY=m | 368 | CONFIG_REALTEK_PHY=y |
364 | CONFIG_ROCKCHIP_PHY=y | 369 | CONFIG_ROCKCHIP_PHY=y |
365 | CONFIG_VITESSE_PHY=y | 370 | CONFIG_VITESSE_PHY=y |
366 | CONFIG_USB_PEGASUS=m | 371 | CONFIG_USB_PEGASUS=m |
@@ -449,6 +454,7 @@ CONFIG_I2C_GPIO=m | |||
449 | CONFIG_I2C_IMX=y | 454 | CONFIG_I2C_IMX=y |
450 | CONFIG_I2C_IMX_LPI2C=y | 455 | CONFIG_I2C_IMX_LPI2C=y |
451 | CONFIG_I2C_MESON=y | 456 | CONFIG_I2C_MESON=y |
457 | CONFIG_I2C_MT65XX=y | ||
452 | CONFIG_I2C_MV64XXX=y | 458 | CONFIG_I2C_MV64XXX=y |
453 | CONFIG_I2C_OMAP=y | 459 | CONFIG_I2C_OMAP=y |
454 | CONFIG_I2C_OWL=y | 460 | CONFIG_I2C_OWL=y |
@@ -466,6 +472,9 @@ CONFIG_SPI=y | |||
466 | CONFIG_SPI_ARMADA_3700=y | 472 | CONFIG_SPI_ARMADA_3700=y |
467 | CONFIG_SPI_BCM2835=m | 473 | CONFIG_SPI_BCM2835=m |
468 | CONFIG_SPI_BCM2835AUX=m | 474 | CONFIG_SPI_BCM2835AUX=m |
475 | CONFIG_SPI_DESIGNWARE=m | ||
476 | CONFIG_SPI_DW_DMA=y | ||
477 | CONFIG_SPI_DW_MMIO=m | ||
469 | CONFIG_SPI_FSL_LPSPI=y | 478 | CONFIG_SPI_FSL_LPSPI=y |
470 | CONFIG_SPI_FSL_QUADSPI=y | 479 | CONFIG_SPI_FSL_QUADSPI=y |
471 | CONFIG_SPI_NXP_FLEXSPI=y | 480 | CONFIG_SPI_NXP_FLEXSPI=y |
@@ -484,7 +493,6 @@ CONFIG_SPI_S3C64XX=y | |||
484 | CONFIG_SPI_SH_MSIOF=m | 493 | CONFIG_SPI_SH_MSIOF=m |
485 | CONFIG_SPI_SUN6I=y | 494 | CONFIG_SPI_SUN6I=y |
486 | CONFIG_SPI_SPIDEV=m | 495 | CONFIG_SPI_SPIDEV=m |
487 | CONFIG_MTK_PMIC_WRAP=m | ||
488 | CONFIG_SPMI=y | 496 | CONFIG_SPMI=y |
489 | CONFIG_PINCTRL_SINGLE=y | 497 | CONFIG_PINCTRL_SINGLE=y |
490 | CONFIG_PINCTRL_MAX77620=y | 498 | CONFIG_PINCTRL_MAX77620=y |
@@ -495,6 +503,7 @@ CONFIG_PINCTRL_IMX8MM=y | |||
495 | CONFIG_PINCTRL_IMX8MN=y | 503 | CONFIG_PINCTRL_IMX8MN=y |
496 | CONFIG_PINCTRL_IMX8MP=y | 504 | CONFIG_PINCTRL_IMX8MP=y |
497 | CONFIG_PINCTRL_IMX8MQ=y | 505 | CONFIG_PINCTRL_IMX8MQ=y |
506 | CONFIG_PINCTRL_IMX8QM=y | ||
498 | CONFIG_PINCTRL_IMX8QXP=y | 507 | CONFIG_PINCTRL_IMX8QXP=y |
499 | CONFIG_PINCTRL_IMX8DXL=y | 508 | CONFIG_PINCTRL_IMX8DXL=y |
500 | CONFIG_PINCTRL_MSM=y | 509 | CONFIG_PINCTRL_MSM=y |
@@ -511,6 +520,7 @@ CONFIG_PINCTRL_SC7180=y | |||
511 | CONFIG_PINCTRL_SDM845=y | 520 | CONFIG_PINCTRL_SDM845=y |
512 | CONFIG_PINCTRL_SM8150=y | 521 | CONFIG_PINCTRL_SM8150=y |
513 | CONFIG_PINCTRL_SM8250=y | 522 | CONFIG_PINCTRL_SM8250=y |
523 | CONFIG_PINCTRL_SM8350=y | ||
514 | CONFIG_PINCTRL_LPASS_LPI=m | 524 | CONFIG_PINCTRL_LPASS_LPI=m |
515 | CONFIG_GPIO_ALTERA=m | 525 | CONFIG_GPIO_ALTERA=m |
516 | CONFIG_GPIO_DAVINCI=y | 526 | CONFIG_GPIO_DAVINCI=y |
@@ -521,6 +531,7 @@ CONFIG_GPIO_MXC=y | |||
521 | CONFIG_GPIO_PL061=y | 531 | CONFIG_GPIO_PL061=y |
522 | CONFIG_GPIO_RCAR=y | 532 | CONFIG_GPIO_RCAR=y |
523 | CONFIG_GPIO_UNIPHIER=y | 533 | CONFIG_GPIO_UNIPHIER=y |
534 | CONFIG_GPIO_VISCONTI=y | ||
524 | CONFIG_GPIO_WCD934X=m | 535 | CONFIG_GPIO_WCD934X=m |
525 | CONFIG_GPIO_XGENE=y | 536 | CONFIG_GPIO_XGENE=y |
526 | CONFIG_GPIO_XGENE_SB=y | 537 | CONFIG_GPIO_XGENE_SB=y |
@@ -595,6 +606,7 @@ CONFIG_MFD_EXYNOS_LPASS=m | |||
595 | CONFIG_MFD_HI6421_PMIC=y | 606 | CONFIG_MFD_HI6421_PMIC=y |
596 | CONFIG_MFD_HI655X_PMIC=y | 607 | CONFIG_MFD_HI655X_PMIC=y |
597 | CONFIG_MFD_MAX77620=y | 608 | CONFIG_MFD_MAX77620=y |
609 | CONFIG_MFD_MT6397=y | ||
598 | CONFIG_MFD_SPMI_PMIC=y | 610 | CONFIG_MFD_SPMI_PMIC=y |
599 | CONFIG_MFD_RK808=y | 611 | CONFIG_MFD_RK808=y |
600 | CONFIG_MFD_SEC_CORE=y | 612 | CONFIG_MFD_SEC_CORE=y |
@@ -612,6 +624,8 @@ CONFIG_REGULATOR_HI655X=y | |||
612 | CONFIG_REGULATOR_MAX77620=y | 624 | CONFIG_REGULATOR_MAX77620=y |
613 | CONFIG_REGULATOR_MAX8973=y | 625 | CONFIG_REGULATOR_MAX8973=y |
614 | CONFIG_REGULATOR_MP8859=y | 626 | CONFIG_REGULATOR_MP8859=y |
627 | CONFIG_REGULATOR_MT6358=y | ||
628 | CONFIG_REGULATOR_MT6397=y | ||
615 | CONFIG_REGULATOR_PCA9450=y | 629 | CONFIG_REGULATOR_PCA9450=y |
616 | CONFIG_REGULATOR_PF8X00=y | 630 | CONFIG_REGULATOR_PF8X00=y |
617 | CONFIG_REGULATOR_PFUZE100=y | 631 | CONFIG_REGULATOR_PFUZE100=y |
@@ -650,6 +664,7 @@ CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC=m | |||
650 | CONFIG_VIDEO_RENESAS_FDP1=m | 664 | CONFIG_VIDEO_RENESAS_FDP1=m |
651 | CONFIG_VIDEO_RENESAS_FCP=m | 665 | CONFIG_VIDEO_RENESAS_FCP=m |
652 | CONFIG_VIDEO_RENESAS_VSP1=m | 666 | CONFIG_VIDEO_RENESAS_VSP1=m |
667 | CONFIG_VIDEO_QCOM_VENUS=m | ||
653 | CONFIG_SDR_PLATFORM_DRIVERS=y | 668 | CONFIG_SDR_PLATFORM_DRIVERS=y |
654 | CONFIG_VIDEO_RCAR_DRIF=m | 669 | CONFIG_VIDEO_RCAR_DRIF=m |
655 | CONFIG_VIDEO_IMX219=m | 670 | CONFIG_VIDEO_IMX219=m |
@@ -683,13 +698,16 @@ CONFIG_DRM_MSM=m | |||
683 | CONFIG_DRM_TEGRA=m | 698 | CONFIG_DRM_TEGRA=m |
684 | CONFIG_DRM_PANEL_LVDS=m | 699 | CONFIG_DRM_PANEL_LVDS=m |
685 | CONFIG_DRM_PANEL_SIMPLE=m | 700 | CONFIG_DRM_PANEL_SIMPLE=m |
701 | CONFIG_DRM_PANEL_BOE_TV101WUM_NL6=m | ||
686 | CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m | 702 | CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m |
687 | CONFIG_DRM_PANEL_RAYDIUM_RM67191=m | 703 | CONFIG_DRM_PANEL_RAYDIUM_RM67191=m |
688 | CONFIG_DRM_PANEL_SITRONIX_ST7703=m | 704 | CONFIG_DRM_PANEL_SITRONIX_ST7703=m |
689 | CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m | 705 | CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m |
690 | CONFIG_DRM_DISPLAY_CONNECTOR=m | 706 | CONFIG_DRM_DISPLAY_CONNECTOR=m |
707 | CONFIG_DRM_LONTIUM_LT8912B=m | ||
691 | CONFIG_DRM_NWL_MIPI_DSI=m | 708 | CONFIG_DRM_NWL_MIPI_DSI=m |
692 | CONFIG_DRM_LONTIUM_LT9611=m | 709 | CONFIG_DRM_LONTIUM_LT9611=m |
710 | CONFIG_DRM_PARADE_PS8640=m | ||
693 | CONFIG_DRM_SII902X=m | 711 | CONFIG_DRM_SII902X=m |
694 | CONFIG_DRM_SIMPLE_BRIDGE=m | 712 | CONFIG_DRM_SIMPLE_BRIDGE=m |
695 | CONFIG_DRM_THINE_THC63LVD1024=m | 713 | CONFIG_DRM_THINE_THC63LVD1024=m |
@@ -704,6 +722,8 @@ CONFIG_DRM_VC4=m | |||
704 | CONFIG_DRM_ETNAVIV=m | 722 | CONFIG_DRM_ETNAVIV=m |
705 | CONFIG_DRM_HISI_HIBMC=m | 723 | CONFIG_DRM_HISI_HIBMC=m |
706 | CONFIG_DRM_HISI_KIRIN=m | 724 | CONFIG_DRM_HISI_KIRIN=m |
725 | CONFIG_DRM_MEDIATEK=m | ||
726 | CONFIG_DRM_MEDIATEK_HDMI=m | ||
707 | CONFIG_DRM_MXSFB=m | 727 | CONFIG_DRM_MXSFB=m |
708 | CONFIG_DRM_MESON=m | 728 | CONFIG_DRM_MESON=m |
709 | CONFIG_DRM_PL111=m | 729 | CONFIG_DRM_PL111=m |
@@ -758,12 +778,16 @@ CONFIG_SND_SOC_AK4613=m | |||
758 | CONFIG_SND_SOC_ES7134=m | 778 | CONFIG_SND_SOC_ES7134=m |
759 | CONFIG_SND_SOC_ES7241=m | 779 | CONFIG_SND_SOC_ES7241=m |
760 | CONFIG_SND_SOC_GTM601=m | 780 | CONFIG_SND_SOC_GTM601=m |
781 | CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m | ||
782 | CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m | ||
761 | CONFIG_SND_SOC_PCM3168A_I2C=m | 783 | CONFIG_SND_SOC_PCM3168A_I2C=m |
762 | CONFIG_SND_SOC_RT5659=m | 784 | CONFIG_SND_SOC_RT5659=m |
763 | CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m | 785 | CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m |
786 | CONFIG_SND_SOC_SIMPLE_MUX=m | ||
764 | CONFIG_SND_SOC_TAS571X=m | 787 | CONFIG_SND_SOC_TAS571X=m |
765 | CONFIG_SND_SOC_WCD934X=m | 788 | CONFIG_SND_SOC_WCD934X=m |
766 | CONFIG_SND_SOC_WM8904=m | 789 | CONFIG_SND_SOC_WM8904=m |
790 | CONFIG_SND_SOC_WM8960=m | ||
767 | CONFIG_SND_SOC_WM8962=m | 791 | CONFIG_SND_SOC_WM8962=m |
768 | CONFIG_SND_SOC_WSA881X=m | 792 | CONFIG_SND_SOC_WSA881X=m |
769 | CONFIG_SND_SOC_LPASS_WSA_MACRO=m | 793 | CONFIG_SND_SOC_LPASS_WSA_MACRO=m |
@@ -777,6 +801,8 @@ CONFIG_USB_CONN_GPIO=m | |||
777 | CONFIG_USB=y | 801 | CONFIG_USB=y |
778 | CONFIG_USB_OTG=y | 802 | CONFIG_USB_OTG=y |
779 | CONFIG_USB_XHCI_HCD=y | 803 | CONFIG_USB_XHCI_HCD=y |
804 | CONFIG_USB_XHCI_PCI=m | ||
805 | CONFIG_USB_XHCI_PCI_RENESAS=m | ||
780 | CONFIG_USB_XHCI_TEGRA=y | 806 | CONFIG_USB_XHCI_TEGRA=y |
781 | CONFIG_USB_EHCI_HCD=y | 807 | CONFIG_USB_EHCI_HCD=y |
782 | CONFIG_USB_EHCI_EXYNOS=y | 808 | CONFIG_USB_EHCI_EXYNOS=y |
@@ -788,6 +814,7 @@ CONFIG_USB_RENESAS_USBHS_HCD=m | |||
788 | CONFIG_USB_RENESAS_USBHS=m | 814 | CONFIG_USB_RENESAS_USBHS=m |
789 | CONFIG_USB_ACM=m | 815 | CONFIG_USB_ACM=m |
790 | CONFIG_USB_STORAGE=y | 816 | CONFIG_USB_STORAGE=y |
817 | CONFIG_USB_MTU3=y | ||
791 | CONFIG_USB_MUSB_HDRC=y | 818 | CONFIG_USB_MUSB_HDRC=y |
792 | CONFIG_USB_MUSB_SUNXI=y | 819 | CONFIG_USB_MUSB_SUNXI=y |
793 | CONFIG_USB_DWC3=y | 820 | CONFIG_USB_DWC3=y |
@@ -847,6 +874,7 @@ CONFIG_MMC_DW_K3=y | |||
847 | CONFIG_MMC_DW_ROCKCHIP=y | 874 | CONFIG_MMC_DW_ROCKCHIP=y |
848 | CONFIG_MMC_SUNXI=y | 875 | CONFIG_MMC_SUNXI=y |
849 | CONFIG_MMC_BCM2835=y | 876 | CONFIG_MMC_BCM2835=y |
877 | CONFIG_MMC_MTK=y | ||
850 | CONFIG_MMC_SDHCI_XENON=y | 878 | CONFIG_MMC_SDHCI_XENON=y |
851 | CONFIG_MMC_SDHCI_AM654=y | 879 | CONFIG_MMC_SDHCI_AM654=y |
852 | CONFIG_MMC_OWL=y | 880 | CONFIG_MMC_OWL=y |
@@ -865,6 +893,7 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | |||
865 | CONFIG_LEDS_TRIGGER_PANIC=y | 893 | CONFIG_LEDS_TRIGGER_PANIC=y |
866 | CONFIG_EDAC=y | 894 | CONFIG_EDAC=y |
867 | CONFIG_EDAC_GHES=y | 895 | CONFIG_EDAC_GHES=y |
896 | CONFIG_EDAC_LAYERSCAPE=m | ||
868 | CONFIG_RTC_CLASS=y | 897 | CONFIG_RTC_CLASS=y |
869 | CONFIG_RTC_DRV_DS1307=m | 898 | CONFIG_RTC_DRV_DS1307=m |
870 | CONFIG_RTC_DRV_HYM8563=m | 899 | CONFIG_RTC_DRV_HYM8563=m |
@@ -880,6 +909,7 @@ CONFIG_RTC_DRV_DS3232=y | |||
880 | CONFIG_RTC_DRV_PCF2127=m | 909 | CONFIG_RTC_DRV_PCF2127=m |
881 | CONFIG_RTC_DRV_EFI=y | 910 | CONFIG_RTC_DRV_EFI=y |
882 | CONFIG_RTC_DRV_CROS_EC=y | 911 | CONFIG_RTC_DRV_CROS_EC=y |
912 | CONFIG_RTC_DRV_FSL_FTM_ALARM=m | ||
883 | CONFIG_RTC_DRV_S3C=y | 913 | CONFIG_RTC_DRV_S3C=y |
884 | CONFIG_RTC_DRV_PL031=y | 914 | CONFIG_RTC_DRV_PL031=y |
885 | CONFIG_RTC_DRV_SUN6I=y | 915 | CONFIG_RTC_DRV_SUN6I=y |
@@ -916,6 +946,9 @@ CONFIG_VIRTIO_MMIO=y | |||
916 | CONFIG_XEN_GNTDEV=y | 946 | CONFIG_XEN_GNTDEV=y |
917 | CONFIG_XEN_GRANT_DEV_ALLOC=y | 947 | CONFIG_XEN_GRANT_DEV_ALLOC=y |
918 | CONFIG_MFD_CROS_EC_DEV=y | 948 | CONFIG_MFD_CROS_EC_DEV=y |
949 | CONFIG_STAGING=y | ||
950 | CONFIG_STAGING_MEDIA=y | ||
951 | CONFIG_VIDEO_HANTRO=m | ||
919 | CONFIG_CHROME_PLATFORMS=y | 952 | CONFIG_CHROME_PLATFORMS=y |
920 | CONFIG_CROS_EC=y | 953 | CONFIG_CROS_EC=y |
921 | CONFIG_CROS_EC_I2C=y | 954 | CONFIG_CROS_EC_I2C=y |
@@ -958,11 +991,13 @@ CONFIG_SDM_VIDEOCC_845=y | |||
958 | CONFIG_SDM_DISPCC_845=y | 991 | CONFIG_SDM_DISPCC_845=y |
959 | CONFIG_SM_GCC_8150=y | 992 | CONFIG_SM_GCC_8150=y |
960 | CONFIG_SM_GCC_8250=y | 993 | CONFIG_SM_GCC_8250=y |
994 | CONFIG_SM_GCC_8350=y | ||
961 | CONFIG_SM_GPUCC_8150=y | 995 | CONFIG_SM_GPUCC_8150=y |
962 | CONFIG_SM_GPUCC_8250=y | 996 | CONFIG_SM_GPUCC_8250=y |
963 | CONFIG_SM_DISPCC_8250=y | 997 | CONFIG_SM_DISPCC_8250=y |
964 | CONFIG_QCOM_HFPLL=y | 998 | CONFIG_QCOM_HFPLL=y |
965 | CONFIG_CLK_GFM_LPASS_SM8250=m | 999 | CONFIG_CLK_GFM_LPASS_SM8250=m |
1000 | CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y | ||
966 | CONFIG_HWSPINLOCK=y | 1001 | CONFIG_HWSPINLOCK=y |
967 | CONFIG_HWSPINLOCK_QCOM=y | 1002 | CONFIG_HWSPINLOCK_QCOM=y |
968 | CONFIG_ARM_MHU=y | 1003 | CONFIG_ARM_MHU=y |
@@ -975,6 +1010,7 @@ CONFIG_ROCKCHIP_IOMMU=y | |||
975 | CONFIG_TEGRA_IOMMU_SMMU=y | 1010 | CONFIG_TEGRA_IOMMU_SMMU=y |
976 | CONFIG_ARM_SMMU=y | 1011 | CONFIG_ARM_SMMU=y |
977 | CONFIG_ARM_SMMU_V3=y | 1012 | CONFIG_ARM_SMMU_V3=y |
1013 | CONFIG_MTK_IOMMU=y | ||
978 | CONFIG_QCOM_IOMMU=y | 1014 | CONFIG_QCOM_IOMMU=y |
979 | CONFIG_REMOTEPROC=y | 1015 | CONFIG_REMOTEPROC=y |
980 | CONFIG_QCOM_Q6V5_MSS=m | 1016 | CONFIG_QCOM_Q6V5_MSS=m |
@@ -989,6 +1025,8 @@ CONFIG_OWL_PM_DOMAINS=y | |||
989 | CONFIG_RASPBERRYPI_POWER=y | 1025 | CONFIG_RASPBERRYPI_POWER=y |
990 | CONFIG_FSL_DPAA=y | 1026 | CONFIG_FSL_DPAA=y |
991 | CONFIG_FSL_MC_DPIO=y | 1027 | CONFIG_FSL_MC_DPIO=y |
1028 | CONFIG_FSL_RCPM=y | ||
1029 | CONFIG_MTK_PMIC_WRAP=y | ||
992 | CONFIG_QCOM_AOSS_QMP=y | 1030 | CONFIG_QCOM_AOSS_QMP=y |
993 | CONFIG_QCOM_COMMAND_DB=y | 1031 | CONFIG_QCOM_COMMAND_DB=y |
994 | CONFIG_QCOM_GENI_SE=y | 1032 | CONFIG_QCOM_GENI_SE=y |
@@ -1016,6 +1054,7 @@ CONFIG_ARCH_R8A77980=y | |||
1016 | CONFIG_ARCH_R8A77990=y | 1054 | CONFIG_ARCH_R8A77990=y |
1017 | CONFIG_ARCH_R8A77995=y | 1055 | CONFIG_ARCH_R8A77995=y |
1018 | CONFIG_ARCH_R8A779A0=y | 1056 | CONFIG_ARCH_R8A779A0=y |
1057 | CONFIG_ARCH_R9A07G044=y | ||
1019 | CONFIG_ROCKCHIP_PM_DOMAINS=y | 1058 | CONFIG_ROCKCHIP_PM_DOMAINS=y |
1020 | CONFIG_ARCH_TEGRA_132_SOC=y | 1059 | CONFIG_ARCH_TEGRA_132_SOC=y |
1021 | CONFIG_ARCH_TEGRA_210_SOC=y | 1060 | CONFIG_ARCH_TEGRA_210_SOC=y |
@@ -1023,6 +1062,8 @@ CONFIG_ARCH_TEGRA_186_SOC=y | |||
1023 | CONFIG_ARCH_TEGRA_194_SOC=y | 1062 | CONFIG_ARCH_TEGRA_194_SOC=y |
1024 | CONFIG_ARCH_TEGRA_234_SOC=y | 1063 | CONFIG_ARCH_TEGRA_234_SOC=y |
1025 | CONFIG_TI_SCI_PM_DOMAINS=y | 1064 | CONFIG_TI_SCI_PM_DOMAINS=y |
1065 | CONFIG_ARM_IMX_BUS_DEVFREQ=m | ||
1066 | CONFIG_ARM_IMX8M_DDRC_DEVFREQ=m | ||
1026 | CONFIG_EXTCON_PTN5150=m | 1067 | CONFIG_EXTCON_PTN5150=m |
1027 | CONFIG_EXTCON_USB_GPIO=y | 1068 | CONFIG_EXTCON_USB_GPIO=y |
1028 | CONFIG_EXTCON_USBC_CROS_EC=y | 1069 | CONFIG_EXTCON_USBC_CROS_EC=y |
@@ -1030,6 +1071,7 @@ CONFIG_RENESAS_RPCIF=m | |||
1030 | CONFIG_IIO=y | 1071 | CONFIG_IIO=y |
1031 | CONFIG_EXYNOS_ADC=y | 1072 | CONFIG_EXYNOS_ADC=y |
1032 | CONFIG_MAX9611=m | 1073 | CONFIG_MAX9611=m |
1074 | CONFIG_QCOM_SPMI_VADC=m | ||
1033 | CONFIG_QCOM_SPMI_ADC5=m | 1075 | CONFIG_QCOM_SPMI_ADC5=m |
1034 | CONFIG_ROCKCHIP_SARADC=m | 1076 | CONFIG_ROCKCHIP_SARADC=m |
1035 | CONFIG_IIO_CROS_EC_SENSORS_CORE=m | 1077 | CONFIG_IIO_CROS_EC_SENSORS_CORE=m |
@@ -1046,12 +1088,15 @@ CONFIG_PWM_BCM2835=m | |||
1046 | CONFIG_PWM_CROS_EC=m | 1088 | CONFIG_PWM_CROS_EC=m |
1047 | CONFIG_PWM_IMX27=m | 1089 | CONFIG_PWM_IMX27=m |
1048 | CONFIG_PWM_MESON=m | 1090 | CONFIG_PWM_MESON=m |
1091 | CONFIG_PWM_MTK_DISP=m | ||
1092 | CONFIG_PWM_MEDIATEK=m | ||
1049 | CONFIG_PWM_RCAR=m | 1093 | CONFIG_PWM_RCAR=m |
1050 | CONFIG_PWM_ROCKCHIP=y | 1094 | CONFIG_PWM_ROCKCHIP=y |
1051 | CONFIG_PWM_SAMSUNG=y | 1095 | CONFIG_PWM_SAMSUNG=y |
1052 | CONFIG_PWM_SL28CPLD=m | 1096 | CONFIG_PWM_SL28CPLD=m |
1053 | CONFIG_PWM_SUN4I=m | 1097 | CONFIG_PWM_SUN4I=m |
1054 | CONFIG_PWM_TEGRA=m | 1098 | CONFIG_PWM_TEGRA=m |
1099 | CONFIG_PWM_VISCONTI=m | ||
1055 | CONFIG_SL28CPLD_INTC=y | 1100 | CONFIG_SL28CPLD_INTC=y |
1056 | CONFIG_QCOM_PDC=y | 1101 | CONFIG_QCOM_PDC=y |
1057 | CONFIG_RESET_IMX7=y | 1102 | CONFIG_RESET_IMX7=y |
@@ -1065,6 +1110,7 @@ CONFIG_PHY_HI6220_USB=y | |||
1065 | CONFIG_PHY_HISTB_COMBPHY=y | 1110 | CONFIG_PHY_HISTB_COMBPHY=y |
1066 | CONFIG_PHY_HISI_INNO_USB2=y | 1111 | CONFIG_PHY_HISI_INNO_USB2=y |
1067 | CONFIG_PHY_MVEBU_CP110_COMPHY=y | 1112 | CONFIG_PHY_MVEBU_CP110_COMPHY=y |
1113 | CONFIG_PHY_MTK_TPHY=y | ||
1068 | CONFIG_PHY_QCOM_QMP=m | 1114 | CONFIG_PHY_QCOM_QMP=m |
1069 | CONFIG_PHY_QCOM_QUSB2=m | 1115 | CONFIG_PHY_QCOM_QUSB2=m |
1070 | CONFIG_PHY_QCOM_USB_HS=y | 1116 | CONFIG_PHY_QCOM_USB_HS=y |
@@ -1078,6 +1124,7 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y | |||
1078 | CONFIG_PHY_ROCKCHIP_INNO_DSIDPHY=m | 1124 | CONFIG_PHY_ROCKCHIP_INNO_DSIDPHY=m |
1079 | CONFIG_PHY_ROCKCHIP_PCIE=m | 1125 | CONFIG_PHY_ROCKCHIP_PCIE=m |
1080 | CONFIG_PHY_ROCKCHIP_TYPEC=y | 1126 | CONFIG_PHY_ROCKCHIP_TYPEC=y |
1127 | CONFIG_PHY_SAMSUNG_UFS=y | ||
1081 | CONFIG_PHY_UNIPHIER_USB2=y | 1128 | CONFIG_PHY_UNIPHIER_USB2=y |
1082 | CONFIG_PHY_UNIPHIER_USB3=y | 1129 | CONFIG_PHY_UNIPHIER_USB3=y |
1083 | CONFIG_PHY_TEGRA_XUSB=y | 1130 | CONFIG_PHY_TEGRA_XUSB=y |
@@ -1089,6 +1136,7 @@ CONFIG_QCOM_L3_PMU=y | |||
1089 | CONFIG_NVMEM_IMX_OCOTP=y | 1136 | CONFIG_NVMEM_IMX_OCOTP=y |
1090 | CONFIG_NVMEM_IMX_OCOTP_SCU=y | 1137 | CONFIG_NVMEM_IMX_OCOTP_SCU=y |
1091 | CONFIG_QCOM_QFPROM=y | 1138 | CONFIG_QCOM_QFPROM=y |
1139 | CONFIG_MTK_EFUSE=y | ||
1092 | CONFIG_ROCKCHIP_EFUSE=y | 1140 | CONFIG_ROCKCHIP_EFUSE=y |
1093 | CONFIG_NVMEM_SUNXI_SID=y | 1141 | CONFIG_NVMEM_SUNXI_SID=y |
1094 | CONFIG_UNIPHIER_EFUSE=y | 1142 | CONFIG_UNIPHIER_EFUSE=y |
@@ -1115,6 +1163,7 @@ CONFIG_INTERCONNECT_QCOM_OSM_L3=m | |||
1115 | CONFIG_INTERCONNECT_QCOM_SDM845=y | 1163 | CONFIG_INTERCONNECT_QCOM_SDM845=y |
1116 | CONFIG_INTERCONNECT_QCOM_SM8150=m | 1164 | CONFIG_INTERCONNECT_QCOM_SM8150=m |
1117 | CONFIG_INTERCONNECT_QCOM_SM8250=m | 1165 | CONFIG_INTERCONNECT_QCOM_SM8250=m |
1166 | CONFIG_INTERCONNECT_QCOM_SM8350=m | ||
1118 | CONFIG_EXT2_FS=y | 1167 | CONFIG_EXT2_FS=y |
1119 | CONFIG_EXT3_FS=y | 1168 | CONFIG_EXT3_FS=y |
1120 | CONFIG_EXT4_FS_POSIX_ACL=y | 1169 | CONFIG_EXT4_FS_POSIX_ACL=y |
@@ -1157,6 +1206,7 @@ CONFIG_CRYPTO_DEV_HISI_TRNG=m | |||
1157 | CONFIG_CMA_SIZE_MBYTES=32 | 1206 | CONFIG_CMA_SIZE_MBYTES=32 |
1158 | CONFIG_PRINTK_TIME=y | 1207 | CONFIG_PRINTK_TIME=y |
1159 | CONFIG_DEBUG_INFO=y | 1208 | CONFIG_DEBUG_INFO=y |
1209 | CONFIG_DEBUG_INFO_REDUCED=y | ||
1160 | CONFIG_MAGIC_SYSRQ=y | 1210 | CONFIG_MAGIC_SYSRQ=y |
1161 | CONFIG_DEBUG_FS=y | 1211 | CONFIG_DEBUG_FS=y |
1162 | CONFIG_DEBUG_KERNEL=y | 1212 | CONFIG_DEBUG_KERNEL=y |
diff --git a/recipes-kernel/linux/linux-fslc_5.12.bb b/recipes-kernel/linux/linux-fslc_5.14.bb index ed24bcfd..f67c1b7b 100644 --- a/recipes-kernel/linux/linux-fslc_5.12.bb +++ b/recipes-kernel/linux/linux-fslc_5.14.bb | |||
@@ -19,9 +19,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | |||
19 | # | 19 | # |
20 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and | 20 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and |
21 | # should be updated once patchlevel is merged. | 21 | # should be updated once patchlevel is merged. |
22 | LINUX_VERSION = "5.12.19" | 22 | LINUX_VERSION = "5.14.6" |
23 | 23 | ||
24 | KBRANCH = "5.12.x+fslc" | 24 | KBRANCH = "5.14.x+fslc" |
25 | SRCREV = "a7601274fa6ecb02a9335c8aac5575e8aa8d65fd" | 25 | SRCREV = "79bcc3a5a2e73ad1024c63fd0e7c368652e48145" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf|use-mainline-bsp)" | 27 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf|use-mainline-bsp)" |
diff --git a/recipes-kernel/linux/linux-imx-headers_5.10.bb b/recipes-kernel/linux/linux-imx-headers_5.10.bb index c656fa55..8acb2652 100644 --- a/recipes-kernel/linux/linux-imx-headers_5.10.bb +++ b/recipes-kernel/linux/linux-imx-headers_5.10.bb | |||
@@ -8,7 +8,7 @@ LICENSE = "GPLv2" | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
9 | 9 | ||
10 | SRCBRANCH = "lf-5.10.y" | 10 | SRCBRANCH = "lf-5.10.y" |
11 | LOCALVERSION = "-5.10.35-2.0.0" | 11 | LOCALVERSION = "-5.10.52-2.1.0" |
12 | SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}" | 12 | SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}" |
13 | SRCREV = "ef3f2cfc6010c13feb40cfb7fd7490832cf86f45" | 13 | SRCREV = "ef3f2cfc6010c13feb40cfb7fd7490832cf86f45" |
14 | 14 | ||
@@ -65,7 +65,7 @@ do_install() { | |||
65 | # Without this setting the RDEPENDS in other recipes fails to find this | 65 | # Without this setting the RDEPENDS in other recipes fails to find this |
66 | # package, therefore causing the -dev package also to be skipped effectively not | 66 | # package, therefore causing the -dev package also to be skipped effectively not |
67 | # populating it into SDK | 67 | # populating it into SDK |
68 | ALLOW_EMPTY_${PN} = "1" | 68 | ALLOW_EMPTY:${PN} = "1" |
69 | 69 | ||
70 | INHIBIT_DEFAULT_DEPS = "1" | 70 | INHIBIT_DEFAULT_DEPS = "1" |
71 | DEPENDS += "unifdef-native bison-native rsync-native" | 71 | DEPENDS += "unifdef-native bison-native rsync-native" |
@@ -75,4 +75,4 @@ PACKAGE_ARCH = "${MACHINE_SOCARCH}" | |||
75 | # Restrict this recipe to NXP BSP only, this recipe is not compatible | 75 | # Restrict this recipe to NXP BSP only, this recipe is not compatible |
76 | # with mainline BSP | 76 | # with mainline BSP |
77 | COMPATIBLE_HOST = '(null)' | 77 | COMPATIBLE_HOST = '(null)' |
78 | COMPATIBLE_HOST_use-nxp-bsp = '.*' | 78 | COMPATIBLE_HOST:use-nxp-bsp = '.*' |
diff --git a/recipes-kernel/linux/linux-imx-mfgtool_5.10.bb b/recipes-kernel/linux/linux-imx-mfgtool_5.10.bb index 0a9f5259..311245b1 100644 --- a/recipes-kernel/linux/linux-imx-mfgtool_5.10.bb +++ b/recipes-kernel/linux/linux-imx-mfgtool_5.10.bb | |||
@@ -5,7 +5,7 @@ SUMMARY = "Produces a Manufacturing Tool compatible Linux Kernel" | |||
5 | DESCRIPTION = "Linux Kernel provided and supported by Freescale that produces a \ | 5 | DESCRIPTION = "Linux Kernel provided and supported by Freescale that produces a \ |
6 | Manufacturing Tool compatible Linux Kernel to be used in updater environment" | 6 | Manufacturing Tool compatible Linux Kernel to be used in updater environment" |
7 | 7 | ||
8 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-imx:" | 8 | FILESEXTRAPATHS:prepend := "${THISDIR}/linux-imx:" |
9 | require linux-imx_${PV}.bb | 9 | require linux-imx_${PV}.bb |
10 | require linux-mfgtool.inc | 10 | require linux-mfgtool.inc |
11 | 11 | ||
diff --git a/recipes-kernel/linux/linux-imx_5.10.bb b/recipes-kernel/linux/linux-imx_5.10.bb index 68344e4e..62ecf4bc 100644 --- a/recipes-kernel/linux/linux-imx_5.10.bb +++ b/recipes-kernel/linux/linux-imx_5.10.bb | |||
@@ -18,15 +18,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | |||
18 | DEPENDS += "lzop-native bc-native" | 18 | DEPENDS += "lzop-native bc-native" |
19 | 19 | ||
20 | SRCBRANCH = "lf-5.10.y" | 20 | SRCBRANCH = "lf-5.10.y" |
21 | LOCALVERSION = "-5.10.35-2.0.0" | 21 | LOCALVERSION = "-5.10.52-2.1.0" |
22 | SRCREV = "ef3f2cfc6010c13feb40cfb7fd7490832cf86f45" | 22 | SRCREV = "a11753a89ec610768301d4070e10b8bd60fde8cd" |
23 | 23 | ||
24 | # PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition | 24 | # PV is defined in the base in linux-imx.inc file and uses the LINUX_VERSION definition |
25 | # required by kernel-yocto.bbclass. | 25 | # required by kernel-yocto.bbclass. |
26 | # | 26 | # |
27 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and | 27 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and |
28 | # should be updated once patchlevel is merged. | 28 | # should be updated once patchlevel is merged. |
29 | LINUX_VERSION = "5.10.35" | 29 | LINUX_VERSION = "5.10.52" |
30 | 30 | ||
31 | DEFAULT_PREFERENCE = "1" | 31 | DEFAULT_PREFERENCE = "1" |
32 | 32 | ||
diff --git a/recipes-kernel/linux/linux-qoriq.inc b/recipes-kernel/linux/linux-qoriq.inc index 4d134b47..edac1055 100644 --- a/recipes-kernel/linux/linux-qoriq.inc +++ b/recipes-kernel/linux/linux-qoriq.inc | |||
@@ -7,12 +7,12 @@ LICENSE = "GPLv2" | |||
7 | 7 | ||
8 | S = "${WORKDIR}/git" | 8 | S = "${WORKDIR}/git" |
9 | 9 | ||
10 | DEPENDS_append = " libgcc" | 10 | DEPENDS:append = " libgcc" |
11 | # not put Images into /boot of rootfs, install kernel-image if needed | 11 | # not put Images into /boot of rootfs, install kernel-image if needed |
12 | RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" | 12 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base = "" |
13 | 13 | ||
14 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | 14 | KERNEL_CC:append = " ${TOOLCHAIN_OPTIONS}" |
15 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | 15 | KERNEL_LD:append = " ${TOOLCHAIN_OPTIONS}" |
16 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | 16 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
17 | 17 | ||
18 | ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | 18 | ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" |
@@ -24,9 +24,9 @@ PV = "${LINUX_VERSION}+git${SRCPV}" | |||
24 | SCMVERSION ?= "y" | 24 | SCMVERSION ?= "y" |
25 | LOCALVERSION = "" | 25 | LOCALVERSION = "" |
26 | DELTA_KERNEL_DEFCONFIG ?= "" | 26 | DELTA_KERNEL_DEFCONFIG ?= "" |
27 | DELTA_KERNEL_DEFCONFIG_prepend_qoriq-arm64 = "lsdk.config " | 27 | DELTA_KERNEL_DEFCONFIG:prepend:qoriq-arm64 = "lsdk.config " |
28 | DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2-32b = "multi_v7_lpae.config multi_v8.config lsdk.config " | 28 | DELTA_KERNEL_DEFCONFIG:prepend:fsl-lsch2-32b = "multi_v7_lpae.config multi_v8.config lsdk.config " |
29 | DELTA_KERNEL_DEFCONFIG_prepend_ls102xa = "multi_v7_lpae.config lsdk.config " | 29 | DELTA_KERNEL_DEFCONFIG:prepend:ls102xa = "multi_v7_lpae.config lsdk.config " |
30 | 30 | ||
31 | do_merge_delta_config[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot bison-native:do_populate_sysroot" | 31 | do_merge_delta_config[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot bison-native:do_populate_sysroot" |
32 | do_merge_delta_config[dirs] = "${B}" | 32 | do_merge_delta_config[dirs] = "${B}" |
@@ -56,13 +56,13 @@ do_merge_delta_config() { | |||
56 | addtask merge_delta_config before do_kernel_localversion after do_patch | 56 | addtask merge_delta_config before do_kernel_localversion after do_patch |
57 | 57 | ||
58 | # The link of dts folder is needed for 32b compile of aarch64 targets(e.g. ls1043ardb-32b) | 58 | # The link of dts folder is needed for 32b compile of aarch64 targets(e.g. ls1043ardb-32b) |
59 | do_compile_prepend_fsl-lsch2-32b() { | 59 | do_compile:prepend:fsl-lsch2-32b() { |
60 | ln -sfT ${STAGING_KERNEL_DIR}/arch/arm64/boot/dts/freescale ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale | 60 | ln -sfT ${STAGING_KERNEL_DIR}/arch/arm64/boot/dts/freescale ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale |
61 | } | 61 | } |
62 | 62 | ||
63 | do_install_prepend_fsl-lsch2-32b() { | 63 | do_install:prepend:fsl-lsch2-32b() { |
64 | rm -f ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale | 64 | rm -f ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale |
65 | } | 65 | } |
66 | 66 | ||
67 | FILES_${KERNEL_PACKAGE_NAME}-image += "/boot/zImage*" | 67 | FILES:${KERNEL_PACKAGE_NAME}-image += "/boot/zImage*" |
68 | COMPATIBLE_MACHINE = "(qoriq)" | 68 | COMPATIBLE_MACHINE = "(qoriq)" |
diff --git a/recipes-kernel/skmm-host/skmm-host_git.bb b/recipes-kernel/skmm-host/skmm-host_git.bb index 4b111b5d..6d4b4864 100644 --- a/recipes-kernel/skmm-host/skmm-host_git.bb +++ b/recipes-kernel/skmm-host/skmm-host_git.bb | |||
@@ -12,7 +12,7 @@ S = "${WORKDIR}/git" | |||
12 | 12 | ||
13 | EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' | 13 | EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' |
14 | 14 | ||
15 | FILES_${PN} += "/etc/skmm/ /usr/bin/" | 15 | FILES:${PN} += "/etc/skmm/ /usr/bin/" |
16 | 16 | ||
17 | COMPATIBLE_MACHINE = "(p4080ds|t4240qds)" | 17 | COMPATIBLE_MACHINE = "(p4080ds|t4240qds)" |
18 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 18 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-multimedia/alsa/alsa-lib_%.bbappend b/recipes-multimedia/alsa/alsa-lib_%.bbappend index 80c11f33..d76c45d1 100644 --- a/recipes-multimedia/alsa/alsa-lib_%.bbappend +++ b/recipes-multimedia/alsa/alsa-lib_%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
2 | 2 | ||
3 | IMX_PATCH = " \ | 3 | IMX_PATCH = " \ |
4 | file://0001-add-conf-for-multichannel-support-in-imx.patch \ | 4 | file://0001-add-conf-for-multichannel-support-in-imx.patch \ |
@@ -6,6 +6,6 @@ IMX_PATCH = " \ | |||
6 | file://0005-add-ak4458-conf-for-multichannel-support.patch \ | 6 | file://0005-add-ak4458-conf-for-multichannel-support.patch \ |
7 | file://0006-add-conf-for-iMX-XCVR-sound-card.patch \ | 7 | file://0006-add-conf-for-iMX-XCVR-sound-card.patch \ |
8 | " | 8 | " |
9 | SRC_URI_append_imx = "${IMX_PATCH}" | 9 | SRC_URI:append:imx = "${IMX_PATCH}" |
10 | 10 | ||
11 | PACKAGE_ARCH_imx = "${MACHINE_SOCARCH}" | 11 | PACKAGE_ARCH:imx = "${MACHINE_SOCARCH}" |
diff --git a/recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb b/recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb index db2f71fd..96b6392d 100644 --- a/recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb +++ b/recipes-multimedia/alsa/imx-alsa-plugins_1.0.26.bb | |||
@@ -9,9 +9,9 @@ DEPENDS = "alsa-lib" | |||
9 | 9 | ||
10 | # For backwards compatibility | 10 | # For backwards compatibility |
11 | PROVIDES += "fsl-alsa-plugins" | 11 | PROVIDES += "fsl-alsa-plugins" |
12 | RREPLACES_${PN} = "fsl-alsa-plugins" | 12 | RREPLACES:${PN} = "fsl-alsa-plugins" |
13 | RPROVIDES_${PN} = "fsl-alsa-plugins" | 13 | RPROVIDES:${PN} = "fsl-alsa-plugins" |
14 | RCONFLICTS_${PN} = "fsl-alsa-plugins" | 14 | RCONFLICTS:${PN} = "fsl-alsa-plugins" |
15 | 15 | ||
16 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=94d55d512a9ba36caa9b7df079bae19f" | 16 | LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=94d55d512a9ba36caa9b7df079bae19f" |
17 | 17 | ||
@@ -27,10 +27,10 @@ INCLUDE_DIR = "-I${STAGING_INCDIR_IMX}" | |||
27 | 27 | ||
28 | EXTRA_OECONF = "CFLAGS="${INCLUDE_DIR}"" | 28 | EXTRA_OECONF = "CFLAGS="${INCLUDE_DIR}"" |
29 | 29 | ||
30 | INSANE_SKIP_${PN} = "dev-so" | 30 | INSANE_SKIP:${PN} = "dev-so" |
31 | 31 | ||
32 | FILES_${PN} += "${libdir}/alsa-lib/libasound_*.so" | 32 | FILES:${PN} += "${libdir}/alsa-lib/libasound_*.so" |
33 | FILES_${PN}-dbg += "${libdir}/alsa-lib/.debug" | 33 | FILES:${PN}-dbg += "${libdir}/alsa-lib/.debug" |
34 | FILES_${PN}-dev += "${libdir}/alsa-lib/*.la" | 34 | FILES:${PN}-dev += "${libdir}/alsa-lib/*.la" |
35 | 35 | ||
36 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 36 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.0.bb deleted file mode 100644 index 3f1ec99d..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.0.bb +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | SUMMARY = "Libav-based GStreamer 1.x plugin" | ||
2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
3 | SECTION = "multimedia" | ||
4 | |||
5 | LICENSE = "GPLv2+ & LGPLv2+ & ( (GPLv2+ & LGPLv2.1+) | (GPLv3+ & LGPLv3+) )" | ||
6 | LICENSE_FLAGS = "commercial" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
8 | file://COPYING.LIB;md5=6762ed442b3822387a51c92d928ead0d \ | ||
9 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ | ||
10 | file://gst-libs/ext/libav/COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
11 | file://gst-libs/ext/libav/COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
12 | file://gst-libs/ext/libav/COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \ | ||
13 | file://gst-libs/ext/libav/COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
14 | |||
15 | SRC_URI = "http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz \ | ||
16 | file://0001-Disable-yasm-for-libav-when-disable-yasm.patch \ | ||
17 | file://workaround-to-build-gst-libav-for-i586-with-gcc.patch \ | ||
18 | file://mips64_cpu_detection.patch \ | ||
19 | file://0001-configure-check-for-armv7ve-variant.patch \ | ||
20 | file://0001-fix-host-contamination.patch \ | ||
21 | " | ||
22 | SRC_URI[md5sum] = "e3a201a45985ddc1327cd496046ca818" | ||
23 | SRC_URI[sha256sum] = "dfac119043a9cfdcacd7acde77f674ab172cf2537b5812be52f49e9cddc53d9a" | ||
24 | |||
25 | S = "${WORKDIR}/gst-libav-${PV}" | ||
26 | |||
27 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base zlib bzip2 xz" | ||
28 | |||
29 | inherit autotools pkgconfig upstream-version-is-even gtk-doc | ||
30 | |||
31 | # CAUTION: Using the system libav is not recommended. Since the libav API is changing all the time, | ||
32 | # compilation errors (and other, more subtle bugs) can happen. It is usually better to rely on the | ||
33 | # libav copy included in the gst-libav package. | ||
34 | PACKAGECONFIG ??= "orc yasm" | ||
35 | |||
36 | PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl," | ||
37 | PACKAGECONFIG[libav] = "--with-system-libav,,libav" | ||
38 | PACKAGECONFIG[orc] = "--enable-orc,--disable-orc,orc" | ||
39 | PACKAGECONFIG[yasm] = "--enable-yasm,--disable-yasm,nasm-native" | ||
40 | PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind" | ||
41 | |||
42 | GSTREAMER_1_0_DEBUG ?= "--disable-debug" | ||
43 | |||
44 | LIBAV_EXTRA_CONFIGURE = "--with-libav-extra-configure" | ||
45 | |||
46 | LIBAV_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux \ | ||
47 | --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \ | ||
48 | --ranlib='${RANLIB}' \ | ||
49 | ${GSTREAMER_1_0_DEBUG} \ | ||
50 | --cross-prefix='${HOST_PREFIX}'" | ||
51 | |||
52 | # Disable assembly optimizations for X32, as this libav lacks the support | ||
53 | PACKAGECONFIG_remove_linux-gnux32 = "yasm" | ||
54 | LIBAV_EXTRA_CONFIGURE_COMMON_ARG_append_linux-gnux32 = " --disable-asm" | ||
55 | |||
56 | LIBAV_EXTRA_CONFIGURE_COMMON = \ | ||
57 | '${LIBAV_EXTRA_CONFIGURE}="${LIBAV_EXTRA_CONFIGURE_COMMON_ARG}"' | ||
58 | |||
59 | EXTRA_OECONF = "${LIBAV_EXTRA_CONFIGURE_COMMON}" | ||
60 | |||
61 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" | ||
62 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la" | ||
63 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
64 | |||
65 | # http://errors.yoctoproject.org/Errors/Details/20493/ | ||
66 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
67 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||
68 | |||
69 | # ffmpeg/libav disables PIC on some platforms (e.g. x86-32) | ||
70 | INSANE_SKIP_${PN} = "textrel" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.0.bb new file mode 100644 index 00000000..1a076c2e --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.18.0.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Libav-based GStreamer 1.x plugin" | ||
2 | DESCRIPTION = "Contains a GStreamer plugin for using the encoders, decoders, \ | ||
3 | muxers, and demuxers provided by FFmpeg." | ||
4 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
5 | SECTION = "multimedia" | ||
6 | |||
7 | # ffmpeg has comercial license flags so add it as we need ffmpeg as a dependency | ||
8 | LICENSE_FLAGS = "commercial" | ||
9 | LICENSE = "LGPLv2+" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ | ||
11 | file://ext/libav/gstav.h;beginline=1;endline=18;md5=a752c35267d8276fd9ca3db6994fca9c \ | ||
12 | " | ||
13 | |||
14 | SRC_URI = "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz" | ||
15 | SRC_URI[sha256sum] = "42f93f5ce9a3fc22051e5f783a4574b56ebf213f331f75dcbc3552459bd3a06a" | ||
16 | |||
17 | S = "${WORKDIR}/gst-libav-${PV}" | ||
18 | |||
19 | DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base ffmpeg" | ||
20 | |||
21 | inherit meson pkgconfig upstream-version-is-even | ||
22 | |||
23 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" | ||
24 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb index 6925611a..c3e64172 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.16.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb | |||
@@ -1,30 +1,22 @@ | |||
1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
2 | 2 | ||
3 | DEPENDS_append_imxgpu2d = " virtual/libg2d" | 3 | DEPENDS:append:imxgpu2d = " virtual/libg2d" |
4 | DEPENDS_append_mx8 = " libdrm" | 4 | DEPENDS:append:mx8 = " libdrm" |
5 | 5 | ||
6 | PACKAGECONFIG_append_mx8 = " kms" | 6 | PACKAGECONFIG:append:mx8 = " kms tinycompress" |
7 | 7 | ||
8 | DEFAULT_PREFERENCE = "-1" | 8 | DEFAULT_PREFERENCE = "-1" |
9 | 9 | ||
10 | PACKAGE_ARCH_imxpxp = "${MACHINE_SOCARCH}" | 10 | PACKAGE_ARCH:imxpxp = "${MACHINE_SOCARCH}" |
11 | PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}" | 11 | PACKAGE_ARCH:mx8 = "${MACHINE_SOCARCH}" |
12 | 12 | ||
13 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https" | 13 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https" |
14 | SRCBRANCH = "MM_04.05.07_2011_L5.4.70" | 14 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
15 | 15 | ||
16 | SRC_URI = " \ | 16 | SRC_URI = " \ |
17 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ | 17 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ |
18 | file://0001-ext-wayland-fix-meson-build-in-nxp-fork.patch \ | ||
19 | file://0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | ||
20 | file://opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ | ||
21 | file://0001-opencv-allow-compilation-against-4.4.x.patch \ | ||
22 | file://0001-vulkan-Drop-use-of-VK_RESULT_BEGIN_RANGE.patch \ | ||
23 | file://fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch \ | ||
24 | file://avoid-including-sys-poll.h-directly.patch \ | ||
25 | file://ensure-valid-sentinels-for-gst_structure_get-etc.patch \ | ||
26 | " | 18 | " |
27 | SRCREV = "cf7f2d0125424ce0d63ddc7f1eadc9ef71d10db1" | 19 | SRCREV = "227af57d23cb6b3564fc94446ab2c9fe8c8cff22" |
28 | 20 | ||
29 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
30 | 22 | ||
@@ -37,12 +29,12 @@ DEPENDS += "gstreamer1.0-plugins-base" | |||
37 | inherit gobject-introspection | 29 | inherit gobject-introspection |
38 | 30 | ||
39 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" | 31 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" |
40 | PACKAGECONFIG_GL_imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}" | 32 | PACKAGECONFIG_GL:imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}" |
41 | 33 | ||
42 | PACKAGECONFIG ??= " \ | 34 | PACKAGECONFIG ??= " \ |
43 | ${GSTREAMER_ORC} \ | 35 | ${GSTREAMER_ORC} \ |
44 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ | 36 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ |
45 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)} \ | 37 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ |
46 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ |
47 | ${PACKAGECONFIG_GL} \ | 39 | ${PACKAGECONFIG_GL} \ |
48 | bz2 closedcaption curl dash dtls hls rsvg sbc smoothstreaming sndfile \ | 40 | bz2 closedcaption curl dash dtls hls rsvg sbc smoothstreaming sndfile \ |
@@ -91,6 +83,7 @@ PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=di | |||
91 | PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" | 83 | PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" |
92 | PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" | 84 | PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" |
93 | PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa" | 85 | PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa" |
86 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" | ||
94 | PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo" | 87 | PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo" |
95 | PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev" | 88 | PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev" |
96 | PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" | 89 | PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" |
@@ -102,9 +95,6 @@ PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice" | |||
102 | PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" | 95 | PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" |
103 | PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" | 96 | PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" |
104 | 97 | ||
105 | # Following package config in not available in NXP fork: | ||
106 | #PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms" | ||
107 | |||
108 | # these plugins currently have no corresponding library in OE-core or meta-openembedded: | 98 | # these plugins currently have no corresponding library in OE-core or meta-openembedded: |
109 | # aom androidmedia applemedia bs2b chromaprint d3dvideosink | 99 | # aom androidmedia applemedia bs2b chromaprint d3dvideosink |
110 | # directsound dts fdkaac gme gsm iq kate ladspa lv2 mpeg2enc | 100 | # directsound dts fdkaac gme gsm iq kate ladspa lv2 mpeg2enc |
@@ -139,8 +129,6 @@ EXTRA_OEMESON += " \ | |||
139 | -Dmplex=disabled \ | 129 | -Dmplex=disabled \ |
140 | -Dmsdk=disabled \ | 130 | -Dmsdk=disabled \ |
141 | -Dmusepack=disabled \ | 131 | -Dmusepack=disabled \ |
142 | -Dnvdec=disabled \ | ||
143 | -Dnvenc=disabled \ | ||
144 | -Dofa=disabled \ | 132 | -Dofa=disabled \ |
145 | -Dopenexr=disabled \ | 133 | -Dopenexr=disabled \ |
146 | -Dopenmpt=disabled \ | 134 | -Dopenmpt=disabled \ |
@@ -150,7 +138,6 @@ EXTRA_OEMESON += " \ | |||
150 | -Dspandsp=disabled \ | 138 | -Dspandsp=disabled \ |
151 | -Dsrt=disabled \ | 139 | -Dsrt=disabled \ |
152 | -Dteletext=disabled \ | 140 | -Dteletext=disabled \ |
153 | -Dvdpau=disabled \ | ||
154 | -Dwasapi=disabled \ | 141 | -Dwasapi=disabled \ |
155 | -Dwildmidi=disabled \ | 142 | -Dwildmidi=disabled \ |
156 | -Dwinks=disabled \ | 143 | -Dwinks=disabled \ |
@@ -163,13 +150,14 @@ EXTRA_OEMESON += " \ | |||
163 | 150 | ||
164 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" | 151 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" |
165 | 152 | ||
166 | ARM_INSTRUCTION_SET_armv4 = "arm" | 153 | ARM_INSTRUCTION_SET:armv4 = "arm" |
167 | ARM_INSTRUCTION_SET_armv5 = "arm" | 154 | ARM_INSTRUCTION_SET:armv5 = "arm" |
168 | 155 | ||
169 | FILES_${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs" | 156 | FILES:${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs" |
170 | FILES_${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" | 157 | FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" |
171 | FILES_${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs" | 158 | FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles" |
159 | FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs" | ||
172 | # include fragment shaders | 160 | # include fragment shaders |
173 | FILES_${PN}-opengl += "/usr/share/*.fs" | 161 | FILES:${PN}-opengl += "/usr/share/*.fs" |
174 | 162 | ||
175 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 163 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gst-libs-gst-gl-wayland-fix-meson-build.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gst-libs-gst-gl-wayland-fix-meson-build.patch deleted file mode 100644 index 61baf2f9..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gst-libs-gst-gl-wayland-fix-meson-build.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From a145a129a8122f21c1e243b3dc2e5708f4c13bef Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
3 | Date: Thu, 23 Jan 2020 12:54:10 +0000 | ||
4 | Subject: [PATCH] gst-libs gst gl wayland: fix meson build | ||
5 | |||
6 | Since introduction of meson build system, modifications introduced in | ||
7 | NXP fork are breaking the build, where xdg-shell-client-protocol.h | ||
8 | is searched via relative path. This code is only present in NXP fork and | ||
9 | should be removed. | ||
10 | |||
11 | This reverts commit [48bde732b00fb42df636ebbaf3b06e5e7971c206] | ||
12 | ("wayland: fix build break in yocto") from upstream. | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
17 | --- | ||
18 | gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | ||
22 | index d1795591f..89dedd9b5 100644 | ||
23 | --- a/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | ||
24 | +++ b/gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h | ||
25 | @@ -22,7 +22,7 @@ | ||
26 | #define __GST_GL_WINDOW_WAYLAND_EGL_H__ | ||
27 | |||
28 | #include <wayland-client.h> | ||
29 | -#include <gst/gl/wayland/xdg-shell-client-protocol.h> | ||
30 | +#include "xdg-shell-client-protocol.h" | ||
31 | #include <wayland-egl.h> | ||
32 | #include <wayland-cursor.h> | ||
33 | |||
34 | -- | ||
35 | 2.17.1 | ||
36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch deleted file mode 100644 index da152531..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch +++ /dev/null | |||
@@ -1,220 +0,0 @@ | |||
1 | From def285f623bc30b9d1acede00393188e693cc741 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
3 | Date: Sat, 22 Feb 2020 13:22:57 +0000 | ||
4 | Subject: [PATCH] gstreamer-plugins-base: fix meson build in nxp fork | ||
5 | |||
6 | - Add missing IMX header file into istall target; | ||
7 | - Allocator's meta data files are missing in meson.build, bring them back; | ||
8 | - Add ION NXP-specific allocator to meson.build; | ||
9 | - Introduce additional configuration option to pass extra include paths, | ||
10 | which are required to build ION allocator; | ||
11 | - Some video sources are missing, bring them also into the build; | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | ||
16 | --- | ||
17 | gst-libs/gst/allocators/meson.build | 30 +++++++++++++++++++++++++++-- | ||
18 | gst-libs/gst/gl/gstglconfig.h.meson | 2 ++ | ||
19 | gst-libs/gst/gl/meson.build | 20 +++++++++++++++++++ | ||
20 | gst-libs/gst/meson.build | 6 ++++++ | ||
21 | gst-libs/gst/video/meson.build | 11 +++++++++++ | ||
22 | meson.build | 3 +++ | ||
23 | meson_options.txt | 4 ++++ | ||
24 | 7 files changed, 74 insertions(+), 2 deletions(-) | ||
25 | |||
26 | diff --git a/gst-libs/gst/allocators/meson.build b/gst-libs/gst/allocators/meson.build | ||
27 | index 364baeebf..30b1495c9 100644 | ||
28 | --- a/gst-libs/gst/allocators/meson.build | ||
29 | +++ b/gst-libs/gst/allocators/meson.build | ||
30 | @@ -5,18 +5,44 @@ gst_allocators_headers = [ | ||
31 | 'gstphysmemory.h', | ||
32 | 'gstdmabuf.h', | ||
33 | ] | ||
34 | + | ||
35 | +imx_gst_allocators_headers = [ | ||
36 | + 'gstphymemmeta.h', | ||
37 | + 'gstdmabufmeta.h', | ||
38 | + 'gstallocatorphymem.h', | ||
39 | +] | ||
40 | + | ||
41 | +if cc.has_header('linux/ion.h', include_directories : imx_includes) | ||
42 | + imx_gst_allocators_headers += [ | ||
43 | + 'gstionmemory.h', | ||
44 | + ] | ||
45 | +endif | ||
46 | + | ||
47 | +gst_allocators_headers += imx_gst_allocators_headers | ||
48 | + | ||
49 | install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/') | ||
50 | |||
51 | gst_allocators_sources = [ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c'] | ||
52 | + | ||
53 | +imx_gst_allocators_sources = ['gstdmabufmeta.c', 'gstphymemmeta.c', 'gstallocatorphymem.c'] | ||
54 | + | ||
55 | +if cc.has_header('linux/ion.h', include_directories : imx_includes) | ||
56 | + imx_gst_allocators_sources += [ | ||
57 | + 'gstionmemory.c', | ||
58 | + ] | ||
59 | +endif | ||
60 | + | ||
61 | +gst_allocators_sources += imx_gst_allocators_sources | ||
62 | + | ||
63 | gstallocators = library('gstallocators-@0@'.format(api_version), | ||
64 | gst_allocators_sources, | ||
65 | c_args : gst_plugins_base_args + ['-DBUILDING_GST_ALLOCATORS'], | ||
66 | - include_directories: [configinc, libsinc], | ||
67 | + include_directories: [configinc, libsinc, imx_includes], | ||
68 | version : libversion, | ||
69 | soversion : soversion, | ||
70 | darwin_versions : osxversion, | ||
71 | install : true, | ||
72 | - dependencies : [gst_dep], | ||
73 | + dependencies : [video_dep, gst_dep], | ||
74 | ) | ||
75 | |||
76 | allocators_gen_sources = [] | ||
77 | diff --git a/gst-libs/gst/gl/gstglconfig.h.meson b/gst-libs/gst/gl/gstglconfig.h.meson | ||
78 | index 11795c16c..66cd54a7e 100644 | ||
79 | --- a/gst-libs/gst/gl/gstglconfig.h.meson | ||
80 | +++ b/gst-libs/gst/gl/gstglconfig.h.meson | ||
81 | @@ -32,8 +32,10 @@ G_BEGIN_DECLS | ||
82 | #mesondefine GST_GL_HAVE_PLATFORM_CGL | ||
83 | #mesondefine GST_GL_HAVE_PLATFORM_EAGL | ||
84 | |||
85 | +#mesondefine GST_GL_HAVE_IONDMA | ||
86 | #mesondefine GST_GL_HAVE_DMABUF | ||
87 | #mesondefine GST_GL_HAVE_VIV_DIRECTVIV | ||
88 | +#mesondefine GST_GL_HAVE_PHYMEM | ||
89 | |||
90 | #mesondefine GST_GL_HAVE_GLEGLIMAGEOES | ||
91 | #mesondefine GST_GL_HAVE_GLCHAR | ||
92 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
93 | index 0e0ba1b7d..6f6c6866d 100644 | ||
94 | --- a/gst-libs/gst/gl/meson.build | ||
95 | +++ b/gst-libs/gst/gl/meson.build | ||
96 | @@ -123,8 +123,10 @@ glconf_options = [ | ||
97 | 'GST_GL_HAVE_PLATFORM_CGL', | ||
98 | 'GST_GL_HAVE_PLATFORM_EAGL', | ||
99 | |||
100 | + 'GST_GL_HAVE_IONDMA', | ||
101 | 'GST_GL_HAVE_DMABUF', | ||
102 | 'GST_GL_HAVE_VIV_DIRECTVIV', | ||
103 | + 'GST_GL_HAVE_PHYMEM', | ||
104 | |||
105 | 'GST_GL_HAVE_GLEGLIMAGEOES', | ||
106 | 'GST_GL_HAVE_GLCHAR', | ||
107 | @@ -146,6 +148,18 @@ if unneeded_dep.found() | ||
108 | error ('Found unfindable dependency') | ||
109 | endif | ||
110 | |||
111 | +if cc.has_header('linux/ion.h', include_directories : imx_includes) | ||
112 | + glconf.set10('GST_GL_HAVE_IONDMA', 1) | ||
113 | + gl_sources += [ | ||
114 | + 'gstglmemorydma.c', | ||
115 | + ] | ||
116 | + gl_headers += [ | ||
117 | + 'gstglmemorydma.h', | ||
118 | + ] | ||
119 | +else | ||
120 | + error('i.MX platform requires ION support to be enabled!') | ||
121 | +endif | ||
122 | + | ||
123 | # OpenGL/GLES2 libraries | ||
124 | gl_lib_deps = [] | ||
125 | # GL platform - EGL, GLX, CGL, WGL, etc | ||
126 | @@ -501,6 +515,7 @@ if need_platform_egl != 'no' | ||
127 | glconf.set10('GST_GL_HAVE_DMABUF', 1) | ||
128 | endif | ||
129 | |||
130 | + | ||
131 | egl_includes = ''' | ||
132 | #include <EGL/egl.h> | ||
133 | #include <EGL/eglext.h> | ||
134 | @@ -808,9 +823,14 @@ if need_platform_egl != 'no' and need_win_viv_fb != 'no' | ||
135 | enabled_gl_winsys += 'viv-fb' | ||
136 | glconf.set10('GST_GL_HAVE_WINDOW_VIV_FB', 1) | ||
137 | glconf.set10('GST_GL_HAVE_VIV_DIRECTVIV', 1) | ||
138 | + glconf.set10('GST_GL_HAVE_PHYMEM', 1) | ||
139 | gl_sources += [ | ||
140 | 'viv-fb/gstgldisplay_viv_fb.c', | ||
141 | 'viv-fb/gstglwindow_viv_fb_egl.c', | ||
142 | + 'gstglphymemory.c', | ||
143 | + ] | ||
144 | + gl_headers += [ | ||
145 | + 'gstglphymemory.h', | ||
146 | ] | ||
147 | gl_cpp_args += ['-DEGL_API_FB'] | ||
148 | endif | ||
149 | diff --git a/gst-libs/gst/meson.build b/gst-libs/gst/meson.build | ||
150 | index cd3b5b043..1935f46e5 100644 | ||
151 | --- a/gst-libs/gst/meson.build | ||
152 | +++ b/gst-libs/gst/meson.build | ||
153 | @@ -11,3 +11,9 @@ subdir('app') | ||
154 | subdir('allocators') | ||
155 | # FIXME: gl deps are automagic | ||
156 | subdir('gl') | ||
157 | + | ||
158 | +# Install dangling imx header, required by other plugins | ||
159 | +gst_imx_header = [ | ||
160 | + 'gstimxcommon.h', | ||
161 | +] | ||
162 | +install_headers(gst_imx_header, subdir : 'gstreamer-1.0/') | ||
163 | diff --git a/gst-libs/gst/video/meson.build b/gst-libs/gst/video/meson.build | ||
164 | index b4dfcdf65..d8531f199 100644 | ||
165 | --- a/gst-libs/gst/video/meson.build | ||
166 | +++ b/gst-libs/gst/video/meson.build | ||
167 | @@ -35,6 +35,11 @@ video_sources = [ | ||
168 | 'videooverlay.c', | ||
169 | ] | ||
170 | |||
171 | +imx_video_sources = [ | ||
172 | + 'gstvideohdr10meta.c', | ||
173 | +] | ||
174 | +video_sources += imx_video_sources | ||
175 | + | ||
176 | video_headers = [ | ||
177 | 'colorbalance.h', | ||
178 | 'colorbalancechannel.h', | ||
179 | @@ -70,6 +75,12 @@ video_headers = [ | ||
180 | 'video-overlay-composition.h', | ||
181 | 'video-multiview.h', | ||
182 | ] | ||
183 | + | ||
184 | +imx_video_headers = [ | ||
185 | + 'gstvideohdr10meta.h', | ||
186 | +] | ||
187 | +video_headers += imx_video_headers | ||
188 | + | ||
189 | install_headers(video_headers, subdir : 'gstreamer-1.0/gst/video/') | ||
190 | |||
191 | video_mkenum_headers = [ | ||
192 | diff --git a/meson.build b/meson.build | ||
193 | index 2fca28205..7781934cd 100644 | ||
194 | --- a/meson.build | ||
195 | +++ b/meson.build | ||
196 | @@ -103,6 +103,9 @@ if glib_checks.disabled() or (glib_checks.auto() and not gst_version_is_dev) | ||
197 | add_project_arguments('-DG_DISABLE_CHECKS', language: 'c') | ||
198 | endif | ||
199 | |||
200 | +# Define i.MX-specific include path as variable from options | ||
201 | +imx_includes = include_directories(get_option('extra_imx_incdir')) | ||
202 | + | ||
203 | check_headers = [ | ||
204 | ['HAVE_DLFCN_H', 'dlfcn.h'], | ||
205 | ['HAVE_EMMINTRIN_H', 'emmintrin.h'], | ||
206 | diff --git a/meson_options.txt b/meson_options.txt | ||
207 | index e7af4dd45..d44401ca6 100644 | ||
208 | --- a/meson_options.txt | ||
209 | +++ b/meson_options.txt | ||
210 | @@ -85,3 +85,7 @@ option('package-name', type : 'string', yield : true, | ||
211 | description : 'package name to use in plugins') | ||
212 | option('package-origin', type : 'string', value : 'Unknown package origin', yield : true, | ||
213 | description : 'package origin URL to use in plugins') | ||
214 | + | ||
215 | +# NXP specific options | ||
216 | +option('extra_imx_incdir', type : 'string', yield : true, description : 'i.MX specific header include path') | ||
217 | + | ||
218 | -- | ||
219 | 2.17.1 | ||
220 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch deleted file mode 100644 index 55871883..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From f82db8496df8ffb8352248e895258c19f8f4776b Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
3 | Date: Thu, 17 Oct 2019 20:06:24 +0100 | ||
4 | Subject: [PATCH] meson: build gir even when cross-compiling if introspection | ||
5 | was enabled explicitly | ||
6 | |||
7 | This can be made to work in certain circumstances when | ||
8 | cross-compiling, so default to not building g-i stuff | ||
9 | when cross-compiling, but allow it if introspection was | ||
10 | enabled explicitly via -Dintrospection=enabled. | ||
11 | |||
12 | See gstreamer/gstreamer#454 and gstreamer/gstreamer#381. | ||
13 | |||
14 | Upstream-Status: Backport [30672ba7d134553e59935ddc875104adba26f25c] | ||
15 | |||
16 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
17 | |||
18 | --- | ||
19 | meson.build | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/meson.build b/meson.build | ||
23 | index 2fca28205..2714af718 100644 | ||
24 | --- a/meson.build | ||
25 | +++ b/meson.build | ||
26 | @@ -355,7 +355,7 @@ endif | ||
27 | |||
28 | gir = find_program('g-ir-scanner', required : get_option('introspection')) | ||
29 | gnome = import('gnome') | ||
30 | -build_gir = gir.found() and not meson.is_cross_build() | ||
31 | +build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) | ||
32 | gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \ | ||
33 | 'g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);' + \ | ||
34 | 'g_setenv("GST_REGISTRY_1.0", "@0@", TRUE);'.format(meson.current_build_dir() + '/gir_empty_registry.reg') + \ | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-viv-fb-code-must-link-against-libg2d.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-viv-fb-code-must-link-against-libg2d.patch deleted file mode 100644 index c761619f..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-meson-viv-fb-code-must-link-against-libg2d.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From 8153e86dac04076fb80fc272c8374d4ba019fa3c Mon Sep 17 00:00:00 2001 | ||
2 | From: Zan Dobersek <zdobersek@igalia.com> | ||
3 | Date: Wed, 4 Nov 2020 14:02:10 +0100 | ||
4 | Subject: [PATCH] meson: viv-fb code must link against libg2d | ||
5 | |||
6 | Find the libg2d library and link against it, if necessary, avoiding | ||
7 | linking errors for couple of libg2d symbols. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Zan Dobersek <zdobersek@igalia.com> | ||
12 | --- | ||
13 | gst-libs/gst/gl/meson.build | 6 +++++- | ||
14 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
17 | index 6f6c6866d..fb6a9aabf 100644 | ||
18 | --- a/gst-libs/gst/gl/meson.build | ||
19 | +++ b/gst-libs/gst/gl/meson.build | ||
20 | @@ -818,9 +818,11 @@ if need_win_gbm != 'no' | ||
21 | endif | ||
22 | |||
23 | if need_platform_egl != 'no' and need_win_viv_fb != 'no' | ||
24 | - if egl_dep.found() and cc.has_function ('fbGetDisplay', dependencies : egl_dep) | ||
25 | + g2d_dep = cc.find_library('g2d', required : false) | ||
26 | + if egl_dep.found() and g2d_dep.found() and cc.has_function ('fbGetDisplay', dependencies : egl_dep) | ||
27 | if cc.has_function ('glTexDirectVIV', dependencies : gles2_dep) | ||
28 | enabled_gl_winsys += 'viv-fb' | ||
29 | + gl_winsys_deps += [g2d_dep] | ||
30 | glconf.set10('GST_GL_HAVE_WINDOW_VIV_FB', 1) | ||
31 | glconf.set10('GST_GL_HAVE_VIV_DIRECTVIV', 1) | ||
32 | glconf.set10('GST_GL_HAVE_PHYMEM', 1) | ||
33 | @@ -834,6 +836,8 @@ if need_platform_egl != 'no' and need_win_viv_fb != 'no' | ||
34 | ] | ||
35 | gl_cpp_args += ['-DEGL_API_FB'] | ||
36 | endif | ||
37 | + else | ||
38 | + g2d_dep = unneeded_dep | ||
39 | endif | ||
40 | endif | ||
41 | |||
42 | -- | ||
43 | 2.28.0 | ||
44 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-meson-Add-variables-for-gir-files.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-meson-Add-variables-for-gir-files.patch deleted file mode 100644 index 9494f622..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0002-meson-Add-variables-for-gir-files.patch +++ /dev/null | |||
@@ -1,233 +0,0 @@ | |||
1 | From 7a21c86a3facfc7fe8285e764324839b2e55df8a Mon Sep 17 00:00:00 2001 | ||
2 | From: Thibault Saunier <tsaunier@igalia.com> | ||
3 | Date: Mon, 22 Oct 2018 11:44:37 +0200 | ||
4 | Subject: [PATCH] meson: Add variables for gir files | ||
5 | |||
6 | And flatten list of sources for dependencies | ||
7 | |||
8 | Upstream-Status: Backport [685731e989dc074a4b0d48b6c8062e2738f09719] | ||
9 | |||
10 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
11 | |||
12 | --- | ||
13 | gst-libs/gst/allocators/meson.build | 5 +++-- | ||
14 | gst-libs/gst/app/meson.build | 6 ++++-- | ||
15 | gst-libs/gst/audio/meson.build | 5 +++-- | ||
16 | gst-libs/gst/pbutils/meson.build | 5 +++-- | ||
17 | gst-libs/gst/rtp/meson.build | 6 ++++-- | ||
18 | gst-libs/gst/rtsp/meson.build | 5 +++-- | ||
19 | gst-libs/gst/sdp/meson.build | 6 ++++-- | ||
20 | gst-libs/gst/tag/meson.build | 5 +++-- | ||
21 | gst-libs/gst/video/meson.build | 5 +++-- | ||
22 | 9 files changed, 30 insertions(+), 18 deletions(-) | ||
23 | |||
24 | diff --git a/gst-libs/gst/allocators/meson.build b/gst-libs/gst/allocators/meson.build | ||
25 | index 364baeebf..56f156dc3 100644 | ||
26 | --- a/gst-libs/gst/allocators/meson.build | ||
27 | +++ b/gst-libs/gst/allocators/meson.build | ||
28 | @@ -22,7 +22,7 @@ gstallocators = library('gstallocators-@0@'.format(api_version), | ||
29 | allocators_gen_sources = [] | ||
30 | if build_gir | ||
31 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ] | ||
32 | - allocators_gen_sources += [gnome.generate_gir(gstallocators, | ||
33 | + allocators_gir = gnome.generate_gir(gstallocators, | ||
34 | sources : gst_allocators_sources + gst_allocators_headers, | ||
35 | namespace : 'GstAllocators', | ||
36 | nsversion : api_version, | ||
37 | @@ -33,7 +33,8 @@ if build_gir | ||
38 | install : true, | ||
39 | extra_args : gst_gir_extra_args, | ||
40 | dependencies : [gst_dep] | ||
41 | - )] | ||
42 | + ) | ||
43 | + allocators_gen_sources += allocators_gir | ||
44 | endif | ||
45 | |||
46 | allocators_dep = declare_dependency(link_with: gstallocators, | ||
47 | diff --git a/gst-libs/gst/app/meson.build b/gst-libs/gst/app/meson.build | ||
48 | index 81dd0f42c..7a90f5e10 100644 | ||
49 | --- a/gst-libs/gst/app/meson.build | ||
50 | +++ b/gst-libs/gst/app/meson.build | ||
51 | @@ -32,7 +32,7 @@ gstapp = library('gstapp-@0@'.format(api_version), | ||
52 | |||
53 | if build_gir | ||
54 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ] | ||
55 | - app_gen_sources += [gnome.generate_gir(gstapp, | ||
56 | + app_gir = gnome.generate_gir(gstapp, | ||
57 | sources : app_sources + app_headers + [gstapp_c] + [gstapp_h], | ||
58 | namespace : 'GstApp', | ||
59 | nsversion : api_version, | ||
60 | @@ -43,7 +43,9 @@ if build_gir | ||
61 | install : true, | ||
62 | extra_args : gst_gir_extra_args, | ||
63 | dependencies : [gst_dep, gst_base_dep] | ||
64 | - )] | ||
65 | + ) | ||
66 | + | ||
67 | + app_gen_sources += app_gir | ||
68 | endif | ||
69 | |||
70 | app_dep = declare_dependency(link_with: gstapp, | ||
71 | diff --git a/gst-libs/gst/audio/meson.build b/gst-libs/gst/audio/meson.build | ||
72 | index 0e4efab2e..2a449d4bf 100644 | ||
73 | --- a/gst-libs/gst/audio/meson.build | ||
74 | +++ b/gst-libs/gst/audio/meson.build | ||
75 | @@ -153,7 +153,7 @@ gstaudio = library('gstaudio-@0@'.format(api_version), | ||
76 | |||
77 | if build_gir | ||
78 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/audio/audio.h' ] | ||
79 | - audio_gen_sources += [gnome.generate_gir(gstaudio, | ||
80 | + audio_gir = gnome.generate_gir(gstaudio, | ||
81 | sources : audio_src + audio_headers + [gstaudio_c] + [gstaudio_h], | ||
82 | namespace : 'GstAudio', | ||
83 | nsversion : api_version, | ||
84 | @@ -164,7 +164,8 @@ if build_gir | ||
85 | install : true, | ||
86 | extra_args : gst_gir_extra_args, | ||
87 | dependencies : gstaudio_deps | ||
88 | - )] | ||
89 | + ) | ||
90 | + audio_gen_sources += [audio_gir] | ||
91 | endif | ||
92 | |||
93 | audio_dep = declare_dependency(link_with : gstaudio, | ||
94 | diff --git a/gst-libs/gst/pbutils/meson.build b/gst-libs/gst/pbutils/meson.build | ||
95 | index 2faf62622..0e96722fd 100644 | ||
96 | --- a/gst-libs/gst/pbutils/meson.build | ||
97 | +++ b/gst-libs/gst/pbutils/meson.build | ||
98 | @@ -63,7 +63,7 @@ pbutils = library('gstpbutils-@0@'.format(api_version), | ||
99 | pbutils_gen_sources = [gstpbutils_h, gst_pbutils_version_h] | ||
100 | if build_gir | ||
101 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/pbutils/pbutils.h' ] | ||
102 | - pbutils_gen_sources += [gnome.generate_gir(pbutils, | ||
103 | + pbutils_gir = gnome.generate_gir(pbutils, | ||
104 | sources : pbutils_sources + pbutils_headers + [gstpbutils_h, gst_pbutils_version_h], | ||
105 | namespace : 'GstPbutils', | ||
106 | nsversion : api_version, | ||
107 | @@ -74,7 +74,8 @@ if build_gir | ||
108 | install : true, | ||
109 | extra_args : gst_gir_extra_args, | ||
110 | dependencies : gstpbutils_deps | ||
111 | - )] | ||
112 | + ) | ||
113 | + pbutils_gen_sources += [pbutils_gir] | ||
114 | endif | ||
115 | |||
116 | pbutils_dep = declare_dependency(link_with : pbutils, | ||
117 | diff --git a/gst-libs/gst/rtp/meson.build b/gst-libs/gst/rtp/meson.build | ||
118 | index f47ec6592..7ea6658d5 100644 | ||
119 | --- a/gst-libs/gst/rtp/meson.build | ||
120 | +++ b/gst-libs/gst/rtp/meson.build | ||
121 | @@ -49,7 +49,7 @@ gst_rtp = library('gstrtp-@0@'.format(api_version), | ||
122 | rtp_gen_sources = [gstrtp_enum_h] | ||
123 | if build_gir | ||
124 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ] | ||
125 | - rtp_gen_sources += [gnome.generate_gir(gst_rtp, | ||
126 | + rtp_gir = gnome.generate_gir(gst_rtp, | ||
127 | sources : rtp_sources + rtp_headers + [gstrtp_enum_c] + [gstrtp_enum_h], | ||
128 | namespace : 'GstRtp', | ||
129 | nsversion : api_version, | ||
130 | @@ -60,7 +60,9 @@ if build_gir | ||
131 | install : true, | ||
132 | extra_args : gst_gir_extra_args, | ||
133 | dependencies : gstrtp_deps | ||
134 | - )] | ||
135 | + ) | ||
136 | + | ||
137 | + rtp_gen_sources += [rtp_gir] | ||
138 | endif | ||
139 | |||
140 | |||
141 | diff --git a/gst-libs/gst/rtsp/meson.build b/gst-libs/gst/rtsp/meson.build | ||
142 | index 27e309d5a..3632adceb 100644 | ||
143 | --- a/gst-libs/gst/rtsp/meson.build | ||
144 | +++ b/gst-libs/gst/rtsp/meson.build | ||
145 | @@ -54,7 +54,7 @@ gst_rtsp = library('gstrtsp-@0@'.format(api_version), | ||
146 | rtsp_gen_sources = [gstrtsp_h] | ||
147 | if build_gir | ||
148 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtsp/rtsp.h' ] | ||
149 | - rtsp_gen_sources += [gnome.generate_gir(gst_rtsp, | ||
150 | + rtsp_gir = gnome.generate_gir(gst_rtsp, | ||
151 | sources : rtsp_sources + rtsp_headers + [gstrtsp_c] + [gstrtsp_h], | ||
152 | namespace : 'GstRtsp', | ||
153 | nsversion : api_version, | ||
154 | @@ -65,7 +65,8 @@ if build_gir | ||
155 | install : true, | ||
156 | extra_args : gst_gir_extra_args, | ||
157 | dependencies : gstrtsp_deps + [sdp_dep] | ||
158 | - )] | ||
159 | + ) | ||
160 | + rtsp_gen_sources += [rtsp_gir] | ||
161 | endif | ||
162 | |||
163 | rtsp_dep = declare_dependency(link_with : gst_rtsp, | ||
164 | diff --git a/gst-libs/gst/sdp/meson.build b/gst-libs/gst/sdp/meson.build | ||
165 | index 62c18b732..24cdb5293 100644 | ||
166 | --- a/gst-libs/gst/sdp/meson.build | ||
167 | +++ b/gst-libs/gst/sdp/meson.build | ||
168 | @@ -23,7 +23,7 @@ gstsdp = library('gstsdp-@0@'.format(api_version), | ||
169 | sdp_gen_sources = [] | ||
170 | if build_gir | ||
171 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/sdp/sdp.h' ] | ||
172 | - sdp_gen_sources += [gnome.generate_gir(gstsdp, | ||
173 | + sdp_gir = gnome.generate_gir(gstsdp, | ||
174 | sources : gst_sdp_sources + gst_sdp_headers, | ||
175 | namespace : 'GstSdp', | ||
176 | nsversion : api_version, | ||
177 | @@ -34,7 +34,9 @@ if build_gir | ||
178 | install : true, | ||
179 | extra_args : gst_gir_extra_args, | ||
180 | dependencies : rtsp_deps | ||
181 | - )] | ||
182 | + ) | ||
183 | + | ||
184 | + sdp_gen_sources += [sdp_gir] | ||
185 | endif | ||
186 | |||
187 | sdp_dep = declare_dependency(link_with: gstsdp, | ||
188 | diff --git a/gst-libs/gst/tag/meson.build b/gst-libs/gst/tag/meson.build | ||
189 | index 27e66fd63..5ec37392a 100644 | ||
190 | --- a/gst-libs/gst/tag/meson.build | ||
191 | +++ b/gst-libs/gst/tag/meson.build | ||
192 | @@ -93,7 +93,7 @@ gsttag = library('gsttag-@0@'.format(api_version), | ||
193 | |||
194 | if build_gir | ||
195 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/tag/tag.h' ] | ||
196 | - tag_gen_sources += [gnome.generate_gir(gsttag, | ||
197 | + tag_gir = gnome.generate_gir(gsttag, | ||
198 | sources : tag_sources + tag_headers + [gsttag_h] + [gsttag_c], | ||
199 | namespace : 'GstTag', | ||
200 | nsversion : api_version, | ||
201 | @@ -104,7 +104,8 @@ if build_gir | ||
202 | install : true, | ||
203 | extra_args : gst_gir_extra_args, | ||
204 | dependencies : tag_deps | ||
205 | - )] | ||
206 | + ) | ||
207 | + tag_gen_sources += [tag_gir] | ||
208 | endif | ||
209 | |||
210 | tag_dep = declare_dependency(link_with: gsttag, | ||
211 | diff --git a/gst-libs/gst/video/meson.build b/gst-libs/gst/video/meson.build | ||
212 | index b4dfcdf65..036c3a6a7 100644 | ||
213 | --- a/gst-libs/gst/video/meson.build | ||
214 | +++ b/gst-libs/gst/video/meson.build | ||
215 | @@ -135,7 +135,7 @@ gstvideo = library('gstvideo-@0@'.format(api_version), | ||
216 | |||
217 | if build_gir | ||
218 | gst_gir_extra_args = gir_init_section + [ '--c-include=gst/video/video.h' ] | ||
219 | - video_gen_sources += [gnome.generate_gir(gstvideo, | ||
220 | + video_gir = gnome.generate_gir(gstvideo, | ||
221 | sources : video_sources + video_headers + [gstvideo_c] + [gstvideo_h], | ||
222 | namespace : 'GstVideo', | ||
223 | nsversion : api_version, | ||
224 | @@ -146,7 +146,8 @@ if build_gir | ||
225 | install : true, | ||
226 | extra_args : gst_gir_extra_args, | ||
227 | dependencies : gstvideo_deps | ||
228 | - )] | ||
229 | + ) | ||
230 | + video_gen_sources += [video_gir] | ||
231 | endif | ||
232 | |||
233 | video_dep = declare_dependency(link_with : gstvideo, | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0005-viv-fb-Make-sure-config.h-is-included.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch index 731ba873..b8fc8827 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0005-viv-fb-Make-sure-config.h-is-included.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-viv-fb-Make-sure-config.h-is-included.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 616cf194dfd26818ed7b776321582b8e0ff9b3f1 Mon Sep 17 00:00:00 2001 | 1 | From 70a702af3a3a4afcadbc53d61c4c45f31f96b2cc Mon Sep 17 00:00:00 2001 |
2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | 2 | From: Carlos Rafael Giani <crg7475@mailbox.org> |
3 | Date: Tue, 21 May 2019 14:01:11 +0200 | 3 | Date: Tue, 21 May 2019 14:01:11 +0200 |
4 | Subject: [PATCH] viv-fb: Make sure config.h is included | 4 | Subject: [PATCH] viv-fb: Make sure config.h is included |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0009-glimagesink-Downrank-to-marginal.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0004-glimagesink-Downrank-to-marginal.patch index fc67a486..94a61465 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0009-glimagesink-Downrank-to-marginal.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0004-glimagesink-Downrank-to-marginal.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f18f1206ec44f4154e60546ecb82823f7a6569d7 Mon Sep 17 00:00:00 2001 | 1 | From b975be9c4630536ec1315773be29900371d21930 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Thu, 24 Sep 2015 19:47:32 +0300 | 3 | Date: Thu, 24 Sep 2015 19:47:32 +0300 |
4 | Subject: [PATCH] glimagesink: Downrank to marginal | 4 | Subject: [PATCH] glimagesink: Downrank to marginal |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/4ef5c91697a141fea7317aff7f0f28e5a861db99.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/4ef5c91697a141fea7317aff7f0f28e5a861db99.patch new file mode 100644 index 00000000..0fa3dd30 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/4ef5c91697a141fea7317aff7f0f28e5a861db99.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 1718197bf6ebf3d8784a55126609aa8770fff682 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xavier Claessens <xavier.claessens@collabora.com> | ||
3 | Date: Mon, 26 Apr 2021 14:25:03 -0400 | ||
4 | Subject: [PATCH] gstgl: Fix build when Meson >= 0.58.0rc1 | ||
5 | |||
6 | "implicit_include_directories: false" now also means that current build | ||
7 | directory is not added to include paths by default any more. We have to | ||
8 | add it manually because we have some custom_target() that generate | ||
9 | headers in current build directory. | ||
10 | |||
11 | See https://github.com/mesonbuild/meson/issues/8700. | ||
12 | |||
13 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1125> | ||
14 | Upstream-Status: Backport | ||
15 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
16 | |||
17 | --- | ||
18 | gst-libs/gst/gl/meson.build | 15 ++++++++++++--- | ||
19 | 1 file changed, 12 insertions(+), 3 deletions(-) | ||
20 | |||
21 | diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build | ||
22 | index ae19d7aca..3ad7ddcf6 100644 | ||
23 | --- a/gst-libs/gst/gl/meson.build | ||
24 | +++ b/gst-libs/gst/gl/meson.build | ||
25 | @@ -1023,11 +1023,20 @@ if build_gstgl | ||
26 | command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@']) | ||
27 | gen_sources = [gl_enumtypes_h] | ||
28 | |||
29 | + common_args = gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'] | ||
30 | + | ||
31 | + # We have custom_target() that generate headers in the current build dir, | ||
32 | + # but with implicit_include_directories: false, meson >= 0.58.0 won't include | ||
33 | + # it by default. We cannot use include_directories('.') here because it would | ||
34 | + # also include current source dir which is what we want to avoid because | ||
35 | + # case-insensitive FS would include gst-libs/gl/egl/egl.h as EGL/egl.h. | ||
36 | + common_args += '-I@0@'.format(meson.current_build_dir()) | ||
37 | + | ||
38 | gstgl = library('gstgl-' + api_version, | ||
39 | gl_sources, gl_egl_sources, gl_x11_sources, gl_wayland_sources, gl_priv_sources, gl_enumtypes_c, gl_enumtypes_h, | ||
40 | - c_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'], | ||
41 | - cpp_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'], | ||
42 | - objc_args : gst_plugins_base_args + gl_cpp_args + gl_objc_args + ['-DBUILDING_GST_GL'], | ||
43 | + c_args : common_args, | ||
44 | + cpp_args : common_args, | ||
45 | + objc_args : common_args + gl_objc_args, | ||
46 | include_directories : [configinc, libsinc, gl_includes], | ||
47 | version : libversion, | ||
48 | soversion : soversion, | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.%.bbappend deleted file mode 100644 index d92bdf3c..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.%.bbappend +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)}" | ||
2 | PACKAGECONFIG_GL_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
3 | |||
4 | # For mainline BSP we need to enable 'gbm' Window system | ||
5 | PACKAGECONFIG_GL_use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl gbm', '', d)}" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.%.bbappend new file mode 100644 index 00000000..1c62f31d --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.%.bbappend | |||
@@ -0,0 +1,5 @@ | |||
1 | PACKAGECONFIG_GL:imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)}" | ||
2 | PACKAGECONFIG_GL:imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
3 | |||
4 | # For mainline BSP we need to enable 'gbm' Window system | ||
5 | PACKAGECONFIG_GL:use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl gbm', '', d)}" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.2.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.0.imx.bb index db0b740f..142e0ba5 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.16.2.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.0.imx.bb | |||
@@ -1,28 +1,26 @@ | |||
1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
2 | 2 | ||
3 | DESCRIPTION = "'Base' GStreamer plugins and helper libraries" | ||
4 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
5 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues" | ||
3 | LICENSE = "GPLv2+ & LGPLv2+" | 6 | LICENSE = "GPLv2+ & LGPLv2+" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d" |
5 | file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607" | ||
6 | 8 | ||
7 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-base.git;protocol=https" | 9 | GST1.0-PLUGINS-BASE_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-base.git;protocol=https" |
8 | SRCBRANCH = "MM_04.05.06_2008_L5.4.47" | 10 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
9 | SRCREV = "3c4aa2a58576d68f6e684efa58609665679c9969" | ||
10 | SRC_URI = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} \ | 11 | SRC_URI = "${GST1.0-PLUGINS-BASE_SRC};branch=${SRCBRANCH} \ |
11 | file://0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | 12 | file://0003-viv-fb-Make-sure-config.h-is-included.patch \ |
12 | file://0001-gstreamer-plugins-base-fix-meson-build-in-nxp-fork.patch \ | 13 | file://0004-glimagesink-Downrank-to-marginal.patch \ |
13 | file://0002-meson-Add-variables-for-gir-files.patch \ | 14 | file://4ef5c91697a141fea7317aff7f0f28e5a861db99.patch \ |
14 | file://0005-viv-fb-Make-sure-config.h-is-included.patch \ | ||
15 | file://0009-glimagesink-Downrank-to-marginal.patch \ | ||
16 | file://0001-gst-libs-gst-gl-wayland-fix-meson-build.patch \ | ||
17 | file://0001-meson-viv-fb-code-must-link-against-libg2d.patch \ | ||
18 | " | 15 | " |
16 | SRCREV = "69554a26c932481acb7c5691038c367eca60e5bc" | ||
19 | 17 | ||
20 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
21 | 19 | ||
22 | DEPENDS += "iso-codes util-linux zlib" | 20 | DEPENDS += "iso-codes util-linux zlib" |
23 | DEPENDS_append_imxgpu2d = " virtual/libg2d" | 21 | DEPENDS:append:imxgpu2d = " virtual/libg2d" |
24 | 22 | ||
25 | inherit use-imx-headers gobject-introspection gtk-doc | 23 | inherit gobject-introspection use-imx-headers |
26 | 24 | ||
27 | DEFAULT_PREFERENCE = "-1" | 25 | DEFAULT_PREFERENCE = "-1" |
28 | 26 | ||
@@ -36,7 +34,7 @@ PACKAGECONFIG ??= " \ | |||
36 | ${GSTREAMER_ORC} \ | 34 | ${GSTREAMER_ORC} \ |
37 | ${PACKAGECONFIG_GL} \ | 35 | ${PACKAGECONFIG_GL} \ |
38 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ | 36 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa x11', d)} \ |
39 | ogg pango png theora vorbis \ | 37 | jpeg ogg pango png theora vorbis \ |
40 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ | 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)} \ |
41 | " | 39 | " |
42 | 40 | ||
@@ -71,24 +69,22 @@ PACKAGECONFIG[egl] = ",,virtual/egl" | |||
71 | # OpenGL window systems (except for X11) | 69 | # OpenGL window systems (except for X11) |
72 | PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" | 70 | PACKAGECONFIG[gbm] = ",,virtual/libgbm libgudev libdrm" |
73 | PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" | 71 | PACKAGECONFIG[wayland] = ",,wayland-native wayland wayland-protocols libdrm" |
72 | PACKAGECONFIG[dispmanx] = ",,virtual/libomxil" | ||
74 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d" | 73 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2 virtual/libg2d" |
75 | 74 | ||
75 | OPENGL_WINSYS = "${@bb.utils.filter('PACKAGECONFIG', 'x11 gbm wayland dispmanx egl viv-fb', d)}" | ||
76 | |||
76 | EXTRA_OEMESON += " \ | 77 | EXTRA_OEMESON += " \ |
78 | -Ddoc=disabled \ | ||
77 | -Dgl-graphene=disabled \ | 79 | -Dgl-graphene=disabled \ |
78 | ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ | 80 | ${@get_opengl_cmdline_list('gl_api', d.getVar('OPENGL_APIS'), d)} \ |
79 | ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ | 81 | ${@get_opengl_cmdline_list('gl_platform', d.getVar('OPENGL_PLATFORMS'), d)} \ |
80 | ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ | 82 | ${@get_opengl_cmdline_list('gl_winsys', d.getVar('OPENGL_WINSYS'), d)} \ |
81 | -Dextra_imx_incdir=${STAGING_INCDIR_IMX} \ | 83 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ |
82 | " | 84 | " |
83 | 85 | ||
84 | GTKDOC_MESON_OPTION = "gtk_doc" | 86 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/include/gst/gl/gstglconfig.h" |
85 | GTKDOC_MESON_ENABLE_FLAG = "enabled" | 87 | FILES:${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" |
86 | GTKDOC_MESON_DISABLE_FLAG = "disabled" | ||
87 | |||
88 | FILES_${PN} += "${libdir}/gstreamer-1.0/include" | ||
89 | FILES_${MLPREFIX}libgsttag-1.0 += "${datadir}/gst-plugins-base/1.0/license-translations.dict" | ||
90 | |||
91 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
92 | 88 | ||
93 | def get_opengl_cmdline_list(switch_name, options, d): | 89 | def get_opengl_cmdline_list(switch_name, options, d): |
94 | selected_options = [] | 90 | selected_options = [] |
@@ -100,3 +96,7 @@ def get_opengl_cmdline_list(switch_name, options, d): | |||
100 | return '-D' + switch_name + '=' + ','.join(selected_options) | 96 | return '-D' + switch_name + '=' + ','.join(selected_options) |
101 | else: | 97 | else: |
102 | return '' | 98 | return '' |
99 | |||
100 | CVE_PRODUCT += "gst-plugins-base" | ||
101 | |||
102 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend deleted file mode 100644 index 8565c6a5..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | PACKAGECONFIG_GL_imxgpu2d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)}" | ||
2 | PACKAGECONFIG_GL_imxgpu3d = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
3 | PACKAGECONFIG_GL_use-mainline-bsp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 egl', '', d)}" | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.0.imx.bb index 8413bf10..706fdb61 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.0.imx.bb | |||
@@ -1,13 +1,12 @@ | |||
1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
2 | 2 | ||
3 | |||
4 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-good.git;protocol=https" | 3 | GST1.0-PLUGINS-GOOD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-good.git;protocol=https" |
5 | SRCBRANCH = "MM_04.05.07_2011_L5.4.70" | 4 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
6 | 5 | ||
7 | SRC_URI = " \ | 6 | SRC_URI = " \ |
8 | ${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} \ | 7 | ${GST1.0-PLUGINS-GOOD_SRC};branch=${SRCBRANCH} \ |
9 | " | 8 | " |
10 | SRCREV = "6005e8199ea19878f269b058ffbbbcaa314472d8" | 9 | SRCREV = "3160acd37304f67238b8ceae2a95ee4951f9c718" |
11 | 10 | ||
12 | DEFAULT_PREFERENCE = "-1" | 11 | DEFAULT_PREFERENCE = "-1" |
13 | 12 | ||
@@ -15,12 +14,11 @@ S = "${WORKDIR}/git" | |||
15 | 14 | ||
16 | LICENSE = "GPLv2+ & LGPLv2.1+" | 15 | LICENSE = "GPLv2+ & LGPLv2.1+" |
17 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 16 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
18 | file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=a4e1830fce078028c8f0974161272607 \ | ||
19 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" | 17 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" |
20 | 18 | ||
21 | DEPENDS += "gstreamer1.0-plugins-base libcap zlib" | 19 | DEPENDS += "gstreamer1.0-plugins-base libcap zlib" |
22 | RPROVIDES_${PN}-pulseaudio += "${PN}-pulse" | 20 | RPROVIDES:${PN}-pulseaudio += "${PN}-pulse" |
23 | RPROVIDES_${PN}-soup += "${PN}-souphttpsrc" | 21 | RPROVIDES:${PN}-soup += "${PN}-souphttpsrc" |
24 | 22 | ||
25 | PACKAGECONFIG ??= " \ | 23 | PACKAGECONFIG ??= " \ |
26 | ${GSTREAMER_ORC} \ | 24 | ${GSTREAMER_ORC} \ |
@@ -74,6 +72,6 @@ EXTRA_OEMESON += " \ | |||
74 | -Dwaveform=disabled \ | 72 | -Dwaveform=disabled \ |
75 | " | 73 | " |
76 | 74 | ||
77 | FILES_${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs" | 75 | FILES:${PN}-equalizer += "${datadir}/gstreamer-1.0/presets/*.prs" |
78 | 76 | ||
79 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 77 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb index 7c6025dd..26f25d72 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_2.0.0.bb | |||
@@ -8,9 +8,9 @@ DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base libimxdmabuffer" | |||
8 | # for the uniaudio decoder, videoparsersbad for the VPU video decoder | 8 | # for the uniaudio decoder, videoparsersbad for the VPU video decoder |
9 | # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is | 9 | # the gstreamer1.0-plugins-imx RDEPENDS is necessary to ensure the -good recipe is |
10 | # built (it is not a compile-time dependency however, hence RDEPENDS and not DEPENDS) | 10 | # built (it is not a compile-time dependency however, hence RDEPENDS and not DEPENDS) |
11 | RDEPENDS_gstreamer1.0-plugins-imx = "gstreamer1.0-plugins-good gstreamer1.0-plugins-bad" | 11 | RDEPENDS:gstreamer1.0-plugins-imx = "gstreamer1.0-plugins-good gstreamer1.0-plugins-bad" |
12 | RDEPENDS_gstreamer1.0-plugins-imx-imxaudio = "gstreamer1.0-plugins-good-audioparsers" | 12 | RDEPENDS:gstreamer1.0-plugins-imx-imxaudio = "gstreamer1.0-plugins-good-audioparsers" |
13 | RDEPENDS_gstreamer1.0-plugins-imx-imxvpu = "gstreamer1.0-plugins-bad-videoparsersbad" | 13 | RDEPENDS:gstreamer1.0-plugins-imx-imxvpu = "gstreamer1.0-plugins-bad-videoparsersbad" |
14 | 14 | ||
15 | PV .= "+git${SRCPV}" | 15 | PV .= "+git${SRCPV}" |
16 | 16 | ||
@@ -28,22 +28,22 @@ inherit pkgconfig meson use-imx-headers | |||
28 | # is needed to improve performance. | 28 | # is needed to improve performance. |
29 | LIBG2D_DPU_OPTION = "-Dg2d-based-on-dpu=false" | 29 | LIBG2D_DPU_OPTION = "-Dg2d-based-on-dpu=false" |
30 | LIBG2D_DEPENDENCIES = "virtual/libg2d" | 30 | LIBG2D_DEPENDENCIES = "virtual/libg2d" |
31 | LIBG2D_DPU_OPTION_imxdpu = "-Dg2d-based-on-dpu=true" | 31 | LIBG2D_DPU_OPTION:imxdpu = "-Dg2d-based-on-dpu=true" |
32 | LIBG2D_DEPENDENCIES_imxdpu = "virtual/libg2d libdrm" | 32 | LIBG2D_DEPENDENCIES:imxdpu = "virtual/libg2d libdrm" |
33 | 33 | ||
34 | EXTRA_OEMESON += "-Dimx-headers-path=${STAGING_INCDIR_IMX}" | 34 | EXTRA_OEMESON += "-Dimx-headers-path=${STAGING_INCDIR_IMX}" |
35 | 35 | ||
36 | PACKAGECONFIG ?= "uniaudiodec" | 36 | PACKAGECONFIG ?= "uniaudiodec" |
37 | PACKAGECONFIG_append_imxgpu2d = " g2d" | 37 | PACKAGECONFIG:append:imxgpu2d = " g2d" |
38 | PACKAGECONFIG_append_imxvpu = " vpu" | 38 | PACKAGECONFIG:append:imxvpu = " vpu" |
39 | PACKAGECONFIG_append_imxipu = " ipu" | 39 | PACKAGECONFIG:append:imxipu = " ipu" |
40 | PACKAGECONFIG_append_imxpxp = " pxp" | 40 | PACKAGECONFIG:append:imxpxp = " pxp" |
41 | # The custom imxv4l2 elements are only available on the i.MX6. | 41 | # The custom imxv4l2 elements are only available on the i.MX6. |
42 | # The 2D blitter sinks require an MXC framebuffer, which | 42 | # The 2D blitter sinks require an MXC framebuffer, which |
43 | # is not available anymore on the i.MX8 (since these SoCs | 43 | # is not available anymore on the i.MX8 (since these SoCs |
44 | # now use KMS instead of the old Linux framebuffer). | 44 | # now use KMS instead of the old Linux framebuffer). |
45 | PACKAGECONFIG_append_mx6 = " imx2dvideosink v4l2" | 45 | PACKAGECONFIG:append:mx6 = " imx2dvideosink v4l2" |
46 | PACKAGECONFIG_append_mx7 = " imx2dvideosink" | 46 | PACKAGECONFIG:append:mx7 = " imx2dvideosink" |
47 | 47 | ||
48 | PACKAGECONFIG[g2d] = "-Dg2d=enabled ${LIBG2D_DPU_OPTION},-Dg2d=disabled,${LIBG2D_DEPENDENCIES}" | 48 | PACKAGECONFIG[g2d] = "-Dg2d=enabled ${LIBG2D_DPU_OPTION},-Dg2d=disabled,${LIBG2D_DEPENDENCIES}" |
49 | PACKAGECONFIG[pxp] = "-Dpxp=enabled,-Dpxp=disabled," | 49 | PACKAGECONFIG[pxp] = "-Dpxp=enabled,-Dpxp=disabled," |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.16.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.18.0.bb index 2a1cc3fd..65ac1636 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.16.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.18.0.bb | |||
@@ -1,5 +1,9 @@ | |||
1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc | 1 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc |
2 | 2 | ||
3 | DESCRIPTION = "'Ugly GStreamer plugins" | ||
4 | HOMEPAGE = "https://gstreamer.freedesktop.org/" | ||
5 | BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/issues" | ||
6 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
4 | file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068" | 8 | file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068" |
5 | 9 | ||
@@ -7,10 +11,9 @@ LICENSE = "GPLv2+ & LGPLv2.1+ & LGPLv2+" | |||
7 | LICENSE_FLAGS = "commercial" | 11 | LICENSE_FLAGS = "commercial" |
8 | 12 | ||
9 | SRC_URI = " \ | 13 | SRC_URI = " \ |
10 | http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ | 14 | https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.xz \ |
11 | " | 15 | " |
12 | SRC_URI[md5sum] = "1ec343c58d4b17d682f7befa8453c11c" | 16 | SRC_URI[sha256sum] = "686644e45e08258ae240c4519376668ad8d34ea6d0f6ab556473c317bfb7e082" |
13 | SRC_URI[sha256sum] = "e30964c5f031c32289e0b25e176c3c95a5737f2052dfc81d0f7427ef0233a4c2" | ||
14 | 17 | ||
15 | S = "${WORKDIR}/gst-plugins-ugly-${PV}" | 18 | S = "${WORKDIR}/gst-plugins-ugly-${PV}" |
16 | 19 | ||
@@ -32,8 +35,9 @@ PACKAGECONFIG[mpeg2dec] = "-Dmpeg2dec=enabled,-Dmpeg2dec=disabled,mpeg2dec" | |||
32 | PACKAGECONFIG[x264] = "-Dx264=enabled,-Dx264=disabled,x264" | 35 | PACKAGECONFIG[x264] = "-Dx264=enabled,-Dx264=disabled,x264" |
33 | 36 | ||
34 | EXTRA_OEMESON += " \ | 37 | EXTRA_OEMESON += " \ |
38 | -Ddoc=disabled \ | ||
35 | -Dsidplay=disabled \ | 39 | -Dsidplay=disabled \ |
36 | " | 40 | " |
37 | 41 | ||
38 | FILES_${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" | 42 | FILES:${PN}-amrnb += "${datadir}/gstreamer-1.0/presets/GstAmrnbEnc.prs" |
39 | FILES_${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" | 43 | FILES:${PN}-x264 += "${datadir}/gstreamer-1.0/presets/GstX264Enc.prs" |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc b/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc deleted file mode 100644 index b6980670..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | inherit ptest-gnome | ||
2 | |||
3 | TEST_FILES_PATH = "${datadir}/installed-tests/gstreamer-1.0/test-files" | ||
4 | RUN_PTEST_FILE = "${D}${PTEST_PATH}/run-ptest" | ||
5 | |||
6 | EXTRA_OEMESON += "-Dtest-files-path=${TEST_FILES_PATH}" | ||
7 | |||
8 | GST_TEST_SUITE_NAME ?= "gstreamer-1.0" | ||
9 | |||
10 | # Using do_install_ptest_base instead of do_install_ptest, since | ||
11 | # the default do_install_ptest_base is hardcoded to expect Makefiles. | ||
12 | do_install_ptest_base() { | ||
13 | # Generate run-ptest file | ||
14 | echo "#!/usr/bin/env sh" > "${RUN_PTEST_FILE}" | ||
15 | echo "gnome-desktop-testing-runner ${GST_TEST_SUITE_NAME}" >> "${RUN_PTEST_FILE}" | ||
16 | chmod 0755 "${RUN_PTEST_FILE}" | ||
17 | |||
18 | # Install additional files required by tests | ||
19 | if [ -d "${S}/tests/files" ] ; then | ||
20 | install -d "${D}/${TEST_FILES_PATH}" | ||
21 | install -m 0644 "${S}/tests/files"/* "${D}/${TEST_FILES_PATH}" | ||
22 | fi | ||
23 | } | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.16.0.bb b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.18.0.bb index 0a3c35ff..4ac30c28 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.16.0.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.18.0.bb | |||
@@ -8,12 +8,11 @@ DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base" | |||
8 | 8 | ||
9 | PNREAL = "gst-rtsp-server" | 9 | PNREAL = "gst-rtsp-server" |
10 | 10 | ||
11 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz \ | 11 | SRC_URI = "https://gstreamer.freedesktop.org/src/${PNREAL}/${PNREAL}-${PV}.tar.xz \ |
12 | file://0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | ||
13 | " | 12 | " |
14 | 13 | ||
15 | SRC_URI[md5sum] = "adc4460239ec2eccf58ad9752ce53bfd" | 14 | SRC_URI[md5sum] = "77fe28c702a83566811ab5c7bbe99ab2" |
16 | SRC_URI[sha256sum] = "198e9eec1a3e32dc810d3fbf3a714850a22c6288d4a5c8e802c5ff984af03f19" | 15 | SRC_URI[sha256sum] = "2ad19311054cbf2df0d0622936bc703dedc06ced706df46a3d3a3ea5a4b7c70f" |
17 | 16 | ||
18 | S = "${WORKDIR}/${PNREAL}-${PV}" | 17 | S = "${WORKDIR}/${PNREAL}-${PV}" |
19 | 18 | ||
@@ -28,5 +27,4 @@ GIR_MESON_ENABLE_FLAG = "enabled" | |||
28 | GIR_MESON_DISABLE_FLAG = "disabled" | 27 | GIR_MESON_DISABLE_FLAG = "disabled" |
29 | 28 | ||
30 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well | 29 | # Starting with 1.8.0 gst-rtsp-server includes dependency-less plugins as well |
31 | LIBV = "1.0" | ||
32 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc | 30 | require recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch index 67a872cd..23ebd5c6 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch | |||
@@ -1,25 +1,44 @@ | |||
1 | From a1d7c582392c8bc87fa9411af77b20e011944357 Mon Sep 17 00:00:00 2001 | 1 | From fd8f49dba8c09d47425da80f5faab3bfa4a7c962 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Jose Quaresma <quaresma.jose@gmail.com> |
3 | Date: Thu, 25 Jan 2018 17:55:02 +0200 | 3 | Date: Sat, 10 Oct 2020 19:09:03 +0000 |
4 | Subject: [PATCH] gst/gstpluginloader.c: when env var is set do not fall | 4 | Subject: [PATCH 1/3] gstpluginloader: when env var is set do not fall through |
5 | through to system plugin scanner | 5 | to system plugin scanner |
6 | 6 | ||
7 | If we set a custom GST_PLUGIN_SCANNER env var, then we probably want to use that and only that. | 7 | If we set a custom GST_PLUGIN_SCANNER env var, then we probably want to use that and only that. |
8 | 8 | ||
9 | Falling through to the one installed on the system is problamatic in cross-compilation | 9 | Falling through to the one installed on the system is problamatic in cross-compilation |
10 | environemnts, regardless of whether one pointed to by the env var succeeded or failed. | 10 | environemnts, regardless of whether one pointed to by the env var succeeded or failed. |
11 | 11 | ||
12 | Upstream-Status: Pending | 12 | taken from: |
13 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 13 | http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-multimedia/gstreamer/gstreamer1.0/0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch?id=0db7ba34ca41b107042306d13a6f0162885c123b |
14 | |||
15 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/669> | ||
16 | |||
17 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/9f958058697e6fbf5bde325228034572331d1a3a] | ||
18 | |||
19 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
14 | --- | 20 | --- |
15 | gst/gstpluginloader.c | 4 +--- | 21 | gst/gstpluginloader.c | 15 +++++++-------- |
16 | 1 file changed, 1 insertion(+), 3 deletions(-) | 22 | 1 file changed, 7 insertions(+), 8 deletions(-) |
17 | 23 | ||
18 | diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c | 24 | diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c |
19 | index 430829d..3a75731 100644 | 25 | index d1e404d98..c626bf263 100644 |
20 | --- a/gst/gstpluginloader.c | 26 | --- a/gst/gstpluginloader.c |
21 | +++ b/gst/gstpluginloader.c | 27 | +++ b/gst/gstpluginloader.c |
22 | @@ -471,9 +471,7 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) | 28 | @@ -464,20 +464,19 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) |
29 | if (loader->child_running) | ||
30 | return TRUE; | ||
31 | |||
32 | - /* Find the gst-plugin-scanner: first try the env-var if it is set, | ||
33 | - * otherwise use the installed version */ | ||
34 | + /* Find the gst-plugin-scanner */ | ||
35 | env = g_getenv ("GST_PLUGIN_SCANNER_1_0"); | ||
36 | if (env == NULL) | ||
37 | env = g_getenv ("GST_PLUGIN_SCANNER"); | ||
38 | |||
39 | if (env != NULL && *env != '\0') { | ||
40 | + /* use the env-var if it is set */ | ||
41 | GST_LOG ("Trying GST_PLUGIN_SCANNER env var: %s", env); | ||
23 | helper_bin = g_strdup (env); | 42 | helper_bin = g_strdup (env); |
24 | res = gst_plugin_loader_try_helper (loader, helper_bin); | 43 | res = gst_plugin_loader_try_helper (loader, helper_bin); |
25 | g_free (helper_bin); | 44 | g_free (helper_bin); |
@@ -27,9 +46,24 @@ index 430829d..3a75731 100644 | |||
27 | - | 46 | - |
28 | - if (!res) { | 47 | - if (!res) { |
29 | + } else { | 48 | + } else { |
49 | + /* use the installed version */ | ||
30 | GST_LOG ("Trying installed plugin scanner"); | 50 | GST_LOG ("Trying installed plugin scanner"); |
31 | 51 | ||
32 | #ifdef G_OS_WIN32 | 52 | #ifdef G_OS_WIN32 |
53 | @@ -497,10 +496,10 @@ gst_plugin_loader_spawn (GstPluginLoader * loader) | ||
54 | #endif | ||
55 | res = gst_plugin_loader_try_helper (loader, helper_bin); | ||
56 | g_free (helper_bin); | ||
57 | + } | ||
58 | |||
59 | - if (!res) { | ||
60 | - GST_INFO ("No gst-plugin-scanner available, or not working"); | ||
61 | - } | ||
62 | + if (!res) { | ||
63 | + GST_INFO ("No gst-plugin-scanner available, or not working"); | ||
64 | } | ||
65 | |||
66 | return loader->child_running; | ||
33 | -- | 67 | -- |
34 | 2.15.1 | 68 | 2.29.2 |
35 | 69 | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0002-Remove-unused-valgrind-detection.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0002-Remove-unused-valgrind-detection.patch new file mode 100644 index 00000000..96abef17 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0002-Remove-unused-valgrind-detection.patch | |||
@@ -0,0 +1,112 @@ | |||
1 | From 598d108e2c438d8f2ecd3bf948fa3ebbd3681490 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
3 | Date: Fri, 14 Aug 2020 16:38:26 +0100 | ||
4 | Subject: [PATCH 2/3] Remove unused valgrind detection | ||
5 | |||
6 | Having this just to log a debug message in case we're | ||
7 | running inside valgrind doesn't seem very useful, and | ||
8 | the code that used to use this no longer exists it seems. | ||
9 | |||
10 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/595> | ||
11 | |||
12 | Upstream-Status: Backport [a2cbf75523cdf8a4df1baa7007d86ef455972245] | ||
13 | |||
14 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
15 | --- | ||
16 | gst/gst_private.h | 2 -- | ||
17 | gst/gstinfo.c | 39 --------------------------------------- | ||
18 | meson.build | 1 - | ||
19 | 3 files changed, 42 deletions(-) | ||
20 | |||
21 | diff --git a/gst/gst_private.h b/gst/gst_private.h | ||
22 | index eefd044d9..8252ede51 100644 | ||
23 | --- a/gst/gst_private.h | ||
24 | +++ b/gst/gst_private.h | ||
25 | @@ -116,8 +116,6 @@ G_GNUC_INTERNAL gboolean _priv_plugin_deps_env_vars_changed (GstPlugin * plugin | ||
26 | |||
27 | G_GNUC_INTERNAL gboolean _priv_plugin_deps_files_changed (GstPlugin * plugin); | ||
28 | |||
29 | -G_GNUC_INTERNAL gboolean _priv_gst_in_valgrind (void); | ||
30 | - | ||
31 | /* init functions called from gst_init(). */ | ||
32 | G_GNUC_INTERNAL void _priv_gst_quarks_initialize (void); | ||
33 | G_GNUC_INTERNAL void _priv_gst_mini_object_initialize (void); | ||
34 | diff --git a/gst/gstinfo.c b/gst/gstinfo.c | ||
35 | index 5d317877b..097f8b20d 100644 | ||
36 | --- a/gst/gstinfo.c | ||
37 | +++ b/gst/gstinfo.c | ||
38 | @@ -305,36 +305,6 @@ static gboolean pretty_tags = PRETTY_TAGS_DEFAULT; | ||
39 | static volatile gint G_GNUC_MAY_ALIAS __default_level = GST_LEVEL_DEFAULT; | ||
40 | static volatile gint G_GNUC_MAY_ALIAS __use_color = GST_DEBUG_COLOR_MODE_ON; | ||
41 | |||
42 | -/* FIXME: export this? */ | ||
43 | -gboolean | ||
44 | -_priv_gst_in_valgrind (void) | ||
45 | -{ | ||
46 | - static enum | ||
47 | - { | ||
48 | - GST_VG_UNCHECKED, | ||
49 | - GST_VG_NO_VALGRIND, | ||
50 | - GST_VG_INSIDE | ||
51 | - } | ||
52 | - in_valgrind = GST_VG_UNCHECKED; | ||
53 | - | ||
54 | - if (in_valgrind == GST_VG_UNCHECKED) { | ||
55 | -#ifdef HAVE_VALGRIND_VALGRIND_H | ||
56 | - if (RUNNING_ON_VALGRIND) { | ||
57 | - GST_CAT_INFO (GST_CAT_GST_INIT, "we're running inside valgrind"); | ||
58 | - in_valgrind = GST_VG_INSIDE; | ||
59 | - } else { | ||
60 | - GST_CAT_LOG (GST_CAT_GST_INIT, "not doing extra valgrind stuff"); | ||
61 | - in_valgrind = GST_VG_NO_VALGRIND; | ||
62 | - } | ||
63 | -#else | ||
64 | - in_valgrind = GST_VG_NO_VALGRIND; | ||
65 | -#endif | ||
66 | - g_assert (in_valgrind == GST_VG_NO_VALGRIND || | ||
67 | - in_valgrind == GST_VG_INSIDE); | ||
68 | - } | ||
69 | - return (in_valgrind == GST_VG_INSIDE); | ||
70 | -} | ||
71 | - | ||
72 | static gchar * | ||
73 | _replace_pattern_in_gst_debug_file_name (gchar * name, const char *token, | ||
74 | guint val) | ||
75 | @@ -463,9 +433,6 @@ _priv_gst_debug_init (void) | ||
76 | _priv_GST_CAT_PROTECTION = | ||
77 | _gst_debug_category_new ("GST_PROTECTION", 0, "protection"); | ||
78 | |||
79 | - /* print out the valgrind message if we're in valgrind */ | ||
80 | - _priv_gst_in_valgrind (); | ||
81 | - | ||
82 | env = g_getenv ("GST_DEBUG_OPTIONS"); | ||
83 | if (env != NULL) { | ||
84 | if (strstr (env, "full_tags") || strstr (env, "full-tags")) | ||
85 | @@ -2503,12 +2470,6 @@ gst_debug_construct_win_color (guint colorinfo) | ||
86 | return 0; | ||
87 | } | ||
88 | |||
89 | -gboolean | ||
90 | -_priv_gst_in_valgrind (void) | ||
91 | -{ | ||
92 | - return FALSE; | ||
93 | -} | ||
94 | - | ||
95 | void | ||
96 | _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file, | ||
97 | const gchar * func, gint line, GObject * obj, const gchar * msg, | ||
98 | diff --git a/meson.build b/meson.build | ||
99 | index ce1921aa4..7a84d0981 100644 | ||
100 | --- a/meson.build | ||
101 | +++ b/meson.build | ||
102 | @@ -200,7 +200,6 @@ check_headers = [ | ||
103 | 'sys/wait.h', | ||
104 | 'ucontext.h', | ||
105 | 'unistd.h', | ||
106 | - 'valgrind/valgrind.h', | ||
107 | 'sys/resource.h', | ||
108 | 'sys/uio.h', | ||
109 | ] | ||
110 | -- | ||
111 | 2.29.2 | ||
112 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch deleted file mode 100644 index 1ed7198a..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 35db4a2433fbdf8612cf98b5aab5b14aeb5372f8 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> | ||
3 | Date: Thu, 17 Oct 2019 12:13:35 +0100 | ||
4 | Subject: [PATCH] meson: build gir even when cross-compiling if introspection | ||
5 | was enabled explicitly | ||
6 | |||
7 | This can be made to work in certain circumstances when | ||
8 | cross-compiling, so default to not building g-i stuff | ||
9 | when cross-compiling, but allow it if introspection was | ||
10 | enabled explicitly via -Dintrospection=enabled. | ||
11 | |||
12 | Fixes #454 and #381. | ||
13 | |||
14 | Upstream-Status: Backport [35db4a2433fbdf8612cf98b5aab5b14aeb5372f8] | ||
15 | |||
16 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
17 | --- | ||
18 | meson.build | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/meson.build b/meson.build | ||
22 | index 90d98d8eb..a47e7f34e 100644 | ||
23 | --- a/meson.build | ||
24 | +++ b/meson.build | ||
25 | @@ -466,7 +466,7 @@ rt_lib = cc.find_library('rt', required : false) | ||
26 | gir = find_program('g-ir-scanner', required : get_option('introspection')) | ||
27 | gnome = import('gnome') | ||
28 | |||
29 | -build_gir = gir.found() and not meson.is_cross_build() | ||
30 | +build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) | ||
31 | |||
32 | gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \ | ||
33 | 'g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);' + \ | ||
34 | -- | ||
35 | 2.17.1 | ||
36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch deleted file mode 100644 index f553340f..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0003-meson-Add-valgrind-feature.patch +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
1 | From f6c7973c03d9ba7dab60c496e768c5e6c4ee824c Mon Sep 17 00:00:00 2001 | ||
2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | ||
3 | Date: Sun, 20 Oct 2019 10:36:44 +0200 | ||
4 | Subject: [PATCH] meson: Add valgrind feature | ||
5 | |||
6 | This allows for enabling/disabling Valgrind support. Since Valgrind is | ||
7 | an external dependency, such a feature is needed by build environemnts | ||
8 | such as Yocto to make sure builds are deterministic. These changes also | ||
9 | add more Valgrind specific configure log output. | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
14 | --- | ||
15 | meson.build | 23 ++++++++++++++++++++++- | ||
16 | meson_options.txt | 1 + | ||
17 | 2 files changed, 23 insertions(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/meson.build b/meson.build | ||
20 | index b55ecc5..4751761 100644 | ||
21 | --- a/meson.build | ||
22 | +++ b/meson.build | ||
23 | @@ -199,7 +199,6 @@ check_headers = [ | ||
24 | 'sys/wait.h', | ||
25 | 'ucontext.h', | ||
26 | 'unistd.h', | ||
27 | - 'valgrind/valgrind.h', | ||
28 | 'sys/resource.h', | ||
29 | ] | ||
30 | |||
31 | @@ -214,6 +213,28 @@ foreach h : check_headers | ||
32 | endif | ||
33 | endforeach | ||
34 | |||
35 | +valgrind_option = get_option('valgrind') | ||
36 | +if valgrind_option.disabled() | ||
37 | + message('Valgrind support not requested; disabled.') | ||
38 | +else | ||
39 | + valgrind_header = 'valgrind/valgrind.h' | ||
40 | + has_valgrind_header = cc.has_header(valgrind_header) | ||
41 | + if has_valgrind_header | ||
42 | + message('Valgrind support requested, and header ' + valgrind_header + \ | ||
43 | + ' found. Enabled Valgrind support.') | ||
44 | + define = 'HAVE_' + valgrind_header.underscorify().to_upper() | ||
45 | + cdata.set(define, 1) | ||
46 | + else | ||
47 | + if valgrind_option.enabled() | ||
48 | + error('Valgrind support requested and set as required, but header ' + \ | ||
49 | + valgrind_header + ' not found.') | ||
50 | + else | ||
51 | + message('Valgrind support requested, but header ' + valgrind_header + \ | ||
52 | + ' not found. Disabling Valgrind support.') | ||
53 | + endif | ||
54 | + endif | ||
55 | +endif | ||
56 | + | ||
57 | if cc.has_member('struct tm', 'tm_gmtoff', prefix : '#include <time.h>') | ||
58 | cdata.set('HAVE_TM_GMTOFF', 1) | ||
59 | endif | ||
60 | diff --git a/meson_options.txt b/meson_options.txt | ||
61 | index e7ff7ba..8afde39 100644 | ||
62 | --- a/meson_options.txt | ||
63 | +++ b/meson_options.txt | ||
64 | @@ -19,6 +19,7 @@ option('memory-alignment', type: 'combo', | ||
65 | |||
66 | # Feature options | ||
67 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
68 | +option('valgrind', type : 'feature', value : 'auto', description : 'Enable Valgrind support') | ||
69 | option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwind to generate backtraces') | ||
70 | option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') | ||
71 | option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') | ||
72 | -- | ||
73 | 2.17.1 | ||
74 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch new file mode 100644 index 00000000..e0e64e2c --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 1db36347d05d88835519368442e9aa89c64091ad Mon Sep 17 00:00:00 2001 | ||
2 | From: Seungha Yang <seungha@centricular.com> | ||
3 | Date: Tue, 15 Sep 2020 00:54:58 +0900 | ||
4 | Subject: [PATCH] tests: seek: Don't use too strict timeout for validation | ||
5 | |||
6 | Expected segment-done message might not be seen within expected | ||
7 | time if system is not powerful enough. | ||
8 | |||
9 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/625> | ||
10 | |||
11 | Upstream-Status: Backport [https://cgit.freedesktop.org/gstreamer/gstreamer/commit?id=f44312ae5d831438fcf8041162079c65321c588c] | ||
12 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
13 | --- | ||
14 | tests/check/pipelines/seek.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/tests/check/pipelines/seek.c b/tests/check/pipelines/seek.c | ||
18 | index 28bb8846d..5f7447bc5 100644 | ||
19 | --- a/tests/check/pipelines/seek.c | ||
20 | +++ b/tests/check/pipelines/seek.c | ||
21 | @@ -521,7 +521,7 @@ GST_START_TEST (test_loopback_2) | ||
22 | |||
23 | GST_INFO ("wait for segment done message"); | ||
24 | |||
25 | - msg = gst_bus_timed_pop_filtered (bus, (GstClockTime) 2 * GST_SECOND, | ||
26 | + msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, | ||
27 | GST_MESSAGE_SEGMENT_DONE | GST_MESSAGE_ERROR); | ||
28 | fail_unless (msg, "no message within the timed window"); | ||
29 | fail_unless_equals_string (GST_MESSAGE_TYPE_NAME (msg), "segment-done"); | ||
30 | -- | ||
31 | 2.29.2 | ||
32 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch deleted file mode 100644 index 0e6c44ea..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/0004-meson-Add-option-for-installed-tests.patch +++ /dev/null | |||
@@ -1,257 +0,0 @@ | |||
1 | From b843400284751968862751dfe93853f151551c64 Mon Sep 17 00:00:00 2001 | ||
2 | From: Carlos Rafael Giani <crg7475@mailbox.org> | ||
3 | Date: Fri, 25 Oct 2019 00:06:26 +0200 | ||
4 | Subject: [PATCH] meson: Add option for installed tests | ||
5 | |||
6 | This adds an option for producing installed versions of the unit tests. | ||
7 | These versions don't need meson to run (only a small shell script). This | ||
8 | makes it easier to run cross compiled tests on a target machine. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> | ||
13 | --- | ||
14 | build-aux/gen-installed-test-desc.py | 18 ++++++ | ||
15 | build-aux/gen-installed-test-shscript.py | 25 ++++++++ | ||
16 | meson_options.txt | 2 + | ||
17 | tests/check/meson.build | 46 +++++++++++++- | ||
18 | tests/files/testfile | 80 ++++++++++++++++++++++++ | ||
19 | 5 files changed, 170 insertions(+), 1 deletion(-) | ||
20 | create mode 100644 build-aux/gen-installed-test-desc.py | ||
21 | create mode 100644 build-aux/gen-installed-test-shscript.py | ||
22 | create mode 100644 tests/files/testfile | ||
23 | |||
24 | diff --git a/build-aux/gen-installed-test-desc.py b/build-aux/gen-installed-test-desc.py | ||
25 | new file mode 100644 | ||
26 | index 0000000..69e8a0f | ||
27 | --- /dev/null | ||
28 | +++ b/build-aux/gen-installed-test-desc.py | ||
29 | @@ -0,0 +1,18 @@ | ||
30 | +import sys | ||
31 | +import os | ||
32 | +import argparse | ||
33 | + | ||
34 | +def write_template(filename, data): | ||
35 | + with open(filename, 'w') as f: | ||
36 | + f.write(data) | ||
37 | + | ||
38 | +def build_template(testdir, testname): | ||
39 | + return "[Test]\nType=session\nExec={}\n".format(os.path.join(testdir, testname)) | ||
40 | + | ||
41 | +argparser = argparse.ArgumentParser(description='Generate installed-test data.') | ||
42 | +argparser.add_argument('--test-execdir', metavar='dir', required=True, help='Installed test directory') | ||
43 | +argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name') | ||
44 | +argparser.add_argument('--output', metavar='file', required=True, help='Output file') | ||
45 | +args = argparser.parse_args() | ||
46 | + | ||
47 | +write_template(args.output, build_template(args.test_execdir, args.testname)) | ||
48 | diff --git a/build-aux/gen-installed-test-shscript.py b/build-aux/gen-installed-test-shscript.py | ||
49 | new file mode 100644 | ||
50 | index 0000000..5da86fb | ||
51 | --- /dev/null | ||
52 | +++ b/build-aux/gen-installed-test-shscript.py | ||
53 | @@ -0,0 +1,25 @@ | ||
54 | +import sys | ||
55 | +import os | ||
56 | +import argparse | ||
57 | + | ||
58 | +def write_template(filename, data): | ||
59 | + with open(filename, 'w') as f: | ||
60 | + f.write(data) | ||
61 | + | ||
62 | +def build_template(testdir, testname): | ||
63 | + return ''.join([ | ||
64 | + "#!/usr/bin/env sh\n", | ||
65 | + "export GST_STATE_IGNORE_ELEMENTS=''\n", | ||
66 | + "export CK_DEFAULT_TIMEOUT=20\n", | ||
67 | + "export GST_PLUGIN_LOADING_WHITELIST='gstreamer'\n", | ||
68 | + "{}\n".format(os.path.join(testdir, testname)), | ||
69 | + ]) | ||
70 | + | ||
71 | +argparser = argparse.ArgumentParser(description='Generate installed-test data.') | ||
72 | +argparser.add_argument('--test-execdir', metavar='dir', required=True, help='Installed test directory') | ||
73 | +argparser.add_argument('--testname', metavar='name', required=True, help='Installed test name') | ||
74 | +argparser.add_argument('--output', metavar='file', required=True, help='Output file') | ||
75 | +args = argparser.parse_args() | ||
76 | + | ||
77 | +write_template(args.output, build_template(args.test_execdir, args.testname)) | ||
78 | +os.chmod(args.output, 0o755) | ||
79 | diff --git a/meson_options.txt b/meson_options.txt | ||
80 | index 8afde39..8884dcc 100644 | ||
81 | --- a/meson_options.txt | ||
82 | +++ b/meson_options.txt | ||
83 | @@ -16,6 +16,8 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso | ||
84 | option('memory-alignment', type: 'combo', | ||
85 | choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'], | ||
86 | value: 'malloc') | ||
87 | +option('installed-tests', type : 'boolean', value : false, description : 'enable installed tests') | ||
88 | +option('test-files-path', type : 'string', description : 'Path where to find test files') | ||
89 | |||
90 | # Feature options | ||
91 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
92 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
93 | index 04da83f..2db7f76 100644 | ||
94 | --- a/tests/check/meson.build | ||
95 | +++ b/tests/check/meson.build | ||
96 | @@ -118,11 +118,17 @@ if add_languages('cpp', required : false) | ||
97 | ] | ||
98 | endif | ||
99 | |||
100 | +test_files_path = get_option('test-files-path') | ||
101 | +if test_files_path == '' | ||
102 | + test_files_path = meson.current_source_dir() + '/../files' | ||
103 | +endif | ||
104 | +message('Using path "@0@" as the path to read test files from'.format(test_files_path)) | ||
105 | + | ||
106 | test_defines = [ | ||
107 | '-UG_DISABLE_ASSERT', | ||
108 | '-UG_DISABLE_CAST_CHECKS', | ||
109 | '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"', | ||
110 | - '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"', | ||
111 | + '-DTESTFILE="@0@"'.format(test_files_path + '/testfile'), | ||
112 | '-DGST_USE_UNSTABLE_API', | ||
113 | '-DGST_DISABLE_DEPRECATED', | ||
114 | ] | ||
115 | @@ -137,6 +143,14 @@ endif | ||
116 | glib_deps = [gio_dep, gobject_dep, gmodule_dep, glib_dep] | ||
117 | gst_deps = [gst_dep, gst_base_dep, gst_check_dep, gst_net_dep, gst_controller_dep] | ||
118 | |||
119 | +installed_tests_datadir = join_paths(prefix, get_option('datadir'), 'installed-tests', 'gstreamer-1.0') | ||
120 | +installed_tests_execdir = join_paths(prefix, libexecdir, 'installed-tests', 'gstreamer-1.0') | ||
121 | +installed_tests_enabled = get_option('installed-tests') | ||
122 | + | ||
123 | +python = import('python').find_installation() | ||
124 | +gen_installed_test_desc = files('../../build-aux/gen-installed-test-desc.py') | ||
125 | +gen_installed_test_shscript = files('../../build-aux/gen-installed-test-shscript.py') | ||
126 | + | ||
127 | foreach t : core_tests | ||
128 | fname = t[0] | ||
129 | test_name = fname.split('.')[0].underscorify() | ||
130 | @@ -150,8 +164,38 @@ foreach t : core_tests | ||
131 | include_directories : [configinc], | ||
132 | link_with : link_with_libs, | ||
133 | dependencies : test_deps + glib_deps + gst_deps, | ||
134 | + install_dir: installed_tests_execdir, | ||
135 | + install: installed_tests_enabled | ||
136 | ) | ||
137 | |||
138 | + if installed_tests_enabled | ||
139 | + installed_test_shscript = test_name + '.sh' | ||
140 | + shscript = custom_target (test_name + '_shscript', | ||
141 | + output: installed_test_shscript, | ||
142 | + command: [ | ||
143 | + python, | ||
144 | + gen_installed_test_shscript, | ||
145 | + '--test-execdir=@0@'.format(installed_tests_execdir), | ||
146 | + '--testname=@0@'.format(test_name), | ||
147 | + '--output=@0@'.format(join_paths('@OUTDIR@', installed_test_shscript)), | ||
148 | + ], | ||
149 | + install: true, | ||
150 | + install_dir: installed_tests_execdir) | ||
151 | + | ||
152 | + installed_test_desc = test_name + '.test' | ||
153 | + data = custom_target(test_name + '_desc', | ||
154 | + output: installed_test_desc, | ||
155 | + command: [ | ||
156 | + python, | ||
157 | + gen_installed_test_desc, | ||
158 | + '--test-execdir=@0@'.format(installed_tests_execdir), | ||
159 | + '--testname=@0@'.format(installed_test_shscript), | ||
160 | + '--output=@0@'.format(join_paths('@OUTDIR@', installed_test_desc)), | ||
161 | + ], | ||
162 | + install: true, | ||
163 | + install_dir: installed_tests_datadir) | ||
164 | + endif | ||
165 | + | ||
166 | env = environment() | ||
167 | env.set('GST_PLUGIN_PATH_1_0', meson.build_root()) | ||
168 | env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') | ||
169 | diff --git a/tests/files/testfile b/tests/files/testfile | ||
170 | new file mode 100644 | ||
171 | index 0000000..89954e0 | ||
172 | --- /dev/null | ||
173 | +++ b/tests/files/testfile | ||
174 | @@ -0,0 +1,80 @@ | ||
175 | +................................................................................ | ||
176 | +................................................................................ | ||
177 | +................................................................................ | ||
178 | +................................................................................ | ||
179 | +................................................................................ | ||
180 | +................................................................................ | ||
181 | +................................................................................ | ||
182 | +................................................................................ | ||
183 | +................................................................................ | ||
184 | +................................................................................ | ||
185 | +................................................................................ | ||
186 | +................................................................................ | ||
187 | +................................................................................ | ||
188 | +................................................................................ | ||
189 | +................................................................................ | ||
190 | +................................................................................ | ||
191 | +................................................................................ | ||
192 | +................................................................................ | ||
193 | +................................................................................ | ||
194 | +................................................................................ | ||
195 | +................................................................................ | ||
196 | +................................................................................ | ||
197 | +................................................................................ | ||
198 | +................................................................................ | ||
199 | +................................................................................ | ||
200 | +................................................................................ | ||
201 | +................................................................................ | ||
202 | +................................................................................ | ||
203 | +................................................................................ | ||
204 | +................................................................................ | ||
205 | +................................................................................ | ||
206 | +................................................................................ | ||
207 | +................................................................................ | ||
208 | +................................................................................ | ||
209 | +................................................................................ | ||
210 | +................................................................................ | ||
211 | +................................................................................ | ||
212 | +................................................................................ | ||
213 | +................................................................................ | ||
214 | +................................................................................ | ||
215 | +................................................................................ | ||
216 | +................................................................................ | ||
217 | +................................................................................ | ||
218 | +................................................................................ | ||
219 | +................................................................................ | ||
220 | +................................................................................ | ||
221 | +................................................................................ | ||
222 | +................................................................................ | ||
223 | +................................................................................ | ||
224 | +................................................................................ | ||
225 | +................................................................................ | ||
226 | +................................................................................ | ||
227 | +................................................................................ | ||
228 | +................................................................................ | ||
229 | +................................................................................ | ||
230 | +................................................................................ | ||
231 | +................................................................................ | ||
232 | +................................................................................ | ||
233 | +................................................................................ | ||
234 | +................................................................................ | ||
235 | +................................................................................ | ||
236 | +................................................................................ | ||
237 | +................................................................................ | ||
238 | +................................................................................ | ||
239 | +................................................................................ | ||
240 | +................................................................................ | ||
241 | +................................................................................ | ||
242 | +................................................................................ | ||
243 | +................................................................................ | ||
244 | +................................................................................ | ||
245 | +................................................................................ | ||
246 | +................................................................................ | ||
247 | +................................................................................ | ||
248 | +................................................................................ | ||
249 | +................................................................................ | ||
250 | +................................................................................ | ||
251 | +................................................................................ | ||
252 | +................................................................................ | ||
253 | +................................................................................ | ||
254 | +................................................................................ | ||
255 | -- | ||
256 | 2.17.1 | ||
257 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-respect-the-idententaion-used-in-meson.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-respect-the-idententaion-used-in-meson.patch new file mode 100644 index 00000000..6f571a12 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0004-tests-respect-the-idententaion-used-in-meson.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 122e5ac3dd16a461b6ae595605490c8f5d1c3a9d Mon Sep 17 00:00:00 2001 | ||
2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
3 | Date: Sun, 11 Apr 2021 19:48:13 +0100 | ||
4 | Subject: [PATCH 1/4] tests: respect the idententaion used in meson | ||
5 | |||
6 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
7 | |||
8 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
9 | --- | ||
10 | tests/check/meson.build | 10 +++++----- | ||
11 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
12 | |||
13 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
14 | index a617cf159..b2636714b 100644 | ||
15 | --- a/tests/check/meson.build | ||
16 | +++ b/tests/check/meson.build | ||
17 | @@ -146,11 +146,11 @@ foreach t : core_tests | ||
18 | |||
19 | if not skip_test | ||
20 | exe = executable(test_name, fname, | ||
21 | - c_args : gst_c_args + test_defines, | ||
22 | - cpp_args : gst_c_args + test_defines, | ||
23 | - include_directories : [configinc], | ||
24 | - link_with : link_with_libs, | ||
25 | - dependencies : test_deps + glib_deps + gst_deps, | ||
26 | + c_args : gst_c_args + test_defines, | ||
27 | + cpp_args : gst_c_args + test_defines, | ||
28 | + include_directories : [configinc], | ||
29 | + link_with : link_with_libs, | ||
30 | + dependencies : test_deps + glib_deps + gst_deps, | ||
31 | ) | ||
32 | |||
33 | env = environment() | ||
34 | -- | ||
35 | 2.31.1 | ||
36 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0005-tests-add-support-for-install-the-tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0005-tests-add-support-for-install-the-tests.patch new file mode 100644 index 00000000..b77fb579 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0005-tests-add-support-for-install-the-tests.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | From c9e93c7a3e4d2773abef4f5e1464af24f36700b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
3 | Date: Sun, 11 Apr 2021 19:48:13 +0100 | ||
4 | Subject: [PATCH 2/4] tests: add support for install the tests | ||
5 | |||
6 | This will provide to run the tests using the gnome-desktop-testing [1] | ||
7 | |||
8 | [1] https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests | ||
9 | |||
10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
11 | |||
12 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
13 | --- | ||
14 | meson.build | 5 +++++ | ||
15 | meson_options.txt | 1 + | ||
16 | template.test.in | 3 +++ | ||
17 | tests/check/meson.build | 22 +++++++++++++++++++++- | ||
18 | 4 files changed, 30 insertions(+), 1 deletion(-) | ||
19 | create mode 100644 template.test.in | ||
20 | |||
21 | diff --git a/meson.build b/meson.build | ||
22 | index c4e8774f5..1abf4eb26 100644 | ||
23 | --- a/meson.build | ||
24 | +++ b/meson.build | ||
25 | @@ -562,6 +562,11 @@ if bashcomp_dep.found() | ||
26 | endif | ||
27 | endif | ||
28 | |||
29 | +installed_tests_metadir = join_paths(datadir, 'installed-tests', meson.project_name()) | ||
30 | +installed_tests_execdir = join_paths(libexecdir, 'installed-tests', meson.project_name()) | ||
31 | +installed_tests_enabled = get_option('installed-tests') | ||
32 | +installed_tests_template = files('template.test.in') | ||
33 | + | ||
34 | plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0') | ||
35 | |||
36 | pkgconfig = import('pkgconfig') | ||
37 | diff --git a/meson_options.txt b/meson_options.txt | ||
38 | index c8cee3762..b5da40eaa 100644 | ||
39 | --- a/meson_options.txt | ||
40 | +++ b/meson_options.txt | ||
41 | @@ -15,6 +15,7 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso | ||
42 | option('memory-alignment', type: 'combo', | ||
43 | choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'], | ||
44 | value: 'malloc') | ||
45 | +option('installed-tests', type : 'boolean', value : false, description : 'Enable installed tests') | ||
46 | |||
47 | # Feature options | ||
48 | option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') | ||
49 | diff --git a/template.test.in b/template.test.in | ||
50 | new file mode 100644 | ||
51 | index 000000000..f701627f8 | ||
52 | --- /dev/null | ||
53 | +++ b/template.test.in | ||
54 | @@ -0,0 +1,3 @@ | ||
55 | +[Test] | ||
56 | +Type=session | ||
57 | +Exec=@installed_tests_dir@/@program@ | ||
58 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
59 | index b2636714b..a697a7b06 100644 | ||
60 | --- a/tests/check/meson.build | ||
61 | +++ b/tests/check/meson.build | ||
62 | @@ -124,10 +124,16 @@ test_defines = [ | ||
63 | '-UG_DISABLE_ASSERT', | ||
64 | '-UG_DISABLE_CAST_CHECKS', | ||
65 | '-DGST_CHECK_TEST_ENVIRONMENT_BEACON="GST_STATE_IGNORE_ELEMENTS"', | ||
66 | - '-DTESTFILE="' + meson.current_source_dir() + '/meson.build"', | ||
67 | '-DGST_DISABLE_DEPRECATED', | ||
68 | ] | ||
69 | |||
70 | +testfile = meson.current_source_dir() + '/meson.build' | ||
71 | +if installed_tests_enabled | ||
72 | + install_data(testfile, install_dir : installed_tests_metadir, rename : 'testfile') | ||
73 | + testfile = installed_tests_metadir + '/testfile' | ||
74 | +endif | ||
75 | +test_defines += '-DTESTFILE="@0@"'.format(testfile) | ||
76 | + | ||
77 | # sanity checking | ||
78 | if get_option('check').disabled() | ||
79 | if get_option('tests').enabled() | ||
80 | @@ -151,6 +157,8 @@ foreach t : core_tests | ||
81 | include_directories : [configinc], | ||
82 | link_with : link_with_libs, | ||
83 | dependencies : test_deps + glib_deps + gst_deps, | ||
84 | + install_dir: installed_tests_execdir, | ||
85 | + install: installed_tests_enabled, | ||
86 | ) | ||
87 | |||
88 | env = environment() | ||
89 | @@ -162,6 +170,18 @@ foreach t : core_tests | ||
90 | env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner') | ||
91 | env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer') | ||
92 | |||
93 | + if installed_tests_enabled | ||
94 | + test_conf = configuration_data() | ||
95 | + test_conf.set('installed_tests_dir', join_paths(prefix, installed_tests_execdir)) | ||
96 | + test_conf.set('program', test_name) | ||
97 | + configure_file( | ||
98 | + input: installed_tests_template, | ||
99 | + output: test_name + '.test', | ||
100 | + install_dir: installed_tests_metadir, | ||
101 | + configuration: test_conf | ||
102 | + ) | ||
103 | + endif | ||
104 | + | ||
105 | test(test_name, exe, env: env, timeout : 3 * 60) | ||
106 | endif | ||
107 | endforeach | ||
108 | -- | ||
109 | 2.31.1 | ||
110 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0006-tests-use-a-dictionaries-for-environment.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0006-tests-use-a-dictionaries-for-environment.patch new file mode 100644 index 00000000..46813cec --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0006-tests-use-a-dictionaries-for-environment.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From e82dedec1803922656e92285fc1bb75b2cdc0aad Mon Sep 17 00:00:00 2001 | ||
2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
3 | Date: Sat, 24 Apr 2021 10:34:47 +0100 | ||
4 | Subject: [PATCH 3/4] tests: use a dictionaries for environment | ||
5 | |||
6 | meson environment() can't be passed to configure_file and it is needed for installed_tests, | ||
7 | use a dictionary as this is simplest solution to install the environment. | ||
8 | |||
9 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
10 | |||
11 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
12 | --- | ||
13 | tests/check/meson.build | 19 +++++++++++-------- | ||
14 | 1 file changed, 11 insertions(+), 8 deletions(-) | ||
15 | |||
16 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
17 | index a697a7b06..f64524904 100644 | ||
18 | --- a/tests/check/meson.build | ||
19 | +++ b/tests/check/meson.build | ||
20 | @@ -161,14 +161,17 @@ foreach t : core_tests | ||
21 | install: installed_tests_enabled, | ||
22 | ) | ||
23 | |||
24 | - env = environment() | ||
25 | - env.set('GST_PLUGIN_PATH_1_0', meson.build_root()) | ||
26 | - env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '') | ||
27 | - env.set('GST_STATE_IGNORE_ELEMENTS', '') | ||
28 | - env.set('CK_DEFAULT_TIMEOUT', '20') | ||
29 | - env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name)) | ||
30 | - env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner') | ||
31 | - env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer') | ||
32 | + # environment() can't be passed to configure_file and it is needed for installed_tests | ||
33 | + # use a dictionary as this is simplest solution to install the environment | ||
34 | + env = { | ||
35 | + 'GST_PLUGIN_PATH_1_0': meson.build_root(), | ||
36 | + 'GST_PLUGIN_SYSTEM_PATH_1_0': '', | ||
37 | + 'GST_STATE_IGNORE_ELEMENTS': '', | ||
38 | + 'CK_DEFAULT_TIMEOUT': '20', | ||
39 | + 'GST_REGISTRY': '@0@/@1@.registry'.format(meson.current_build_dir(), test_name), | ||
40 | + 'GST_PLUGIN_SCANNER_1_0': gst_scanner_dir + '/gst-plugin-scanner', | ||
41 | + 'GST_PLUGIN_LOADING_WHITELIST': 'gstreamer', | ||
42 | + } | ||
43 | |||
44 | if installed_tests_enabled | ||
45 | test_conf = configuration_data() | ||
46 | -- | ||
47 | 2.31.1 | ||
48 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/0007-tests-install-the-environment-for-installed_tests.patch b/recipes-multimedia/gstreamer/gstreamer1.0/0007-tests-install-the-environment-for-installed_tests.patch new file mode 100644 index 00000000..eabe7bcb --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/0007-tests-install-the-environment-for-installed_tests.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From 57d2965e979f886e03eecd7e351bf01812053971 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
3 | Date: Sun, 2 May 2021 01:58:01 +0100 | ||
4 | Subject: [PATCH 4/4] tests: install the environment for installed_tests | ||
5 | |||
6 | - adapt the test environment for installed_tests | ||
7 | - install the test environment for installed_tests | ||
8 | - run the tests using the installed environment | ||
9 | |||
10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] | ||
11 | |||
12 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
13 | --- | ||
14 | template.test.in | 2 +- | ||
15 | tests/check/meson.build | 18 ++++++++++++++++++ | ||
16 | 2 files changed, 19 insertions(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/template.test.in b/template.test.in | ||
19 | index f701627f8..9a3fbdd09 100644 | ||
20 | --- a/template.test.in | ||
21 | +++ b/template.test.in | ||
22 | @@ -1,3 +1,3 @@ | ||
23 | [Test] | ||
24 | Type=session | ||
25 | -Exec=@installed_tests_dir@/@program@ | ||
26 | +Exec=sh -c 'set -aex && source @installed_tests_dir@/@program@.env && exec @installed_tests_dir@/@program@' | ||
27 | diff --git a/tests/check/meson.build b/tests/check/meson.build | ||
28 | index f64524904..a67e0f8dd 100644 | ||
29 | --- a/tests/check/meson.build | ||
30 | +++ b/tests/check/meson.build | ||
31 | @@ -183,6 +183,24 @@ foreach t : core_tests | ||
32 | install_dir: installed_tests_metadir, | ||
33 | configuration: test_conf | ||
34 | ) | ||
35 | + | ||
36 | + env += {'GST_REGISTRY': '~/.cache/gstreamer-1.0/@0@.registry'.format(test_name)} | ||
37 | + configure_file( | ||
38 | + output: test_name + '.env', | ||
39 | + install_dir: installed_tests_execdir, | ||
40 | + configuration : env, | ||
41 | + ) | ||
42 | + # helper to convert a meson environment dictionay object exported with configure_file | ||
43 | + # this also remove not needed variables for the installed tests | ||
44 | + meson.add_postconf_script('sed', '-i', | ||
45 | + '-e', '/^#define/!d', | ||
46 | + '-e', 's/^#define //g', | ||
47 | + '-e', '/^GST_PLUGIN_PATH_1_0/d', | ||
48 | + '-e', '/^GST_PLUGIN_SYSTEM_PATH_1_0/d', | ||
49 | + '-e', '/^GST_PLUGIN_SCANNER_1_0/d', | ||
50 | + '-e', 's/ /=/', | ||
51 | + join_paths(meson.current_build_dir(), test_name + '.env') | ||
52 | + ) | ||
53 | endif | ||
54 | |||
55 | test(test_name, exe, env: env, timeout : 3 * 60) | ||
56 | -- | ||
57 | 2.31.1 | ||
58 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch b/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch deleted file mode 100644 index 7ca3d5ad..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0/capfix.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | Currently gstreamer configuration depends on whether setcap is found on the host | ||
2 | system. Turn this into a configure option to make builds deterinistic. | ||
3 | |||
4 | RP 2020/2/19 | ||
5 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Index: gstreamer-1.16.1/libs/gst/helpers/meson.build | ||
9 | =================================================================== | ||
10 | --- gstreamer-1.16.1.orig/libs/gst/helpers/meson.build | ||
11 | +++ gstreamer-1.16.1/libs/gst/helpers/meson.build | ||
12 | @@ -73,7 +73,12 @@ if have_ptp | ||
13 | endif | ||
14 | endif | ||
15 | |||
16 | - setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false) | ||
17 | + setcap_feature = get_option('setcap') | ||
18 | + if setcap_feature.disabled() | ||
19 | + setcap = find_program('dontexist', required : false) | ||
20 | + else | ||
21 | + setcap = find_program('setcap', '/usr/sbin/setcap', '/sbin/setcap', required : false) | ||
22 | + endif | ||
23 | |||
24 | # user/group to change to in gst-ptp-helper | ||
25 | ptp_helper_setuid_user = get_option('ptp-helper-setuid-user') | ||
26 | Index: gstreamer-1.16.1/meson_options.txt | ||
27 | =================================================================== | ||
28 | --- gstreamer-1.16.1.orig/meson_options.txt | ||
29 | +++ gstreamer-1.16.1/meson_options.txt | ||
30 | @@ -26,6 +26,7 @@ option('libunwind', type : 'feature', va | ||
31 | option('libdw', type : 'feature', value : 'auto', description : 'Use libdw to generate better backtraces from libunwind') | ||
32 | option('dbghelp', type : 'feature', value : 'auto', description : 'Use dbghelp to generate backtraces') | ||
33 | option('bash-completion', type : 'feature', value : 'auto', description : 'Install bash completion files') | ||
34 | +option('setcap', type : 'feature', value : 'auto', description : 'Use setcap') | ||
35 | |||
36 | # Common feature options | ||
37 | option('examples', type : 'feature', value : 'auto', yield : true) | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest b/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest new file mode 100755 index 00000000..0cfa955f --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0/run-ptest | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | gnome-desktop-testing-runner gstreamer | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0_1.16.2.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0_1.18.0.imx.bb index 8bbc16c8..13d1682a 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0_1.16.2.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0_1.18.0.imx.bb | |||
@@ -6,28 +6,29 @@ BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | |||
6 | SECTION = "multimedia" | 6 | SECTION = "multimedia" |
7 | LICENSE = "LGPLv2+" | 7 | LICENSE = "LGPLv2+" |
8 | 8 | ||
9 | DEPENDS = "glib-2.0 glib-2.0-native libcap libxml2 bison-native flex-native" | 9 | DEPENDS = "glib-2.0 glib-2.0-native libxml2 bison-native flex-native" |
10 | 10 | ||
11 | inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection gtk-doc | 11 | inherit meson pkgconfig gettext upstream-version-is-even gobject-introspection ptest-gnome |
12 | 12 | ||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=6762ed442b3822387a51c92d928ead0d \ |
14 | file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" | 14 | file://gst/gst.h;beginline=1;endline=21;md5=e059138481205ee2c6fc1c079c016d0d" |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
16 | # Use i.MX fork of GST for customizations | 18 | # Use i.MX fork of GST for customizations |
17 | GST1.0_SRC ?= "gitsm://source.codeaurora.org/external/imx/gstreamer.git;protocol=https" | 19 | GST1.0_SRC ?= "gitsm://source.codeaurora.org/external/imx/gstreamer.git;protocol=https" |
18 | SRCBRANCH = "MM_04.05.06_2008_L5.4.47" | 20 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" |
19 | 21 | SRC_URI = "${GST1.0_SRC};branch=${SRCBRANCH} \ | |
20 | SRC_URI = " \ | 22 | file://run-ptest \ |
21 | ${GST1.0_SRC};branch=${SRCBRANCH} \ | 23 | file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \ |
22 | file://0001-gst-gstpluginloader.c-when-env-var-is-set-do-not-fal.patch \ | 24 | file://0002-Remove-unused-valgrind-detection.patch \ |
23 | file://0002-meson-build-gir-even-when-cross-compiling-if-introsp.patch \ | 25 | file://0003-tests-seek-Don-t-use-too-strict-timeout-for-validati.patch \ |
24 | file://0003-meson-Add-valgrind-feature.patch \ | 26 | file://0004-tests-respect-the-idententaion-used-in-meson.patch \ |
25 | file://0004-meson-Add-option-for-installed-tests.patch \ | 27 | file://0005-tests-add-support-for-install-the-tests.patch \ |
26 | file://capfix.patch \ | 28 | file://0006-tests-use-a-dictionaries-for-environment.patch \ |
27 | " | 29 | file://0007-tests-install-the-environment-for-installed_tests.patch \ |
28 | SRCREV = "8514bc61ccab208a65e387eab9347276a8e770e7" | 30 | " |
29 | 31 | SRCREV = "2f20fd10eaf8629b3e8c134424c38412c4d3bd86" | |
30 | S = "${WORKDIR}/git" | ||
31 | 32 | ||
32 | DEFAULT_PREFERENCE = "-1" | 33 | DEFAULT_PREFERENCE = "-1" |
33 | 34 | ||
@@ -38,14 +39,14 @@ PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ | |||
38 | 39 | ||
39 | PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false" | 40 | PACKAGECONFIG[debug] = "-Dgst_debug=true,-Dgst_debug=false" |
40 | PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false" | 41 | PACKAGECONFIG[tracer-hooks] = "-Dtracer_hooks=true,-Dtracer_hooks=false" |
42 | PACKAGECONFIG[coretracers] = "-Dcoretracers=enabled,-Dcoretracers=disabled" | ||
41 | PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled" | 43 | PACKAGECONFIG[check] = "-Dcheck=enabled,-Dcheck=disabled" |
42 | PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled-tests=true,-Dtests=disabled -Dinstalled-tests=false" | 44 | PACKAGECONFIG[tests] = "-Dtests=enabled -Dinstalled-tests=true,-Dtests=disabled -Dinstalled-tests=false" |
43 | PACKAGECONFIG[valgrind] = "-Dvalgrind=enabled,-Dvalgrind=disabled,valgrind," | ||
44 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" | 45 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" |
45 | PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils" | 46 | PACKAGECONFIG[dw] = "-Dlibdw=enabled,-Dlibdw=disabled,elfutils" |
46 | PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion" | 47 | PACKAGECONFIG[bash-completion] = "-Dbash-completion=enabled,-Dbash-completion=disabled,bash-completion" |
47 | PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled" | 48 | PACKAGECONFIG[tools] = "-Dtools=enabled,-Dtools=disabled" |
48 | PACKAGECONFIG[setcap] = "-Dsetcap=enabled,-Dsetcap=disabled,libcap libcap-native" | 49 | PACKAGECONFIG[setcap] = "-Dptp-helper-permissions=capabilities,,libcap libcap-native" |
49 | 50 | ||
50 | # TODO: put this in a gettext.bbclass patch | 51 | # TODO: put this in a gettext.bbclass patch |
51 | def gettext_oemeson(d): | 52 | def gettext_oemeson(d): |
@@ -57,28 +58,25 @@ def gettext_oemeson(d): | |||
57 | return '-Dnls=enabled' | 58 | return '-Dnls=enabled' |
58 | 59 | ||
59 | EXTRA_OEMESON += " \ | 60 | EXTRA_OEMESON += " \ |
61 | -Ddoc=disabled \ | ||
60 | -Dexamples=disabled \ | 62 | -Dexamples=disabled \ |
61 | -Ddbghelp=disabled \ | 63 | -Ddbghelp=disabled \ |
62 | ${@gettext_oemeson(d)} \ | 64 | ${@gettext_oemeson(d)} \ |
63 | " | 65 | " |
64 | 66 | ||
65 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
66 | GTKDOC_MESON_ENABLE_FLAG = "enabled" | ||
67 | GTKDOC_MESON_DISABLE_FLAG = "disabled" | ||
68 | |||
69 | GIR_MESON_ENABLE_FLAG = "enabled" | 67 | GIR_MESON_ENABLE_FLAG = "enabled" |
70 | GIR_MESON_DISABLE_FLAG = "disabled" | 68 | GIR_MESON_DISABLE_FLAG = "disabled" |
71 | 69 | ||
72 | PACKAGES += "${PN}-bash-completion" | 70 | PACKAGES += "${PN}-bash-completion" |
73 | 71 | ||
74 | # Add the core element plugins to the main package | 72 | # Add the core element plugins to the main package |
75 | FILES_${PN} += "${libdir}/gstreamer-1.0/*.so" | 73 | FILES:${PN} += "${libdir}/gstreamer-1.0/*.so" |
76 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include" | 74 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.a ${libdir}/gstreamer-1.0/include" |
77 | FILES_${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*" | 75 | FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/ ${datadir}/bash-completion/helpers/gst*" |
78 | FILES_${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb ${datadir}/glib-2.0/gdb" | 76 | FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb" |
79 | 77 | ||
80 | CVE_PRODUCT = "gstreamer" | 78 | CVE_PRODUCT = "gstreamer" |
81 | 79 | ||
82 | require recipes-multimedia/gstreamer/gstreamer1.0-ptest.inc | 80 | PTEST_BUILD_HOST_FILES = "" |
83 | 81 | ||
84 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 82 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.5.7.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.5.7.bb deleted file mode 100644 index c8bb6cd8..00000000 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.5.7.bb +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | # Copyright (C) 2014,2016 Freescale Semiconductor | ||
2 | # Copyright 2017-2019 NXP | ||
3 | # Copyright (C) 2012-2015 O.S. Systems Software LTDA. | ||
4 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
5 | |||
6 | DESCRIPTION = "Gstreamer freescale plugins" | ||
7 | LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" | ||
8 | SECTION = "multimedia" | ||
9 | |||
10 | DEPENDS = "imx-codec imx-parser gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
11 | DEPENDS_append_mx6 = " imx-lib" | ||
12 | DEPENDS_append_mx7 = " imx-lib" | ||
13 | DEPENDS_append_imxvpu = " imx-vpuwrap libdrm" | ||
14 | |||
15 | # For backwards compatibility | ||
16 | RREPLACES_${PN} = "gst1.0-fsl-plugin" | ||
17 | RPROVIDES_${PN} = "gst1.0-fsl-plugin" | ||
18 | RCONFLICTS_${PN} = "gst1.0-fsl-plugin" | ||
19 | |||
20 | LIC_FILES_CHKSUM = "file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | ||
21 | file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" | ||
22 | |||
23 | SRCBRANCH = "MM_04.05.07_2011_L5.4.70" | ||
24 | |||
25 | SRC_URI = " \ | ||
26 | git://source.codeaurora.org/external/imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH} \ | ||
27 | " | ||
28 | SRCREV = "659ec4947d6b1903d26e4ec9e40ae251a659935d" | ||
29 | |||
30 | S = "${WORKDIR}/git" | ||
31 | |||
32 | inherit autotools pkgconfig use-imx-headers | ||
33 | |||
34 | PLATFORM_mx6 = "MX6" | ||
35 | PLATFORM_mx6sl = "MX6SL" | ||
36 | PLATFORM_mx6sx = "MX6SX" | ||
37 | PLATFORM_mx6ul = "MX6UL" | ||
38 | PLATFORM_mx6sll = "MX6SLL" | ||
39 | PLATFORM_mx7= "MX7D" | ||
40 | PLATFORM_mx7ulp= "MX7ULP" | ||
41 | PLATFORM_mx8 = "MX8" | ||
42 | |||
43 | # Todo add a mechanism to map possible build targets | ||
44 | EXTRA_OECONF = "PLATFORM=${PLATFORM} \ | ||
45 | CPPFLAGS="-I${STAGING_INCDIR_IMX}" \ | ||
46 | CROSS_ROOT=${PKG_CONFIG_SYSROOT_DIR} \ | ||
47 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', bb.utils.contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}" | ||
48 | |||
49 | PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" | ||
50 | |||
51 | # Add codec list that the beep plugin run-time depended | ||
52 | BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" | ||
53 | RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " | ||
54 | |||
55 | # overlaysink rely on G2D, | ||
56 | # cannot be supported on i.MX6SLL & i.MX6UL & i.MX6ULL & i.MX7D | ||
57 | PACKAGECONFIG ?= "" | ||
58 | PACKAGECONFIG_imxgpu2d = "overlaysink" | ||
59 | |||
60 | |||
61 | # FIXME: Add all features | ||
62 | # feature from excluded mm packages | ||
63 | PACKAGECONFIG[ac3] += ",,imx-ac3codec,imx-ac3codec" | ||
64 | # feature from special mm packages | ||
65 | PACKAGECONFIG[aacp] += ",,imx-aacpcodec,imx-aacpcodec" | ||
66 | MSDEPENDS = "imx-msparser imx-mscodec" | ||
67 | PACKAGECONFIG[wma10dec] += ",,${MSDEPENDS},${MSDEPENDS}" | ||
68 | PACKAGECONFIG[wma8enc] += "--enable-wma8enc,--disable-wma8enc,${MSDEPENDS},${MSDEPENDS}" | ||
69 | OVDEPENDS = "virtual/libg2d" | ||
70 | PACKAGECONFIG[overlaysink] += "--enable-overlaysink,--disable-overlaysink, ${OVDEPENDS}" | ||
71 | |||
72 | FILES_${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" | ||
73 | |||
74 | FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" | ||
75 | FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" | ||
76 | FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
77 | FILES_${PN}-gplay = "${bindir}/gplay-1.0" | ||
78 | FILES_${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" | ||
79 | FILES_${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" | ||
80 | FILES_${PN}-grecorder = "${bindir}/grecorder-1.0" | ||
81 | FILES_${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" | ||
82 | FILES_${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" | ||
83 | |||
84 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.6.1.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.6.1.bb new file mode 100644 index 00000000..9d43a175 --- /dev/null +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.6.1.bb | |||
@@ -0,0 +1,81 @@ | |||
1 | # Copyright (C) 2014,2016 Freescale Semiconductor | ||
2 | # Copyright 2017-2021 NXP | ||
3 | # Copyright (C) 2012-2015 O.S. Systems Software LTDA. | ||
4 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
5 | |||
6 | DESCRIPTION = "Gstreamer freescale plugins" | ||
7 | LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" | ||
8 | SECTION = "multimedia" | ||
9 | |||
10 | DEPENDS = "imx-codec imx-parser gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
11 | DEPENDS:append:mx6 = " imx-lib" | ||
12 | DEPENDS:append:mx7 = " imx-lib" | ||
13 | DEPENDS:append:imxvpu = " imx-vpuwrap libdrm" | ||
14 | |||
15 | # For backwards compatibility | ||
16 | RREPLACES:${PN} = "gst1.0-fsl-plugin" | ||
17 | RPROVIDES:${PN} = "gst1.0-fsl-plugin" | ||
18 | RCONFLICTS:${PN} = "gst1.0-fsl-plugin" | ||
19 | |||
20 | LIC_FILES_CHKSUM = "file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | ||
21 | file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" | ||
22 | |||
23 | SRCBRANCH = "MM_04.06.01_2105_L5.10.y" | ||
24 | |||
25 | |||
26 | SRC_URI = "git://source.codeaurora.org/external/imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH}" | ||
27 | SRCREV = "057e6bfbc208ce31e8ed0af0264dd1e86de05808" | ||
28 | |||
29 | S = "${WORKDIR}/git" | ||
30 | |||
31 | inherit meson pkgconfig use-imx-headers | ||
32 | |||
33 | PLATFORM:mx6 = "MX6" | ||
34 | PLATFORM:mx6sl = "MX6SL" | ||
35 | PLATFORM:mx6sx = "MX6SX" | ||
36 | PLATFORM:mx6ul = "MX6UL" | ||
37 | PLATFORM:mx6sll = "MX6SLL" | ||
38 | PLATFORM:mx7= "MX7D" | ||
39 | PLATFORM:mx7ulp= "MX7ULP" | ||
40 | PLATFORM:mx8 = "MX8" | ||
41 | |||
42 | # Todo add a mechanism to map possible build targets | ||
43 | EXTRA_OEMESON = "-Dplatform=${PLATFORM} \ | ||
44 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ | ||
45 | " | ||
46 | |||
47 | PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" | ||
48 | |||
49 | # Add codec list that the beep plugin run-time depended | ||
50 | BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" | ||
51 | RDEPENDS:${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " | ||
52 | |||
53 | # overlaysink rely on G2D, | ||
54 | # cannot be supported on i.MX6SLL & i.MX6UL & i.MX6ULL & i.MX7D | ||
55 | PACKAGECONFIG ?= "" | ||
56 | PACKAGECONFIG:imxgpu2d = "overlaysink" | ||
57 | |||
58 | |||
59 | # FIXME: Add all features | ||
60 | # feature from excluded mm packages | ||
61 | PACKAGECONFIG[ac3] = ",,imx-ac3codec,imx-ac3codec" | ||
62 | # feature from special mm packages | ||
63 | PACKAGECONFIG[aacp] = ",,imx-aacpcodec,imx-aacpcodec" | ||
64 | MSDEPENDS = "imx-msparser imx-mscodec" | ||
65 | PACKAGECONFIG[wma10dec] = ",,${MSDEPENDS},${MSDEPENDS}" | ||
66 | PACKAGECONFIG[wma8enc] = ",,${MSDEPENDS},${MSDEPENDS}" | ||
67 | PACKAGECONFIG[overlaysink] += ",,virtual/libg2d" | ||
68 | |||
69 | FILES:${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" | ||
70 | |||
71 | FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" | ||
72 | FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" | ||
73 | FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" | ||
74 | FILES:${PN}-gplay = "${bindir}/gplay-1.0" | ||
75 | FILES:${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" | ||
76 | FILES:${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" | ||
77 | FILES:${PN}-grecorder = "${bindir}/grecorder-1.0" | ||
78 | FILES:${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" | ||
79 | FILES:${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" | ||
80 | |||
81 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||
diff --git a/recipes-multimedia/imx-codec/imx-codec_4.5.7.bb b/recipes-multimedia/imx-codec/imx-codec_4.5.7.bb index 76a52f26..f54721d8 100644 --- a/recipes-multimedia/imx-codec/imx-codec_4.5.7.bb +++ b/recipes-multimedia/imx-codec/imx-codec_4.5.7.bb | |||
@@ -21,14 +21,14 @@ EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '--enable-armv8 | |||
21 | bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d), d)}" | 21 | bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d), d)}" |
22 | 22 | ||
23 | PACKAGECONFIG ?= "" | 23 | PACKAGECONFIG ?= "" |
24 | PACKAGECONFIG_imxvpu = "vpu" | 24 | PACKAGECONFIG:imxvpu = "vpu" |
25 | 25 | ||
26 | # We need to ensure we don't have '-src' package overrided | 26 | # We need to ensure we don't have '-src' package overrided |
27 | PACKAGE_DEBUG_SPLIT_STYLE = 'debug-without-src' | 27 | PACKAGE_DEBUG_SPLIT_STYLE = 'debug-without-src' |
28 | 28 | ||
29 | PACKAGECONFIG[vpu] = "--enable-vpu,--disable-vpu,virtual/imxvpu" | 29 | PACKAGECONFIG[vpu] = "--enable-vpu,--disable-vpu,virtual/imxvpu" |
30 | 30 | ||
31 | do_install_append() { | 31 | do_install:append() { |
32 | # LTIB move the files around or gst-fsl-plugin won't find them | 32 | # LTIB move the files around or gst-fsl-plugin won't find them |
33 | for p in $(find ${D}${libdir}/imx-mm -mindepth 2 -maxdepth 2 -not -type d); do | 33 | for p in $(find ${D}${libdir}/imx-mm -mindepth 2 -maxdepth 2 -not -type d); do |
34 | mv $p ${D}${libdir} | 34 | mv $p ${D}${libdir} |
@@ -46,15 +46,15 @@ python __set_insane_skip() { | |||
46 | for p in d.getVar('PACKAGES').split(): | 46 | for p in d.getVar('PACKAGES').split(): |
47 | # Even though we are packaging libraries those are plugins so we | 47 | # Even though we are packaging libraries those are plugins so we |
48 | # shouldn't rename the packages to follow its sonames. | 48 | # shouldn't rename the packages to follow its sonames. |
49 | d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") | 49 | d.setVar("DEBIAN_NOAUTONAME:%s" % p, "1") |
50 | 50 | ||
51 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | 51 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have |
52 | # the source we cannot fix it. Disable the insane check for now. | 52 | # the source we cannot fix it. Disable the insane check for now. |
53 | if p == 'imx-codec-test-bin': | 53 | if p == 'imx-codec-test-bin': |
54 | # FIXME: includes the DUT .so files so we need to deploy those | 54 | # FIXME: includes the DUT .so files so we need to deploy those |
55 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel libdir file-rdeps") | 55 | d.setVar("INSANE_SKIP:%s" % p, "ldflags textrel libdir file-rdeps") |
56 | else: | 56 | else: |
57 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | 57 | d.setVar("INSANE_SKIP:%s" % p, "ldflags textrel") |
58 | } | 58 | } |
59 | 59 | ||
60 | do_package_qa[prefuncs] += "__set_insane_skip" | 60 | do_package_qa[prefuncs] += "__set_insane_skip" |
@@ -70,13 +70,13 @@ python __split_libfslcodec_plugins() { | |||
70 | for pkg in pkgs: | 70 | for pkg in pkgs: |
71 | meta = pkg[10:] | 71 | meta = pkg[10:] |
72 | if meta != '': | 72 | if meta != '': |
73 | d.setVar('RREPLACES_%s' % pkg, ' libfslcodec-%s' % meta) | 73 | d.setVar('RREPLACES:%s' % pkg, ' libfslcodec-%s' % meta) |
74 | d.setVar('RPROVIDES_%s' % pkg, ' libfslcodec-%s' % meta) | 74 | d.setVar('RPROVIDES:%s' % pkg, ' libfslcodec-%s' % meta) |
75 | d.setVar('RCONFLICTS_%s' % pkg, ' libfslcodec-%s' % meta) | 75 | d.setVar('RCONFLICTS:%s' % pkg, ' libfslcodec-%s' % meta) |
76 | else : | 76 | else : |
77 | d.setVar('RREPLACES_%s' % pkg, ' libfslcodec') | 77 | d.setVar('RREPLACES:%s' % pkg, ' libfslcodec') |
78 | d.setVar('RPROVIDES_%s' % pkg, ' libfslcodec') | 78 | d.setVar('RPROVIDES:%s' % pkg, ' libfslcodec') |
79 | d.setVar('RCONFLICTS_%s' % pkg, ' libfslcodec') | 79 | d.setVar('RCONFLICTS:%s' % pkg, ' libfslcodec') |
80 | } | 80 | } |
81 | 81 | ||
82 | python __set_metapkg_rdepends() { | 82 | python __set_metapkg_rdepends() { |
@@ -85,7 +85,7 @@ python __set_metapkg_rdepends() { | |||
85 | codec_pkgs = oe.utils.packages_filter_out_system(d) | 85 | codec_pkgs = oe.utils.packages_filter_out_system(d) |
86 | codec_pkgs = filter(lambda x: x not in ['imx-codec-test-bin', 'imx-codec-test-source'], | 86 | codec_pkgs = filter(lambda x: x not in ['imx-codec-test-bin', 'imx-codec-test-source'], |
87 | codec_pkgs) | 87 | codec_pkgs) |
88 | d.appendVar('RDEPENDS_imx-codec-meta', ' ' + ' '.join(codec_pkgs)) | 88 | d.appendVar('RDEPENDS:imx-codec-meta', ' ' + ' '.join(codec_pkgs)) |
89 | } | 89 | } |
90 | 90 | ||
91 | PACKAGESPLITFUNCS =+ "__split_libfslcodec_plugins __set_metapkg_rdepends" | 91 | PACKAGESPLITFUNCS =+ "__split_libfslcodec_plugins __set_metapkg_rdepends" |
@@ -96,24 +96,24 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | |||
96 | 96 | ||
97 | PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source" | 97 | PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source" |
98 | 98 | ||
99 | ALLOW_EMPTY_${PN} = "1" | 99 | ALLOW_EMPTY:${PN} = "1" |
100 | ALLOW_EMPTY_${PN}-meta = "1" | 100 | ALLOW_EMPTY:${PN}-meta = "1" |
101 | 101 | ||
102 | # Ensure we get warnings if we miss something | 102 | # Ensure we get warnings if we miss something |
103 | FILES_${PN} = "" | 103 | FILES:${PN} = "" |
104 | 104 | ||
105 | FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \ | 105 | FILES:${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \ |
106 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ | 106 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ |
107 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" | 107 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" |
108 | 108 | ||
109 | FILES_${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin" | 109 | FILES:${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin" |
110 | 110 | ||
111 | FILES_${PN}-test-source += "${datadir}/imx-mm/*" | 111 | FILES:${PN}-test-source += "${datadir}/imx-mm/*" |
112 | 112 | ||
113 | # FIXME: The wrap and lib names does not match | 113 | # FIXME: The wrap and lib names does not match |
114 | FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" | 114 | FILES:${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" |
115 | FILES_${PN}-nb += "${libdir}/imx-mm/audio-codec/wrap/lib_nbamrd_wrap_arm*_elinux.so.*" | 115 | FILES:${PN}-nb += "${libdir}/imx-mm/audio-codec/wrap/lib_nbamrd_wrap_arm*_elinux.so.*" |
116 | FILES_${PN}-wb += "${libdir}/imx-mm/audio-codec/wrap/lib_wbamrd_wrap_arm*_elinux.so.*" | 116 | FILES:${PN}-wb += "${libdir}/imx-mm/audio-codec/wrap/lib_wbamrd_wrap_arm*_elinux.so.*" |
117 | 117 | ||
118 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 118 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
119 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 119 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-multimedia/imx-dspc-asrc/imx-dspc-asrc_1.0.1.bb b/recipes-multimedia/imx-dspc-asrc/imx-dspc-asrc_1.0.1.bb index d9fd8458..83aa656f 100644 --- a/recipes-multimedia/imx-dspc-asrc/imx-dspc-asrc_1.0.1.bb +++ b/recipes-multimedia/imx-dspc-asrc/imx-dspc-asrc_1.0.1.bb | |||
@@ -17,6 +17,6 @@ INHIBIT_PACKAGE_STRIP = "1" | |||
17 | INHIBIT_SYSROOT_STRIP = "1" | 17 | INHIBIT_SYSROOT_STRIP = "1" |
18 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 18 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
19 | 19 | ||
20 | FILES_${PN} += "/unit_tests ${datadir}/imx-mm" | 20 | FILES:${PN} += "/unit_tests ${datadir}/imx-mm" |
21 | 21 | ||
22 | COMPATIBLE_MACHINE = "(mx8)" | 22 | COMPATIBLE_MACHINE = "(mx8)" |
diff --git a/recipes-multimedia/imx-parser/imx-parser_4.5.7.bb b/recipes-multimedia/imx-parser/imx-parser_4.5.7.bb index 0a3bb6a2..61a7a260 100644 --- a/recipes-multimedia/imx-parser/imx-parser_4.5.7.bb +++ b/recipes-multimedia/imx-parser/imx-parser_4.5.7.bb | |||
@@ -9,9 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=cf3f9b8d09bc3926b1004ea71f7a248a" | |||
9 | 9 | ||
10 | # For backwards compatibility | 10 | # For backwards compatibility |
11 | PROVIDES += "libfslparser" | 11 | PROVIDES += "libfslparser" |
12 | RREPLACES_${PN} = "libfslparser" | 12 | RREPLACES:${PN} = "libfslparser" |
13 | RPROVIDES_${PN} = "libfslparser" | 13 | RPROVIDES:${PN} = "libfslparser" |
14 | RCONFLICTS_${PN} = "libfslparser" | 14 | RCONFLICTS:${PN} = "libfslparser" |
15 | 15 | ||
16 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" | 16 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" |
17 | SRC_URI[md5sum] = "dd34e4e2d1384af27d370964ebbd05fd" | 17 | SRC_URI[md5sum] = "dd34e4e2d1384af27d370964ebbd05fd" |
@@ -31,13 +31,13 @@ python __set_insane_skip() { | |||
31 | # the source we cannot fix it. Disable the insane check for now. | 31 | # the source we cannot fix it. Disable the insane check for now. |
32 | # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those | 32 | # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those |
33 | for p in d.getVar('PACKAGES').split(): | 33 | for p in d.getVar('PACKAGES').split(): |
34 | d.setVar("INSANE_SKIP_%s" % p, "ldflags dev-so textrel") | 34 | d.setVar("INSANE_SKIP:%s" % p, "ldflags dev-so textrel") |
35 | } | 35 | } |
36 | 36 | ||
37 | do_package_qa[prefuncs] += "__set_insane_skip" | 37 | do_package_qa[prefuncs] += "__set_insane_skip" |
38 | 38 | ||
39 | # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those | 39 | # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those |
40 | FILES_${PN} += "${libdir}/imx-mm/*/*${SOLIBS} ${libdir}/imx-mm/*/*${SOLIBSDEV}" | 40 | FILES:${PN} += "${libdir}/imx-mm/*/*${SOLIBS} ${libdir}/imx-mm/*/*${SOLIBSDEV}" |
41 | 41 | ||
42 | INHIBIT_SYSROOT_STRIP = "1" | 42 | INHIBIT_SYSROOT_STRIP = "1" |
43 | 43 | ||
diff --git a/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.1.bb b/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.1.bb index b95727b8..7fc13c58 100644 --- a/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.1.bb +++ b/recipes-multimedia/imx-sw-pdm/imx-sw-pdm_1.0.1.bb | |||
@@ -11,8 +11,8 @@ SRC_URI[sha256sum] = "68fca50d8f7526127ee5650e9002b3f9479b197f3085c68a97f7957f50 | |||
11 | 11 | ||
12 | inherit fsl-eula-unpack autotools pkgconfig | 12 | inherit fsl-eula-unpack autotools pkgconfig |
13 | 13 | ||
14 | INSANE_SKIP_${PN} = "already-stripped" | 14 | INSANE_SKIP:${PN} = "already-stripped" |
15 | 15 | ||
16 | FILES_${PN} += "${datadir}/imx-mm" | 16 | FILES:${PN} += "${datadir}/imx-mm" |
17 | 17 | ||
18 | COMPATIBLE_MACHINE = "(mx8)" | 18 | COMPATIBLE_MACHINE = "(mx8)" |
diff --git a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_4.5.7.bb b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_4.5.7.bb index 2b028235..f77e33f7 100644 --- a/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_4.5.7.bb +++ b/recipes-multimedia/imx-vpuwrap/imx-vpuwrap_4.5.7.bb | |||
@@ -8,7 +8,7 @@ SECTION = "multimedia" | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" |
9 | 9 | ||
10 | DEPENDS = "virtual/imxvpu" | 10 | DEPENDS = "virtual/imxvpu" |
11 | DEPENDS_append_mx8mp = " imx-vpu-hantro-vc" | 11 | DEPENDS:append:mx8mp = " imx-vpu-hantro-vc" |
12 | 12 | ||
13 | SRC_URI = "git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH}" | 13 | SRC_URI = "git://github.com/NXP/imx-vpuwrap.git;protocol=https;branch=${SRCBRANCH}" |
14 | 14 | ||
@@ -19,7 +19,7 @@ S = "${WORKDIR}/git" | |||
19 | 19 | ||
20 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |
21 | 21 | ||
22 | do_install_append() { | 22 | do_install:append() { |
23 | # FIXME: Drop examples for now | 23 | # FIXME: Drop examples for now |
24 | rm -r ${D}${datadir} | 24 | rm -r ${D}${datadir} |
25 | } | 25 | } |
diff --git a/recipes-multimedia/libimxvpuapi/libimxvpuapi2_2.2.0.bb b/recipes-multimedia/libimxvpuapi/libimxvpuapi2_2.2.0.bb index f66eff27..372d78dc 100644 --- a/recipes-multimedia/libimxvpuapi/libimxvpuapi2_2.2.0.bb +++ b/recipes-multimedia/libimxvpuapi/libimxvpuapi2_2.2.0.bb | |||
@@ -15,10 +15,10 @@ S = "${WORKDIR}/git" | |||
15 | 15 | ||
16 | inherit waf pkgconfig use-imx-headers | 16 | inherit waf pkgconfig use-imx-headers |
17 | 17 | ||
18 | IMX_PLATFORM_mx6 = "imx6" | 18 | IMX_PLATFORM:mx6 = "imx6" |
19 | IMX_PLATFORM_mx8mq = "imx8m" | 19 | IMX_PLATFORM:mx8mq = "imx8m" |
20 | IMX_PLATFORM_mx8mm = "imx8mm" | 20 | IMX_PLATFORM:mx8mm = "imx8mm" |
21 | IMX_PLATFORM_mx8mp = "imx8mm" | 21 | IMX_PLATFORM:mx8mp = "imx8mm" |
22 | 22 | ||
23 | EXTRA_OECONF = "--imx-platform=${IMX_PLATFORM} --libdir=${libdir} --imx-headers=${STAGING_INCDIR_IMX} --sysroot-path=${RECIPE_SYSROOT}" | 23 | EXTRA_OECONF = "--imx-platform=${IMX_PLATFORM} --libdir=${libdir} --imx-headers=${STAGING_INCDIR_IMX} --sysroot-path=${RECIPE_SYSROOT}" |
24 | 24 | ||
diff --git a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend index 78a17864..ae69be4c 100644 --- a/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +++ b/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend | |||
@@ -1,21 +1,21 @@ | |||
1 | 1 | ||
2 | CACHED_CONFIGUREVARS_append_mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no" | 2 | CACHED_CONFIGUREVARS:append:mx6 = " ax_cv_PTHREAD_PRIO_INHERIT=no" |
3 | 3 | ||
4 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/imx:" | 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}/imx:" |
5 | 5 | ||
6 | SRC_URI_append_mx6 = " file://daemon.conf file://default.pa" | 6 | SRC_URI:append:mx6 = " file://daemon.conf file://default.pa" |
7 | SRC_URI_append_mx7 = " file://daemon.conf file://default.pa \ | 7 | SRC_URI:append:mx7 = " file://daemon.conf file://default.pa \ |
8 | file://pulseaudio-remove-the-control-for-speaker-headphone-widge.patch \ | 8 | file://pulseaudio-remove-the-control-for-speaker-headphone-widge.patch \ |
9 | " | 9 | " |
10 | SRC_URI_append_mx8 = " file://daemon.conf file://default.pa" | 10 | SRC_URI:append:mx8 = " file://daemon.conf file://default.pa" |
11 | 11 | ||
12 | do_install_append() { | 12 | do_install:append() { |
13 | if [ -e "${WORKDIR}/daemon.conf" ] && [ -e "${WORKDIR}/default.pa" ]; then | 13 | if [ -e "${WORKDIR}/daemon.conf" ] && [ -e "${WORKDIR}/default.pa" ]; then |
14 | install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf | 14 | install -m 0644 ${WORKDIR}/daemon.conf ${D}${sysconfdir}/pulse/daemon.conf |
15 | install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa | 15 | install -m 0644 ${WORKDIR}/default.pa ${D}${sysconfdir}/pulse/default.pa |
16 | fi | 16 | fi |
17 | } | 17 | } |
18 | 18 | ||
19 | PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" | 19 | PACKAGE_ARCH:mx6 = "${MACHINE_SOCARCH}" |
20 | PACKAGE_ARCH_mx7 = "${MACHINE_SOCARCH}" | 20 | PACKAGE_ARCH:mx7 = "${MACHINE_SOCARCH}" |
21 | PACKAGE_ARCH_mx8 = "${MACHINE_SOCARCH}" | 21 | PACKAGE_ARCH:mx8 = "${MACHINE_SOCARCH}" |
diff --git a/recipes-multimedia/tinycompress/tinycompress/0001-tinycompress-Add-id3-decoding.patch b/recipes-multimedia/tinycompress/tinycompress/0001-tinycompress-Add-id3-decoding.patch new file mode 100755 index 00000000..f578148a --- /dev/null +++ b/recipes-multimedia/tinycompress/tinycompress/0001-tinycompress-Add-id3-decoding.patch | |||
@@ -0,0 +1,1001 @@ | |||
1 | From 16f6b7a5baec41f18fde75fd311fb988e3c31810 Mon Sep 17 00:00:00 2001 | ||
2 | From: Shengjiu Wang <shengjiu.wang@nxp.com> | ||
3 | Date: Fri, 13 Jul 2018 18:13:24 +0800 | ||
4 | Subject: [PATCH] tinycompress: Add id3 decoding | ||
5 | |||
6 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> | ||
7 | --- | ||
8 | include/tinycompress/id3_tag_decode.h | 198 +++++++++++ | ||
9 | src/utils/Makefile.am | 2 +- | ||
10 | src/utils/cplay.c | 88 +++++ | ||
11 | src/utils/id3_tag_decode.c | 642 ++++++++++++++++++++++++++++++++++ | ||
12 | 4 files changed, 929 insertions(+), 1 deletion(-) | ||
13 | create mode 100644 include/tinycompress/id3_tag_decode.h | ||
14 | create mode 100644 src/utils/id3_tag_decode.c | ||
15 | |||
16 | diff --git a/include/tinycompress/id3_tag_decode.h b/include/tinycompress/id3_tag_decode.h | ||
17 | new file mode 100644 | ||
18 | index 0000000..1a911d7 | ||
19 | --- /dev/null | ||
20 | +++ b/include/tinycompress/id3_tag_decode.h | ||
21 | @@ -0,0 +1,198 @@ | ||
22 | +/* | ||
23 | + * Copyright (c) 2006-2017 Cadence Design Systems, Inc. | ||
24 | + * Copyright 2018 NXP | ||
25 | + * | ||
26 | + * Permission is hereby granted, free of charge, to any person obtaining | ||
27 | + * a copy of this software and associated documentation files (the | ||
28 | + * "Software"), to deal in the Software without restriction, including | ||
29 | + * without limitation the rights to use, copy, modify, merge, publish, | ||
30 | + * distribute, sublicense, and/or sell copies of the Software, and to | ||
31 | + * permit persons to whom the Software is furnished to do so, subject to | ||
32 | + * the following conditions: | ||
33 | + * | ||
34 | + * The above copyright notice and this permission notice shall be included | ||
35 | + * in all copies or substantial portions of the Software. | ||
36 | + * | ||
37 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
38 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
39 | + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
40 | + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
41 | + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
42 | + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
43 | + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
44 | + */ | ||
45 | + | ||
46 | +/****************************************************************** | ||
47 | + * file name : id3_tag_decode.h | ||
48 | + * | ||
49 | + * description : stores typedefs of structures specific to MP3 tag | ||
50 | + * | ||
51 | + * revision history: | ||
52 | + * 29 04 2004 DK creation | ||
53 | + *****************************************************************/ | ||
54 | + | ||
55 | +#ifndef ID3_TAG_DECODE_H | ||
56 | +#define ID3_TAG_DECODE_H | ||
57 | + | ||
58 | +typedef signed char WORD8; | ||
59 | +typedef signed char * pWORD8; | ||
60 | +typedef unsigned char UWORD8; | ||
61 | +typedef unsigned char * pUWORD8; | ||
62 | + | ||
63 | +typedef signed short WORD16; | ||
64 | +typedef signed short * pWORD16; | ||
65 | +typedef unsigned short UWORD16; | ||
66 | +typedef unsigned short * pUWORD16; | ||
67 | + | ||
68 | +typedef signed int WORD24; | ||
69 | +typedef signed int * pWORD24; | ||
70 | +typedef unsigned int UWORD24; | ||
71 | +typedef unsigned int * pUWORD24; | ||
72 | + | ||
73 | +typedef signed int WORD32; | ||
74 | +typedef signed int * pWORD32; | ||
75 | +typedef unsigned int UWORD32; | ||
76 | +typedef unsigned int * pUWORD32; | ||
77 | + | ||
78 | +typedef void VOID; | ||
79 | +typedef void * pVOID; | ||
80 | + | ||
81 | +typedef signed int BOOL; | ||
82 | +typedef unsigned int UBOOL; | ||
83 | +typedef signed int FLAG; | ||
84 | +typedef unsigned int UFLAG; | ||
85 | +typedef signed int LOOPIDX; | ||
86 | +typedef unsigned int ULOOPIDX; | ||
87 | +typedef signed int WORD; | ||
88 | +typedef unsigned int UWORD; | ||
89 | + | ||
90 | +#define MAX_TAG_FRAME_SIZE 100 | ||
91 | + | ||
92 | +#define ID3V1 (0x544147) /* 0x544147 is TAG in WORD8 */ | ||
93 | + | ||
94 | +#define ID3V2 (0x494433) /* 0x494433 is ID3 in WORD8 */ | ||
95 | + | ||
96 | +/* | ||
97 | + * structure corresponding to ID3 tag v1 header. | ||
98 | + * this structure has all the field corresponding to ID3 tag v1 header. | ||
99 | + */ | ||
100 | + | ||
101 | +typedef struct { | ||
102 | + WORD32 tag; // 3 bytes | ||
103 | + | ||
104 | + WORD16 version; // 2 bytes | ||
105 | + | ||
106 | + WORD8 flag; //1 byte | ||
107 | + | ||
108 | + WORD32 size; //4 bytes | ||
109 | + | ||
110 | +} id3_v2_header_struct; | ||
111 | + | ||
112 | +/* structure which will store the frame data and | ||
113 | + * also put a limit max data to be stored | ||
114 | + */ | ||
115 | +typedef struct { | ||
116 | + WORD8 frame_data[MAX_TAG_FRAME_SIZE]; | ||
117 | + | ||
118 | + WORD32 max_size; //4 bytes | ||
119 | + | ||
120 | + WORD16 tag_present; | ||
121 | + | ||
122 | + WORD16 exceeds_buffer_size; | ||
123 | + | ||
124 | +} id3_v2_frame_struct; | ||
125 | + | ||
126 | +/* | ||
127 | + * structure corresponding to ID3 tag v2. | ||
128 | + * this structure has some of the field corresponding to ID3 tag v2. | ||
129 | + * if user wants to read some more tag information from | ||
130 | + * the MP3 file, he can add that field in this structure and pass address | ||
131 | + * of that element to get_inf function in id3_tag_decode.c under the | ||
132 | + * corresponding field frame header. few fields which are needed are already | ||
133 | + * populated by reading from the TAG header. | ||
134 | + */ | ||
135 | +typedef struct { | ||
136 | + id3_v2_frame_struct album_movie_show_title; | ||
137 | + | ||
138 | + id3_v2_frame_struct composer_name; | ||
139 | + | ||
140 | + id3_v2_frame_struct content_type; | ||
141 | + | ||
142 | + id3_v2_frame_struct encoded_by; | ||
143 | + | ||
144 | + id3_v2_frame_struct lyricist_text_writer; | ||
145 | + | ||
146 | + id3_v2_frame_struct content_group_description; | ||
147 | + | ||
148 | + id3_v2_frame_struct title_songname_content_description; | ||
149 | + | ||
150 | + id3_v2_frame_struct medxa_type; | ||
151 | + | ||
152 | + id3_v2_frame_struct original_album_movie_show_title; | ||
153 | + | ||
154 | + id3_v2_frame_struct original_filename; | ||
155 | + | ||
156 | + id3_v2_frame_struct original_lyricist_text_writer; | ||
157 | + | ||
158 | + id3_v2_frame_struct original_artist_performer; | ||
159 | + | ||
160 | + id3_v2_frame_struct file_owner_licensee; | ||
161 | + | ||
162 | + id3_v2_frame_struct lead_performer_soloist; | ||
163 | + | ||
164 | + id3_v2_frame_struct publisher; | ||
165 | + | ||
166 | + id3_v2_frame_struct private_frame; | ||
167 | + | ||
168 | + id3_v2_frame_struct other_info; | ||
169 | + | ||
170 | + id3_v2_header_struct id3_v2_header; | ||
171 | + | ||
172 | + WORD32 header_end; | ||
173 | + | ||
174 | + WORD32 bytes_consumed; | ||
175 | + | ||
176 | +} id3v2_struct; | ||
177 | + | ||
178 | +/* | ||
179 | + * structure corresponding to ID3 tag v1. | ||
180 | + * this structure has all the field corresponding to ID3 tag v1. | ||
181 | + */ | ||
182 | +typedef struct { | ||
183 | + WORD8 song_title[30]; //30 word8acters | ||
184 | + | ||
185 | + WORD8 artist[30]; //30 word8acters | ||
186 | + | ||
187 | + WORD8 album[30]; //30 word8acters | ||
188 | + | ||
189 | + WORD8 year[4]; //4 word8acters | ||
190 | + | ||
191 | + WORD8 comment[30]; //30 word8acters | ||
192 | + | ||
193 | + WORD8 genre[1]; //1 byte | ||
194 | + | ||
195 | +} id3v1_struct; | ||
196 | + | ||
197 | +WORD32 get_info(const char *inp_buffer, | ||
198 | + unsigned int avail_inp, | ||
199 | + WORD32 tag_size, | ||
200 | + id3_v2_frame_struct *dest); | ||
201 | + | ||
202 | +WORD32 search_id3_v2(UWORD8 *buffer); | ||
203 | + | ||
204 | +WORD32 decode_id3_v2(const char *const buffer, | ||
205 | + id3v2_struct *id3v2, | ||
206 | + WORD32 continue_flag, | ||
207 | + WORD32 insize); | ||
208 | + | ||
209 | +WORD32 get_id3_v2_bytes(UWORD8 *buffer); | ||
210 | + | ||
211 | +WORD32 get_v1_info(UWORD8 *buffer, id3v1_struct *id3v1); | ||
212 | + | ||
213 | +WORD32 search_id3_v1(UWORD8 *buffer); | ||
214 | + | ||
215 | +WORD32 decode_id3_v1(UWORD8 *buffer, id3v1_struct *id3v1); | ||
216 | + | ||
217 | +void init_id3v2_field(id3v2_struct *id3v2); | ||
218 | + | ||
219 | +#endif | ||
220 | diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am | ||
221 | index 1b996d4..e813689 100644 | ||
222 | --- a/src/utils/Makefile.am | ||
223 | +++ b/src/utils/Makefile.am | ||
224 | @@ -1,6 +1,6 @@ | ||
225 | bin_PROGRAMS = cplay crecord | ||
226 | |||
227 | -cplay_SOURCES = cplay.c | ||
228 | +cplay_SOURCES = cplay.c id3_tag_decode.c | ||
229 | crecord_SOURCES = crecord.c | ||
230 | |||
231 | cplay_CFLAGS = -I$(top_srcdir)/include | ||
232 | diff --git a/src/utils/cplay.c b/src/utils/cplay.c | ||
233 | index 87863a3..2a52b52 100644 | ||
234 | --- a/src/utils/cplay.c | ||
235 | +++ b/src/utils/cplay.c | ||
236 | @@ -72,6 +72,7 @@ | ||
237 | #include "sound/compress_params.h" | ||
238 | #include "tinycompress/tinycompress.h" | ||
239 | #include "tinycompress/tinymp3.h" | ||
240 | +#include "tinycompress/id3_tag_decode.h" | ||
241 | |||
242 | static int verbose; | ||
243 | static const unsigned int DEFAULT_CODEC_ID = SND_AUDIOCODEC_PCM; | ||
244 | @@ -245,12 +246,97 @@ int main(int argc, char **argv) | ||
245 | exit(EXIT_SUCCESS); | ||
246 | } | ||
247 | |||
248 | +void shift_buffer(char *buf, int buf_size, int bytes_consumed) | ||
249 | +{ | ||
250 | + int i; | ||
251 | + | ||
252 | + if (bytes_consumed <= 0) | ||
253 | + return; | ||
254 | + | ||
255 | + for (i = 0; i < buf_size - bytes_consumed; i++) | ||
256 | + buf[i] = buf[i + bytes_consumed]; | ||
257 | +} | ||
258 | + | ||
259 | +void parse_id3(FILE *file, int *offset) { | ||
260 | + /* ID3 tag specific declarations */ | ||
261 | + unsigned char id3_buf[128]; | ||
262 | + unsigned char id3v2_buf[4096]; | ||
263 | + signed int id3_v1_found = 0, id3_v1_decoded = 0; | ||
264 | + signed int id3_v2_found = 0, id3_v2_complete = 0; | ||
265 | + signed int i_bytes_consumed = 0; | ||
266 | + signed int i_fread_bytes; | ||
267 | + id3v1_struct id3v1; | ||
268 | + id3v2_struct id3v2; | ||
269 | + | ||
270 | + { | ||
271 | + fseek(file, -128, SEEK_END); | ||
272 | + fread(id3_buf, 1, 128, file); | ||
273 | + | ||
274 | + /* search for ID3V1 */ | ||
275 | + id3_v1_found = search_id3_v1(id3_buf + 0); | ||
276 | + if (id3_v1_found) { | ||
277 | + /* if ID3V1 is found, decode ID3V1 */ | ||
278 | + decode_id3_v1(id3_buf + 3, &id3v1); | ||
279 | + id3_v1_decoded = 1; | ||
280 | + } | ||
281 | + fseek(file, 0, SEEK_SET); | ||
282 | + } | ||
283 | + | ||
284 | + { | ||
285 | + signed int flag = 0; | ||
286 | + signed int continue_flag = 0; | ||
287 | + | ||
288 | + i_fread_bytes = fread(id3v2_buf, | ||
289 | + sizeof(char), 0x1000, file); | ||
290 | + | ||
291 | + /* search for ID3V2 */ | ||
292 | + id3_v2_found = | ||
293 | + search_id3_v2(id3v2_buf); | ||
294 | + | ||
295 | + if (id3_v2_found) { | ||
296 | + /* initialise the max fields */ | ||
297 | + init_id3v2_field(&id3v2); | ||
298 | + | ||
299 | + while (!id3_v2_complete && id3_v2_found) { | ||
300 | + /* if ID3V2 is found, decode ID3V2 */ | ||
301 | + id3_v2_complete = decode_id3_v2((const char *const)id3v2_buf, | ||
302 | + &id3v2, continue_flag, i_fread_bytes); | ||
303 | + | ||
304 | + if (!id3_v2_complete) { | ||
305 | + continue_flag = 1; | ||
306 | + i_bytes_consumed = id3v2.bytes_consumed; | ||
307 | + | ||
308 | + fseek(file, i_bytes_consumed, SEEK_SET); | ||
309 | + | ||
310 | + i_fread_bytes = fread(id3v2_buf, | ||
311 | + sizeof(unsigned char), 0x1000, file); | ||
312 | + if (i_fread_bytes <= 0) { | ||
313 | + return; | ||
314 | + } | ||
315 | + } | ||
316 | + } | ||
317 | + | ||
318 | + if (id3_v2_complete) { | ||
319 | + i_bytes_consumed = id3v2.bytes_consumed; | ||
320 | + fseek(file, i_bytes_consumed, SEEK_SET); | ||
321 | + } | ||
322 | + } | ||
323 | + } | ||
324 | + | ||
325 | + *offset = i_bytes_consumed; | ||
326 | +} | ||
327 | + | ||
328 | void get_codec_mp3(FILE *file, struct compr_config *config, | ||
329 | struct snd_codec *codec) | ||
330 | { | ||
331 | size_t read; | ||
332 | struct mp3_header header; | ||
333 | unsigned int channels, rate, bits; | ||
334 | + int offset = 0; | ||
335 | + | ||
336 | + parse_id3(file, &offset); | ||
337 | + | ||
338 | + fseek(file, offset, SEEK_SET); | ||
339 | |||
340 | read = fread(&header, 1, sizeof(header), file); | ||
341 | if (read != sizeof(header)) { | ||
342 | @@ -279,6 +365,8 @@ void get_codec_mp3(FILE *file, struct compr_config *config, | ||
343 | codec->level = 0; | ||
344 | codec->ch_mode = 0; | ||
345 | codec->format = 0; | ||
346 | + | ||
347 | + fseek(file, offset, SEEK_SET); | ||
348 | } | ||
349 | |||
350 | void get_codec_iec(FILE *file, struct compr_config *config, | ||
351 | diff --git a/src/utils/id3_tag_decode.c b/src/utils/id3_tag_decode.c | ||
352 | new file mode 100644 | ||
353 | index 0000000..393967a | ||
354 | --- /dev/null | ||
355 | +++ b/src/utils/id3_tag_decode.c | ||
356 | @@ -0,0 +1,642 @@ | ||
357 | +/* | ||
358 | + * Copyright (c) 2006-2017 Cadence Design Systems, Inc. | ||
359 | + * Copyright 2018 NXP | ||
360 | + * | ||
361 | + * Permission is hereby granted, free of charge, to any person obtaining | ||
362 | + * a copy of this software and associated documentation files (the | ||
363 | + * "Software"), to deal in the Software without restriction, including | ||
364 | + * without limitation the rights to use, copy, modify, merge, publish, | ||
365 | + * distribute, sublicense, and/or sell copies of the Software, and to | ||
366 | + * permit persons to whom the Software is furnished to do so, subject to | ||
367 | + * the following conditions: | ||
368 | + * | ||
369 | + * The above copyright notice and this permission notice shall be included | ||
370 | + * in all copies or substantial portions of the Software. | ||
371 | + * | ||
372 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
373 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
374 | + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
375 | + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
376 | + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
377 | + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
378 | + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
379 | + */ | ||
380 | +#include <ctype.h> | ||
381 | +#include "tinycompress/id3_tag_decode.h" | ||
382 | + | ||
383 | +#define CHAR4(c1, c2, c3, c4) \ | ||
384 | + (int)(((unsigned char)(c1) << 24) | \ | ||
385 | + ((unsigned char)(c2) << 16) | \ | ||
386 | + ((unsigned char)(c3) << 8) | \ | ||
387 | + ((unsigned char)c4)) | ||
388 | + | ||
389 | +#ifndef MSVC_BUILD | ||
390 | +unsigned int umin(unsigned int a, unsigned int b) | ||
391 | +{ | ||
392 | + return (a < b ? a : b); | ||
393 | +} | ||
394 | + | ||
395 | +#else | ||
396 | +unsigned int umin(unsigned int a, unsigned int b) | ||
397 | +{ | ||
398 | + return (a < b ? a : b); | ||
399 | +} | ||
400 | +#endif | ||
401 | + | ||
402 | +/*********************************************************** | ||
403 | + * function name : display | ||
404 | + * | ||
405 | + * description : display ID3 tag contents. | ||
406 | + * | ||
407 | + * arguments : input parameters | ||
408 | + * | ||
409 | + * values returned : 0 | ||
410 | + ***********************************************************/ | ||
411 | + | ||
412 | +static void display2(const id3_v2_frame_struct * const src, | ||
413 | + int size, | ||
414 | + const char * const disp) | ||
415 | +{ | ||
416 | + int j; | ||
417 | + | ||
418 | + | ||
419 | + for (j = 0; j < size; j++) { | ||
420 | + int c = src->frame_data[j]; | ||
421 | + | ||
422 | + if (c) { | ||
423 | + if (!isprint(c)) | ||
424 | + break; | ||
425 | + } | ||
426 | + } | ||
427 | +} | ||
428 | + | ||
429 | +static VOID display1(WORD8 src[], WORD32 size, WORD8 disp[]) | ||
430 | +{ | ||
431 | + WORD32 j; | ||
432 | + | ||
433 | + for (j = 0; j < size ; j++) { | ||
434 | + int c = src[j]; | ||
435 | + | ||
436 | + if (c) { | ||
437 | + if (!isprint(c)) | ||
438 | + break; | ||
439 | + } | ||
440 | + } | ||
441 | +} | ||
442 | + | ||
443 | +/***************************************************************** | ||
444 | + * function name : init_id3_header | ||
445 | + * | ||
446 | + * description : initialise the max filed size of teh farem. | ||
447 | + * | ||
448 | + * arguments : input parameters | ||
449 | + * | ||
450 | + * values returned : 0 | ||
451 | + ****************************************************************/ | ||
452 | + | ||
453 | +VOID init_id3v2_field(id3v2_struct *id3v2) | ||
454 | +{ | ||
455 | + id3v2->album_movie_show_title.max_size = MAX_TAG_FRAME_SIZE; | ||
456 | + id3v2->composer_name.max_size = MAX_TAG_FRAME_SIZE; | ||
457 | + id3v2->content_type.max_size = MAX_TAG_FRAME_SIZE; | ||
458 | + id3v2->encoded_by.max_size = MAX_TAG_FRAME_SIZE; | ||
459 | + id3v2->lyricist_text_writer.max_size = MAX_TAG_FRAME_SIZE; | ||
460 | + id3v2->content_group_description.max_size = MAX_TAG_FRAME_SIZE; | ||
461 | + id3v2->title_songname_content_description.max_size = MAX_TAG_FRAME_SIZE; | ||
462 | + id3v2->medxa_type.max_size = MAX_TAG_FRAME_SIZE; | ||
463 | + id3v2->original_album_movie_show_title.max_size = MAX_TAG_FRAME_SIZE; | ||
464 | + id3v2->original_filename.max_size = MAX_TAG_FRAME_SIZE; | ||
465 | + id3v2->original_lyricist_text_writer.max_size = MAX_TAG_FRAME_SIZE; | ||
466 | + id3v2->original_artist_performer.max_size = MAX_TAG_FRAME_SIZE; | ||
467 | + id3v2->file_owner_licensee.max_size = MAX_TAG_FRAME_SIZE; | ||
468 | + id3v2->lead_performer_soloist.max_size = MAX_TAG_FRAME_SIZE; | ||
469 | + id3v2->publisher.max_size = MAX_TAG_FRAME_SIZE; | ||
470 | + id3v2->private_frame.max_size = MAX_TAG_FRAME_SIZE; | ||
471 | + id3v2->other_info.max_size = MAX_TAG_FRAME_SIZE; | ||
472 | + | ||
473 | + /* resetting the flag to indicate presese of frame */ | ||
474 | + id3v2->album_movie_show_title.tag_present = 0; | ||
475 | + id3v2->composer_name.tag_present = 0; | ||
476 | + id3v2->content_type.tag_present = 0; | ||
477 | + id3v2->encoded_by.tag_present = 0; | ||
478 | + id3v2->lyricist_text_writer.tag_present = 0; | ||
479 | + id3v2->content_group_description.tag_present = 0; | ||
480 | + id3v2->title_songname_content_description.tag_present = 0; | ||
481 | + id3v2->medxa_type.tag_present = 0; | ||
482 | + id3v2->original_album_movie_show_title.tag_present = 0; | ||
483 | + id3v2->original_filename.tag_present = 0; | ||
484 | + id3v2->original_lyricist_text_writer.tag_present = 0; | ||
485 | + id3v2->original_artist_performer.tag_present = 0; | ||
486 | + id3v2->file_owner_licensee.tag_present = 0; | ||
487 | + id3v2->lead_performer_soloist.tag_present = 0; | ||
488 | + id3v2->publisher.tag_present = 0; | ||
489 | + id3v2->private_frame.tag_present = 0; | ||
490 | + id3v2->other_info.tag_present = 0; | ||
491 | + | ||
492 | + /* resetting the flag which indicates that size of the frame has | ||
493 | + * exceeded the max buffer size | ||
494 | + */ | ||
495 | + id3v2->album_movie_show_title.exceeds_buffer_size = 0; | ||
496 | + id3v2->composer_name.exceeds_buffer_size = 0; | ||
497 | + id3v2->content_type.exceeds_buffer_size = 0; | ||
498 | + id3v2->encoded_by.exceeds_buffer_size = 0; | ||
499 | + id3v2->lyricist_text_writer.exceeds_buffer_size = 0; | ||
500 | + id3v2->content_group_description.exceeds_buffer_size = 0; | ||
501 | + id3v2->title_songname_content_description.exceeds_buffer_size = 0; | ||
502 | + id3v2->medxa_type.exceeds_buffer_size = 0; | ||
503 | + id3v2->original_album_movie_show_title.exceeds_buffer_size = 0; | ||
504 | + id3v2->original_filename.exceeds_buffer_size = 0; | ||
505 | + id3v2->original_lyricist_text_writer.exceeds_buffer_size = 0; | ||
506 | + id3v2->original_artist_performer.exceeds_buffer_size = 0; | ||
507 | + id3v2->file_owner_licensee.exceeds_buffer_size = 0; | ||
508 | + id3v2->lead_performer_soloist.exceeds_buffer_size = 0; | ||
509 | + id3v2->publisher.exceeds_buffer_size = 0; | ||
510 | + id3v2->private_frame.exceeds_buffer_size = 0; | ||
511 | + id3v2->other_info.exceeds_buffer_size = 0; | ||
512 | + | ||
513 | + id3v2->bytes_consumed = 0; | ||
514 | + id3v2->header_end = 0; | ||
515 | +} | ||
516 | + | ||
517 | +/*************************************************************** | ||
518 | + * function name : search_id3_v2 | ||
519 | + * | ||
520 | + * description : finds if ID3V2 starts at the start of given buffer. | ||
521 | + * | ||
522 | + * arguments : input parameters | ||
523 | + * buffer input buffer | ||
524 | + * | ||
525 | + * values returned : FLAG 1: ID3 found 0: ID3 not found | ||
526 | + ***************************************************************/ | ||
527 | +WORD32 search_id3_v2(UWORD8 *buffer) | ||
528 | +{ | ||
529 | + UWORD32 temp; | ||
530 | + | ||
531 | + temp = buffer[0] << 16; | ||
532 | + temp |= buffer[1] << 8; | ||
533 | + temp |= buffer[2]; | ||
534 | + | ||
535 | + if (temp == ID3V2) | ||
536 | + return 1; /* ID3 found */ | ||
537 | + | ||
538 | + return 0; /* ID3 not found */ | ||
539 | +} | ||
540 | + | ||
541 | +/************************************************************** | ||
542 | + * function name : search_id3_v1 | ||
543 | + * | ||
544 | + * description : finds if ID3V1 starts at the start of given buffer. | ||
545 | + * | ||
546 | + * arguments : input parameters | ||
547 | + * buffer input buffer | ||
548 | + * | ||
549 | + * values returned : FLAG 1: ID3 found 0: ID3 not found | ||
550 | + **************************************************************/ | ||
551 | +WORD32 search_id3_v1(UWORD8 *buffer) | ||
552 | +{ | ||
553 | + UWORD32 temp; | ||
554 | + | ||
555 | + temp = buffer[0] << 16; | ||
556 | + temp |= buffer[1] << 8; | ||
557 | + temp |= buffer[2]; | ||
558 | + | ||
559 | + if (temp == ID3V1) | ||
560 | + return 1; /* ID3 found */ | ||
561 | + | ||
562 | + return 0; /* ID3 not found */ | ||
563 | +} | ||
564 | + | ||
565 | +/*************************************************************** | ||
566 | + * function name : decode_id3_v1 | ||
567 | + * | ||
568 | + * description : decodes ID3V1 tag. | ||
569 | + * | ||
570 | + * arguments : input parameters | ||
571 | + * buffer input buffer | ||
572 | + * id3v1 structure | ||
573 | + * | ||
574 | + * values returned : bytes consumed | ||
575 | + **************************************************************/ | ||
576 | +WORD32 decode_id3_v1(UWORD8 *buffer, id3v1_struct *id3v1) | ||
577 | +{ | ||
578 | + WORD32 bytes_consumed = 0; | ||
579 | + short tag_type; | ||
580 | + | ||
581 | + /* setting the tag type */ | ||
582 | + tag_type = 1; | ||
583 | + | ||
584 | + bytes_consumed = get_v1_info(buffer, id3v1); | ||
585 | + | ||
586 | + return bytes_consumed; | ||
587 | +} | ||
588 | + | ||
589 | +/*********************************************************** | ||
590 | + * function name : get_v1_info | ||
591 | + * | ||
592 | + * description : gets ID3V1 information fields. | ||
593 | + * | ||
594 | + * arguments : input parameters | ||
595 | + * buffer input buffer | ||
596 | + * id3v1 structure | ||
597 | + * | ||
598 | + * values returned : bytes consumed | ||
599 | + ***********************************************************/ | ||
600 | +WORD32 get_v1_info(UWORD8 *buffer, id3v1_struct *id3v1) | ||
601 | +{ | ||
602 | + WORD32 i; | ||
603 | + WORD32 bytes_consumed = 0; | ||
604 | + | ||
605 | + /* get song_title */ | ||
606 | + for (i = 0; i < 30; i++) | ||
607 | + id3v1->song_title[i] = buffer[i]; | ||
608 | + | ||
609 | + buffer += 30; | ||
610 | + bytes_consumed += 30; | ||
611 | + display1(id3v1->song_title, 30, (WORD8 *)"song_title : "); | ||
612 | + | ||
613 | + /* get artist */ | ||
614 | + for (i = 0; i < 30; i++) | ||
615 | + id3v1->artist[i] = buffer[i]; | ||
616 | + | ||
617 | + buffer += 30; | ||
618 | + bytes_consumed += 30; | ||
619 | + display1(id3v1->artist, 30, (WORD8 *)"artist : "); | ||
620 | + | ||
621 | + /* get album */ | ||
622 | + for (i = 0; i < 30; i++) | ||
623 | + id3v1->album[i] = buffer[i]; | ||
624 | + | ||
625 | + buffer += 30; | ||
626 | + bytes_consumed += 30; | ||
627 | + display1(id3v1->album, 30, (WORD8 *)"album : "); | ||
628 | + | ||
629 | + /* get year */ | ||
630 | + for (i = 0; i < 4; i++) | ||
631 | + id3v1->year[i] = buffer[i]; | ||
632 | + | ||
633 | + buffer += 4; | ||
634 | + bytes_consumed += 4; | ||
635 | + display1(id3v1->year, 4, (WORD8 *)"year : "); | ||
636 | + | ||
637 | + /* get comment */ | ||
638 | + for (i = 0; i < 30; i++) | ||
639 | + id3v1->comment[i] = buffer[i]; | ||
640 | + | ||
641 | + buffer += 30; | ||
642 | + bytes_consumed += 30; | ||
643 | + display1(id3v1->comment, 30, (WORD8 *)"comment : "); | ||
644 | + | ||
645 | + /* get genre */ | ||
646 | + for (i = 0; i < 1; i++) | ||
647 | + id3v1->genre[i] = buffer[i]; | ||
648 | + | ||
649 | + buffer += 1; | ||
650 | + bytes_consumed += 1; | ||
651 | + | ||
652 | + return bytes_consumed; | ||
653 | +} | ||
654 | + | ||
655 | +/***************************************************** | ||
656 | + * function name : decode_id3_v2 | ||
657 | + * | ||
658 | + * description : decodes ID3V2 tag. | ||
659 | + * | ||
660 | + * arguments : input parameters | ||
661 | + * buffer input buffer | ||
662 | + * id3v2 structure | ||
663 | + * continue_flag FLAG to indicate whether | ||
664 | + * it is first call or not | ||
665 | + * insize input buffer size | ||
666 | + * | ||
667 | + * values returned : bytes consumed | ||
668 | + ******************************************************/ | ||
669 | +WORD32 decode_id3_v2(const char *const buffer, | ||
670 | + id3v2_struct *const id3v2, | ||
671 | + WORD32 continue_flag, | ||
672 | + WORD32 insize) | ||
673 | +{ | ||
674 | + UWORD32 size = 0, flag; | ||
675 | + WORD32 i, buf_update_val; | ||
676 | + UWORD8 buf[4], frame_header[10], id3_buffer[10]; | ||
677 | + WORD8 *bitstream_ptr; | ||
678 | + short tag_type; | ||
679 | + | ||
680 | + WORD32 bytes_consumed = 0; | ||
681 | + | ||
682 | + if (id3v2->header_end == 1) { | ||
683 | + id3v2->bytes_consumed += insize; | ||
684 | + if (id3v2->bytes_consumed < id3v2->id3_v2_header.size) | ||
685 | + return 0; | ||
686 | + | ||
687 | + id3v2->bytes_consumed = (id3v2->id3_v2_header.size + 10); | ||
688 | + return 1; | ||
689 | + } | ||
690 | + | ||
691 | + bitstream_ptr = (WORD8 *)id3_buffer; | ||
692 | + | ||
693 | + if (!continue_flag) { | ||
694 | + bytes_consumed += 3; | ||
695 | + /* setting the tag type */ | ||
696 | + tag_type = 2; | ||
697 | + id3v2->id3_v2_header.version = buffer[bytes_consumed + 0] << 8; | ||
698 | + id3v2->id3_v2_header.version |= buffer[bytes_consumed + 1]; | ||
699 | + id3v2->id3_v2_header.flag = buffer[bytes_consumed + 2]; | ||
700 | + | ||
701 | + /* making the msb of each byte zero */ | ||
702 | + buf[0] = buffer[bytes_consumed + 6] & 0x7f; | ||
703 | + buf[1] = buffer[bytes_consumed + 5] & 0x7f; | ||
704 | + buf[2] = buffer[bytes_consumed + 4] & 0x7f; | ||
705 | + buf[3] = buffer[bytes_consumed + 3] & 0x7f; | ||
706 | + | ||
707 | + bytes_consumed += 7; | ||
708 | + | ||
709 | + /* concatenation the bytes after making | ||
710 | + * 7th bit zero to get 28 bits size | ||
711 | + */ | ||
712 | + size = buf[0]; | ||
713 | + size |= (buf[1] << 7); | ||
714 | + size |= (buf[2] << 14); | ||
715 | + size |= (buf[3] << 21); | ||
716 | + /* storing the size */ | ||
717 | + id3v2->id3_v2_header.size = size; | ||
718 | + | ||
719 | + /* check for extended header */ | ||
720 | + if (id3v2->id3_v2_header.flag & 0x20) { | ||
721 | + for (i = 0; i < 10; i++) | ||
722 | + bitstream_ptr[i] = buffer[bytes_consumed + i]; | ||
723 | + | ||
724 | + i = 0; | ||
725 | + bytes_consumed += 10; | ||
726 | + | ||
727 | + size = bitstream_ptr[i++] << 24; | ||
728 | + size |= bitstream_ptr[i++] << 16; | ||
729 | + size |= bitstream_ptr[i++] << 8; | ||
730 | + size |= bitstream_ptr[i++]; | ||
731 | + | ||
732 | + /* two bytes for flag */ | ||
733 | + i += 2; | ||
734 | + { | ||
735 | + UWORD32 padding_size; | ||
736 | + | ||
737 | + padding_size = bitstream_ptr[i++] << 24; | ||
738 | + padding_size |= bitstream_ptr[i++] << 16; | ||
739 | + padding_size |= bitstream_ptr[i++] << 8; | ||
740 | + padding_size |= bitstream_ptr[i++]; | ||
741 | + | ||
742 | + /* skipping the padding and frame size | ||
743 | + * number of bytes | ||
744 | + */ | ||
745 | + bytes_consumed += (padding_size + size); | ||
746 | + } | ||
747 | + } | ||
748 | + } | ||
749 | + | ||
750 | + while (id3v2->header_end != 1) { | ||
751 | + char *key; | ||
752 | + id3_v2_frame_struct *value; | ||
753 | + unsigned int avail_inp; | ||
754 | + | ||
755 | + /* reading the 10 bytes to get the frame header */ | ||
756 | + | ||
757 | + for (i = 0; i < 10; i++) | ||
758 | + frame_header[i] = buffer[bytes_consumed + i]; | ||
759 | + bytes_consumed += 10; | ||
760 | + | ||
761 | + /* getting the size from the header */ | ||
762 | + size = frame_header[4] << 24; | ||
763 | + size |= frame_header[5] << 16; | ||
764 | + size |= frame_header[6] << 8; | ||
765 | + size |= frame_header[7]; | ||
766 | + | ||
767 | + /* decoding the flag, currently not used */ | ||
768 | + flag = frame_header[8] << 8; | ||
769 | + flag |= frame_header[9]; | ||
770 | + | ||
771 | + avail_inp = insize - bytes_consumed; | ||
772 | + | ||
773 | + /* switching to the frame type */ | ||
774 | + switch (CHAR4(frame_header[0], | ||
775 | + frame_header[1], | ||
776 | + frame_header[2], | ||
777 | + frame_header[3])) { | ||
778 | + case CHAR4('A', 'E', 'N', 'C'): | ||
779 | + case CHAR4('A', 'P', 'I', 'C'): | ||
780 | + case CHAR4('C', 'O', 'M', 'M'): | ||
781 | + case CHAR4('C', 'O', 'M', 'R'): | ||
782 | + case CHAR4('E', 'N', 'C', 'R'): | ||
783 | + case CHAR4('E', 'Q', 'U', 'A'): | ||
784 | + case CHAR4('E', 'T', 'C', 'O'): | ||
785 | + case CHAR4('G', 'E', 'O', 'B'): | ||
786 | + case CHAR4('G', 'R', 'I', 'D'): | ||
787 | + case CHAR4('I', 'P', 'L', 'S'): | ||
788 | + case CHAR4('L', 'I', 'N', 'K'): | ||
789 | + case CHAR4('M', 'C', 'D', 'I'): | ||
790 | + case CHAR4('M', 'L', 'L', 'T'): | ||
791 | + case CHAR4('O', 'W', 'N', 'E'): | ||
792 | + case CHAR4('P', 'C', 'N', 'T'): | ||
793 | + case CHAR4('P', 'O', 'P', 'M'): | ||
794 | + case CHAR4('P', 'O', 'S', 'S'): | ||
795 | + case CHAR4('R', 'B', 'U', 'F'): | ||
796 | + case CHAR4('R', 'V', 'A', 'D'): | ||
797 | + case CHAR4('R', 'V', 'R', 'B'): | ||
798 | + case CHAR4('S', 'Y', 'L', 'T'): | ||
799 | + case CHAR4('S', 'Y', 'T', 'C'): | ||
800 | + case CHAR4('T', 'B', 'P', 'M'): | ||
801 | + case CHAR4('T', 'C', 'O', 'P'): | ||
802 | + case CHAR4('T', 'D', 'A', 'T'): | ||
803 | + case CHAR4('T', 'D', 'L', 'Y'): | ||
804 | + case CHAR4('T', 'F', 'L', 'T'): | ||
805 | + case CHAR4('T', 'I', 'M', 'E'): | ||
806 | + case CHAR4('T', 'K', 'E', 'Y'): | ||
807 | + case CHAR4('T', 'L', 'A', 'N'): | ||
808 | + case CHAR4('T', 'L', 'E', 'N'): | ||
809 | + case CHAR4('T', 'M', 'E', 'D'): | ||
810 | + case CHAR4('T', 'O', 'F', 'N'): | ||
811 | + case CHAR4('T', 'O', 'L', 'Y'): | ||
812 | + case CHAR4('T', 'O', 'R', 'Y'): | ||
813 | + case CHAR4('T', 'P', 'E', '2'): | ||
814 | + case CHAR4('T', 'P', 'E', '3'): | ||
815 | + case CHAR4('T', 'P', 'E', '4'): | ||
816 | + case CHAR4('T', 'P', 'O', 'S'): | ||
817 | + case CHAR4('T', 'R', 'C', 'K'): | ||
818 | + case CHAR4('T', 'R', 'D', 'A'): | ||
819 | + case CHAR4('T', 'R', 'S', 'N'): | ||
820 | + case CHAR4('T', 'R', 'S', 'O'): | ||
821 | + case CHAR4('T', 'S', 'I', 'Z'): | ||
822 | + case CHAR4('T', 'S', 'R', 'C'): | ||
823 | + case CHAR4('T', 'S', 'S', 'E'): | ||
824 | + case CHAR4('T', 'Y', 'E', 'R'): | ||
825 | + case CHAR4('T', 'X', 'X', 'X'): | ||
826 | + case CHAR4('U', 'F', 'I', 'D'): | ||
827 | + case CHAR4('U', 'S', 'E', 'R'): | ||
828 | + case CHAR4('U', 'S', 'L', 'T'): | ||
829 | + case CHAR4('W', 'C', 'O', 'M'): | ||
830 | + case CHAR4('W', 'C', 'O', 'P'): | ||
831 | + case CHAR4('W', 'O', 'A', 'F'): | ||
832 | + case CHAR4('W', 'O', 'A', 'R'): | ||
833 | + case CHAR4('W', 'O', 'A', 'S'): | ||
834 | + case CHAR4('W', 'O', 'R', 'S'): | ||
835 | + case CHAR4('W', 'P', 'A', 'Y'): | ||
836 | + case CHAR4('W', 'P', 'U', 'B'): | ||
837 | + case CHAR4('W', 'X', 'X', 'X'): | ||
838 | + case CHAR4('T', 'I', 'T', '3'): | ||
839 | + key = "other_info : "; | ||
840 | + value = &id3v2->other_info; | ||
841 | + break; | ||
842 | + case CHAR4('P', 'R', 'I', 'V'): | ||
843 | + key = "private_frame : "; | ||
844 | + value = &id3v2->private_frame; | ||
845 | + break; | ||
846 | + case CHAR4('T', 'A', 'L', 'B'): | ||
847 | + key = "album_movie_show_title : "; | ||
848 | + value = &id3v2->album_movie_show_title; | ||
849 | + break; | ||
850 | + case CHAR4('T', 'C', 'O', 'M'): | ||
851 | + key = "composer_name : "; | ||
852 | + value = &id3v2->composer_name; | ||
853 | + break; | ||
854 | + case CHAR4('T', 'C', 'O', 'N'): | ||
855 | + key = "content_type : "; | ||
856 | + value = &id3v2->content_type; | ||
857 | + break; | ||
858 | + case CHAR4('T', 'E', 'N', 'C'): | ||
859 | + key = "encoded_by : "; | ||
860 | + value = &id3v2->encoded_by; | ||
861 | + break; | ||
862 | + case CHAR4('T', 'E', 'X', 'T'): | ||
863 | + key = "lyricist_text_writer : "; | ||
864 | + value = &id3v2->lyricist_text_writer; | ||
865 | + break; | ||
866 | + case CHAR4('T', 'I', 'T', '1'): | ||
867 | + key = "content_group_description : "; | ||
868 | + value = &id3v2->content_group_description; | ||
869 | + break; | ||
870 | + case CHAR4('T', 'I', 'T', '2'): | ||
871 | + key = "title_songname_content_description : "; | ||
872 | + value = &id3v2->title_songname_content_description; | ||
873 | + break; | ||
874 | + case CHAR4('T', 'O', 'A', 'L'): | ||
875 | + key = "original_album_movie_show_title : "; | ||
876 | + value = &id3v2->original_album_movie_show_title; | ||
877 | + break; | ||
878 | + case CHAR4('T', 'O', 'P', 'E'): | ||
879 | + key = "original_artist_performer : "; | ||
880 | + value = &id3v2->original_artist_performer; | ||
881 | + break; | ||
882 | + case CHAR4('T', 'O', 'W', 'N'): | ||
883 | + key = "file_owner_licensee : "; | ||
884 | + value = &id3v2->file_owner_licensee; | ||
885 | + break; | ||
886 | + case CHAR4('T', 'P', 'E', '1'): | ||
887 | + key = "lead_performer_soloist : "; | ||
888 | + value = &id3v2->lead_performer_soloist; | ||
889 | + break; | ||
890 | + case CHAR4('T', 'P', 'U', 'B'): | ||
891 | + key = "publisher : "; | ||
892 | + value = &id3v2->publisher; | ||
893 | + break; | ||
894 | + default: | ||
895 | + /* skipping the read 10 bytes */ | ||
896 | + buf_update_val = -10; | ||
897 | + id3v2->header_end = 1; | ||
898 | + value = 0; | ||
899 | + key = 0; | ||
900 | + break; | ||
901 | + } | ||
902 | + | ||
903 | + if (value != 0) | ||
904 | + buf_update_val = get_info(&buffer[bytes_consumed], | ||
905 | + avail_inp, size, value); | ||
906 | + | ||
907 | + /* Negative value for buf_update_val means one of two things: | ||
908 | + * 1. The default case happened and we're done with ID3V2 tag | ||
909 | + * frames, or | ||
910 | + * 2. get_info() returned -1 to indicate that more input is | ||
911 | + * required to decode this frame of the tag. | ||
912 | + */ | ||
913 | + if (buf_update_val >= 0) | ||
914 | + display2(value, | ||
915 | + umin(value->max_size, buf_update_val), key); | ||
916 | + | ||
917 | + if (buf_update_val == -1) { | ||
918 | + id3v2->bytes_consumed += bytes_consumed; | ||
919 | + return 1; | ||
920 | + } | ||
921 | + | ||
922 | + bytes_consumed += buf_update_val; | ||
923 | + | ||
924 | + /* Is there enough input left (10 bytes) to begin | ||
925 | + * decoding another frame? If not, bag out temporarily | ||
926 | + * now. The caller will refill our input buffer and | ||
927 | + * call us again with continue_flag == 1. | ||
928 | + */ | ||
929 | + if (insize - bytes_consumed < 10) { | ||
930 | + id3v2->bytes_consumed += bytes_consumed; | ||
931 | + return 0; /* not completely decoded */ | ||
932 | + } | ||
933 | + } | ||
934 | + | ||
935 | + id3v2->bytes_consumed += bytes_consumed; | ||
936 | + if ((id3v2->bytes_consumed + 10) < id3v2->id3_v2_header.size) | ||
937 | + return 0; /* not completely decoded */ | ||
938 | + | ||
939 | + return 1; /* completely decoded */ | ||
940 | +} | ||
941 | + | ||
942 | +/******************************************************* | ||
943 | + * function name : get_id3_v2_bytes | ||
944 | + * | ||
945 | + * description : tells the size of ID3V2 tag. | ||
946 | + * | ||
947 | + * arguments : input parameters | ||
948 | + * buffer input buffer | ||
949 | + * | ||
950 | + * values returned : bytes consumed | ||
951 | + ********************************************************/ | ||
952 | +WORD32 get_id3_v2_bytes(UWORD8 *buffer) | ||
953 | +{ | ||
954 | + WORD32 size; | ||
955 | + | ||
956 | + /* making the msb of each byte zero */ | ||
957 | + size = (buffer[9] & 0x7f); | ||
958 | + size |= ((buffer[8] & 0x7f) << 7); | ||
959 | + size |= ((buffer[7] & 0x7f) << 14); | ||
960 | + size |= ((buffer[6] & 0x7f) << 21); | ||
961 | + | ||
962 | + return (size + 10); | ||
963 | +} | ||
964 | + | ||
965 | +/**************************************************** | ||
966 | + * function name : get_info | ||
967 | + * | ||
968 | + * description : read the frame information from the input buffer. | ||
969 | + * | ||
970 | + * arguments : input parameters | ||
971 | + * | ||
972 | + * values returned : update value for buffer | ||
973 | + ****************************************************/ | ||
974 | +WORD32 get_info(const char *inp_buffer, | ||
975 | + unsigned int avail_inp, | ||
976 | + WORD32 tag_size, | ||
977 | + id3_v2_frame_struct *dest) | ||
978 | +{ | ||
979 | + WORD32 j; | ||
980 | + | ||
981 | + /* setting the tag to indicate the presence of frame */ | ||
982 | + dest->tag_present = 1; | ||
983 | + /* If there isn't enough input available, we punt back to the top | ||
984 | + * level and ask for more. | ||
985 | + */ | ||
986 | + if (avail_inp < umin(tag_size, dest->max_size)) | ||
987 | + return -1; | ||
988 | + | ||
989 | + if (dest->max_size >= tag_size) { | ||
990 | + for (j = 0; j < tag_size ; j++) | ||
991 | + dest->frame_data[j] = inp_buffer[j]; | ||
992 | + } else { | ||
993 | + dest->exceeds_buffer_size = 1; | ||
994 | + for (j = 0; j < dest->max_size ; j++) | ||
995 | + dest->frame_data[j] = inp_buffer[j]; | ||
996 | + } | ||
997 | + return tag_size; | ||
998 | +} | ||
999 | -- | ||
1000 | 2.7.4 | ||
1001 | |||
diff --git a/recipes-multimedia/tinycompress/tinycompress/0002-cplay-Support-wave-file.patch b/recipes-multimedia/tinycompress/tinycompress/0002-cplay-Support-wave-file.patch new file mode 100755 index 00000000..79544711 --- /dev/null +++ b/recipes-multimedia/tinycompress/tinycompress/0002-cplay-Support-wave-file.patch | |||
@@ -0,0 +1,215 @@ | |||
1 | From 4d4bc0a958fe254531920095fbabc241aad88113 Mon Sep 17 00:00:00 2001 | ||
2 | From: Shengjiu Wang <shengjiu.wang@nxp.com> | ||
3 | Date: Tue, 28 Jul 2020 13:00:36 +0800 | ||
4 | Subject: [PATCH] cplay: Support wave file | ||
5 | |||
6 | The supported format is mono/stereo, S16_LE/S32_LE, 8kHz-192kHz. | ||
7 | Command is: | ||
8 | cplay -c x -I PCM test.wav | ||
9 | |||
10 | Upstream-Status: Inappropriate [i.MX specific] | ||
11 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> | ||
12 | --- | ||
13 | include/tinycompress/wave_formats.h | 51 +++++++++++++ | ||
14 | src/utils/cplay.c | 107 ++++++++++++++++++++++++++++ | ||
15 | 2 files changed, 158 insertions(+) | ||
16 | create mode 100644 include/tinycompress/wave_formats.h | ||
17 | |||
18 | --- /dev/null | ||
19 | +++ b/include/tinycompress/wave_formats.h | ||
20 | @@ -0,0 +1,53 @@ | ||
21 | +#ifndef WAVE_FORMATS_H | ||
22 | +#define WAVE_FORMATS_H 1 | ||
23 | + | ||
24 | +#include <sys/types.h> | ||
25 | + | ||
26 | +#define COMPOSE_ID(a,b,c,d) ((a) | ((b)<<8) | ((c)<<16) | ((d)<<24)) | ||
27 | + | ||
28 | +#define WAV_RIFF COMPOSE_ID('R','I','F','F') | ||
29 | +#define WAV_RIFX COMPOSE_ID('R','I','F','X') | ||
30 | +#define WAV_WAVE COMPOSE_ID('W','A','V','E') | ||
31 | +#define WAV_FMT COMPOSE_ID('f','m','t',' ') | ||
32 | +#define WAV_DATA COMPOSE_ID('d','a','t','a') | ||
33 | + | ||
34 | +/* WAVE fmt block constants from Microsoft mmreg.h header */ | ||
35 | +#define WAV_FMT_PCM 0x0001 | ||
36 | +#define WAV_FMT_IEEE_FLOAT 0x0003 | ||
37 | +#define WAV_FMT_DOLBY_AC3_SPDIF 0x0092 | ||
38 | +#define WAV_FMT_EXTENSIBLE 0xfffe | ||
39 | + | ||
40 | +/* Used with WAV_FMT_EXTENSIBLE format */ | ||
41 | +#define WAV_GUID_TAG "\x00\x00\x00\x00\x10\x00\x80\x00\x00\xAA\x00\x38\x9B\x71" | ||
42 | + | ||
43 | +typedef struct { | ||
44 | + u_int magic; /* 'RIFF' */ | ||
45 | + u_int length; /* filelen */ | ||
46 | + u_int type; /* 'WAVE' */ | ||
47 | +} WaveHeader; | ||
48 | + | ||
49 | +typedef struct { | ||
50 | + u_short format; /* see WAV_FMT_* */ | ||
51 | + u_short channels; | ||
52 | + u_int sample_fq; /* frequence of sample */ | ||
53 | + u_int byte_p_sec; | ||
54 | + u_short byte_p_spl; /* samplesize; 1 or 2 bytes */ | ||
55 | + u_short bit_p_spl; /* 8, 12 or 16 bit */ | ||
56 | +} WaveFmtBody; | ||
57 | + | ||
58 | +typedef struct { | ||
59 | + WaveFmtBody format; | ||
60 | + u_short ext_size; | ||
61 | + u_short bit_p_spl; | ||
62 | + u_int channel_mask; | ||
63 | + u_short guid_format; /* WAV_FMT_* */ | ||
64 | + u_char guid_tag[14]; /* WAV_GUID_TAG */ | ||
65 | +} WaveFmtExtensibleBody; | ||
66 | + | ||
67 | +typedef struct { | ||
68 | + u_int type; /* 'data' */ | ||
69 | + u_int length; /* samplecount */ | ||
70 | +} WaveChunkHeader; | ||
71 | + | ||
72 | + | ||
73 | +#endif /* FORMATS */ | ||
74 | --- a/src/utils/cplay.c | ||
75 | +++ b/src/utils/cplay.c | ||
76 | @@ -1,4 +1,6 @@ | ||
77 | /* | ||
78 | + * Copyright 2020 NXP | ||
79 | + * | ||
80 | * This file is provided under a dual BSD/LGPLv2.1 license. When using or | ||
81 | * redistributing this file, you may do so under either license. | ||
82 | * | ||
83 | @@ -73,6 +75,8 @@ | ||
84 | #include "tinycompress/tinycompress.h" | ||
85 | #include "tinycompress/tinymp3.h" | ||
86 | #include "tinycompress/id3_tag_decode.h" | ||
87 | +#include "tinycompress/wave_formats.h" | ||
88 | +#include <alsa/asoundlib.h> | ||
89 | |||
90 | static int verbose; | ||
91 | static const unsigned int DEFAULT_CODEC_ID = SND_AUDIOCODEC_PCM; | ||
92 | @@ -166,6 +170,77 @@ static int parse_mp3_header(struct mp3_h | ||
93 | return 0; | ||
94 | } | ||
95 | |||
96 | +static int parse_wav_header(FILE *file, unsigned int *num_channels, unsigned int *sample_rate, | ||
97 | + unsigned int *format) { | ||
98 | + WaveHeader wave_header; | ||
99 | + WaveChunkHeader chunk_header; | ||
100 | + WaveFmtBody fmt_body; | ||
101 | + int more_chunks = 1; | ||
102 | + | ||
103 | + fread(&wave_header, sizeof(WaveHeader), 1, file); | ||
104 | + if ((wave_header.magic != WAV_RIFF) || | ||
105 | + (wave_header.type != WAV_WAVE)) { | ||
106 | + fprintf(stderr, "Error: it is not a riff/wave file\n"); | ||
107 | + return -1; | ||
108 | + } | ||
109 | + | ||
110 | + do { | ||
111 | + fread(&chunk_header, sizeof(WaveChunkHeader), 1, file); | ||
112 | + switch (chunk_header.type) { | ||
113 | + case WAV_FMT: | ||
114 | + fread(&fmt_body, sizeof(WaveFmtBody), 1, file); | ||
115 | + /* If the format header is larger, skip the rest */ | ||
116 | + if (chunk_header.length > sizeof(WaveFmtBody)) | ||
117 | + fseek(file, chunk_header.length - sizeof(WaveFmtBody), SEEK_CUR); | ||
118 | + | ||
119 | + *num_channels = fmt_body.channels; | ||
120 | + *sample_rate = fmt_body.sample_fq; | ||
121 | + | ||
122 | + switch (fmt_body.bit_p_spl) { | ||
123 | + case 8: | ||
124 | + *format = SND_PCM_FORMAT_U8; | ||
125 | + break; | ||
126 | + case 16: | ||
127 | + *format = SND_PCM_FORMAT_S16_LE; | ||
128 | + break; | ||
129 | + case 24: | ||
130 | + switch (fmt_body.byte_p_spl / fmt_body.channels) { | ||
131 | + case 3: | ||
132 | + *format = SND_PCM_FORMAT_S24_3LE; | ||
133 | + break; | ||
134 | + case 4: | ||
135 | + *format = SND_PCM_FORMAT_S24_LE; | ||
136 | + break; | ||
137 | + default: | ||
138 | + fprintf(stderr, "format error\n"); | ||
139 | + return -1; | ||
140 | + } | ||
141 | + break; | ||
142 | + case 32: | ||
143 | + if (fmt_body.format == WAV_FMT_PCM) { | ||
144 | + *format = SND_PCM_FORMAT_S32_LE; | ||
145 | + } else if (fmt_body.format == WAV_FMT_IEEE_FLOAT) { | ||
146 | + *format = SND_PCM_FORMAT_FLOAT_LE; | ||
147 | + } | ||
148 | + break; | ||
149 | + default: | ||
150 | + fprintf(stderr, "format error\n"); | ||
151 | + return -1; | ||
152 | + } | ||
153 | + break; | ||
154 | + case WAV_DATA: | ||
155 | + /* Stop looking for chunks */ | ||
156 | + more_chunks = 0; | ||
157 | + break; | ||
158 | + default: | ||
159 | + /* Unknown chunk, skip bytes */ | ||
160 | + fseek(file, chunk_header.length, SEEK_CUR); | ||
161 | + } | ||
162 | + } while (more_chunks); | ||
163 | + | ||
164 | + return 0; | ||
165 | +} | ||
166 | + | ||
167 | static int print_time(struct compress *compress) | ||
168 | { | ||
169 | unsigned int avail; | ||
170 | @@ -385,6 +460,35 @@ void get_codec_iec(FILE *file, struct co | ||
171 | codec->format = 0; | ||
172 | } | ||
173 | |||
174 | +void get_codec_pcm(FILE *file, struct compr_config *config, | ||
175 | + struct snd_codec *codec) | ||
176 | +{ | ||
177 | + unsigned int channels, rate, format; | ||
178 | + | ||
179 | + if (parse_wav_header(file, &channels, &rate, &format) == -1) { | ||
180 | + fclose(file); | ||
181 | + exit(EXIT_FAILURE); | ||
182 | + } | ||
183 | + | ||
184 | + if (channels > 2 || (format != SND_PCM_FORMAT_S16_LE && format != SND_PCM_FORMAT_S32_LE) || | ||
185 | + rate > 192000) { | ||
186 | + fprintf(stderr, "unsupported wave file\n"); | ||
187 | + fclose(file); | ||
188 | + exit(EXIT_FAILURE); | ||
189 | + } | ||
190 | + | ||
191 | + codec->id = SND_AUDIOCODEC_PCM; | ||
192 | + codec->ch_in = channels; | ||
193 | + codec->ch_out = channels; | ||
194 | + codec->sample_rate = rate; | ||
195 | + codec->bit_rate = 0; | ||
196 | + codec->rate_control = 0; | ||
197 | + codec->profile = SND_AUDIOPROFILE_PCM; | ||
198 | + codec->level = 0; | ||
199 | + codec->ch_mode = 0; | ||
200 | + codec->format = format; | ||
201 | +} | ||
202 | + | ||
203 | void play_samples(char *name, unsigned int card, unsigned int device, | ||
204 | unsigned long buffer_size, unsigned int frag, | ||
205 | unsigned long codec_id) | ||
206 | @@ -411,6 +515,9 @@ void play_samples(char *name, unsigned i | ||
207 | case SND_AUDIOCODEC_IEC61937: | ||
208 | get_codec_iec(file, &config, &codec); | ||
209 | break; | ||
210 | + case SND_AUDIOCODEC_PCM: | ||
211 | + get_codec_pcm(file, &config, &codec); | ||
212 | + break; | ||
213 | default: | ||
214 | fprintf(stderr, "codec ID %ld is not supported\n", codec_id); | ||
215 | exit(EXIT_FAILURE); | ||
diff --git a/recipes-multimedia/tinycompress/tinycompress/0003-cplay-Add-pause-feature.patch b/recipes-multimedia/tinycompress/tinycompress/0003-cplay-Add-pause-feature.patch new file mode 100755 index 00000000..7d8492b7 --- /dev/null +++ b/recipes-multimedia/tinycompress/tinycompress/0003-cplay-Add-pause-feature.patch | |||
@@ -0,0 +1,146 @@ | |||
1 | From 6f778c21ee357a662cdd758cff578a3e4b85eedf Mon Sep 17 00:00:00 2001 | ||
2 | From: Zhang Peng <peng.zhang_8@nxp.com> | ||
3 | Date: Tue, 4 Aug 2020 15:29:29 +0800 | ||
4 | Subject: [PATCH] cplay: Add pause feature | ||
5 | |||
6 | Add option: -p pause | ||
7 | |||
8 | Upstream-Status: Inappropriate [i.MX specific] | ||
9 | Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com> | ||
10 | --- | ||
11 | src/utils/cplay.c | 56 +++++++++++++++++++++++++++++++++++++++++++---- | ||
12 | 1 file changed, 52 insertions(+), 4 deletions(-) | ||
13 | |||
14 | diff --git a/src/utils/cplay.c b/src/utils/cplay.c | ||
15 | index 8882f4d..8e3dcbb 100644 | ||
16 | --- a/src/utils/cplay.c | ||
17 | +++ b/src/utils/cplay.c | ||
18 | @@ -117,6 +117,9 @@ static void usage(void) | ||
19 | "-f\tfragments\n\n" | ||
20 | "-v\tverbose mode\n" | ||
21 | "-h\tPrints this help list\n\n" | ||
22 | + "-p\tpause\n" | ||
23 | + "-m\tpause blocks\n" | ||
24 | + "-n\tpause time duration\n" | ||
25 | "Example:\n" | ||
26 | "\tcplay -c 1 -d 2 test.mp3\n" | ||
27 | "\tcplay -f 5 test.mp3\n\n" | ||
28 | @@ -133,7 +136,8 @@ static void usage(void) | ||
29 | |||
30 | void play_samples(char *name, unsigned int card, unsigned int device, | ||
31 | unsigned long buffer_size, unsigned int frag, | ||
32 | - unsigned long codec_id); | ||
33 | + unsigned long codec_id, int pause_count, int pause_block, | ||
34 | + int pause_duration); | ||
35 | |||
36 | struct mp3_header { | ||
37 | uint16_t sync; | ||
38 | @@ -262,12 +266,15 @@ int main(int argc, char **argv) | ||
39 | int c, i; | ||
40 | unsigned int card = 0, device = 0, frag = 0; | ||
41 | unsigned int codec_id = SND_AUDIOCODEC_MP3; | ||
42 | + int pause_count = 0; | ||
43 | + int pause_block = 6; | ||
44 | + int pause_duration = 10; | ||
45 | |||
46 | if (argc < 2) | ||
47 | usage(); | ||
48 | |||
49 | verbose = 0; | ||
50 | - while ((c = getopt(argc, argv, "hvb:f:c:d:I:")) != -1) { | ||
51 | + while ((c = getopt(argc, argv, "hvb:f:c:d:I:p:m:n:")) != -1) { | ||
52 | switch (c) { | ||
53 | case 'h': | ||
54 | usage(); | ||
55 | @@ -306,6 +313,23 @@ int main(int argc, char **argv) | ||
56 | case 'v': | ||
57 | verbose = 1; | ||
58 | break; | ||
59 | + case 'p': | ||
60 | + pause_count = strtol(optarg, NULL, 10); | ||
61 | + break; | ||
62 | + case 'm': | ||
63 | + pause_block = strtol(optarg, NULL, 10); | ||
64 | + if (pause_duration < 0) { | ||
65 | + printf("Set wrong paramter! Set duration default 6.\n"); | ||
66 | + pause_duration = 6; | ||
67 | + } | ||
68 | + break; | ||
69 | + case 'n': | ||
70 | + pause_duration = strtol(optarg, NULL, 10); | ||
71 | + if (pause_duration < 0) { | ||
72 | + printf("Set wrong paramter! Set duration default 10.\n"); | ||
73 | + pause_duration = 10; | ||
74 | + } | ||
75 | + break; | ||
76 | default: | ||
77 | exit(EXIT_FAILURE); | ||
78 | } | ||
79 | @@ -315,7 +339,7 @@ int main(int argc, char **argv) | ||
80 | |||
81 | file = argv[optind]; | ||
82 | |||
83 | - play_samples(file, card, device, buffer_size, frag, codec_id); | ||
84 | + play_samples(file, card, device, buffer_size, frag, codec_id, pause_count, pause_block, pause_duration); | ||
85 | |||
86 | fprintf(stderr, "Finish Playing.... Close Normally\n"); | ||
87 | exit(EXIT_SUCCESS); | ||
88 | @@ -491,7 +515,8 @@ void get_codec_pcm(FILE *file, struct compr_config *config, | ||
89 | |||
90 | void play_samples(char *name, unsigned int card, unsigned int device, | ||
91 | unsigned long buffer_size, unsigned int frag, | ||
92 | - unsigned long codec_id) | ||
93 | + unsigned long codec_id, int pause_count, int pause_block, | ||
94 | + int pause_duration) | ||
95 | { | ||
96 | struct compr_config config; | ||
97 | struct snd_codec codec; | ||
98 | @@ -499,6 +524,7 @@ void play_samples(char *name, unsigned int card, unsigned int device, | ||
99 | FILE *file; | ||
100 | char *buffer; | ||
101 | int size, num_read, wrote; | ||
102 | + int write_count = 0; | ||
103 | |||
104 | if (verbose) | ||
105 | printf("%s: entry\n", __func__); | ||
106 | @@ -574,6 +600,13 @@ void play_samples(char *name, unsigned int card, unsigned int device, | ||
107 | if (verbose) | ||
108 | printf("%s: You should hear audio NOW!!!\n", __func__); | ||
109 | |||
110 | + if (pause_count > 0) { | ||
111 | + printf("sleep...\n"); | ||
112 | + compress_pause(compress); | ||
113 | + sleep(pause_duration); | ||
114 | + compress_resume(compress); | ||
115 | + } | ||
116 | + | ||
117 | do { | ||
118 | num_read = fread(buffer, 1, size, file); | ||
119 | if (num_read > 0) { | ||
120 | @@ -592,8 +625,23 @@ void play_samples(char *name, unsigned int card, unsigned int device, | ||
121 | printf("%s: wrote %d\n", __func__, wrote); | ||
122 | } | ||
123 | } | ||
124 | + write_count++; | ||
125 | + if ((pause_count > 0) && (write_count % pause_block == 0)) { | ||
126 | + printf("pause...\n"); | ||
127 | + compress_pause(compress); | ||
128 | + sleep(pause_duration); | ||
129 | + printf("pause release...\n"); | ||
130 | + compress_resume(compress); | ||
131 | + pause_count--; | ||
132 | + } | ||
133 | } while (num_read > 0); | ||
134 | |||
135 | + if (pause_count > 0) { | ||
136 | + compress_pause(compress); | ||
137 | + sleep(5); | ||
138 | + compress_resume(compress); | ||
139 | + } | ||
140 | + | ||
141 | if (verbose) | ||
142 | printf("%s: exit success\n", __func__); | ||
143 | /* issue drain if it supports */ | ||
144 | -- | ||
145 | 2.17.1 | ||
146 | |||
diff --git a/recipes-multimedia/tinycompress/tinycompress/0004-tinycompress-pass-NULL-buffer-with-0-size-to-driver.patch b/recipes-multimedia/tinycompress/tinycompress/0004-tinycompress-pass-NULL-buffer-with-0-size-to-driver.patch new file mode 100755 index 00000000..dfedd186 --- /dev/null +++ b/recipes-multimedia/tinycompress/tinycompress/0004-tinycompress-pass-NULL-buffer-with-0-size-to-driver.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From a2892bf5db7520689fa9cb1d1589fa804bd9dc1a Mon Sep 17 00:00:00 2001 | ||
2 | From: Bing Song <bing.song@nxp.com> | ||
3 | Date: Tue, 18 Aug 2020 15:26:51 +0800 | ||
4 | Subject: [PATCH] tinycompress: pass NULL buffer with 0 size to driver. | ||
5 | |||
6 | The NULL buffer with 0 size to indecate driver drain input data with | ||
7 | non-block mode. The defaul drain is block mode. | ||
8 | |||
9 | Upstream-Status: Inappropriate [i.MX specific] | ||
10 | Signed-off-by: Bing Song <bing.song@nxp.com> | ||
11 | --- | ||
12 | src/lib/compress.c | 5 +++-- | ||
13 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/src/lib/compress.c b/src/lib/compress.c | ||
16 | index bba4fcf..d66df0b 100644 | ||
17 | --- a/src/lib/compress.c | ||
18 | +++ b/src/lib/compress.c | ||
19 | @@ -315,7 +315,8 @@ int compress_write(struct compress *compress, const void *buf, unsigned int size | ||
20 | fds.events = POLLOUT; | ||
21 | |||
22 | /*TODO: treat auto start here first */ | ||
23 | - while (size) { | ||
24 | + /* NULL buffer with 0 size for non-block drain */ | ||
25 | + do { | ||
26 | if (ioctl(compress->fd, SNDRV_COMPRESS_AVAIL, &avail)) | ||
27 | return oops(compress, errno, "cannot get avail"); | ||
28 | |||
29 | @@ -357,7 +358,7 @@ int compress_write(struct compress *compress, const void *buf, unsigned int size | ||
30 | size -= written; | ||
31 | cbuf += written; | ||
32 | total += written; | ||
33 | - } | ||
34 | + } while (size); | ||
35 | return total; | ||
36 | } | ||
37 | |||
38 | -- | ||
39 | 2.17.1 | ||
40 | |||
diff --git a/recipes-multimedia/tinycompress/tinycompress/0005-cplay-Support-aac-streams.patch b/recipes-multimedia/tinycompress/tinycompress/0005-cplay-Support-aac-streams.patch new file mode 100755 index 00000000..2f36551a --- /dev/null +++ b/recipes-multimedia/tinycompress/tinycompress/0005-cplay-Support-aac-streams.patch | |||
@@ -0,0 +1,251 @@ | |||
1 | From 2912f8573cea25fbd38ac7a8b68af2ea6a05e599 Mon Sep 17 00:00:00 2001 | ||
2 | From: Zhang Peng <peng.zhang_8@nxp.com> | ||
3 | Date: Wed, 28 Oct 2020 19:08:53 +0800 | ||
4 | Subject: [PATCH] cplay: Support aac streams | ||
5 | |||
6 | Support run aac format streams for cplay. | ||
7 | |||
8 | Upstream-Status: Inappropriate [i.MX specific] | ||
9 | Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com> | ||
10 | --- | ||
11 | src/utils/cplay.c | 210 ++++++++++++++++++++++++++++++++++++++++++++++ | ||
12 | 1 file changed, 210 insertions(+) | ||
13 | |||
14 | diff --git a/src/utils/cplay.c b/src/utils/cplay.c | ||
15 | index 8e3dcbb..2a1464a 100644 | ||
16 | --- a/src/utils/cplay.c | ||
17 | +++ b/src/utils/cplay.c | ||
18 | @@ -245,6 +245,190 @@ static int parse_wav_header(FILE *file, unsigned int *num_channels, unsigned int | ||
19 | return 0; | ||
20 | } | ||
21 | |||
22 | +int find_adts_header(FILE *file, unsigned int *num_channels, unsigned int *sample_rate, unsigned int *format) | ||
23 | +{ | ||
24 | + int ret; | ||
25 | + unsigned char buf[5]; | ||
26 | + | ||
27 | + ret = fread(buf, sizeof(buf), 1, file); | ||
28 | + if (ret < 0) { | ||
29 | + fprintf(stderr, "open file error: %d\n", ret); | ||
30 | + return 0; | ||
31 | + } | ||
32 | + fseek(file, 0, SEEK_SET); | ||
33 | + | ||
34 | + if ((buf[0] != 0xff) || (buf[1] & 0xf0 != 0xf0)) | ||
35 | + return 0; | ||
36 | + /* mpeg id */ | ||
37 | + switch (buf[1]>>3 & 0x1) { | ||
38 | + case 0x0: | ||
39 | + *format = SND_AUDIOSTREAMFORMAT_MP4ADTS; | ||
40 | + break; | ||
41 | + case 0x1: | ||
42 | + *format = SND_AUDIOSTREAMFORMAT_MP2ADTS; | ||
43 | + break; | ||
44 | + default: | ||
45 | + fprintf(stderr, "can't find stream format\n"); | ||
46 | + break; | ||
47 | + } | ||
48 | + /* sample_rate */ | ||
49 | + switch (buf[2]>>2 & 0xf) { | ||
50 | + case 0x0: | ||
51 | + *sample_rate = 96000; | ||
52 | + break; | ||
53 | + case 0x1: | ||
54 | + *sample_rate = 88200; | ||
55 | + break; | ||
56 | + case 0x2: | ||
57 | + *sample_rate = 64000; | ||
58 | + break; | ||
59 | + case 0x3: | ||
60 | + *sample_rate = 48000; | ||
61 | + break; | ||
62 | + case 0x4: | ||
63 | + *sample_rate = 44100; | ||
64 | + break; | ||
65 | + case 0x5: | ||
66 | + *sample_rate = 32000; | ||
67 | + break; | ||
68 | + case 0x6: | ||
69 | + *sample_rate = 24000; | ||
70 | + break; | ||
71 | + case 0x7: | ||
72 | + *sample_rate = 22050; | ||
73 | + break; | ||
74 | + case 0x8: | ||
75 | + *sample_rate = 16000; | ||
76 | + break; | ||
77 | + case 0x9: | ||
78 | + *sample_rate = 12000; | ||
79 | + break; | ||
80 | + case 0xa: | ||
81 | + *sample_rate = 11025; | ||
82 | + break; | ||
83 | + case 0xb: | ||
84 | + *sample_rate = 8000; | ||
85 | + break; | ||
86 | + case 0xc: | ||
87 | + *sample_rate = 7350; | ||
88 | + break; | ||
89 | + default: | ||
90 | + break; | ||
91 | + } | ||
92 | + /* channel */ | ||
93 | + switch (((buf[2]&0x1) << 2) | (buf[3]>>6)) { | ||
94 | + case 1: | ||
95 | + *num_channels = 1; | ||
96 | + break; | ||
97 | + case 2: | ||
98 | + *num_channels = 2; | ||
99 | + break; | ||
100 | + case 3: | ||
101 | + *num_channels = 3; | ||
102 | + break; | ||
103 | + case 4: | ||
104 | + *num_channels = 4; | ||
105 | + break; | ||
106 | + case 5: | ||
107 | + *num_channels = 5; | ||
108 | + break; | ||
109 | + case 6: | ||
110 | + *num_channels = 6; | ||
111 | + break; | ||
112 | + case 7: | ||
113 | + *num_channels = 7; | ||
114 | + break; | ||
115 | + default: | ||
116 | + break; | ||
117 | + } | ||
118 | + return 1; | ||
119 | +} | ||
120 | + | ||
121 | +static const int aac_sample_rates[] = { 96000, 88200, 64000, 48000, 44100, | ||
122 | + 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350 | ||
123 | +}; | ||
124 | + | ||
125 | +#define MAX_SR_NUM sizeof(aac_sample_rates)/sizeof(aac_sample_rates[0]) | ||
126 | + | ||
127 | +static int get_sample_rate_from_index(int sr_index) | ||
128 | +{ | ||
129 | + if (sr_index >= 0 && sr_index < MAX_SR_NUM) | ||
130 | + return aac_sample_rates[sr_index]; | ||
131 | + | ||
132 | + return 0; | ||
133 | +} | ||
134 | + | ||
135 | +int find_adif_header(FILE *file, unsigned int *num_channels, unsigned int *sample_rate, unsigned int *format) | ||
136 | +{ | ||
137 | + int ret; | ||
138 | + unsigned char adif_id[4]; | ||
139 | + unsigned char adif_header[20]; | ||
140 | + int bitstream_type; | ||
141 | + int bitrate; | ||
142 | + int object_type; | ||
143 | + int sr_index; | ||
144 | + int skip_size = 0; | ||
145 | + | ||
146 | + ret = fread(adif_id, sizeof(unsigned char), 4, file); | ||
147 | + if (ret < 0) { | ||
148 | + fprintf(stderr, "read data from file err: %d\n", ret); | ||
149 | + return 0; | ||
150 | + } | ||
151 | + /* adif id */ | ||
152 | + if ((adif_id[0] != 0x41) || (adif_id[1] != 0x44) || | ||
153 | + (adif_id[2] != 0x49) || (adif_id[3] != 0x46)) | ||
154 | + return 0; | ||
155 | + | ||
156 | + fread(adif_header, sizeof(unsigned char), 20, file); | ||
157 | + | ||
158 | + /* copyright string */ | ||
159 | + if (adif_header[0] & 0x80) | ||
160 | + skip_size = 9; | ||
161 | + | ||
162 | + bitstream_type = adif_header[0 + skip_size] & 0x10; | ||
163 | + bitrate = | ||
164 | + ((unsigned int) (adif_header[0 + skip_size] & 0x0f) << 19) | | ||
165 | + ((unsigned int) adif_header[1 + skip_size] << 11) | | ||
166 | + ((unsigned int) adif_header[2 + skip_size] << 3) | | ||
167 | + ((unsigned int) adif_header[3 + skip_size] & 0xe0); | ||
168 | + | ||
169 | + if (bitstream_type == 0) { | ||
170 | + object_type = ((adif_header[6 + skip_size] & 0x01) << 1) | | ||
171 | + ((adif_header[7 + skip_size] & 0x80) >> 7); | ||
172 | + sr_index = (adif_header[7 + skip_size] & 0x78) >> 3; | ||
173 | + } | ||
174 | + /* VBR */ | ||
175 | + else { | ||
176 | + object_type = (adif_header[4 + skip_size] & 0x18) >> 3; | ||
177 | + sr_index = ((adif_header[4 + skip_size] & 0x07) << 1) | | ||
178 | + ((adif_header[5 + skip_size] & 0x80) >> 7); | ||
179 | + } | ||
180 | + | ||
181 | + /* sample rate */ | ||
182 | + *sample_rate = get_sample_rate_from_index(sr_index); | ||
183 | + | ||
184 | + /* FIXME: assume channels is 2 */ | ||
185 | + *num_channels = 2; | ||
186 | + | ||
187 | + *format = SND_AUDIOSTREAMFORMAT_ADIF; | ||
188 | + fseek(file, 0, SEEK_SET); | ||
189 | + return 1; | ||
190 | +} | ||
191 | + | ||
192 | +static int parse_aac_header(FILE *file, unsigned int *num_channels, unsigned int *sample_rate, unsigned int *format) | ||
193 | +{ | ||
194 | + if (find_adts_header(file, num_channels, sample_rate, format)) | ||
195 | + return 1; | ||
196 | + else if (find_adif_header(file, num_channels, sample_rate, format)) | ||
197 | + return 1; | ||
198 | + else { | ||
199 | + fprintf(stderr, "can't find streams format\n"); | ||
200 | + return 0; | ||
201 | + } | ||
202 | + | ||
203 | + return 1; | ||
204 | +} | ||
205 | + | ||
206 | static int print_time(struct compress *compress) | ||
207 | { | ||
208 | unsigned int avail; | ||
209 | @@ -513,6 +697,29 @@ void get_codec_pcm(FILE *file, struct compr_config *config, | ||
210 | codec->format = format; | ||
211 | } | ||
212 | |||
213 | +void get_codec_aac(FILE *file, struct compr_config *config, | ||
214 | + struct snd_codec *codec) | ||
215 | +{ | ||
216 | + unsigned int channels, rate, format; | ||
217 | + | ||
218 | + if (parse_aac_header(file, &channels, &rate, &format) == 0) { | ||
219 | + fclose(file); | ||
220 | + exit(EXIT_FAILURE); | ||
221 | + }; | ||
222 | + fseek(file, 0, SEEK_SET); | ||
223 | + | ||
224 | + codec->id = SND_AUDIOCODEC_AAC; | ||
225 | + codec->ch_in = channels; | ||
226 | + codec->ch_out = channels; | ||
227 | + codec->sample_rate = rate; | ||
228 | + codec->bit_rate = 0; | ||
229 | + codec->rate_control = 0; | ||
230 | + codec->profile = SND_AUDIOPROFILE_AAC; | ||
231 | + codec->level = 0; | ||
232 | + codec->ch_mode = 0; | ||
233 | + codec->format = format; | ||
234 | + | ||
235 | +} | ||
236 | void play_samples(char *name, unsigned int card, unsigned int device, | ||
237 | unsigned long buffer_size, unsigned int frag, | ||
238 | unsigned long codec_id, int pause_count, int pause_block, | ||
239 | @@ -544,6 +751,9 @@ void play_samples(char *name, unsigned int card, unsigned int device, | ||
240 | case SND_AUDIOCODEC_PCM: | ||
241 | get_codec_pcm(file, &config, &codec); | ||
242 | break; | ||
243 | + case SND_AUDIOCODEC_AAC: | ||
244 | + get_codec_aac(file, &config, &codec); | ||
245 | + break; | ||
246 | default: | ||
247 | fprintf(stderr, "codec ID %ld is not supported\n", codec_id); | ||
248 | exit(EXIT_FAILURE); | ||
249 | -- | ||
250 | 2.17.1 | ||
251 | |||
diff --git a/recipes-multimedia/tinycompress/tinycompress_1.1.6.bb b/recipes-multimedia/tinycompress/tinycompress_1.1.6.bb new file mode 100644 index 00000000..6c0fc72e --- /dev/null +++ b/recipes-multimedia/tinycompress/tinycompress_1.1.6.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | DESCRIPTION = "A library to handle compressed formats like MP3 etc." | ||
2 | LICENSE = "LGPLv2.1 | BSD-3-Clause" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=cf9105c1a2d4405cbe04bbe3367373a0" | ||
4 | DEPENDS = "alsa-lib" | ||
5 | |||
6 | SRC_URI = "git://git.alsa-project.org/tinycompress.git;protocol=git;branch=master \ | ||
7 | file://0001-tinycompress-Add-id3-decoding.patch \ | ||
8 | file://0002-cplay-Support-wave-file.patch \ | ||
9 | file://0003-cplay-Add-pause-feature.patch \ | ||
10 | file://0004-tinycompress-pass-NULL-buffer-with-0-size-to-driver.patch \ | ||
11 | file://0005-cplay-Support-aac-streams.patch \ | ||
12 | " | ||
13 | SRCREV = "995f2ed91045dad8c20485ab1a64727d22cd92e5" | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
diff --git a/recipes-security/optee-imx/optee-client_3.10.0.imx.bb b/recipes-security/optee-imx/optee-client_3.10.0.imx.bb index 58b6b8a4..52bec40b 100644 --- a/recipes-security/optee-imx/optee-client_3.10.0.imx.bb +++ b/recipes-security/optee-imx/optee-client_3.10.0.imx.bb | |||
@@ -18,11 +18,11 @@ B = "${WORKDIR}/build" | |||
18 | 18 | ||
19 | inherit python3native systemd | 19 | inherit python3native systemd |
20 | 20 | ||
21 | SYSTEMD_SERVICE_${PN} = "tee-supplicant.service" | 21 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" |
22 | 22 | ||
23 | OPTEE_ARCH ?= "arm32" | 23 | OPTEE_ARCH ?= "arm32" |
24 | OPTEE_ARCH_armv7a = "arm32" | 24 | OPTEE_ARCH:armv7a = "arm32" |
25 | OPTEE_ARCH_aarch64 = "arm64" | 25 | OPTEE_ARCH:aarch64 = "arm64" |
26 | 26 | ||
27 | EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" | 27 | EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" |
28 | 28 | ||
@@ -42,11 +42,11 @@ do_install () { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | PACKAGES += "tee-supplicant" | 44 | PACKAGES += "tee-supplicant" |
45 | FILES_${PN} += "${libdir}/* ${includedir}/*" | 45 | FILES:${PN} += "${libdir}/* ${includedir}/*" |
46 | FILES_tee-supplicant += "${bindir}/tee-supplicant" | 46 | FILES:tee-supplicant += "${bindir}/tee-supplicant" |
47 | 47 | ||
48 | INSANE_SKIP_${PN} = "ldflags dev-elf" | 48 | INSANE_SKIP:${PN} = "ldflags dev-elf" |
49 | INSANE_SKIP_${PN}-dev = "ldflags dev-elf" | 49 | INSANE_SKIP:${PN}-dev = "ldflags dev-elf" |
50 | INSANE_SKIP_tee-supplicant = "ldflags" | 50 | INSANE_SKIP:tee-supplicant = "ldflags" |
51 | 51 | ||
52 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 52 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-security/optee-imx/optee-os_3.10.0.imx.bb b/recipes-security/optee-imx/optee-os_3.10.0.imx.bb index 712b1aa6..8bfaf8dd 100644 --- a/recipes-security/optee-imx/optee-os_3.10.0.imx.bb +++ b/recipes-security/optee-imx/optee-os_3.10.0.imx.bb | |||
@@ -22,23 +22,25 @@ inherit deploy python3native autotools | |||
22 | 22 | ||
23 | # The platform flavor corresponds to the Yocto machine without the leading 'i'. | 23 | # The platform flavor corresponds to the Yocto machine without the leading 'i'. |
24 | PLATFORM_FLAVOR = "${@d.getVar('MACHINE')[1:]}" | 24 | PLATFORM_FLAVOR = "${@d.getVar('MACHINE')[1:]}" |
25 | PLATFORM_FLAVOR_imx6qpdlsolox = "mx6qsabresd" | 25 | PLATFORM_FLAVOR:imx6qdlsabresd = "mx6qsabresd" |
26 | PLATFORM_FLAVOR_imx6ul7d = "mx6ulevk" | 26 | PLATFORM_FLAVOR:imx6qdlsabreauto = "mx6qsabreauto" |
27 | PLATFORM_FLAVOR_imx6ull14x14evk = "mx6ullevk" | 27 | PLATFORM_FLAVOR:imx6qpdlsolox = "mx6qsabresd" |
28 | PLATFORM_FLAVOR_imx6ull9x9evk = "mx6ullevk" | 28 | PLATFORM_FLAVOR:imx6ul7d = "mx6ulevk" |
29 | PLATFORM_FLAVOR_imx6ulz-14x14-evk = "mx6ulzevk" | 29 | PLATFORM_FLAVOR:imx6ull14x14evk = "mx6ullevk" |
30 | PLATFORM_FLAVOR_mx8mq = "mx8mqevk" | 30 | PLATFORM_FLAVOR:imx6ull9x9evk = "mx6ullevk" |
31 | PLATFORM_FLAVOR_mx8mm = "mx8mmevk" | 31 | PLATFORM_FLAVOR:imx6ulz-14x14-evk = "mx6ulzevk" |
32 | PLATFORM_FLAVOR_mx8mn = "mx8mnevk" | 32 | PLATFORM_FLAVOR:mx8mq = "mx8mqevk" |
33 | PLATFORM_FLAVOR_mx8mp = "mx8mpevk" | 33 | PLATFORM_FLAVOR:mx8mm = "mx8mmevk" |
34 | PLATFORM_FLAVOR_mx8qm = "mx8qmmek" | 34 | PLATFORM_FLAVOR:mx8mn = "mx8mnevk" |
35 | PLATFORM_FLAVOR_mx8qxp = "mx8qxpmek" | 35 | PLATFORM_FLAVOR:mx8mp = "mx8mpevk" |
36 | PLATFORM_FLAVOR_mx8dx = "mx8dxmek" | 36 | PLATFORM_FLAVOR:mx8qm = "mx8qmmek" |
37 | PLATFORM_FLAVOR_mx8dxl = "mx8dxlevk" | 37 | PLATFORM_FLAVOR:mx8qxp = "mx8qxpmek" |
38 | PLATFORM_FLAVOR:mx8dx = "mx8dxmek" | ||
39 | PLATFORM_FLAVOR:mx8dxl = "mx8dxlevk" | ||
38 | 40 | ||
39 | OPTEE_ARCH ?= "arm32" | 41 | OPTEE_ARCH ?= "arm32" |
40 | OPTEE_ARCH_armv7a = "arm32" | 42 | OPTEE_ARCH:armv7a = "arm32" |
41 | OPTEE_ARCH_aarch64 = "arm64" | 43 | OPTEE_ARCH:aarch64 = "arm64" |
42 | 44 | ||
43 | # Optee-os can be built for 32 bits and 64 bits at the same time | 45 | # Optee-os can be built for 32 bits and 64 bits at the same time |
44 | # as long as the compilers are correctly defined. | 46 | # as long as the compilers are correctly defined. |
@@ -86,9 +88,9 @@ do_install () { | |||
86 | addtask deploy after do_compile before do_install | 88 | addtask deploy after do_compile before do_install |
87 | 89 | ||
88 | 90 | ||
89 | FILES_${PN} = "${nonarch_base_libdir}/firmware/" | 91 | FILES:${PN} = "${nonarch_base_libdir}/firmware/" |
90 | FILES_${PN}-staticdev = "/usr/include/optee/" | 92 | FILES:${PN}-staticdev = "/usr/include/optee/" |
91 | RDEPENDS_${PN}-dev += "${PN}-staticdev" | 93 | RDEPENDS:${PN}-dev += "${PN}-staticdev" |
92 | 94 | ||
93 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 95 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
94 | COMPATIBLE_MACHINE = "(imx|imx-boot-container)" | 96 | COMPATIBLE_MACHINE = "(imx|imx-boot-container)" |
diff --git a/recipes-security/optee-imx/optee-test_3.10.0.imx.bb b/recipes-security/optee-imx/optee-test_3.10.0.imx.bb index a8a1b245..76e04f04 100644 --- a/recipes-security/optee-imx/optee-test_3.10.0.imx.bb +++ b/recipes-security/optee-imx/optee-test_3.10.0.imx.bb | |||
@@ -20,11 +20,11 @@ SRCREV = "0c998f42a3fb87b9f2929955cf4b0116cc515091" | |||
20 | inherit python3native | 20 | inherit python3native |
21 | 21 | ||
22 | OPTEE_ARCH ?= "arm32" | 22 | OPTEE_ARCH ?= "arm32" |
23 | OPTEE_ARCH_armv7a = "arm32" | 23 | OPTEE_ARCH:armv7a = "arm32" |
24 | OPTEE_ARCH_aarch64 = "arm64" | 24 | OPTEE_ARCH:aarch64 = "arm64" |
25 | 25 | ||
26 | TA_DEV_KIT_DIR_arm = "${STAGING_INCDIR}/optee/export-user_ta_arm32/" | 26 | TA_DEV_KIT_DIR:arm = "${STAGING_INCDIR}/optee/export-user_ta:arm32/" |
27 | TA_DEV_KIT_DIR_aarch64 = "${STAGING_INCDIR}/optee/export-user_ta_arm64/" | 27 | TA_DEV_KIT_DIR:aarch64 = "${STAGING_INCDIR}/optee/export-user_ta:arm64/" |
28 | 28 | ||
29 | CFLAGS += "--sysroot=${STAGING_DIR_HOST}" | 29 | CFLAGS += "--sysroot=${STAGING_DIR_HOST}" |
30 | CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" | 30 | CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" |
@@ -58,6 +58,6 @@ do_install () { | |||
58 | done | 58 | done |
59 | } | 59 | } |
60 | 60 | ||
61 | FILES_${PN} = "/usr/bin/ /lib*/optee_armtz/" | 61 | FILES:${PN} = "/usr/bin/ /lib*/optee_armtz/" |
62 | 62 | ||
63 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 63 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
diff --git a/recipes-security/optee/optee-os-qoriq_3.8.0.bb b/recipes-security/optee/optee-os-qoriq_3.8.0.bb index b8d764ff..f5d6d620 100644 --- a/recipes-security/optee/optee-os-qoriq_3.8.0.bb +++ b/recipes-security/optee/optee-os-qoriq_3.8.0.bb | |||
@@ -19,9 +19,9 @@ SRCREV = "0cb01f7f6aee552ead49990c06f69f73f459cc65" | |||
19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
20 | 20 | ||
21 | OPTEEMACHINE ?= "${MACHINE}" | 21 | OPTEEMACHINE ?= "${MACHINE}" |
22 | OPTEEMACHINE_ls1088ardb-pb = "ls1088ardb" | 22 | OPTEEMACHINE:ls1088ardb-pb = "ls1088ardb" |
23 | OPTEEMACHINE_ls1046afrwy = "ls1046ardb" | 23 | OPTEEMACHINE:ls1046afrwy = "ls1046ardb" |
24 | OPTEEMACHINE_lx2162aqds = "lx2160aqds" | 24 | OPTEEMACHINE:lx2162aqds = "lx2160aqds" |
25 | 25 | ||
26 | EXTRA_OEMAKE = "PLATFORM=ls-${OPTEEMACHINE} CFG_ARM64_core=y \ | 26 | EXTRA_OEMAKE = "PLATFORM=ls-${OPTEEMACHINE} CFG_ARM64_core=y \ |
27 | ARCH=arm \ | 27 | ARCH=arm \ |
@@ -31,10 +31,10 @@ EXTRA_OEMAKE = "PLATFORM=ls-${OPTEEMACHINE} CFG_ARM64_core=y \ | |||
31 | LDFLAGS= \ | 31 | LDFLAGS= \ |
32 | LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \ | 32 | LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \ |
33 | " | 33 | " |
34 | EXTRA_OEMAKE_append_lx2162aqds = " CFG_EMBED_DTB_SOURCE_FILE=fsl-lx2160a-qds.dts CFG_EMBED_DT=y" | 34 | EXTRA_OEMAKE:append:lx2162aqds = " CFG_EMBED_DTB_SOURCE_FILE=fsl-lx2160a-qds.dts CFG_EMBED_DT=y" |
35 | 35 | ||
36 | OPTEE_ARCH_armv7a = "arm32" | 36 | OPTEE_ARCH:armv7a = "arm32" |
37 | OPTEE_ARCH_aarch64 = "arm64" | 37 | OPTEE_ARCH:aarch64 = "arm64" |
38 | 38 | ||
39 | do_compile() { | 39 | do_compile() { |
40 | unset LDFLAGS | 40 | unset LDFLAGS |
@@ -74,10 +74,10 @@ do_deploy() { | |||
74 | 74 | ||
75 | addtask deploy before do_build after do_install | 75 | addtask deploy before do_build after do_install |
76 | 76 | ||
77 | FILES_${PN} = "/lib/firmware/" | 77 | FILES:${PN} = "/lib/firmware/" |
78 | FILES_${PN}-dev = "/usr/include/optee" | 78 | FILES:${PN}-dev = "/usr/include/optee" |
79 | 79 | ||
80 | INSANE_SKIP_${PN}-dev = "staticdev" | 80 | INSANE_SKIP:${PN}-dev = "staticdev" |
81 | 81 | ||
82 | INHIBIT_PACKAGE_STRIP = "1" | 82 | INHIBIT_PACKAGE_STRIP = "1" |
83 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 83 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-security/optee/optee-test-qoriq_3.8.0.bb b/recipes-security/optee/optee-test-qoriq_3.8.0.bb index 94cd00c2..52cb1bbf 100644 --- a/recipes-security/optee/optee-test-qoriq_3.8.0.bb +++ b/recipes-security/optee/optee-test-qoriq_3.8.0.bb | |||
@@ -40,7 +40,7 @@ do_install () { | |||
40 | install -D -p -m0444 ${S}/out/ta/*/*.ta ${D}/lib/optee_armtz/ | 40 | install -D -p -m0444 ${S}/out/ta/*/*.ta ${D}/lib/optee_armtz/ |
41 | } | 41 | } |
42 | 42 | ||
43 | FILES_${PN} += "/lib/optee_armtz/" | 43 | FILES:${PN} += "/lib/optee_armtz/" |
44 | 44 | ||
45 | # Imports machine specific configs from staging to build | 45 | # Imports machine specific configs from staging to build |
46 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 46 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-support/opencv/opencv_4.5.2.imx.bb b/recipes-support/opencv/opencv_4.5.2.imx.bb index a86fd3ec..8e76783a 100644 --- a/recipes-support/opencv/opencv_4.5.2.imx.bb +++ b/recipes-support/opencv/opencv_4.5.2.imx.bb | |||
@@ -11,8 +11,8 @@ SECTION = "libs" | |||
11 | LICENSE = "Apache-2.0" | 11 | LICENSE = "Apache-2.0" |
12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
13 | 13 | ||
14 | ARM_INSTRUCTION_SET_armv4 = "arm" | 14 | ARM_INSTRUCTION_SET:armv4 = "arm" |
15 | ARM_INSTRUCTION_SET_armv5 = "arm" | 15 | ARM_INSTRUCTION_SET:armv5 = "arm" |
16 | 16 | ||
17 | DEPENDS = "libtool swig-native bzip2 zlib glib-2.0 libwebp" | 17 | DEPENDS = "libtool swig-native bzip2 zlib glib-2.0 libwebp" |
18 | 18 | ||
@@ -59,7 +59,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \ | |||
59 | file://0001-Make-ts-module-external.patch \ | 59 | file://0001-Make-ts-module-external.patch \ |
60 | file://0001-sfm-link-with-Glog_LIBS.patch;patchdir=../contrib \ | 60 | file://0001-sfm-link-with-Glog_LIBS.patch;patchdir=../contrib \ |
61 | " | 61 | " |
62 | SRC_URI_append_riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=../contrib" | 62 | SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=../contrib" |
63 | 63 | ||
64 | S = "${WORKDIR}/git" | 64 | S = "${WORKDIR}/git" |
65 | 65 | ||
@@ -106,7 +106,7 @@ EXTRA_OECMAKE = "-DOPENCV_EXTRA_MODULES_PATH=${WORKDIR}/contrib/modules \ | |||
106 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \ | 106 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \ |
107 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \ | 107 | ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \ |
108 | " | 108 | " |
109 | EXTRA_OECMAKE_append_x86 = " -DX86=ON" | 109 | EXTRA_OECMAKE:append:x86 = " -DX86=ON" |
110 | 110 | ||
111 | PACKAGECONFIG ??= "gapi python3 eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \ | 111 | PACKAGECONFIG ??= "gapi python3 eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \ |
112 | ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \ | 112 | ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \ |
@@ -158,7 +158,7 @@ PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'samples', '${PN}-samples', ' | |||
158 | ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-${BPN}', '', d)} \ | 158 | ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-${BPN}', '', d)} \ |
159 | ${PN}-apps" | 159 | ${PN}-apps" |
160 | 160 | ||
161 | python populate_packages_prepend () { | 161 | python populate_packages:prepend () { |
162 | cv_libdir = d.expand('${libdir}') | 162 | cv_libdir = d.expand('${libdir}') |
163 | do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True) | 163 | do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True) |
164 | do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') | 164 | do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') |
@@ -167,58 +167,58 @@ python populate_packages_prepend () { | |||
167 | 167 | ||
168 | pn = d.getVar('PN') | 168 | pn = d.getVar('PN') |
169 | metapkg = pn + '-dev' | 169 | metapkg = pn + '-dev' |
170 | d.setVar('ALLOW_EMPTY_' + metapkg, "1") | 170 | d.setVar('ALLOW_EMPTY:' + metapkg, "1") |
171 | blacklist = [ metapkg ] | 171 | blacklist = [ metapkg ] |
172 | metapkg_rdepends = [ ] | 172 | metapkg_rdepends = [ ] |
173 | packages = d.getVar('PACKAGES').split() | 173 | packages = d.getVar('PACKAGES').split() |
174 | for pkg in packages[1:]: | 174 | for pkg in packages[1:]: |
175 | if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): | 175 | if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): |
176 | metapkg_rdepends.append(pkg) | 176 | metapkg_rdepends.append(pkg) |
177 | d.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends)) | 177 | d.setVar('RRECOMMENDS:' + metapkg, ' '.join(metapkg_rdepends)) |
178 | 178 | ||
179 | metapkg = pn | 179 | metapkg = pn |
180 | d.setVar('ALLOW_EMPTY_' + metapkg, "1") | 180 | d.setVar('ALLOW_EMPTY:' + metapkg, "1") |
181 | blacklist = [ metapkg, "libopencv-ts" ] | 181 | blacklist = [ metapkg, "libopencv-ts" ] |
182 | metapkg_rdepends = [ ] | 182 | metapkg_rdepends = [ ] |
183 | for pkg in packages[1:]: | 183 | for pkg in packages[1:]: |
184 | if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') and not pkg.endswith('-locale') and not pkg.endswith('-staticdev'): | 184 | if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') and not pkg.endswith('-locale') and not pkg.endswith('-staticdev'): |
185 | metapkg_rdepends.append(pkg) | 185 | metapkg_rdepends.append(pkg) |
186 | d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends)) | 186 | d.setVar('RDEPENDS:' + metapkg, ' '.join(metapkg_rdepends)) |
187 | } | 187 | } |
188 | 188 | ||
189 | PACKAGES_DYNAMIC += "^libopencv-.*" | 189 | PACKAGES_DYNAMIC += "^libopencv-.*" |
190 | 190 | ||
191 | FILES_${PN} = "" | 191 | FILES:${PN} = "" |
192 | FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*" | 192 | FILES:${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*" |
193 | FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/cmake/opencv4/*.cmake" | 193 | FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/cmake/opencv4/*.cmake" |
194 | FILES_${PN}-staticdev += "${libdir}/opencv4/3rdparty/*.a" | 194 | FILES:${PN}-staticdev += "${libdir}/opencv4/3rdparty/*.a" |
195 | FILES_${PN}-apps = "${bindir}/* ${datadir}/opencv4 ${datadir}/licenses" | 195 | FILES:${PN}-apps = "${bindir}/* ${datadir}/opencv4 ${datadir}/licenses" |
196 | FILES_${PN}-java = "${datadir}/OpenCV/java" | 196 | FILES:${PN}-java = "${datadir}/OpenCV/java" |
197 | FILES_${PN}-samples = "${datadir}/opencv4/samples/" | 197 | FILES:${PN}-samples = "${datadir}/opencv4/samples/" |
198 | 198 | ||
199 | INSANE_SKIP_${PN}-java = "libdir" | 199 | INSANE_SKIP:${PN}-java = "libdir" |
200 | INSANE_SKIP_${PN}-dbg = "libdir" | 200 | INSANE_SKIP:${PN}-dbg = "libdir" |
201 | 201 | ||
202 | ALLOW_EMPTY_${PN} = "1" | 202 | ALLOW_EMPTY:${PN} = "1" |
203 | 203 | ||
204 | SUMMARY_python-opencv = "Python bindings to opencv" | 204 | SUMMARY:python-opencv = "Python bindings to opencv" |
205 | FILES_python-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" | 205 | FILES:python-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" |
206 | RDEPENDS_python-opencv = "python-core python-numpy" | 206 | RDEPENDS:python-opencv = "python-core python-numpy" |
207 | 207 | ||
208 | SUMMARY_python3-opencv = "Python bindings to opencv" | 208 | SUMMARY:python3-opencv = "Python bindings to opencv" |
209 | FILES_python3-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" | 209 | FILES:python3-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" |
210 | RDEPENDS_python3-opencv = "python3-core python3-numpy" | 210 | RDEPENDS:python3-opencv = "python3-core python3-numpy" |
211 | 211 | ||
212 | RDEPENDS_${PN}-apps = "bash" | 212 | RDEPENDS:${PN}-apps = "bash" |
213 | 213 | ||
214 | do_compile_prepend() { | 214 | do_compile:prepend() { |
215 | # remove the build host info to improve reproducibility | 215 | # remove the build host info to improve reproducibility |
216 | if [ -f ${WORKDIR}/build/modules/core/version_string.inc ]; then | 216 | if [ -f ${WORKDIR}/build/modules/core/version_string.inc ]; then |
217 | sed -i "s#${WORKDIR}#/workdir#g" ${WORKDIR}/build/modules/core/version_string.inc | 217 | sed -i "s#${WORKDIR}#/workdir#g" ${WORKDIR}/build/modules/core/version_string.inc |
218 | fi | 218 | fi |
219 | } | 219 | } |
220 | 220 | ||
221 | do_install_append() { | 221 | do_install:append() { |
222 | # Move Python files into correct library folder (for multilib build) | 222 | # Move Python files into correct library folder (for multilib build) |
223 | if [ "$libdir" != "/usr/lib" -a -d ${D}/usr/lib ]; then | 223 | if [ "$libdir" != "/usr/lib" -a -d ${D}/usr/lib ]; then |
224 | mv ${D}/usr/lib/* ${D}/${libdir}/ | 224 | mv ${D}/usr/lib/* ${D}/${libdir}/ |
@@ -245,7 +245,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | |||
245 | SRCREV_opencv = "5423d53ae0d116ee5bbe52f8b5503f0cd8586998" | 245 | SRCREV_opencv = "5423d53ae0d116ee5bbe52f8b5503f0cd8586998" |
246 | OPENCV_SRC ?= "git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https" | 246 | OPENCV_SRC ?= "git://source.codeaurora.org/external/imx/opencv-imx.git;protocol=https" |
247 | SRCBRANCH = "4.5.2_imx" | 247 | SRCBRANCH = "4.5.2_imx" |
248 | SRC_URI_remove = "git://github.com/opencv/opencv.git;name=opencv" | 248 | SRC_URI:remove = "git://github.com/opencv/opencv.git;name=opencv" |
249 | SRC_URI =+ "${OPENCV_SRC};branch=${SRCBRANCH};name=opencv" | 249 | SRC_URI =+ "${OPENCV_SRC};branch=${SRCBRANCH};name=opencv" |
250 | 250 | ||
251 | # Add opencv_extra | 251 | # Add opencv_extra |
@@ -254,7 +254,7 @@ SRC_URI += " \ | |||
254 | git://github.com/opencv/opencv_extra.git;destsuffix=extra;name=extra \ | 254 | git://github.com/opencv/opencv_extra.git;destsuffix=extra;name=extra \ |
255 | file://0001-Add-smaller-version-of-download_models.py.patch;patchdir=../extra \ | 255 | file://0001-Add-smaller-version-of-download_models.py.patch;patchdir=../extra \ |
256 | " | 256 | " |
257 | SRCREV_FORMAT_append = "_extra" | 257 | SRCREV_FORMAT:append = "_extra" |
258 | 258 | ||
259 | # Add tiny-dnn | 259 | # Add tiny-dnn |
260 | SRC_URI[tinydnn.md5sum] = "adb1c512e09ca2c7a6faef36f9c53e59" | 260 | SRC_URI[tinydnn.md5sum] = "adb1c512e09ca2c7a6faef36f9c53e59" |
@@ -264,25 +264,25 @@ SRC_URI += " \ | |||
264 | file://OpenCV_DNN_examples.patch \ | 264 | file://OpenCV_DNN_examples.patch \ |
265 | " | 265 | " |
266 | 266 | ||
267 | PACKAGECONFIG_remove = "eigen" | 267 | PACKAGECONFIG:remove = "eigen" |
268 | PACKAGECONFIG_append_mx8 = " dnn text" | 268 | PACKAGECONFIG:append:mx8 = " dnn text" |
269 | PACKAGECONFIG_OPENCL = "" | 269 | PACKAGECONFIG_OPENCL = "" |
270 | PACKAGECONFIG_OPENCL_mx8 = "opencl" | 270 | PACKAGECONFIG_OPENCL:mx8 = "opencl" |
271 | PACKAGECONFIG_OPENCL_mx8dxl = "" | 271 | PACKAGECONFIG_OPENCL:mx8dxl = "" |
272 | PACKAGECONFIG_OPENCL_mx8mm = "" | 272 | PACKAGECONFIG_OPENCL:mx8mm = "" |
273 | PACKAGECONFIG_OPENCL_mx8mnlite = "" | 273 | PACKAGECONFIG_OPENCL:mx8mnlite = "" |
274 | PACKAGECONFIG_append = " ${PACKAGECONFIG_OPENCL}" | 274 | PACKAGECONFIG:append = " ${PACKAGECONFIG_OPENCL}" |
275 | 275 | ||
276 | PACKAGECONFIG[openvx] = "-DWITH_OPENVX=ON -DOPENVX_ROOT=${STAGING_LIBDIR} -DOPENVX_LIB_CANDIDATES='OpenVX;OpenVXU',-DWITH_OPENVX=OFF,virtual/libopenvx," | 276 | PACKAGECONFIG[openvx] = "-DWITH_OPENVX=ON -DOPENVX_ROOT=${STAGING_LIBDIR} -DOPENVX_LIB_CANDIDATES='OpenVX;OpenVXU',-DWITH_OPENVX=OFF,virtual/libopenvx," |
277 | PACKAGECONFIG[qt5] = "-DWITH_QT=ON -DOE_QMAKE_PATH_EXTERNAL_HOST_BINS=${STAGING_BINDIR_NATIVE} -DCMAKE_PREFIX_PATH=${STAGING_BINDIR_NATIVE}/cmake,-DWITH_QT=OFF,qtbase qtbase-native," | 277 | PACKAGECONFIG[qt5] = "-DWITH_QT=ON -DOE_QMAKE_PATH_EXTERNAL_HOST_BINS=${STAGING_BINDIR_NATIVE} -DCMAKE_PREFIX_PATH=${STAGING_BINDIR_NATIVE}/cmake,-DWITH_QT=OFF,qtbase qtbase-native," |
278 | PACKAGECONFIG[tests-imx] = "-DINSTALL_TESTS=ON -DOPENCV_TEST_DATA_PATH=${S}/../extra/testdata, -DINSTALL_TESTS=OFF," | 278 | PACKAGECONFIG[tests-imx] = "-DINSTALL_TESTS=ON -DOPENCV_TEST_DATA_PATH=${S}/../extra/testdata, -DINSTALL_TESTS=OFF," |
279 | 279 | ||
280 | do_unpack_extra_append() { | 280 | do_unpack_extra:append() { |
281 | mkdir -p ${S}/3rdparty/tinydnn/ | 281 | mkdir -p ${S}/3rdparty/tinydnn/ |
282 | tar xzf ${WORKDIR}/v1.0.0a3.tar.gz -C ${S}/3rdparty/tinydnn/ | 282 | tar xzf ${WORKDIR}/v1.0.0a3.tar.gz -C ${S}/3rdparty/tinydnn/ |
283 | } | 283 | } |
284 | 284 | ||
285 | do_install_append() { | 285 | do_install:append() { |
286 | ln -sf opencv4/opencv2 ${D}${includedir}/opencv2 | 286 | ln -sf opencv4/opencv2 ${D}${includedir}/opencv2 |
287 | install -d ${D}${datadir}/OpenCV/samples/data | 287 | install -d ${D}${datadir}/OpenCV/samples/data |
288 | cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data | 288 | cp -r ${S}/samples/data/* ${D}${datadir}/OpenCV/samples/data |
@@ -293,7 +293,7 @@ do_install_append() { | |||
293 | fi | 293 | fi |
294 | } | 294 | } |
295 | 295 | ||
296 | FILES_${PN}-samples += "${datadir}/OpenCV/samples" | 296 | FILES:${PN}-samples += "${datadir}/OpenCV/samples" |
297 | 297 | ||
298 | COMPATIBLE_MACHINE = "(mx8)" | 298 | COMPATIBLE_MACHINE = "(mx8)" |
299 | 299 | ||