0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-01 01:01:24 +00:00
Matthias Reichl fd128976da pciutils: drop ARCH=x86_64 restriction
Signed-off-by: Matthias Reichl <hias@horus.com>
2021-02-16 17:33:02 +01:00

36 lines
1.2 KiB
Makefile

# 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"
PKG_VERSION="3.7.0"
PKG_SHA256="9d40b97be8b6a2cdf96aead5a61881d1f7e4e0da9544a9bac4fba1ae9dcd40eb"
PKG_LICENSE="GPL"
PKG_SITE="http://mj.ucw.cz/pciutils.shtml"
PKG_URL="http://www.kernel.org/pub/software/utils/pciutils/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain kmod systemd"
PKG_LONGDESC="Utilities for inspecting devices connected to the PCI bus and the PCI vendor/product ID database."
PKG_MAKE_OPTS="PREFIX=/usr SHARED=no STRIP= IDSDIR=/usr/share"
make_target() {
make OPT="${CFLAGS}" \
CROSS_COMPILE=${TARGET_PREFIX} \
HOST=${TARGET_ARCH}-linux \
${PKG_MAKE_OPTS} \
ZLIB=no DNS=no LIBKMOD=yes HWDB=yes
}
makeinstall_target() {
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
make ${PKG_MAKE_OPTS} DESTDIR=${INSTALL} install
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/sbin/setpci
rm -rf ${INSTALL}/usr/sbin/update-pciids
rm -rf ${INSTALL}/usr/share
}