]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
oprofile: fix target-install for archs without performance counters support
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 22 May 2012 08:11:47 +0000 (10:11 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 22 May 2012 08:11:47 +0000 (10:11 +0200)
These archs can still use the timer mode.

Fixes http://autobuild.buildroot.org/results/2627ee17e1f1a58520e01c52af365998f648bbc5/

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/oprofile/oprofile.mk

index 5da794badc24f49ed1c23c88b288d558bef22c2c..fc2192843f172a77cc7fd4035a1fcfb7d4df4f5b 100644 (file)
@@ -30,7 +30,10 @@ OPROFILE_DEPENDENCIES = popt binutils
 define OPROFILE_INSTALL_TARGET_CMDS
        $(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin
        $(INSTALL) -d -m 755 $(TARGET_DIR)/usr/share/oprofile
-       cp -dpfr $(@D)/events/$(OPROFILE_ARCH) $(TARGET_DIR)/usr/share/oprofile
+       if [ -d $(@D)/events/$(OPROFILE_ARCH) ]; then \
+               cp -dpfr $(@D)/events/$(OPROFILE_ARCH) \
+                       $(TARGET_DIR)/usr/share/oprofile; \
+       fi
        $(INSTALL) -m 644 $(@D)/libregex/stl.pat $(TARGET_DIR)/usr/share/oprofile
        $(INSTALL) -m 755 $(@D)/utils/opcontrol $(TARGET_DIR)/usr/bin
        $(INSTALL) -m 755 $(addprefix $(@D)/, $(OPROFILE_BINARIES)) $(TARGET_DIR)/usr/bin