linux-cpupower: Pass variables to cpupower Makefile consistently

This commit is contained in:
Ben Hutchings 2016-06-10 02:14:04 +01:00
parent 7d8366f375
commit 2ed22da0d2
1 changed files with 6 additions and 6 deletions

View File

@ -1,17 +1,17 @@
include $(top_rulesdir)/Makefile.inc include $(top_rulesdir)/Makefile.inc
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) MAKE_CPUPOWER := $(shell dpkg-buildflags --export=cmdline) $(MAKE) O=$(CURDIR) CPUFREQ_BENCH=false V=true mandir=/usr/share/man
DEBUG = true
endif MAKE_CPUPOWER += DEBUG=$(if $(findstring nostrip,$(DEB_BUILD_OPTIONS)),true,)
all: all:
$(shell dpkg-buildflags --export=cmdline) $(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) DEBUG=$(DEBUG) CPUFREQ_BENCH=false V=true $(MAKE_CPUPOWER) -C $(top_srcdir)/tools/power/cpupower
install: install:
$(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) install mandir=/usr/share/man DESTDIR=$(DESTDIR) CPUFREQ_BENCH=false $(MAKE_CPUPOWER) -C $(top_srcdir)/tools/power/cpupower install DESTDIR=$(DESTDIR)
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
rm -rf $(DESTDIR)/usr/share/man rm -rf $(DESTDIR)/usr/share/man
endif endif
clean: clean:
$(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) clean $(MAKE_CPUPOWER) -C $(top_srcdir)/tools/power/cpupower clean