mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
8c2dcd1518
Release Notes: https://lore.kernel.org/netdev/20240128235634.4ni2lbvzqjlwbgi4@lion.mk-sys.cz/T/ https://lore.kernel.org/netdev/jylgitumxz72a2hfzsujnwvxpkuzcw3wcwebodthtpvtkfgmlp@rfoix5dyh2bg/T/ https://lore.kernel.org/netdev/ssn37ocuhjyx3k5xoq53uvb3voo2qxnwvuwgephb4cc5lbw5ei@5fkqwsfdzlcu/T/ Small size increase: 34937 bin/packages/mips_24kc-old/base/ethtool_6.6-r1_mips_24kc.ipk 154818 bin/packages/mips_24kc-old/base/ethtool-full_6.6-r1_mips_24kc.ipk 35780 bin/packages/mips_24kc-new/base/ethtool_6.10-r1_mips_24kc.ipk 157386 bin/packages/mips_24kc-new/base/ethtool-full_6.10-r1_mips_24kc.ipk Link: https://github.com/openwrt/openwrt/pull/16590 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ethtool
|
|
PKG_VERSION:=6.10
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=@KERNEL/software/network/ethtool
|
|
PKG_HASH:=cc613fe8a2bcddee17a1e6e0d763c0f3ea33c7e930658d2d7f601aa65e426a1f
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:kernel:ethtool
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ethtool
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Display or change ethernet card settings
|
|
URL:=http://www.kernel.org/pub/software/network/ethtool/
|
|
VARIANT:=tiny
|
|
CONFLICTS:=ethtool-full
|
|
endef
|
|
|
|
define Package/ethtool-full
|
|
$(Package/ethtool)
|
|
TITLE += (full)
|
|
VARIANT:=full
|
|
PROVIDES:=ethtool
|
|
DEPENDS:=+libmnl
|
|
CONFLICTS:=
|
|
endef
|
|
|
|
define Package/ethtool/description
|
|
ethtool is a small utility for examining and tuning your ethernet-based
|
|
network interface
|
|
endef
|
|
|
|
Package/ethtool-full/description:=$(Package/ethtool/description)
|
|
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
CONFIGURE_ARGS += --enable-netlink --enable-pretty-dump
|
|
else
|
|
CONFIGURE_ARGS += --disable-netlink --disable-pretty-dump
|
|
endif
|
|
|
|
define Package/ethtool/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ethtool $(1)/usr/sbin
|
|
endef
|
|
|
|
Package/ethtool-full/install=$(Package/ethtool/install)
|
|
|
|
$(eval $(call BuildPackage,ethtool))
|
|
$(eval $(call BuildPackage,ethtool-full))
|