Przeglądaj źródła

Valgrind works on PPC and AMD64 as well nowadays.
Use Kconfig to ensure valgrind can only be enabled on supported archs.

Peter Korsgaard 19 lat temu
rodzic
commit
388e17a855
2 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 0
      package/valgrind/Config.in
  2. 0 4
      package/valgrind/valgrind.mk

+ 1 - 0
package/valgrind/Config.in

@@ -1,6 +1,7 @@
 config BR2_PACKAGE_VALGRIND
 config BR2_PACKAGE_VALGRIND
 	bool "valgrind"
 	bool "valgrind"
 	default n
 	default n
+	depends BR2_i386 || BR2_powerpc || BR2_x86_64
 	help
 	help
 	  Tool for debugging and profiling Linux programs.
 	  Tool for debugging and profiling Linux programs.
 
 

+ 0 - 4
package/valgrind/valgrind.mk

@@ -77,11 +77,7 @@ $(TARGET_DIR)/usr/bin/valgrind: $(VALGRIND_DIR)/none/vgskin_none.so
 	#cp $(VALGRIND_DIR)/woody.supp $(TARGET_DIR)/usr/lib/valgrind/
 	#cp $(VALGRIND_DIR)/woody.supp $(TARGET_DIR)/usr/lib/valgrind/
 	touch -c $(TARGET_DIR)/usr/bin/valgrind
 	touch -c $(TARGET_DIR)/usr/bin/valgrind
 
 
-ifeq ($(BR2_i386),y)
 valgrind: $(TARGET_DIR)/usr/bin/valgrind
 valgrind: $(TARGET_DIR)/usr/bin/valgrind
-else
-valgrind:
-endif
 
 
 valgrind-source: $(DL_DIR)/$(VALGRIND_SOURCE)
 valgrind-source: $(DL_DIR)/$(VALGRIND_SOURCE)