Files
Arch-R/packages/sysutils/ethmactool/package.mk
kszaq f6dd0660bd ethmactool: new package for getting HW MAC address or generating from CPU SN
Ethernet MAC address should be passed by u-boot in device tree. In
many cases this address is not correct: ethmactool package allows
userspace to take care of it.

Currently these are possible sources of "real" MAC:
 - Amlogic: cmdline, eFuse, CPU SN
 - Rockchip: CPU SN
2019-05-05 21:22:21 +02:00

18 lines
479 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="ethmactool"
PKG_VERSION="1.0"
PKG_LICENSE="GPLv2"
PKG_LONGDESC="ethmactool: udev rule for obtaining real MAC address or creating a persistent MAC from the CPU serial"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp $PKG_DIR/scripts/ethmactool-config $INSTALL/usr/bin
}
post_install() {
enable_service ethmactool-config.service
}