1 require conf/distro/poky.conf
3 # AGL specific derivations
5 DISTRO_NAME = "Automotive Grade Linux"
9 DISTRO_CODENAME = "jellyfish"
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}"
29 # reproducible builds:
31 BUILD_REPRODUCIBLE_BINARIES = "1"
32 # Set the desired timestamps
33 export SOURCE_DATE_EPOCH = "1583798400"
34 REPRODUCIBLE_TIMESTAMP_ROOTFS = "1583798400"
36 INHERIT += "reproducible_build"
40 SDK_VENDOR = "-aglsdk"
41 SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
43 # SDKPATH is the folder where the SDK is going to be installed
44 # Due to an issue with the qt5 environment (see SPEC-1667),
45 # we add DEFAULTTUNE to the SDKPATH to mitigate the issue.
46 SDKPATH = "/opt/agl-sdk/${SDK_VERSION}-${DEFAULTTUNE}"
49 MAINTAINER = "AGL <automotive-discussions@lists.linuxfoundation.org>"
51 TARGET_VENDOR = "-agl"
53 # Override these in poky based distros
54 AGL_DEFAULT_DISTRO_FEATURES = "largefile systemd opengl wayland pam bluetooth bluez5 3g polkit"
55 POKY_DEFAULT_DISTRO_FEATURES := "${AGL_DEFAULT_DISTRO_FEATURES}"
56 OVERRIDES .= ":${DISTRO_CODENAME}"
58 QEMU_TARGETS ?= "arm aarch64 i386 x86_64"
59 # Other QEMU_TARGETS "mips mips64 mips64el ppc sh4"
62 bzr://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
63 cvs://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
64 git://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
65 gitsm://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
66 hg://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
67 osc://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
68 p4://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
69 svn://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
70 bzr://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
71 cvs://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
72 git://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
73 gitsm://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
74 hg://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
75 osc://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
76 p4://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
77 svn://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
79 ftp://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
80 http://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
81 https://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
82 ftp://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
83 http://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
84 https://.*/.* http://download.automotivelinux.org/AGL/mirror/ \n \
87 # The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
88 # fetch from the network (and warn you if not). To disable the test set
89 # the variable to be empty.
90 # Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD
91 CONNECTIVITY_CHECK_URIS ?= ""
93 PREFERRED_PROVIDER_udev ?= "systemd"
94 PREFERRED_PROVIDER_udev-utils ?= "systemd"
96 VIRTUAL-RUNTIME_init_manager = "systemd"
97 VIRTUAL-RUNTIME_initscripts = ""
99 # network manager to use (possible values: systemd, connman)
100 VIRTUAL-RUNTIME_net_manager = "connman"
102 DISTRO_FEATURES_APPEND = " "
103 DISTRO_FEATURES_remove = "x11"
104 DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit pulseaudio"
106 # Prefer linux-yocto 4.19 LTS version by default
107 PREFERRED_VERSION_linux-yocto = "4.19%"
109 # Prefer GStreamer 1.14.x by default
110 PREFERRED_VERSION_gstreamer1.0 ?= "1.16.%"
111 PREFERRED_VERSION_gstreamer1.0-plugins-bad ?= "1.16.%"
112 PREFERRED_VERSION_gstreamer1.0-plugins-base ?= "1.16.%"
113 PREFERRED_VERSION_gstreamer1.0-plugins-good ?= "1.16.%"
114 PREFERRED_VERSION_gstreamer1.0-plugins-ugly ?= "1.16.%"
115 PREFERRED_VERSION_gstreamer1.0-libav ?= "1.16.%"
116 PREFERRED_VERSION_gstreamer1.0-omx ?= "1.16.%"
118 # Prefer libjpeg-turbo
119 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
121 # using multiple BSP layers causes dangling bbappends in meta-agl-bsp
122 # turn it into a warning
123 #BB_DANGLINGAPPENDS_WARNONLY = "1"
125 # Not yet upstreamed; should be submitted.
126 SECURITY_CFLAGS_pn-qtwebengine = "${SECURITY_NO_PIE_CFLAGS}"
128 #Redefined USER_CLASSES
129 #Disable prelink. It is unmaintained and likely will go away.
130 #default: USER_CLASSES ?= "buildstats image-mklibs image-prelink"
131 USER_CLASSES = "buildstats image-mklibs"
133 # AGL uses 4 optimization levels
135 # - a high and a medium setting for the CCARGS
136 # - the high setting is default (needs >= cortex-a15)
137 # - the medium setting is enabled with: DISTRO_FEATURES_append = " agl-medium-arm-compiler "
138 # 1 for ARM 64bit / AARCH64
140 require conf/distro/include/${TARGET_ARCH}-tune.inc
142 # Generic qemu and qemuboot (runqemu) enhancements
143 # check qemuboot.bbclass
144 # - use 2G RAM by default
146 # use pulseaudio on the host side - off as qemu-native is built with alsa
148 # expose a virtual 'hda' sound card to the guest (arm/aarch64/x86-64)
149 QB_AUDIO_OPT = "-soundhw hda"
151 # Board templates can add extra IMAGE_FSTYPES through this.
152 # It is added (late) through the AGL image recipes.
153 AGL_EXTRA_IMAGE_FSTYPES ??= ""
154 AGL_EXTRA_INITRAMFS_FSTYPES ??= ""
156 # Default IMAGE FSTYPES wic.xz
157 AGL_DEFAULT_IMAGE_FSTYPES ?= "wic.xz wic.bmap wic.xz.sha256sum"
158 AGL_DEFAULT_IMAGE_FSTYPES_qemuall ?= "${@bb.utils.contains('DISTRO_FEATURES', 'AGLCI', 'ext4.xz', 'ext4', d)}"
159 AGL_DEFAULT_IMAGE_FSTYPES_append_netboot = " ${@bb.utils.contains('DISTRO_FEATURES', 'AGLCI', 'ext4.xz', 'ext4', d)}"
160 AGL_DEFAULT_INITRAMFS_FSTYPES ?= "ext4.gz"
162 # DEFAULT IMAGE_FSTYPES for AGL (no - BSPs should not set this)
164 IMAGE_FSTYPES := "${AGL_DEFAULT_IMAGE_FSTYPES} ${AGL_EXTRA_IMAGE_FSTYPES}"
165 INITRAMFS_FSTYPES := "${AGL_DEFAULT_INITRAMFS_FSTYPES} ${AGL_EXTRA_INITRAMFS_FSTYPES}"
167 # THE FUTURE is 'wic'
168 # IMAGE_FSTYPES_append = " wic"
170 # enable the packagemanagement
171 IMAGE_FEATURES =+ "package-management"
172 PACKAGE_FEED_URIS = "http://192.168.7.1:8000/tmp/deploy/"
173 PACKAGE_FEED_BASE_PATHS = "rpm"
174 PACKAGE_FEED_ARCHS = ""
178 # Fix for rpm metadata clash between nativesdk-cmake and nativesdk-qtbase-tools
179 # (revalidate after 2017-10-15, 2018-06-12: still required)
180 DIRFILES_pn-nativesdk-cmake = "1"
182 # For https://jira.automotivelinux.org/browse/SPEC-1629 :
183 # We exclude the conflicting vars from the sstate task hash.
184 # This needs to be verified.
185 do_package_write_rpm[vardepsexclude] += "ARCHIVER_TOPDIR PF"
187 # Set preferred provider to new navi application
188 PREFERRED_RPROVIDER_virtual/navigation ?= "ondemandnavi"
190 # Set preferred provider for low-can device mapping configuration
191 PREFERRED_RPROVIDER_virtual/low-can-dev-mapping ?= "dev-mapping"
193 # Mask upstream meta-security bbappend that interferes with non-linux-yocto
194 # kernels due to the bug of having two wildcards, which bitbake does not
195 # support. Not having it is not an issue, since there is also explicit
196 # enabling of required security features done by meta-agl/meta-security.
197 BBMASK += "meta-security/recipes-kernel/linux/linux-%_5.%.bbappend"