mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
7
package/pciutils/Config.in
Normal file
7
package/pciutils/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_PCIUTILS
|
||||
bool "pciutils"
|
||||
help
|
||||
Various utilities dealing with the PCI bus.
|
||||
Provides things like setpci and lspci.
|
||||
|
||||
http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html
|
||||
3
package/pciutils/pciutils.hash
Normal file
3
package/pciutils/pciutils.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From https://www.kernel.org/pub/software/utils/pciutils/sha256sums.asc
|
||||
sha256 1d62f8fa192f90e61c35a6fc15ff3cb9a7a792f782407acc42ef67817c5939f5 pciutils-3.5.5.tar.xz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
74
package/pciutils/pciutils.mk
Normal file
74
package/pciutils/pciutils.mk
Normal file
@@ -0,0 +1,74 @@
|
||||
################################################################################
|
||||
#
|
||||
# pciutils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PCIUTILS_VERSION = 3.5.5
|
||||
PCIUTILS_SITE = $(BR2_KERNEL_MIRROR)/software/utils/pciutils
|
||||
PCIUTILS_SOURCE = pciutils-$(PCIUTILS_VERSION).tar.xz
|
||||
PCIUTILS_INSTALL_STAGING = YES
|
||||
PCIUTILS_LICENSE = GPL-2.0+
|
||||
PCIUTILS_LICENSE_FILES = COPYING
|
||||
PCIUTILS_MAKE_OPTS = \
|
||||
CC="$(TARGET_CC)" \
|
||||
HOST="$(KERNEL_ARCH)-linux" \
|
||||
OPT="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
RANLIB=$(TARGET_RANLIB) \
|
||||
AR=$(TARGET_AR) \
|
||||
DNS=no
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
PCIUTILS_DEPENDENCIES += udev
|
||||
PCIUTILS_MAKE_OPTS += HWDB=yes
|
||||
else
|
||||
PCIUTILS_MAKE_OPTS += HWDB=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
PCIUTILS_MAKE_OPTS += ZLIB=yes
|
||||
PCIUTILS_DEPENDENCIES += zlib
|
||||
else
|
||||
PCIUTILS_MAKE_OPTS += ZLIB=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_KMOD),y)
|
||||
PCIUTILS_DEPENDENCIES += kmod
|
||||
PCIUTILS_MAKE_OPTS += LIBKMOD=yes
|
||||
else
|
||||
PCIUTILS_MAKE_OPTS += LIBKMOD=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
PCIUTILS_MAKE_OPTS += SHARED=no
|
||||
else
|
||||
PCIUTILS_MAKE_OPTS += SHARED=yes
|
||||
endif
|
||||
|
||||
define PCIUTILS_CONFIGURE_CMDS
|
||||
$(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
|
||||
$(SED) 's/uname -s/echo Linux/' \
|
||||
-e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
|
||||
$(PCIUTILS_DIR)/lib/configure
|
||||
$(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
|
||||
endef
|
||||
|
||||
define PCIUTILS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
|
||||
PREFIX=/usr
|
||||
endef
|
||||
|
||||
define PCIUTILS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
|
||||
PREFIX=$(TARGET_DIR)/usr SBINDIR=$(TARGET_DIR)/usr/bin \
|
||||
install install-lib install-pcilib
|
||||
endef
|
||||
|
||||
define PCIUTILS_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
|
||||
PREFIX=$(STAGING_DIR)/usr SBINDIR=$(STAGING_DIR)/usr/bin \
|
||||
install install-lib install-pcilib
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user