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