diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2020-11-16 09:57:46 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2020-11-20 11:40:44 +0200 |
| commit | 545be38961a2e287c64f2ae607569e88da4bfa8b (patch) | |
| tree | cb8def142c1583d1b9c2f7b0f48310f0665bf3e6 | |
| parent | 72459ce0639eb3ce408558a7abede945e1f8ddc9 (diff) | |
| download | meta-qt5-545be38961a2e287c64f2ae607569e88da4bfa8b.tar.gz | |
coin: move test configs to separate file
Separate test-configs.inc allows easy local build setup to match
the CI build configuration.
Change-Id: I64930c88ea1cba3f9f039881dc0ba947feeb9a34
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
| -rw-r--r-- | .gitattributes | 1 | ||||
| -rw-r--r-- | coin/module_config.yaml | 89 | ||||
| -rw-r--r-- | coin/test-configs.inc | 83 |
3 files changed, 84 insertions, 89 deletions
diff --git a/.gitattributes b/.gitattributes index f6a86105..cb2381c0 100644 --- a/.gitattributes +++ b/.gitattributes | |||
| @@ -1,3 +1,2 @@ | |||
| 1 | /coin export-ignore | ||
| 2 | # linguist overrides | 1 | # linguist overrides |
| 3 | recipes-*/**/*.inc linguist-language=BitBake | 2 | recipes-*/**/*.inc linguist-language=BitBake |
diff --git a/coin/module_config.yaml b/coin/module_config.yaml index c851022a..39283baa 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml | |||
| @@ -55,93 +55,6 @@ build_instructions: | |||
| 55 | userMessageOnFailure: "Could not mount yocto cache." | 55 | userMessageOnFailure: "Could not mount yocto cache." |
| 56 | - type: WriteFile | 56 | - type: WriteFile |
| 57 | fileContents: | | 57 | fileContents: | |
| 58 | # https://github.com/shr-project/jenkins-jobs/blob/master/jenkins-job.sh | ||
| 59 | INHERIT += "reproducible_build_simple" | ||
| 60 | # need space for dunfell build | ||
| 61 | INHERIT += "rm_work" | ||
| 62 | # We want musl and glibc to share the same tmpfs, so instead of appending default "-${TCLIBC}" we append "fs" | ||
| 63 | TCLIBCAPPEND = "fs" | ||
| 64 | PREFERRED_PROVIDER_udev = "systemd" | ||
| 65 | PREFERRED_PROVIDER_virtual/fftw = "fftw" | ||
| 66 | # use gold | ||
| 67 | DISTRO_FEATURES_append = " ld-is-gold" | ||
| 68 | # use ptest | ||
| 69 | DISTRO_FEATURES_append = " ptest" | ||
| 70 | # use systemd | ||
| 71 | DISTRO_FEATURES_append = " systemd" | ||
| 72 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
| 73 | VIRTUAL-RUNTIME_init_manager = "systemd" | ||
| 74 | VIRTUAL-RUNTIME_initscripts = "" | ||
| 75 | # use opengl | ||
| 76 | DISTRO_FEATURES_append = " opengl" | ||
| 77 | # use wayland to fix building weston and qtwayland | ||
| 78 | DISTRO_FEATURES_append = " wayland" | ||
| 79 | PREFERRED_PROVIDER_jpeg = "libjpeg-turbo" | ||
| 80 | PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native" | ||
| 81 | PREFERRED_PROVIDER_gpsd = "gpsd" | ||
| 82 | PREFERRED_PROVIDER_e-wm-sysactions = "e-wm" | ||
| 83 | ESYSACTIONS = "e-wm-sysactions" | ||
| 84 | # don't pull libhybris unless explicitly asked for | ||
| 85 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa" | ||
| 86 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" | ||
| 87 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" | ||
| 88 | PREFERRED_PROVIDER_virtual/egl ?= "mesa" | ||
| 89 | # to fix fsoaudiod, alsa-state conflict in shr-image-all | ||
| 90 | VIRTUAL-RUNTIME_alsa-state = "" | ||
| 91 | # to prevent alsa-state being pulled into -dev or -dbg images | ||
| 92 | RDEPENDS_${PN}-dev_pn-alsa-state = "" | ||
| 93 | RDEPENDS_${PN}-dbg_pn-alsa-state = "" | ||
| 94 | # to fix dependency on conflicting x11-common from packagegroup-core-x11 | ||
| 95 | VIRTUAL-RUNTIME_xserver_common ?= "xserver-common" | ||
| 96 | RDEPENDS_${PN}-dev_pn-x11-common = "" | ||
| 97 | RDEPENDS_${PN}-dbg_pn-x11-common = "" | ||
| 98 | # to fix apm, fso-apm conflict in shr-image-all | ||
| 99 | VIRTUAL-RUNTIME_apm = "fso-apm" | ||
| 100 | # require conf/distro/include/qt5-versions.inc | ||
| 101 | # QT5_VERSION = "5.4.0+git%" | ||
| 102 | # for qtwebkit etc | ||
| 103 | # see https://bugzilla.yoctoproject.org/show_bug.cgi?id=5013 | ||
| 104 | # DEPENDS_append_pn-qtbase = " mesa" | ||
| 105 | PACKAGECONFIG_append_pn-qtbase = " icu gl accessibility freetype fontconfig" | ||
| 106 | # qtwayland doesn't like egl and xcomposite-glx enabled at the same time | ||
| 107 | # http://lists.openembedded.org/pipermail/openembedded-devel/2016-December/110444.html | ||
| 108 | PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-egl xcomposite-glx" | ||
| 109 | # for webkit-efl | ||
| 110 | PACKAGECONFIG_append_pn-harfbuzz = " icu" | ||
| 111 | inherit blacklist | ||
| 112 | # PNBLACKLIST[samsung-rfs-mgr] = "needs newer libsamsung-ipc with negative D_P: Requested 'samsung-ipc-1.0 >= 0.2' but version of libsamsung-ipc is 0.1.0" | ||
| 113 | PNBLACKLIST[android-system] = "depends on lxc from meta-virtualiazation which isn't included in my world builds" | ||
| 114 | PNBLACKLIST[bigbuckbunny-1080p] = "big and doesn't really need to be tested so much" | ||
| 115 | PNBLACKLIST[bigbuckbunny-480p] = "big and doesn't really need to be tested so much" | ||
| 116 | PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much" | ||
| 117 | PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much" | ||
| 118 | PNBLACKLIST[tearsofsteel-1080p] = "big and doesn't really need to be tested so much" | ||
| 119 | PNBLACKLIST[build-appliance-image] = "tries to include whole downloads directory in /home/builder/poky :/" | ||
| 120 | # enable reporting | ||
| 121 | # needs http://patchwork.openembedded.org/patch/68735/ | ||
| 122 | #ERR_REPORT_SERVER = "errors.yoctoproject.org" | ||
| 123 | #ERR_REPORT_PORT = "80" | ||
| 124 | #ERR_REPORT_USERNAME = "Martin Jansa" | ||
| 125 | #ERR_REPORT_EMAIL = "Martin.Jansa@gmail.com" | ||
| 126 | #ERR_REPORT_UPLOAD_FAILURES = "1" | ||
| 127 | #INHERIT += "report-error" | ||
| 128 | # needs patch with buildstats-summary.bbclass | ||
| 129 | INHERIT += "buildstats buildstats-summary" | ||
| 130 | # be more strict with QA warnings, turn them all to errors: | ||
| 131 | ERROR_QA_append = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn" | ||
| 132 | WARN_QA_remove = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn" | ||
| 133 | # enable thumb for broader test coverage (oe-core autobuilder doesn't have thumb enabled) | ||
| 134 | PREFERRED_ARM_INSTRUCTION_SET ?= "thumb" | ||
| 135 | ARM_INSTRUCTION_SET = "${PREFERRED_ARM_INSTRUCTION_SET}" | ||
| 136 | # use musl for qemux86 and qemux86copy | ||
| 137 | TCLIBC_qemux86 = "musl" | ||
| 138 | TCLIBC_qemux86copy = "musl" | ||
| 139 | # limit parallel make to avoid OOM | ||
| 140 | PARALLEL_MAKE_pn-qtwebkit = "-j 8" | ||
| 141 | filename: "{{.BuildDir}}/world_fixes.inc" | ||
| 142 | fileMode: 420 | ||
| 143 | - type: WriteFile | ||
| 144 | fileContents: | | ||
| 145 | #!/bin/bash -xe | 58 | #!/bin/bash -xe |
| 146 | git clone git://git.yoctoproject.org/poky --reference /mnt/yocto-cache/mirror/poky.git | 59 | git clone git://git.yoctoproject.org/poky --reference /mnt/yocto-cache/mirror/poky.git |
| 147 | (cd poky; git checkout ${POKY_SHA1}) | 60 | (cd poky; git checkout ${POKY_SHA1}) |
| @@ -159,7 +72,7 @@ build_instructions: | |||
| 159 | bitbake-layers add-layer ../meta-python2 | 72 | bitbake-layers add-layer ../meta-python2 |
| 160 | bitbake-layers add-layer ${SOURCE_DIR} | 73 | bitbake-layers add-layer ${SOURCE_DIR} |
| 161 | 74 | ||
| 162 | echo 'require ../world_fixes.inc' >> conf/local.conf | 75 | echo "require ${SOURCE_DIR}/coin/test-configs.inc" >> conf/local.conf |
| 163 | 76 | ||
| 164 | # EXCLUDE_FROM_WORLD | 77 | # EXCLUDE_FROM_WORLD |
| 165 | rm -f ${SOURCE_DIR}/recipes-qt/examples/qt5-opengles2-test_git.bb | 78 | rm -f ${SOURCE_DIR}/recipes-qt/examples/qt5-opengles2-test_git.bb |
diff --git a/coin/test-configs.inc b/coin/test-configs.inc new file mode 100644 index 00000000..5fbc1d55 --- /dev/null +++ b/coin/test-configs.inc | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | # https://github.com/shr-project/jenkins-jobs/blob/master/jenkins-job.sh | ||
| 2 | INHERIT += "reproducible_build_simple" | ||
| 3 | # need space for dunfell build | ||
| 4 | INHERIT += "rm_work" | ||
| 5 | # We want musl and glibc to share the same tmpfs, so instead of appending default "-${TCLIBC}" we append "fs" | ||
| 6 | TCLIBCAPPEND = "fs" | ||
| 7 | PREFERRED_PROVIDER_udev = "systemd" | ||
| 8 | PREFERRED_PROVIDER_virtual/fftw = "fftw" | ||
| 9 | # use gold | ||
| 10 | DISTRO_FEATURES_append = " ld-is-gold" | ||
| 11 | # use ptest | ||
| 12 | DISTRO_FEATURES_append = " ptest" | ||
| 13 | # use systemd | ||
| 14 | DISTRO_FEATURES_append = " systemd" | ||
| 15 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
| 16 | VIRTUAL-RUNTIME_init_manager = "systemd" | ||
| 17 | VIRTUAL-RUNTIME_initscripts = "" | ||
| 18 | # use opengl | ||
| 19 | DISTRO_FEATURES_append = " opengl" | ||
| 20 | # use wayland to fix building weston and qtwayland | ||
| 21 | DISTRO_FEATURES_append = " wayland" | ||
| 22 | PREFERRED_PROVIDER_jpeg = "libjpeg-turbo" | ||
| 23 | PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native" | ||
| 24 | PREFERRED_PROVIDER_gpsd = "gpsd" | ||
| 25 | PREFERRED_PROVIDER_e-wm-sysactions = "e-wm" | ||
| 26 | ESYSACTIONS = "e-wm-sysactions" | ||
| 27 | # don't pull libhybris unless explicitly asked for | ||
| 28 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa" | ||
| 29 | PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa" | ||
| 30 | PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa" | ||
| 31 | PREFERRED_PROVIDER_virtual/egl ?= "mesa" | ||
| 32 | # to fix fsoaudiod, alsa-state conflict in shr-image-all | ||
| 33 | VIRTUAL-RUNTIME_alsa-state = "" | ||
| 34 | # to prevent alsa-state being pulled into -dev or -dbg images | ||
| 35 | RDEPENDS_${PN}-dev_pn-alsa-state = "" | ||
| 36 | RDEPENDS_${PN}-dbg_pn-alsa-state = "" | ||
| 37 | # to fix dependency on conflicting x11-common from packagegroup-core-x11 | ||
| 38 | VIRTUAL-RUNTIME_xserver_common ?= "xserver-common" | ||
| 39 | RDEPENDS_${PN}-dev_pn-x11-common = "" | ||
| 40 | RDEPENDS_${PN}-dbg_pn-x11-common = "" | ||
| 41 | # to fix apm, fso-apm conflict in shr-image-all | ||
| 42 | VIRTUAL-RUNTIME_apm = "fso-apm" | ||
| 43 | # require conf/distro/include/qt5-versions.inc | ||
| 44 | # QT5_VERSION = "5.4.0+git%" | ||
| 45 | # for qtwebkit etc | ||
| 46 | # see https://bugzilla.yoctoproject.org/show_bug.cgi?id=5013 | ||
| 47 | # DEPENDS_append_pn-qtbase = " mesa" | ||
| 48 | PACKAGECONFIG_append_pn-qtbase = " icu gl accessibility freetype fontconfig" | ||
| 49 | # qtwayland doesn't like egl and xcomposite-glx enabled at the same time | ||
| 50 | # http://lists.openembedded.org/pipermail/openembedded-devel/2016-December/110444.html | ||
| 51 | PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-egl xcomposite-glx" | ||
| 52 | # for webkit-efl | ||
| 53 | PACKAGECONFIG_append_pn-harfbuzz = " icu" | ||
| 54 | inherit blacklist | ||
| 55 | # PNBLACKLIST[samsung-rfs-mgr] = "needs newer libsamsung-ipc with negative D_P: Requested 'samsung-ipc-1.0 >= 0.2' but version of libsamsung-ipc is 0.1.0" | ||
| 56 | PNBLACKLIST[android-system] = "depends on lxc from meta-virtualiazation which isn't included in my world builds" | ||
| 57 | PNBLACKLIST[bigbuckbunny-1080p] = "big and doesn't really need to be tested so much" | ||
| 58 | PNBLACKLIST[bigbuckbunny-480p] = "big and doesn't really need to be tested so much" | ||
| 59 | PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much" | ||
| 60 | PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be tested so much" | ||
| 61 | PNBLACKLIST[tearsofsteel-1080p] = "big and doesn't really need to be tested so much" | ||
| 62 | PNBLACKLIST[build-appliance-image] = "tries to include whole downloads directory in /home/builder/poky :/" | ||
| 63 | # enable reporting | ||
| 64 | # needs http://patchwork.openembedded.org/patch/68735/ | ||
| 65 | #ERR_REPORT_SERVER = "errors.yoctoproject.org" | ||
| 66 | #ERR_REPORT_PORT = "80" | ||
| 67 | #ERR_REPORT_USERNAME = "Martin Jansa" | ||
| 68 | #ERR_REPORT_EMAIL = "Martin.Jansa@gmail.com" | ||
| 69 | #ERR_REPORT_UPLOAD_FAILURES = "1" | ||
| 70 | #INHERIT += "report-error" | ||
| 71 | # needs patch with buildstats-summary.bbclass | ||
| 72 | INHERIT += "buildstats buildstats-summary" | ||
| 73 | # be more strict with QA warnings, turn them all to errors: | ||
| 74 | ERROR_QA_append = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn" | ||
| 75 | WARN_QA_remove = " ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi textrel already-stripped incompatible-license files-invalid installed-vs-shipped compile-host-path install-host-path pn-overrides infodir build-deps unknown-configure-option symlink-to-sysroot multilib invalid-packageconfig host-user-contaminated uppercase-pn" | ||
| 76 | # enable thumb for broader test coverage (oe-core autobuilder doesn't have thumb enabled) | ||
| 77 | PREFERRED_ARM_INSTRUCTION_SET ?= "thumb" | ||
| 78 | ARM_INSTRUCTION_SET = "${PREFERRED_ARM_INSTRUCTION_SET}" | ||
| 79 | # use musl for qemux86 and qemux86copy | ||
| 80 | TCLIBC_qemux86 = "musl" | ||
| 81 | TCLIBC_qemux86copy = "musl" | ||
| 82 | # limit parallel make to avoid OOM | ||
| 83 | PARALLEL_MAKE_pn-qtwebkit = "-j 8" | ||
