Commit 5531fa5f authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] perf -- build in the context of the full generated local headers

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 3ca12ac0
...@@ -569,9 +569,7 @@ $(stampdir)/stamp-prepare-perarch: ...@@ -569,9 +569,7 @@ $(stampdir)/stamp-prepare-perarch:
ifeq ($(do_any_tools),true) ifeq ($(do_any_tools),true)
rm -rf $(builddirpa) rm -rf $(builddirpa)
install -d $(builddirpa) install -d $(builddirpa)
for i in *; do $(LN) $(CURDIR)/$$i $(builddirpa); done rsync -a --exclude debian --exclude debian.master --exclude $(DEBIAN) --exclude .git -a ./ $(builddirpa)/
rm $(builddirpa)/tools
rsync -a tools/ $(builddirpa)/tools/
endif endif
touch $@ touch $@
...@@ -594,8 +592,15 @@ ifeq ($(do_tools_cpupower),true) ...@@ -594,8 +592,15 @@ ifeq ($(do_tools_cpupower),true)
LIB_MIN=$(abi_release) CPUFREQ_BENCH=false LIB_MIN=$(abi_release) CPUFREQ_BENCH=false
endif endif
ifeq ($(do_tools_perf),true) ifeq ($(do_tools_perf),true)
cd $(builddirpa) && $(kmake) $(defconfig)
mv $(builddirpa)/.config $(builddirpa)/.config.old
sed -e 's/^# \(CONFIG_MODVERSIONS\) is not set$$/\1=y/' \
-e 's/.*CONFIG_LOCALVERSION_AUTO.*/# CONFIG_LOCALVERSION_AUTO is not set/' \
$(builddirpa)/.config.old > $(builddirpa)/.config
cd $(builddirpa) && $(kmake) silentoldconfig
cd $(builddirpa) && $(kmake) prepare
cd $(builddirpa)/tools/perf && \ cd $(builddirpa)/tools/perf && \
make prefix=/usr HAVE_CPLUS_DEMANGLE=1 CROSS_COMPILE=$(CROSS_COMPILE) NO_LIBPYTHON=1 NO_LIBPERL=1 PYTHON=python2.7 $(kmake) prefix=/usr HAVE_CPLUS_DEMANGLE=1 CROSS_COMPILE=$(CROSS_COMPILE) NO_LIBPYTHON=1 NO_LIBPERL=1 PYTHON=python2.7
endif endif
ifeq ($(do_tools_x86),true) ifeq ($(do_tools_x86),true)
cd $(builddirpa)/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE) cd $(builddirpa)/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment