package/ebtables: drop useless EBTABLES_SUBDIR variable

This variable is never defined, so it is empty. Using it makes the
code needlessly more complicated than it needs to be, so let's drop
it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni 2019-12-22 21:15:33 +01:00
parent 4e464f4888
commit d6febe48c8

View File

@ -19,19 +19,15 @@ endef
ifeq ($(BR2_STATIC_LIBS),y) ifeq ($(BR2_STATIC_LIBS),y)
define EBTABLES_INSTALL_TARGET_CMDS define EBTABLES_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/static \ $(INSTALL) -m 0755 -D $(@D)/static $(TARGET_DIR)/sbin/ebtables
$(TARGET_DIR)/sbin/ebtables
endef endef
else else
define EBTABLES_INSTALL_TARGET_CMDS define EBTABLES_INSTALL_TARGET_CMDS
for so in $(@D)/$(EBTABLES_SUBDIR)/*.so \ for so in $(@D)/*.so $(@D)/extensions/*.so; do \
$(@D)/$(EBTABLES_SUBDIR)/extensions/*.so; \
do \
$(INSTALL) -m 0755 -D $${so} \ $(INSTALL) -m 0755 -D $${so} \
$(TARGET_DIR)/lib/ebtables/`basename $${so}` || exit 1; \ $(TARGET_DIR)/lib/ebtables/`basename $${so}` || exit 1; \
done done
$(INSTALL) -m 0755 -D $(@D)/$(EBTABLES_SUBDIR)/ebtables \ $(INSTALL) -m 0755 -D $(@D)/ebtables $(TARGET_DIR)/sbin/ebtables
$(TARGET_DIR)/sbin/ebtables
$(INSTALL) -m 0644 -D $(@D)/ethertypes $(TARGET_DIR)/etc/ethertypes $(INSTALL) -m 0644 -D $(@D)/ethertypes $(TARGET_DIR)/etc/ethertypes
endef endef
endif endif