Cut FF 6.0.4
[AGL/meta-agl.git] / meta-agl-distro / conf / distro / poky-agl.conf
1 require conf/distro/poky.conf
2
3 # AGL specific derivations
4 DISTRO = "poky-agl"
5 DISTRO_NAME = "Automotive Grade Linux"
6
7
8 # Release flags
9 DISTRO_CODENAME = "flounder"
10 AGL_BRANCH = "flounder"
11 AGLVERSION = "6.0.4"
12 # switch  devel/release
13 #AGLRELEASETYPE ?= "agldevelopment"
14 AGLRELEASETYPE ?= "aglrelease"
15 OVERRIDES .= ":${AGLRELEASETYPE}"
16 #
17
18 #for development
19 DISTRO_VERSION_agldevelopment := "${AGLVERSION}+snapshot-${DATE}"
20 AGL_APP_REVISION_agldevelopment = "${AUTOREV}"
21
22 #for release
23 DISTRO_VERSION_aglrelease := "${AGLVERSION}"
24 DISTRO_BRANCH_VERSION_TAG = "flounder/${@'${DISTRO_VERSION}'.replace('+snapshot-${DATE}','')}"
25 AGL_APP_REVISION_aglrelease := "refs/tags/${DISTRO_BRANCH_VERSION_TAG}"
26
27
28 # SDK
29 SDK_VENDOR = "-aglsdk"
30 SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
31
32 # SDKPATH is the folder where the SDK is going to be installed
33 # Due to an issue with the qt5 environment (see SPEC-1667),
34 # we add DEFAULTTUNE to the SDKPATH to mitigate the issue.
35 SDKPATH = "/opt/agl-sdk/${SDK_VERSION}-${DEFAULTTUNE}"
36
37
38 MAINTAINER = "AGL <automotive-discussions@lists.linuxfoundation.org>"
39
40 TARGET_VENDOR = "-agl"
41
42 # Override these in poky based distros
43 AGL_DEFAULT_DISTRO_FEATURES = "largefile systemd opengl wayland pam bluetooth bluez5"
44 POKY_DEFAULT_DISTRO_FEATURES := "${AGL_DEFAULT_DISTRO_FEATURES}"
45 OVERRIDES .= ":${DISTRO_CODENAME}"
46
47 QEMU_TARGETS ?= "arm aarch64 i386 x86_64"
48 # Other QEMU_TARGETS "mips mips64 mips64el ppc sh4"
49
50 PREMIRRORS ??= "\
51 bzr://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
52 cvs://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
53 git://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
54 gitsm://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
55 hg://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n \
56 osc://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
57 p4://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n \
58 svn://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n"
59
60 MIRRORS =+ "\
61 ftp://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
62 http://.*/.*     https://download.automotivelinux.org/AGL/mirror/ \n \
63 https://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n"
64
65 # The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
66 # fetch from the network (and warn you if not). To disable the test set
67 # the variable to be empty.
68 # Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD
69 CONNECTIVITY_CHECK_URIS ?= ""
70
71 PREFERRED_PROVIDER_udev ?= "systemd"
72 PREFERRED_PROVIDER_udev-utils ?= "systemd"
73
74 VIRTUAL-RUNTIME_init_manager = "systemd"
75 VIRTUAL-RUNTIME_initscripts = ""
76
77 # network manager to use (possible values: systemd, connman)
78 VIRTUAL-RUNTIME_net_manager = "connman" 
79
80 DISTRO_FEATURES_APPEND = " "
81 DISTRO_FEATURES_remove = "x11"
82 DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
83
84 PREFERRED_VERSION_wayland-ivi-extension ?= "2.0.%"
85
86 # Prefer GStreamer 1.10.x by default
87 PREFERRED_VERSION_gstreamer1.0              ?= "1.12.%"
88 PREFERRED_VERSION_gstreamer1.0-plugins-bad  ?= "1.12.%"
89 PREFERRED_VERSION_gstreamer1.0-plugins-base ?= "1.12.%"
90 PREFERRED_VERSION_gstreamer1.0-plugins-good ?= "1.12.%"
91 PREFERRED_VERSION_gstreamer1.0-plugins-ugly ?= "1.12.%"
92 PREFERRED_VERSION_gstreamer1.0-libav        ?= "1.12.%"
93 PREFERRED_VERSION_gstreamer1.0-omx          ?= "1.12.%"
94
95 # Prefer libjpeg-turbo
96 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
97
98 # using multiple BSP layers causes dangling bbappends in meta-agl-bsp
99 # turn it into a warning
100 #BB_DANGLINGAPPENDS_WARNONLY = "1"
101
102 # enforce security-related compiler flags by default
103 require conf/distro/include/security_flags.inc
104 # required overrides, upstreamed but not merged yet:
105 # http://lists.openembedded.org/pipermail/openembedded-devel/2016-June/107727.html
106 SECURITY_CFLAGS_pn-llvm3.3 = ""
107 SECURITY_LDFLAGS_remove_pn-llvm3.3 = "-fstack-protector-strong"
108 SECURITY_STRINGFORMAT_pn-gpm = ""
109 SECURITY_CFLAGS_pn-libdbus-c++ = ""
110 SECURITY_LDFLAGS_pn-libdbus-c++ = ""
111
112 # more than 2 targets fail to compile these with the SECURITY compiler flags:
113 # Bug tracked as SPEC-593
114 SECURITY_CFLAGS_pn-mozjs = ""
115 SECURITY_LDFLAGS_pn-mozjs = ""
116 SECURITY_CFLAGS_pn-gpm = ""
117 SECURITY_LDFLAGS_pn-gpm = ""
118 SECURITY_CFLAGS_pn-libatasmart = ""
119 SECURITY_LDFLAGS_pn-libatasmart = ""
120
121 # Not yet upstreamed; should be submitted.
122 SECURITY_CFLAGS_pn-qtwebengine = "${SECURITY_NO_PIE_CFLAGS}"
123
124 #Redefined USER_CLASSES
125 #Disable prelink. It is unmaintained and likely will go away.
126 #default: USER_CLASSES ?= "buildstats image-mklibs image-prelink"
127 USER_CLASSES = "buildstats image-mklibs"
128
129 # AGL uses 4 optimization levels
130 # 2 for ARM 32bit 
131 #   - a high and a medium setting for the CCARGS
132 #   - the high setting is default (needs >= cortex-a15)
133 #   - the medium setting is enabled with: DISTRO_FEATURES_append = " agl-medium-arm-compiler "
134 # 1 for ARM 64bit / AARCH64
135 # 1 for x86-64
136 require conf/distro/include/${TARGET_ARCH}-tune.inc
137
138 # Generic qemu and qemuboot (runqemu) enhancements
139 # check qemuboot.bbclass
140 # - use 2G RAM by default
141 QB_MEM ?= "-m 2048"
142 # use pulseaudio on the host side - off as qemu-native is built with alsa
143 #QB_AUDIO_DRV = "pa"
144 # expose a virtual 'hda' sound card to the guest (arm/aarch64/x86-64)
145 QB_AUDIO_OPT = "-soundhw hda"
146
147 # Board templates can add extra IMAGE_FSTYPES through this.
148 # It is added (late) through the AGL image recipes.
149 AGL_EXTRA_IMAGE_FSTYPES ??= ""
150 AGL_EXTRA_INITRAMFS_FSTYPES ??= ""
151 #
152 # Default IMAGE FSTYPES compressed tarball + ext4.xz
153 AGL_DEFAULT_IMAGE_FSTYPES ?= "tar.xz ${@bb.utils.contains('DISTRO_FEATURES', 'AGLCI', 'ext4.xz', 'ext4', d)}"
154 AGL_DEFAULT_INITRAMFS_FSTYPES ?= "ext4.gz"
155
156 # DEFAULT IMAGE_FSTYPES for AGL (no - BSPs should not set this)
157 #
158 IMAGE_FSTYPES := "${AGL_DEFAULT_IMAGE_FSTYPES} ${AGL_EXTRA_IMAGE_FSTYPES}"
159 INITRAMFS_FSTYPES := "${AGL_DEFAULT_INITRAMFS_FSTYPES} ${AGL_EXTRA_INITRAMFS_FSTYPES}"
160 #
161 # THE FUTURE is 'wic'
162 # IMAGE_FSTYPES_append = " wic"
163
164 # enable the packagemanagement
165 IMAGE_FEATURES =+ "package-management"
166 PACKAGE_FEED_URIS = "http://192.168.7.1:8000/tmp/deploy/"
167 PACKAGE_FEED_BASE_PATHS = "rpm"
168 PACKAGE_FEED_ARCHS = ""
169 #${PACKAGE_ARCHS}"
170
171
172 # Fix for rpm metadata clash between nativesdk-cmake and nativesdk-qtbase-tools
173 # (revalidate after 2017-10-15, 2018-06-12: still required)
174 DIRFILES_pn-nativesdk-cmake = "1"
175
176 # For https://jira.automotivelinux.org/browse/SPEC-1629 :
177 # We exclude the conflicting vars from the sstate task hash.
178 # This needs to be verified.
179 do_package_write_rpm[vardepsexclude] += "ARCHIVER_TOPDIR PF"
180
181 # For https://jira.automotivelinux.org/browse/SPEC-1677
182 # Some issues appear, with the yocto version of valgrind, on aarch64.
183 # (valgrind exits due to an unhandled instruction')
184 PREFERRED_VERSION_valgrind ?= "git"