-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix perf build #2505
fix perf build #2505
Conversation
Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Matthias Reichl <hias@horus.com>
properly set ARCH, CROSS_COMPILE, LDFLAGS and JOBS. This fixes build failure on aarch64 / kernel 4.4 and feature detection issues due to LTO warnings on 32bit Rockchip builds. Signed-off-by: Matthias Reichl <hias@horus.com>
22714f3
to
c01fab4
Compare
Clean build revealed that libbfd went AWOL in the original perf PR. Added the missing commit here and verified with another clean build that C++ demangling works again. This should be good now |
Signed-off-by: Matthias Reichl <hias@horus.com>
Don't pollute sysroot with static libs and headers Signed-off-by: Matthias Reichl <hias@horus.com>
a780184
to
6b7a5ce
Compare
The reason for the size change of the perf binary on rebuilds was that gdb polluted the sysroot with it's own version of libbfd, overwriting libbfd headers and includes from binutils. I've added a gdb commit to stop this nonsense and install gdb only to the target, keeping the sysroot intact |
Looks good @HiassofT - perf size (RPi/RPi2/Generic) remains the same after the incremental build. Many thanks for tracking this down! |
perf crosscompilation should be performed like for linux kernel, i.e. by specifying ARCH and CROSS_COMPILE. The initial version accidentally dropped LDFLAGS, add these back in.
On x86_64 the upstream Makefile adds -llzma to the libunwind libs, patch this out as we don't build lzma in LE.
Also cleanup libunwind package.mk so that headers and static libs are only installed to sysroot