diff --git a/rules/ethtool.mk b/rules/ethtool.mk index b79eaad7af..11c857811a 100644 --- a/rules/ethtool.mk +++ b/rules/ethtool.mk @@ -3,11 +3,11 @@ ETHTOOL_VERSION_BASE = 5.9 export ETHTOOL_VERSION_BASE -ETHTOOL = ethtool_$(ETHTOOL_VERSION_BASE)-1_amd64.deb +ETHTOOL = ethtool_$(ETHTOOL_VERSION_BASE)-1_$(CONFIGURED_ARCH).deb $(ETHTOOL)_SRC_PATH = $(SRC_PATH)/ethtool SONIC_MAKE_DEBS += $(ETHTOOL) -ETHTOOL_DBG = ethtool-dbgsym_$(ETHTOOL_VERSION_BASE)-1_amd64.deb +ETHTOOL_DBG = ethtool-dbgsym_$(ETHTOOL_VERSION_BASE)-1_$(CONFIGURED_ARCH).deb $(eval $(call add_extra_package,$(ETHTOOL),$(ETHTOOL_DBG))) export ETHTOOL ETHTOOL_DBG diff --git a/src/ethtool/Makefile b/src/ethtool/Makefile index 2f5a3acc94..071429121f 100644 --- a/src/ethtool/Makefile +++ b/src/ethtool/Makefile @@ -12,7 +12,12 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : pushd ethtool git checkout tags/debian/1%$(ETHTOOL_VERSION_BASE)-1 # Build package +ifneq (,(filter $(CONFIGURED_ARCH),arm64 armhf)) + DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR) +else dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR) +endif + popd mv $(DERIVED_TARGET) $* $(DEST)/