mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
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
18 lines
479 B
Makefile
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
|
|
}
|