meta-agl-core: remove image-mklibs usage
[AGL/meta-agl.git] / meta-agl-core / 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 = "needlefish"
10 AGL_BRANCH = "master"
11 AGLVERSION = "13.90.0"
12 # switch  devel/release
13 AGLRELEASETYPE ?= "agldevelopment"
14 #AGLRELEASETYPE ?= "aglrelease"
15 OVERRIDES .= ":${AGLRELEASETYPE}"
16 #
17
18 #for development
19 DISTRO_VERSION:agldevelopment := "${AGLVERSION}+snapshot-${METADATA_REVISION}"
20 AGL_APP_REVISION:agldevelopment = "${AUTOREV}"
21 AGL_DEFAULT_REVISION:agldevelopment = "${AUTOREV}"
22
23 #for release
24 DISTRO_VERSION:aglrelease := "${AGLVERSION}"
25 DISTRO_BRANCH_VERSION_TAG = "${DISTRO_CODENAME}/${@'${DISTRO_VERSION}'.replace('+snapshot-${METADATA_REVISION}','')}"
26 AGL_APP_REVISION:aglrelease := "refs/tags/${DISTRO_BRANCH_VERSION_TAG}"
27 AGL_DEFAULT_REVISION:aglrelease := "refs/tags/${DISTRO_BRANCH_VERSION_TAG}"
28
29 #for next branch development
30 OVERRIDES .= ":aglnext"
31
32 # reproducible builds:
33 # enable the flag
34 BUILD_REPRODUCIBLE_BINARIES = "1"
35 # Set the desired timestamps
36 export SOURCE_DATE_EPOCH = "1593400000"
37 REPRODUCIBLE_TIMESTAMP_ROOTFS = "1593400000"
38 # inherit the class
39 INHERIT += "reproducible_build"
40
41
42 # SDK
43 SDK_VENDOR = "-aglsdk"
44
45 # SDKPATHINSTALL is the folder where the SDK is going to be installed
46 # Due to an issue with the qt5 environment (see SPEC-1667),
47 # we add DEFAULTTUNE to the SDKPATH to mitigate the issue.
48 SDKPATHINSTALL = "/opt/agl-sdk/${SDK_VERSION}-${DEFAULTTUNE}"
49
50
51 MAINTAINER = "AGL https://lists.automotivelinux.org/g/agl-dev-community"
52
53 TARGET_VENDOR = "-agl"
54
55 # Override these in poky based distros
56 AGL_DEFAULT_DISTRO_FEATURES = "largefile opengl wayland pam bluetooth bluez5 3g polkit"
57 POKY_DEFAULT_DISTRO_FEATURES := "${AGL_DEFAULT_DISTRO_FEATURES}"
58 OVERRIDES .= ":${DISTRO_CODENAME}"
59
60 DISTRO_FEATURES:remove = "x11"
61 DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
62
63 INIT_MANAGER = "systemd"
64 # Override default of "systemd-compat-units"
65 VIRTUAL-RUNTIME_initscripts = ""
66 # Override default of "busybox-syslog"
67 VIRTUAL-RUNTIME_base-utils-syslog = ""
68
69 # network manager to use (possible values: systemd, connman)
70 VIRTUAL-RUNTIME_net_manager = "connman"
71
72
73 QEMU_TARGETS ?= "arm aarch64 i386 x86_64 riscv64"
74 # Other QEMU_TARGETS "mips mips64 mips64el ppc sh4"
75
76 MIRRORS =+ "\
77 bzr://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
78 cvs://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
79 git://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
80 gitsm://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n \
81 hg://.*/.*       https://download.automotivelinux.org/AGL/mirror/ \n \
82 osc://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
83 p4://.*/.*       https://download.automotivelinux.org/AGL/mirror/ \n \
84 svn://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
85 bzr://.*/.*      http://download.automotivelinux.org/AGL/mirror/  \n \
86 cvs://.*/.*      http://download.automotivelinux.org/AGL/mirror/  \n \
87 git://.*/.*      http://download.automotivelinux.org/AGL/mirror/  \n \
88 gitsm://.*/.*    http://download.automotivelinux.org/AGL/mirror/  \n \
89 hg://.*/.*       http://download.automotivelinux.org/AGL/mirror/  \n \
90 osc://.*/.*      http://download.automotivelinux.org/AGL/mirror/  \n \
91 p4://.*/.*       http://download.automotivelinux.org/AGL/mirror/  \n \
92 svn://.*/.*      http://download.automotivelinux.org/AGL/mirror/  \n \
93                  \
94 ftp://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
95 http://.*/.*     https://download.automotivelinux.org/AGL/mirror/ \n \
96 https://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n \
97 ftp://.*/.*      http://download.automotivelinux.org/AGL/mirror/  \n \
98 http://.*/.*     http://download.automotivelinux.org/AGL/mirror/  \n \
99 https://.*/.*    http://download.automotivelinux.org/AGL/mirror/  \n \
100 "
101
102 # The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
103 # fetch from the network (and warn you if not). To disable the test set
104 # the variable to be empty.
105 # Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD
106 CONNECTIVITY_CHECK_URIS ?= ""
107
108 # using multiple BSP layers causes dangling bbappends in meta-agl-bsp
109 # turn it into a warning
110 #BB_DANGLINGAPPENDS_WARNONLY = "1"
111
112 # Not yet upstreamed; should be submitted.
113 SECURITY_CFLAGS:pn-qtwebengine = "${SECURITY_NO_PIE_CFLAGS}"
114
115 #Redefined USER_CLASSES
116 #Disable prelink. It is unmaintained and likely will go away.
117 #default: USER_CLASSES ?= "buildstats image-prelink"
118 USER_CLASSES = "buildstats"
119
120 # AGL uses 4 optimization levels
121 # 2 for ARM 32bit 
122 #   - a high and a medium setting for the CCARGS
123 #   - the high setting is default (needs >= cortex-a15)
124 #   - the medium setting is enabled with: DISTRO_FEATURES:append = " agl-medium-arm-compiler "
125 # 1 for ARM 64bit / AARCH64
126 # 1 for x86-64
127 # 1 for RISC-V 64-bit
128 require conf/distro/include/${TARGET_ARCH}-tune.inc
129
130 # Generic qemu and qemuboot (runqemu) enhancements
131 # check qemuboot.bbclass
132 # - use 2G RAM by default
133 QB_MEM ?= "-m 2048"
134 # use pulseaudio on the host side - off as qemu-native is built with alsa
135 #QB_AUDIO_DRV = "pa"
136 # expose a virtual 'hda' sound card to the guest (arm/aarch64/x86-64)
137 QB_AUDIO_OPT = "-soundhw hda"
138
139 # Board templates can add extra IMAGE_FSTYPES through this.
140 # It is added (late) through the AGL image recipes.
141 AGL_EXTRA_IMAGE_FSTYPES ??= ""
142 AGL_EXTRA_INITRAMFS_FSTYPES ??= ""
143 #
144 # Default IMAGE FSTYPES wic.xz
145 AGL_DEFAULT_IMAGE_FSTYPES ?= "wic.xz wic.bmap wic.xz.sha256sum"
146 AGL_DEFAULT_IMAGE_FSTYPES:qemuall ?= "${@bb.utils.contains('DISTRO_FEATURES', 'AGLCI', 'ext4.xz', 'ext4', d)}"
147 AGL_DEFAULT_IMAGE_FSTYPES:append:netboot = " ${@bb.utils.contains('DISTRO_FEATURES', 'AGLCI', 'ext4.xz', 'ext4', d)}"
148 AGL_DEFAULT_INITRAMFS_FSTYPES ?= "ext4.gz"
149
150 # DEFAULT IMAGE_FSTYPES for AGL (no - BSPs should not set this)
151 #
152 IMAGE_FSTYPES = "${AGL_DEFAULT_IMAGE_FSTYPES} ${AGL_EXTRA_IMAGE_FSTYPES}"
153 INITRAMFS_FSTYPES = "${AGL_DEFAULT_INITRAMFS_FSTYPES} ${AGL_EXTRA_INITRAMFS_FSTYPES}"
154 #
155
156 # Fix for rpm metadata clash between nativesdk-cmake and nativesdk-qtbase-tools
157 # (revalidate after 2017-10-15, 2018-06-12: still required)
158 DIRFILES:pn-nativesdk-cmake = "1"
159
160 # For https://jira.automotivelinux.org/browse/SPEC-1629 :
161 # We exclude the conflicting vars from the sstate task hash.
162 # This needs to be verified.
163 do_package_write_rpm[vardepsexclude] += "ARCHIVER_TOPDIR PF"
164