Fix build of mozjs, gpm and libatasmart due to SECURITY_%FLAGS
[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 DISTRO_VERSION = "3.90.0+snapshot-${DATE}"
7 DISTRO_CODENAME = "dab"
8 SDK_VENDOR = "-aglsdk"
9 SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
10
11 MAINTAINER = "AGL <automotive-discussions@lists.linuxfoundation.org>"
12
13 TARGET_VENDOR = "-agl"
14
15 # Override these in poky based distros
16 AGL_DEFAULT_DISTRO_FEATURES = "largefile systemd opengl wayland pam bluetooth bluez5"
17 POKY_DEFAULT_DISTRO_FEATURES := "${AGL_DEFAULT_DISTRO_FEATURES}"
18
19 QEMU_TARGETS ?= "arm aarch64 i386 x86_64"
20 # Other QEMU_TARGETS "mips mips64 mips64el ppc sh4"
21
22 PREMIRRORS ??= "\
23 bzr://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
24 cvs://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
25 git://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
26 gitsm://.*/.* https://download.automotivelinux.org/AGL/mirror/ \n \
27 hg://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n \
28 osc://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n \
29 p4://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n \
30 svn://.*/.*   https://download.automotivelinux.org/AGL/mirror/ \n"
31
32 MIRRORS =+ "\
33 ftp://.*/.*      https://download.automotivelinux.org/AGL/mirror/ \n \
34 http://.*/.*     https://download.automotivelinux.org/AGL/mirror/ \n \
35 https://.*/.*    https://download.automotivelinux.org/AGL/mirror/ \n"
36
37 # The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
38 # fetch from the network (and warn you if not). To disable the test set
39 # the variable to be empty.
40 # Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD
41 CONNECTIVITY_CHECK_URIS ?= ""
42
43 PREFERRED_PROVIDER_udev ?= "systemd"
44 PREFERRED_PROVIDER_udev-utils ?= "systemd"
45
46 VIRTUAL-RUNTIME_init_manager = "systemd"
47 VIRTUAL-RUNTIME_initscripts = ""
48
49 # network manager to use (possible values: systemd, connman)
50 VIRTUAL-RUNTIME_net_manager = "connman" 
51
52 DISTRO_FEATURES_APPEND = " "
53 DISTRO_FEATURES_remove = "x11"
54 DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
55
56
57 # Prefer GStreamer 1.8.x by default
58 PREFERRED_VERSION_gstreamer1.0              ?= "1.8.%"
59 PREFERRED_VERSION_gstreamer1.0-plugins-bad  ?= "1.8.%"
60 PREFERRED_VERSION_gstreamer1.0-plugins-base ?= "1.8.%"
61 PREFERRED_VERSION_gstreamer1.0-plugins-good ?= "1.8.%"
62 PREFERRED_VERSION_gstreamer1.0-plugins-ugly ?= "1.8.%"
63 PREFERRED_VERSION_gstreamer1.0-libav        ?= "1.8.%"
64 PREFERRED_VERSION_gstreamer1.0-omx          ?= "1.2.%"
65
66 # Prefer libjpeg-turbo
67 PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
68
69 # using multiple BSP layers causes dangling bbappends in meta-agl-bsp
70 # turn it into a warning
71 #BB_DANGLINGAPPENDS_WARNONLY = "1"
72
73 # enforce security-related compiler flags by default
74 require conf/distro/include/security_flags.inc
75 # required overrides, upstreamed but not merged yet:
76 # http://lists.openembedded.org/pipermail/openembedded-devel/2016-June/107727.html
77 SECURITY_CFLAGS_pn-llvm3.3 = ""
78 SECURITY_LDFLAGS_remove_pn-llvm3.3 = "-fstack-protector-strong"
79 SECURITY_STRINGFORMAT_pn-gpm = ""
80 SECURITY_CFLAGS_pn-libdbus-c++ = ""
81 SECURITY_LDFLAGS_pn-libdbus-c++ = ""
82
83 # more than 2 targets fail to compile these with the SECURITY compiler flags:
84 # Bug tracked as SPEC-593
85 SECURITY_CFLAGS_pn-mozjs = ""
86 SECURITY_LDFLAGS_pn-mozjs = ""
87 SECURITY_CFLAGS_pn-gpm = ""
88 SECURITY_LDFLAGS_pn-gpm = ""
89 SECURITY_CFLAGS_pn-libatasmart = ""
90 SECURITY_LDFLAGS_pn-libatasmart = ""
91
92 # Not yet upstreamed; should be submitted.
93 SECURITY_CFLAGS_pn-qtwebengine = "${SECURITY_NO_PIE_CFLAGS}"
94
95 #Redefined USER_CLASSES
96 #Disable prelink. It is unmaintained and likely will go away.
97 #default: USER_CLASSES ?= "buildstats image-mklibs image-prelink"
98 USER_CLASSES = "buildstats image-mklibs"
99
100 # AGL uses 4 optimization levels
101 # 2 for ARM 32bit 
102 #   - a high and a medium setting for the CCARGS
103 #   - the high setting is default (needs >= cortex-a15)
104 #   - the medium setting is enabled with: DISTRO_FEATURES_append = " agl-medium-arm-compiler "
105 # 1 for ARM 64bit / AARCH64
106 # 1 for x86-64
107 require conf/distro/include/${TARGET_ARCH}-tune.inc
108
109 # Generic qemu and qemuboot (runqemu) enhancements
110 # check qemuboot.bbclass
111 # - use 1G RAM by default
112 QB_MEM ?= "-m 1024"
113
114 # temporary fix for meta-updater (to be removed 2017-05-01)
115 IMAGE_INSTALL_remove = "rvi-sota-client"
116