diff options
author | wchang kim <wchang.kim@samsung.com> | 2024-11-14 16:30:18 +0900 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2024-11-20 15:31:13 +0900 |
commit | 31dc128f3b5cc87dfd21f02726f5d59ff11bdfb4 (patch) | |
tree | bffec312a8a2c92426d7142c6dedac6e9961f6ad /TIZEN | |
parent | 7a5a3c442aa1f51c389a6a89a68824d671be70c1 (diff) | |
download | qb-31dc128f3b5cc87dfd21f02726f5d59ff11bdfb4.tar.gz qb-31dc128f3b5cc87dfd21f02726f5d59ff11bdfb4.tar.bz2 qb-31dc128f3b5cc87dfd21f02726f5d59ff11bdfb4.zip |
Changes for gcc-14 and riscv
Change-Id: Ica4dcd37cf6b9c924efcb0aa3702d7b30dc12396
Diffstat (limited to 'TIZEN')
-rw-r--r-- | TIZEN/Tizen/Tizen-Base/project_config | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/TIZEN/Tizen/Tizen-Base/project_config b/TIZEN/Tizen/Tizen-Base/project_config index ef9278a3a..a5936e21b 100644 --- a/TIZEN/Tizen/Tizen-Base/project_config +++ b/TIZEN/Tizen/Tizen-Base/project_config @@ -109,6 +109,10 @@ Target: armv7l-tizen-linux Target: aarch64-tizen-linux %endif +%ifarch riscv64 +Target: riscv64-tizen-linux +%endif + ########## cross build ########## %define build_hostarch x86_64 @@ -116,7 +120,7 @@ Macros: %build_hostarch x86_64 :Macros -%ifarch %arm armv7l armv7hl aarch64 +%ifarch riscv64 %arm armv7l armv7hl aarch64 Hostarch: x86_64 # cross build support for the build hosts Preinstall: qemu-linux-user-%{build_hostarch}-cross @@ -145,13 +149,21 @@ Runscripts: qemu-accel-%{build_hostarch}-aarch64 Preinstall: libmount libblkid libuuid %endif # aarch64 +%ifarch riscv64 +Preinstall: qemu-accel-%{build_hostarch}-riscv64 +Runscripts: qemu-accel-%{build_hostarch}-riscv64 +Preinstall: libmount libblkid libuuid +%endif # riscv64 + Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l Substitute: python-accel-armv7hl-cross-arm python-accel-%{build_hostarch}-armv7hl Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64 +Substitute: python-accel-riscv64-cross-riscv64 python-accel-%{build_hostarch}-riscv64 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l Substitute: clang-accel-armv7hl-cross-arm clang-accel-%{build_hostarch}-armv7hl Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64 +Substitute: clang-accel-riscv64-cross-riscv64 clang-accel-%{build_hostarch}-riscv64 ########## exports for different architectures ########## @@ -160,6 +172,7 @@ ExportFilter: \.armv7hl\.rpm$ armv7hl ExportFilter: \.aarch64\.rpm$ aarch64 ExportFilter: \.i586\.rpm$ i586 ExportFilter: \.x86_64\.rpm$ x86_64 +ExportFilter: \.riscv64\.rpm$ riscv64 ########## buildroot config ########## @@ -167,7 +180,7 @@ Preinstall: setup filesystem RunScripts: setup Preinstall: bash bzip2 coreutils diffutils grep rpm -Preinstall: glibc libacl libattr +Preinstall: glibc libacl libattr libxcrypt Preinstall: libcap Preinstall: libgcc Preinstall: libpopt sed tar zlib @@ -237,10 +250,11 @@ Substitute: glibc-devel-32bit %endif ########## compilation flags ########## -%define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -Wformat-security -fmessage-length=0 -frecord-gcc-switches -Wl,-z,relro,--as-needed +%define __global_cflags -O2 -g2 -gdwarf-4 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -Wformat-security -fmessage-length=0 -frecord-gcc-switches -Wl,-z,relro,--as-needed -Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb -Optflags: armv7hl %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=hard -mthumb -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb +Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb -D_FILE_OFFSET_BITS=64 +Optflags: armv7hl %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=hard -mthumb -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb -D_FILE_OFFSET_BITS=64 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53 Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -mstackrealign -Wl,-z,noseparate-code Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer +Optflags: riscv64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -mabi=lp64d -march=rv64gc |