Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:ARM:Factory:Contrib:ILP32
cputype-armv6
cputype-armv6.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cputype-armv6.spec of Package cputype-armv6
# # spec file for package cputype-armv6 # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: cputype-armv6 Version: 20190430 Release: 0 Source1: ldpreload-cputype-armv6.sh Source2: fake-uname-to-armv6.c Summary: Exports a LD_PRELOAD to fake uname to armv6l License: GPL-2.0 Group: Development/Libraries/Cross Provides: qemu-cputype-armv6 = %version Obsoletes: qemu-cputype-armv6 < %version #ExclusiveArch: armv6l armv6hl %description This package provides an easy way for build jobs to force the CPU reported to be ARMv6. This helps to make sure that uname returns armv6 and that the instructions we execute are only within the ARMv6 instruction space. %prep %setup -q -T -c -n %{name} %build gcc %{optflags} -shared -fPIC -o libfakearmv6l.so %{SOURCE2} -ldl LD_PRELOAD=$PWD/libfakearmv6l.so /bin/uname -m %install install -D -m 755 libfakearmv6l.so %{buildroot}/%{_lib}/libfakearmv6l.so mkdir -p %{buildroot}/etc/profile.d install -m 644 %{SOURCE1} %{buildroot}/etc/profile.d/ldpreload-cputype-armv6.sh %post # Disable software emulation of cp15 barriers on arm64 kernels. # This is slow and breaks some LLVM generated code: # https://github.com/rust-lang/rust/issues/60605 if [ -e /proc/sys/abi/cp15_barrier ]; then echo 2 > /proc/sys/abi/cp15_barrier fi %files /etc/profile.d /%{_lib}/libfakearmv6l.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor