mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
package/ebtables: use a foreach make loop instead of a for shell loop
make loops are more commonly used in Buildroot, are shorter, and have built-in error handling. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
d6febe48c8
commit
aa5d8a2b3f
@ -23,10 +23,10 @@ define EBTABLES_INSTALL_TARGET_CMDS
|
|||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
define EBTABLES_INSTALL_TARGET_CMDS
|
define EBTABLES_INSTALL_TARGET_CMDS
|
||||||
for so in $(@D)/*.so $(@D)/extensions/*.so; do \
|
$(foreach so,$(wildcard $(@D)/*.so $(@D)/extensions/*.so), \
|
||||||
$(INSTALL) -m 0755 -D $${so} \
|
$(INSTALL) -m 0755 -D $(so) \
|
||||||
$(TARGET_DIR)/lib/ebtables/`basename $${so}` || exit 1; \
|
$(TARGET_DIR)/lib/ebtables/$(notdir $(so))
|
||||||
done
|
)
|
||||||
$(INSTALL) -m 0755 -D $(@D)/ebtables $(TARGET_DIR)/sbin/ebtables
|
$(INSTALL) -m 0755 -D $(@D)/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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user