mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 07:27:43 +00:00
oprofile: use correct way of overriding steps
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
0fe621d1de
commit
d073318876
@ -26,22 +26,19 @@ endif
|
|||||||
|
|
||||||
OPROFILE_DEPENDENCIES := popt binutils_target
|
OPROFILE_DEPENDENCIES := popt binutils_target
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,oprofile))
|
define OPROFILE_INSTALL_TARGET_CMDS
|
||||||
|
|
||||||
$(OPROFILE_TARGET_INSTALL_TARGET):
|
|
||||||
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin
|
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin
|
||||||
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/share/oprofile
|
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/share/oprofile
|
||||||
cp -dpfr $(OPROFILE_DIR)/events/$(OPROFILE_ARCH) $(TARGET_DIR)/usr/share/oprofile
|
cp -dpfr $(@D)/events/$(OPROFILE_ARCH) $(TARGET_DIR)/usr/share/oprofile
|
||||||
$(INSTALL) -m 644 $(OPROFILE_DIR)/libregex/stl.pat $(TARGET_DIR)/usr/share/oprofile
|
$(INSTALL) -m 644 $(@D)/libregex/stl.pat $(TARGET_DIR)/usr/share/oprofile
|
||||||
$(INSTALL) -m 755 $(OPROFILE_DIR)/utils/opcontrol $(TARGET_DIR)/usr/bin
|
$(INSTALL) -m 755 $(@D)/utils/opcontrol $(TARGET_DIR)/usr/bin
|
||||||
$(INSTALL) -m 755 $(addprefix $(OPROFILE_DIR)/, $(OPROFILE_BINARIES)) $(TARGET_DIR)/usr/bin
|
$(INSTALL) -m 755 $(addprefix $(@D)/, $(OPROFILE_BINARIES)) $(TARGET_DIR)/usr/bin
|
||||||
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(addprefix $(TARGET_DIR)/usr/bin/, $(notdir $(OPROFILE_BINARIES)))
|
endef
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(OPROFILE_TARGET_CLEAN):
|
define OPROFILE_UNINSTALL_TARGET_CMDS
|
||||||
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(notdir $(OPROFILE_BINARIES)))
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(notdir $(OPROFILE_BINARIES)))
|
||||||
rm -f $(TARGET_DIR)/usr/bin/opcontrol
|
rm -f $(TARGET_DIR)/usr/bin/opcontrol
|
||||||
rm -rf $(TARGET_DIR)/usr/share/oprofile
|
rm -rf $(TARGET_DIR)/usr/share/oprofile
|
||||||
-$(MAKE) -C $(OPROFILE_DIR) clean
|
endef
|
||||||
touch $@
|
|
||||||
|
|
||||||
|
$(eval $(call AUTOTARGETS,package,oprofile))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user