2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="pciutils"
|
2023-02-08 17:26:54 +00:00
|
|
|
PKG_VERSION="3.9.0"
|
2023-02-10 15:52:46 +00:00
|
|
|
PKG_ARCH="any"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://mj.ucw.cz/pciutils.shtml"
|
2022-09-03 10:59:08 +00:00
|
|
|
PKG_URL="http://www.kernel.org/pub/software/utils/pciutils/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain kmod systemd"
|
|
|
|
PKG_LONGDESC="Utilities for inspecting devices connected to the PCI bus and the PCI vendor/product ID database."
|
2022-09-03 10:59:08 +00:00
|
|
|
PKG_BUILD_FLAGS="+pic"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-03-01 11:15:42 +00:00
|
|
|
PKG_MAKE_OPTS="PREFIX=/usr SHARED=yes STRIP= IDSDIR=/usr/share"
|
2022-09-03 10:59:08 +00:00
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
make_target() {
|
2022-09-03 10:59:08 +00:00
|
|
|
make OPT="${CFLAGS}" \
|
2022-02-05 14:23:32 +00:00
|
|
|
CROSS_COMPILE=${TARGET_PREFIX} \
|
2022-09-03 10:59:08 +00:00
|
|
|
HOST=${TARGET_ARCH}-linux \
|
|
|
|
${PKG_MAKE_OPTS} \
|
2022-02-05 14:23:32 +00:00
|
|
|
ZLIB=no DNS=no LIBKMOD=yes HWDB=yes
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-09-03 10:59:08 +00:00
|
|
|
make ${PKG_MAKE_OPTS} DESTDIR=${SYSROOT_PREFIX} install
|
|
|
|
make ${PKG_MAKE_OPTS} DESTDIR=${SYSROOT_PREFIX} install-lib
|
|
|
|
make ${PKG_MAKE_OPTS} DESTDIR=${INSTALL} install-lib
|
2023-02-10 15:52:46 +00:00
|
|
|
make ${PKG_MAKE_OPTS} DESTDIR=${INSTALL} install
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-09-03 10:59:08 +00:00
|
|
|
rm -rf ${INSTALL}/usr/sbin/setpci
|
|
|
|
rm -rf ${INSTALL}/usr/sbin/update-pciids
|
|
|
|
rm -rf ${INSTALL}/usr/share
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|