buildroot/qt: 0001-add-support-for-Gateworks-Ventana-defconfig-qt5-defc.patch

File 0001-add-support-for-Gateworks-Ventana-defconfig-qt5-defc.patch, 6.9 KB (added by Tim Harvey, 4 weeks ago)

Add Ventana defconfigs to buildroot

  • new file oard/gateworks/ventana/rootfs_overlay/etc/profile.d/qt.sh

    From 57ce5d5f8479c2de74f05842f5d7dd608fb95477 Mon Sep 17 00:00:00 2001
    From: Tim Harvey <tharvey@gateworks.com>
    Date: Mon, 4 Nov 2019 16:48:54 -0800
    Subject: [PATCH] add support for Gateworks Ventana defconfig / qt5 defconfig
    
    Signed-off-by: Tim Harvey <tharvey@gateworks.com>
    ---
     .../ventana/rootfs_overlay/etc/profile.d/qt.sh     |   4 +
     .../ventana/rootfs_overlay/root/ventana.json       |  15 +++
     configs/imx6-gwventana-qt5_defconfig               | 108 +++++++++++++++++++++
     configs/imx6-gwventana_defconfig                   |  50 ++++++++++
     4 files changed, 177 insertions(+)
     create mode 100644 board/gateworks/ventana/rootfs_overlay/etc/profile.d/qt.sh
     create mode 100644 board/gateworks/ventana/rootfs_overlay/root/ventana.json
     create mode 100644 configs/imx6-gwventana-qt5_defconfig
     create mode 100644 configs/imx6-gwventana_defconfig
    
    diff --git a/board/gateworks/ventana/rootfs_overlay/etc/profile.d/qt.sh b/board/gateworks/ventana/rootfs_overlay/etc/profile.d/qt.sh
    new file mode 100644
    index 0000000..3cf4204
    - +  
     1#!/bin/bash
     2export QT_QPA_EGLFS_KMS_CONFIG=/root/ventana.json
     3export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
     4export QT_QPA_PLATFORM=eglfs
  • new file oard/gateworks/ventana/rootfs_overlay/root/ventana.json

    diff --git a/board/gateworks/ventana/rootfs_overlay/root/ventana.json b/board/gateworks/ventana/rootfs_overlay/root/ventana.json
    new file mode 100644
    index 0000000..c24bc9e
    - +  
     1{
     2  "device": "/dev/dri/card1",
     3  "hwcursor": false,
     4  "pbuffers": true,
     5  "outputs": [
     6    {
     7      "name": "HDMI-A-1",
     8      "mode": "1920x1080"
     9    },
     10    {
     11      "name": "LVDS-1",
     12      "mode": "off"
     13    }
     14  ]
     15}
  • new file configs/imx6-gwventana-qt5_defconfig

    diff --git a/configs/imx6-gwventana-qt5_defconfig b/configs/imx6-gwventana-qt5_defconfig
    new file mode 100644
    index 0000000..2d530f5
    - +  
     1BR2_arm=y
     2BR2_cortex_a9=y
     3BR2_ARM_ENABLE_NEON=y
     4BR2_ARM_ENABLE_VFP=y
     5BR2_ARM_FPU_VFPV3=y
     6
     7# Linux headers same as kernel, a 5.3 series
     8BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3=y
     9
     10# Additional features needed for packages
     11BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
     12BR2_TOOLCHAIN_BUILDROOT_CXX=y
     13
     14# System
     15BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
     16
     17# required tools to create the SD card image
     18BR2_PACKAGE_HOST_DOSFSTOOLS=y
     19BR2_PACKAGE_HOST_GENIMAGE=y
     20BR2_PACKAGE_HOST_MTOOLS=y
     21
     22# Filesystem
     23BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh"
     24BR2_TARGET_ROOTFS_EXT2=y
     25BR2_TARGET_ROOTFS_EXT2_4=y
     26BR2_TARGET_ROOTFS_EXT2_SIZE="320M"
     27BR2_ROOTFS_OVERLAY="board/gateworks/ventana/rootfs_overlay"
     28# 'normal' geometry UBI
     29BR2_TARGET_ROOTFS_UBI=y
     30BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000
     31BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x800
     32BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2048
     33BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x20000
     34BR2_TARGET_ROOTFS_UBI_SUBSIZE=0
     35
     36# Bootloader
     37BR2_TARGET_UBOOT=y
     38BR2_TARGET_UBOOT_BOARDNAME="gwventana_nand"
     39BR2_TARGET_UBOOT_CUSTOM_VERSION=y
     40BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.10"
     41BR2_TARGET_UBOOT_FORMAT_IMG=y
     42BR2_TARGET_UBOOT_SPL=y
     43BR2_TARGET_UBOOT_SPL_NAME="SPL"
     44
     45# Kernel
     46BR2_LINUX_KERNEL=y
     47BR2_LINUX_KERNEL_CUSTOM_VERSION=y
     48BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.3.8"
     49BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
     50BR2_LINUX_KERNEL_DTS_SUPPORT=y
     51BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-gw51xx imx6dl-gw51xx imx6q-gw52xx imx6dl-gw52xx imx6q-gw53xx imx6dl-gw53xx imx6q-gw54xx imx6dl-gw54xx imx6q-gw551x imx6dl-gw551x imx6q-gw552x imx6dl-gw552x imx6q-gw553x imx6dl-gw553x imx6q-gw560x imx6dl-gw560x imx6q-gw5903 imx6dl-gw5903 imx6q-gw5904 imx6dl-gw5904"
     52BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
     53BR2_LINUX_KERNEL_UIMAGE=y
     54BR2_LINUX_KERNEL_UIMAGE_LOADADDR="10008000"
     55BR2_LINUX_KERNEL_INSTALL_TARGET=y
     56
     57# GL driver
     58BR2_PACKAGE_MESA3D=y
     59BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y
     60BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_KMSRO=y
     61BR2_PACKAGE_MESA3D_OPENGL_ES=y
     62
     63# Fonts
     64BR2_PACKAGE_BITSTREAM_VERA=y
     65BR2_PACKAGE_CANTARELL=y
     66BR2_PACKAGE_DEJAVU=y
     67BR2_PACKAGE_FONT_AWESOME=y
     68BR2_PACKAGE_GHOSTSCRIPT_FONTS=y
     69BR2_PACKAGE_INCONSOLATA=y
     70BR2_PACKAGE_LIBERATION=y
     71
     72# GL demos
     73BR2_PACKAGE_GLMARK2=y
     74BR2_PACKAGE_KMSCUBE=y
     75BR2_PACKAGE_LIBV4L=y
     76BR2_PACKAGE_MESA3D_DEMOS=y
     77
     78# Qt5
     79BR2_PACKAGE_QT5=y
     80BR2_PACKAGE_QT5BASE_LICENSE_APPROVED=y
     81BR2_PACKAGE_QT5BASE_OPENGL_LIB=y
     82BR2_PACKAGE_QT5BASE_LINUXFB=y
     83BR2_PACKAGE_QT5BASE_FONTCONFIG=y
     84BR2_PACKAGE_QT5BASE_GIF=y
     85BR2_PACKAGE_QT5BASE_JPEG=y
     86BR2_PACKAGE_QT5CINEX=y
     87BR2_PACKAGE_QT5CINEX_HD=y
     88
     89# NXP firmware package
     90BR2_PACKAGE_FREESCALE_IMX=y
     91BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q=y
     92BR2_PACKAGE_FIRMWARE_IMX=y
     93
     94# libdrm tests
     95BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y
     96
     97# gstreamer-1.0
     98BR2_PACKAGE_GSTREAMER1=y
     99BR2_PACKAGE_GST1_PLUGINS_GOOD=y
     100BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2=y
     101BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2_PROBE=y
     102BR2_PACKAGE_GST1_PLUGINS_BAD=y
     103BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOPARSERS=y
     104BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS=y
     105BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC=y
     106
     107# For automatic kernel module loading
     108BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
  • new file configs/imx6-gwventana_defconfig

    diff --git a/configs/imx6-gwventana_defconfig b/configs/imx6-gwventana_defconfig
    new file mode 100644
    index 0000000..72b1d56
    - +  
     1BR2_arm=y
     2BR2_cortex_a9=y
     3BR2_ARM_ENABLE_NEON=y
     4BR2_ARM_ENABLE_VFP=y
     5BR2_ARM_FPU_VFPV3=y
     6
     7# Linux headers same as kernel, a 5.3 series
     8BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3=y
     9
     10# System
     11BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
     12
     13# required tools to create the SD card image
     14BR2_PACKAGE_HOST_DOSFSTOOLS=y
     15BR2_PACKAGE_HOST_GENIMAGE=y
     16BR2_PACKAGE_HOST_MTOOLS=y
     17
     18# Filesystem
     19BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh"
     20BR2_TARGET_ROOTFS_EXT2=y
     21BR2_TARGET_ROOTFS_EXT2_4=y
     22# 'normal' geometry UBI
     23BR2_TARGET_ROOTFS_UBI=y
     24BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000
     25BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE=0x800
     26BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2048
     27BR2_TARGET_ROOTFS_UBI_PEBSIZE=0x20000
     28BR2_TARGET_ROOTFS_UBI_SUBSIZE=0
     29
     30# Bootloader
     31BR2_TARGET_UBOOT=y
     32BR2_TARGET_UBOOT_BOARDNAME="gwventana_nand"
     33BR2_TARGET_UBOOT_CUSTOM_VERSION=y
     34BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.10"
     35BR2_TARGET_UBOOT_NEEDS_LZOP=y
     36BR2_TARGET_UBOOT_FORMAT_IMG=y
     37BR2_TARGET_UBOOT_SPL=y
     38BR2_TARGET_UBOOT_SPL_NAME="SPL"
     39
     40# Kernel
     41BR2_LINUX_KERNEL=y
     42BR2_LINUX_KERNEL_CUSTOM_VERSION=y
     43BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.3.8"
     44BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
     45BR2_LINUX_KERNEL_DTS_SUPPORT=y
     46BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-gw51xx imx6dl-gw51xx imx6q-gw52xx imx6dl-gw52xx imx6q-gw53xx imx6dl-gw53xx imx6q-gw54xx imx6dl-gw54xx imx6q-gw551x imx6dl-gw551x imx6q-gw552x imx6dl-gw552x imx6q-gw553x imx6dl-gw553x imx6q-gw560x imx6dl-gw560x imx6q-gw5903 imx6dl-gw5903 imx6q-gw5904 imx6dl-gw5904"
     47BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
     48BR2_LINUX_KERNEL_UIMAGE=y
     49BR2_LINUX_KERNEL_UIMAGE_LOADADDR="10008000"
     50BR2_LINUX_KERNEL_INSTALL_TARGET=y