Update Tizen:Base project configuration to apply linaro-based common toolchain.
[scm/meta/obs.git] / Tizen:Base / _config
1 Substitute: python-accel-armv7l-cross-arm python-accel-armv7l
2 Substitute: python-accel-aarch64-cross-aarch64 python-accel-aarch64
3 ################################################################################
4 # OBS Project config for Tizen:Base
5 #
6 # RE contacts:
7 #
8 #
9 # vim: set syntax=spec:
10 ################################################################################
11
12 Patterntype: rpm-md comps
13 Release: <CI_CNT>.<B_CNT>
14 Support: build
15 Support: build-compare build-mkbaselibs
16 Support: rpmlint-mini rpmlint-tizen
17
18 ############################# conflicts resolution #############################
19
20 FileProvides: /usr/sbin/groupadd pwdutils
21 Prefer: util-linux
22 Prefer: libtapi-devel
23 Prefer: libpci-devel
24
25 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
26
27 Macros:
28 %tizen_version_major 3
29 %tizen_version_minor 0
30 %tizen_version_patch 0
31
32 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
33 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
34 %tizen %tizen_version
35 %vendor tizen
36 %_vendor tizen
37 %_with_tizen 1
38
39 %check exit 0
40 %run_check_section 0
41 %opensuse_bs 1
42 %_default_patch_fuzz   2
43 :Macros
44
45
46 ############################# build config #####################################
47
48 %define gcc_version 49
49 Macros:
50 %gcc_version 49
51 :Macros
52
53 ########## targets ##########
54
55 %ifarch i586
56 Target: i686-tizen-linux
57 %endif
58
59 %ifarch armv7hl
60 Target: armv7hl-tizen-linux
61 %endif
62
63 %ifarch armv7l
64 Target: armv7l-tizen-linux
65 %endif
66
67 %ifarch aarch64
68 Target: aarch64-tizen-linux
69 %endif
70
71 ########## cross build ##########
72
73 %ifarch %arm armv7l aarch64
74 Hostarch: x86_64
75 # cross build support for the build hosts
76 Preinstall: qemu-linux-user-cross
77 Runscripts: qemu-linux-user-cross
78 Keep: qemu-linux-user-cross
79 %endif
80
81 %ifarch armv7l
82 Preinstall: qemu-accel-armv7l
83 Runscripts: qemu-accel-armv7l
84 Preinstall: libmount libblkid libuuid
85 %endif
86
87 %ifarch aarch64
88 Preinstall: qemu-accel-aarch64
89 Runscripts: qemu-accel-aarch64
90 Preinstall: libmount libblkid libuuid
91 %endif # aarch64
92
93 ########## exports for different architectures ##########
94
95 ExportFilter: \.armv7l\.rpm$ armv7l
96 ExportFilter: \.aarch64\.rpm$ aarch64
97 ExportFilter: \.x86_64\.rpm$ x86_64
98
99 ########## buildroot config ##########
100
101 Preinstall: setup filesystem
102 RunScripts: setup
103
104 Preinstall: bash bzip2 coreutils diffutils grep rpm
105 Preinstall: glibc libacl libattr
106 Preinstall: libcap
107 Preinstall: libgcc
108 Preinstall: libpopt sed tar zlib
109 Preinstall: libncurses libreadline
110 Preinstall: libelf libbz2
111 Preinstall: liblzma
112 Preinstall: nss nspr libfreebl3 libsoftokn3
113 Preinstall: libmagic
114 Preinstall: liblua
115 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
116 Preinstall: libsqlite
117 #Preinstall: rpm-security-plugin
118 Preinstall: util-linux
119
120 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols
121
122 Required: binutils gcc glibc rpm-build libtool
123 Required: gcc-c++
124
125 Support: glibc-locale
126 Support: perl
127 Support: hostname
128 Support: cpio findutils
129 Support: file findutils zlib bzip2
130 Support: gzip hostname net-tools
131 Support: make  patch sed  gawk tar grep coreutils pkg-config
132 Support: m4  tzdata
133 Support: util-linux
134 Support: less
135 Support: which  elfutils
136 Support: update-alternatives
137 Support: libstdc++-devel
138 Support: cpp
139 Support: libatomic
140 Support: libgomp
141 Support: libitm
142
143 Keep: libstdc++-devel
144 Keep: cpp gcc libstdc++
145 Keep: pam
146 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
147 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
148 Keep: make  gmp libcap groff cpio
149 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
150 Keep: kernel-headers  perl-libs perl
151 Keep: pkgconfig glib2 tizen-rpm-config
152 Keep: libmpc libmpfr libppl libgmp libppl_c
153 Keep: libcloog libppl libgmpxx
154 Keep: nss-softokn-freebl libmagic libmagic-data
155 Keep: setup
156 Keep: update-alternatives
157 Keep: cpp
158 Keep: gcc-c++
159 Keep: libatomic
160 Keep: libgomp
161 Keep: libitm
162
163 Substitute: gettext gettext-tools
164
165 %ifarch x86_64
166 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
167 Substitute: libgcc_s1-32bit libgcc-32bit
168 %else
169 Substitute: glibc-devel-32bit
170 %endif
171
172 ########## compilation flags ##########
173 Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian  -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__
174 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  -Wformat -Wformat-security -fmessage-length=0 -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
175 Optflags: i686 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
176 Optflags: x86_64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall  -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector  --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2  -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer  -fipa-cp-clone