Skip to contentSkip to conversation

sstrip: drop host variant and deprecate target variant

PATCH New Julien Floret 2 participants 5 messages Jun 16, 2016 – Jun 18, 2016

lore
Share & tools
lore
#0 lore raw

cover sstrip: drop host variant and deprecate target variant

Host sstrip is not used anymore.
What's more, sstrip is not maintained and potentially harmful.

Julien Floret (3):
sstrip: get rid of host variant
Config.in: Add BR2_DEPRECATED_SINCE_2016_08
sstrip: mark as deprecated

 Config.in                |  4 ++++
 package/sstrip/Config.in |  1 +
 package/sstrip/sstrip.mk | 12 ------------
 3 files changed, 5 insertions(+), 12 deletions(-)
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/3 sstrip: get rid of host variant

Host sstrip is not used anymore.

---
 package/sstrip/sstrip.mk | 12 ------------
 1 file changed, 12 deletions(-)
package/sstrip/sstrip.mk +0 -12
index fe57b3c19b21..685ea09fbd77 100644
@@ -6,7 +6,6 @@
 
 SSTRIP_SITE = svn://svn.openwrt.org/openwrt/trunk/tools/sstrip
 SSTRIP_VERSION = 20154
-HOST_SSTRIP_BINARY = $(GNU_TARGET_NAME)-sstrip
 
 define SSTRIP_BUILD_CMDS
 	cd $(@D) ; \
@@ -18,15 +17,4 @@ define SSTRIP_INSTALL_TARGET_CMDS
 	$(INSTALL) -D $(@D)/sstrip $(TARGET_DIR)/usr/bin/sstrip
 endef
 
-define HOST_SSTRIP_BUILD_CMDS
-	cd $(@D) ; \
-	$(HOSTCC) $(HOST_CFLAGS) -include endian.h -include byteswap.h \
-		-o sstrip src/sstrip.c
-endef
-
-define HOST_SSTRIP_INSTALL_CMDS
-	$(INSTALL) -D $(@D)/sstrip $(HOST_DIR)/usr/bin/$(HOST_SSTRIP_BINARY)
-endef
-
 $(eval $(generic-package))
-$(eval $(host-generic-package))
Signature · 1 line
2.1.0
#2 lore raw

PATCH 2/3 Config.in: Add BR2_DEPRECATED_SINCE_2016_08

In reply to Julien Floret

In preparation for new deprecated features/symbols.

---
 Config.in | 4 ++++
 1 file changed, 4 insertions(+)
Config.in +4 -0
index 9fa74157a4be..820b1f0945db 100644
@@ -385,6 +385,10 @@ config BR2_DEPRECATED_SINCE_2016_05
 	bool
 	default y
 
+config BR2_DEPRECATED_SINCE_2016_08
+	bool
+	default y
+
 endif
 
 config BR2_ENABLE_DEBUG
Signature · 1 line
2.1.0
#3 lore raw

PATCH 3/3 sstrip: mark as deprecated

In reply to Julien Floret

sstrip is unmaintained and potentially harmful, as Yann explained in commit 6a6962fd82ca ("build/sstrip: deprecate for 2014.05").

---
 package/sstrip/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/sstrip/Config.in +1 -0
index 12a5941c54aa..c458f8eab1b0 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_SSTRIP
 	bool "sstrip"
+	depends on BR2_DEPRECATED_SINCE_2016_08
 	help
 	  Small utility that removes a few bytes from an executable that
 	  strip leaves behind.
Signature · 1 line
2.1.0
#4 lore raw

cover sstrip: drop host variant and deprecate target variant

In reply to Julien Floret

Hello,

Quoted 7 lines · Julien Floret

Host sstrip is not used anymore.
What's more, sstrip is not maintained and potentially harmful.

Julien Floret (3):
sstrip: get rid of host variant
Config.in: Add BR2_DEPRECATED_SINCE_2016_08
sstrip: mark as deprecated

Series applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com